@wix/sdk 1.12.2 → 1.12.4
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/context.d.ts +2 -1
- package/build/context.js +3 -11
- package/cjs/build/context.d.ts +2 -1
- package/cjs/build/context.js +3 -11
- package/package.json +4 -4
package/build/context.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WixClient } from './wixClient.js';
|
|
2
|
-
|
|
2
|
+
import { RESTFunctionDescriptor } from '@wix/sdk-types';
|
|
3
|
+
export declare function elevate<T extends RESTFunctionDescriptor>(restModule: T): T;
|
|
3
4
|
export declare const fetchWithAuth: WixClient['fetchWithAuth'];
|
|
4
5
|
export declare const graphql: WixClient['graphql'];
|
|
5
6
|
export { setGlobalWixContext } from './wix-context.js';
|
package/build/context.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { resolveContext } from '@wix/sdk-runtime/context';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.fill(undefined)
|
|
6
|
-
.map((_, index) => args[index]);
|
|
7
|
-
// support old EDMs
|
|
8
|
-
if (fullArgs.length === 0) {
|
|
9
|
-
fullArgs = args;
|
|
10
|
-
}
|
|
11
|
-
return func(...fullArgs, { suppressAuth: true });
|
|
12
|
-
});
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
export function elevate(restModule) {
|
|
4
|
+
return createRESTModule(restModule, true);
|
|
13
5
|
}
|
|
14
6
|
export const fetchWithAuth = async (...args) => {
|
|
15
7
|
const context = resolveContext();
|
package/cjs/build/context.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WixClient } from './wixClient.js';
|
|
2
|
-
|
|
2
|
+
import { RESTFunctionDescriptor } from '@wix/sdk-types';
|
|
3
|
+
export declare function elevate<T extends RESTFunctionDescriptor>(restModule: T): T;
|
|
3
4
|
export declare const fetchWithAuth: WixClient['fetchWithAuth'];
|
|
4
5
|
export declare const graphql: WixClient['graphql'];
|
|
5
6
|
export { setGlobalWixContext } from './wix-context.js';
|
package/cjs/build/context.js
CHANGED
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setGlobalWixContext = exports.graphql = exports.fetchWithAuth = exports.elevate = void 0;
|
|
4
4
|
const context_1 = require("@wix/sdk-runtime/context");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.fill(undefined)
|
|
9
|
-
.map((_, index) => args[index]);
|
|
10
|
-
// support old EDMs
|
|
11
|
-
if (fullArgs.length === 0) {
|
|
12
|
-
fullArgs = args;
|
|
13
|
-
}
|
|
14
|
-
return func(...fullArgs, { suppressAuth: true });
|
|
15
|
-
});
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
function elevate(restModule) {
|
|
7
|
+
return (0, rest_modules_1.createRESTModule)(restModule, true);
|
|
16
8
|
}
|
|
17
9
|
exports.elevate = elevate;
|
|
18
10
|
const fetchWithAuth = async (...args) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@wix/image-kit": "^1.73.0",
|
|
69
69
|
"@wix/redirects": "^1.0.41",
|
|
70
70
|
"@wix/sdk-context": "^0.0.1",
|
|
71
|
-
"@wix/sdk-runtime": "0.3.
|
|
71
|
+
"@wix/sdk-runtime": "0.3.9",
|
|
72
72
|
"@wix/sdk-types": "^1.9.1",
|
|
73
73
|
"crypto-js": "^4.2.0",
|
|
74
74
|
"jose": "^5.2.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@wix/events": "^1.0.179",
|
|
89
89
|
"@wix/metro": "^1.0.73",
|
|
90
90
|
"@wix/metro-runtime": "^1.1677.0",
|
|
91
|
-
"@wix/sdk-runtime": "0.3.
|
|
91
|
+
"@wix/sdk-runtime": "0.3.9",
|
|
92
92
|
"eslint": "^8.56.0",
|
|
93
93
|
"eslint-config-sdk": "0.0.0",
|
|
94
94
|
"graphql": "^16.8.0",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"wallaby": {
|
|
123
123
|
"autoDetect": true
|
|
124
124
|
},
|
|
125
|
-
"falconPackageHash": "
|
|
125
|
+
"falconPackageHash": "426069986cecb4df61b6a603251e92b202e9969f72e82615ba31ee78"
|
|
126
126
|
}
|