Skip to content

Commit a3d1b30

Browse files
committed
Going typescript
2 parents c486cf8 + 7bedefb commit a3d1b30

181 files changed

Lines changed: 25835 additions & 21987 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ ignorePatterns:
4040
- node_modules/
4141
- coverage/
4242
- docs/
43-
- tests-browser/
43+
- tests-browser/
44+
- js/
45+
- dist/

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
2-
coverage
2+
coverage
3+
dist
4+
.gcd

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ Is an extension of `pryv.Service` which uses the default service set with `setti
3030
### pryv
3131
Patched version of [pryv's javacript library](https://github.com/pryv/lib-js) including supports for [Socket.io](https://github.com/pryv/lib-js/tree/master/components/pryv-socket.io) and [Monitors](https://github.com/pryv/lib-js/tree/master/components/pryv-monitor)
3232

33-
#### pryv.Connection.apiOne(method, params, expectedKey)
34-
One liner call to pryv api based on `connection.api()``
35-
36-
#### pryv.Connection.revoke()
37-
Helper to revoke current connection
38-
3933
### localizeText (alias "l")
4034
Handles localization of text. The choice of locales can be set with `settings.setPreferredLocales()`
4135

@@ -53,7 +47,7 @@ await model.load();
5347
**Per service auto loading.** (preferred way)
5448
0. (Optional) You may set the defaultService info of the lib with `HDSLib.setServiceInfoURL()`.
5549
1. Initialize model singleton once with `await HDSLib.initHDSModel()`
56-
2. Use model from `HDSLib.model`
50+
2. Use model from `HDSLib.getHDSModel()`
5751

5852
#### HDSModel.ItemDef
5953

@@ -194,7 +188,7 @@ await connection.streamsAutoCreate.ensureExistsForItems(['body-weight', 'profile
194188
// init model in async code
195189
(async () => {
196190
await HDSLib.initHDSModel(); // need just one
197-
// from now on an in all your code you use HDSLib.model
191+
// from now on an in all your code you use HDSLib.getHDSModel()
198192
199193
// you may create new HDSService with:
200194
const service = new HDSService();

docs/hds-lib.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)