@allthings/sdk 10.0.0-beta.3 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,9 +20,13 @@ yarn add -DE @allthings/sdk
20
20
  ```
21
21
 
22
22
  ```javascript
23
- const allthings = require('@allthings/sdk')
23
+ // ESM
24
+ import { restClient } from '@allthings/sdk'
24
25
 
25
- const client = allthings.restClient({
26
+ // or CJS
27
+ const { restClient } = require('@allthings/sdk')
28
+
29
+ const client = restClient({
26
30
  accessToken: '043dab7447450772example1214b552838003522',
27
31
  })
28
32
 
@@ -67,9 +71,9 @@ process.env.ALLTHINGS_OAUTH_USERNAME,
67
71
  @TODO
68
72
 
69
73
  ```javascript
70
- const allthings = require('@allthings/sdk')
74
+ import { restClient } from '@allthings/sdk'
71
75
 
72
- const client = allthings.restClient({
76
+ const client = restClient({
73
77
  accessToken: '043dab7447450772example1214b552838003522',
74
78
  })
75
79
 
@@ -83,9 +87,9 @@ client
83
87
  1. Initialize instance of `client`:
84
88
 
85
89
  ```javascript
86
- const allthings = require('@allthings/sdk')
90
+ import { restClient } from '@allthings/sdk'
87
91
 
88
- const client = allthings.restClient({
92
+ const client = restClient({
89
93
  clientId: '5d038ef2441f4de574005c54_example',
90
94
  clientSecret: '40f63f981ff082dbc8d273983ac3852c2e51e90856123156',
91
95
  redirectUri: 'https://example-app.com/callback',
@@ -176,9 +180,9 @@ const user = await client.getCurrentUser()
176
180
  Create an client instance of the SDK.
177
181
 
178
182
  ```javascript
179
- const allthings = require('@allthings/sdk')
183
+ import { restClient } from '@allthings/sdk'
180
184
 
181
- const client = allthings.restClient(configurationOptions)
185
+ const client = restClient(configurationOptions)
182
186
  ```
183
187
 
184
188
  ---
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ function createTokenStore(initialToken) {
12
12
  };
13
13
  }
14
14
 
15
- const version = "10.0.0-beta.3";
15
+ const version = "10.1.0";
16
16
 
17
17
  const environment = typeof process !== 'undefined' && process.env ? process.env : {};
18
18
 
package/dist/lib.cjs.js CHANGED
@@ -11,7 +11,7 @@ function createTokenStore(initialToken) {
11
11
  };
12
12
  }
13
13
 
14
- const version = "10.0.0-beta.3";
14
+ const version = "10.1.0";
15
15
 
16
16
  const environment = typeof process !== 'undefined' && process.env ? process.env : {};
17
17
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/sdk",
3
- "version": "10.0.0-beta.3",
3
+ "version": "10.1.0",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [
@@ -17,9 +17,6 @@
17
17
  "node": "^22 || >=24"
18
18
  },
19
19
  "packageManager": "yarn@4.15.0",
20
- "release": {
21
- "repositoryUrl": "https://github.com/allthings/node-sdk.git"
22
- },
23
20
  "main": "dist/lib.cjs.js",
24
21
  "module": "dist/src/index.js",
25
22
  "browser": "dist/src/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/sdk",
3
- "version": "10.0.0-beta.3",
3
+ "version": "10.1.0",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [
@@ -17,9 +17,6 @@
17
17
  "node": "^22 || >=24"
18
18
  },
19
19
  "packageManager": "yarn@4.15.0",
20
- "release": {
21
- "repositoryUrl": "https://github.com/allthings/node-sdk.git"
22
- },
23
20
  "main": "dist/lib.cjs.js",
24
21
  "module": "dist/src/index.js",
25
22
  "browser": "dist/src/index.js",