@wix/essentials 0.1.6 → 0.1.8
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/build/auth.js +1 -1
- package/cjs/build/auth.js +1 -1
- package/package.json +7 -6
package/build/auth.js
CHANGED
|
@@ -7,7 +7,7 @@ export const getTokenInfo = createRESTModule((restModuleOpts) => {
|
|
|
7
7
|
if (!restModuleOpts.getActiveToken) {
|
|
8
8
|
throw new Error('Unable to get the currently active token. Please make sure you are using an authentication strategy that supports this operation.');
|
|
9
9
|
}
|
|
10
|
-
const res = await
|
|
10
|
+
const res = await fetch('https://www.wixapis.com/oauth2/token-info', {
|
|
11
11
|
method: 'POST',
|
|
12
12
|
body: JSON.stringify({ token: restModuleOpts.getActiveToken() }),
|
|
13
13
|
headers: {
|
package/cjs/build/auth.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.getTokenInfo = (0, rest_modules_1.createRESTModule)((restModuleOpts) =>
|
|
|
11
11
|
if (!restModuleOpts.getActiveToken) {
|
|
12
12
|
throw new Error('Unable to get the currently active token. Please make sure you are using an authentication strategy that supports this operation.');
|
|
13
13
|
}
|
|
14
|
-
const res = await
|
|
14
|
+
const res = await fetch('https://www.wixapis.com/oauth2/token-info', {
|
|
15
15
|
method: 'POST',
|
|
16
16
|
body: JSON.stringify({ token: restModuleOpts.getActiveToken() }),
|
|
17
17
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/essentials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"main": "cjs/build/index.js",
|
|
6
6
|
"module": "build/index.mjs",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./build/index.js",
|
|
11
11
|
"require": "./cjs/build/index.js"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./package.json"
|
|
13
14
|
},
|
|
14
15
|
"sideEffects": false,
|
|
15
16
|
"files": [
|
|
@@ -31,8 +32,8 @@
|
|
|
31
32
|
"*.{js,ts}": "yarn lint"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@wix/sdk-runtime": "^0.3.
|
|
35
|
-
"@wix/sdk-types": "^1.12.
|
|
35
|
+
"@wix/sdk-runtime": "^0.3.21",
|
|
36
|
+
"@wix/sdk-types": "^1.12.3"
|
|
36
37
|
},
|
|
37
38
|
"optionalDependencies": {
|
|
38
39
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
"@types/is-ci": "^3.0.4",
|
|
42
43
|
"@types/node": "^20.10.6",
|
|
43
44
|
"@vitest/ui": "^1.5.0",
|
|
44
|
-
"@wix/sdk": "1.
|
|
45
|
+
"@wix/sdk": "1.14.1",
|
|
45
46
|
"eslint": "^8.56.0",
|
|
46
47
|
"eslint-config-sdk": "0.0.0",
|
|
47
48
|
"graphql": "^16.8.0",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
]
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
|
-
"falconPackageHash": "
|
|
73
|
+
"falconPackageHash": "93165f2988c7cfab1c5bffb6a15c467d48775c9205707b5ed63f41e1"
|
|
73
74
|
}
|