@wix/sdk 1.5.4 → 1.5.5
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/browser/index.mjs +13 -8
- package/build/index.js +13 -8
- package/build/index.mjs +13 -8
- package/package.json +8 -8
package/build/browser/index.mjs
CHANGED
|
@@ -291,14 +291,19 @@ function createClient(config) {
|
|
|
291
291
|
finalUrl.protocol = "https";
|
|
292
292
|
return boundFetch(finalUrl, options);
|
|
293
293
|
},
|
|
294
|
-
async graphql(query, variables
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
294
|
+
async graphql(query, variables, opts = {
|
|
295
|
+
apiVersion: "alpha"
|
|
296
|
+
}) {
|
|
297
|
+
const res = await boundFetch(
|
|
298
|
+
`https://${API_URL}/graphql/${opts.apiVersion}`,
|
|
299
|
+
{
|
|
300
|
+
method: "POST",
|
|
301
|
+
headers: {
|
|
302
|
+
"Content-Type": "application/json"
|
|
303
|
+
},
|
|
304
|
+
body: JSON.stringify({ query, variables })
|
|
305
|
+
}
|
|
306
|
+
);
|
|
302
307
|
if (res.status !== 200) {
|
|
303
308
|
throw new FetchErrorResponse(
|
|
304
309
|
`GraphQL request failed with status ${res.status}`,
|
package/build/index.js
CHANGED
|
@@ -335,14 +335,19 @@ function createClient(config) {
|
|
|
335
335
|
finalUrl.protocol = "https";
|
|
336
336
|
return boundFetch(finalUrl, options);
|
|
337
337
|
},
|
|
338
|
-
async graphql(query, variables
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
338
|
+
async graphql(query, variables, opts = {
|
|
339
|
+
apiVersion: "alpha"
|
|
340
|
+
}) {
|
|
341
|
+
const res = await boundFetch(
|
|
342
|
+
`https://${API_URL}/graphql/${opts.apiVersion}`,
|
|
343
|
+
{
|
|
344
|
+
method: "POST",
|
|
345
|
+
headers: {
|
|
346
|
+
"Content-Type": "application/json"
|
|
347
|
+
},
|
|
348
|
+
body: JSON.stringify({ query, variables })
|
|
349
|
+
}
|
|
350
|
+
);
|
|
346
351
|
if (res.status !== 200) {
|
|
347
352
|
throw new FetchErrorResponse(
|
|
348
353
|
`GraphQL request failed with status ${res.status}`,
|
package/build/index.mjs
CHANGED
|
@@ -289,14 +289,19 @@ function createClient(config) {
|
|
|
289
289
|
finalUrl.protocol = "https";
|
|
290
290
|
return boundFetch(finalUrl, options);
|
|
291
291
|
},
|
|
292
|
-
async graphql(query, variables
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
292
|
+
async graphql(query, variables, opts = {
|
|
293
|
+
apiVersion: "alpha"
|
|
294
|
+
}) {
|
|
295
|
+
const res = await boundFetch(
|
|
296
|
+
`https://${API_URL}/graphql/${opts.apiVersion}`,
|
|
297
|
+
{
|
|
298
|
+
method: "POST",
|
|
299
|
+
headers: {
|
|
300
|
+
"Content-Type": "application/json"
|
|
301
|
+
},
|
|
302
|
+
body: JSON.stringify({ query, variables })
|
|
303
|
+
}
|
|
304
|
+
);
|
|
300
305
|
if (res.status !== 200) {
|
|
301
306
|
throw new FetchErrorResponse(
|
|
302
307
|
`GraphQL request failed with status ${res.status}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.23.2",
|
|
34
|
-
"@wix/identity": "^1.0.
|
|
34
|
+
"@wix/identity": "^1.0.60",
|
|
35
35
|
"@wix/image-kit": "^1.37.0",
|
|
36
|
-
"@wix/redirects": "^1.0.
|
|
36
|
+
"@wix/redirects": "^1.0.26",
|
|
37
37
|
"@wix/sdk-types": "1.5.1",
|
|
38
38
|
"pkce-challenge": "^3.1.0",
|
|
39
39
|
"querystring": "^0.2.1",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"@swc/core": "^1.3.93",
|
|
47
47
|
"@swc/jest": "^0.2.29",
|
|
48
48
|
"@types/jest": "^27.5.2",
|
|
49
|
-
"@types/node": "^16.18.
|
|
50
|
-
"@types/node-fetch": "^2.6.
|
|
49
|
+
"@types/node": "^16.18.59",
|
|
50
|
+
"@types/node-fetch": "^2.6.7",
|
|
51
51
|
"@wix/ecom": "^1.0.368",
|
|
52
52
|
"@wix/events": "^1.0.123",
|
|
53
53
|
"@wix/metro": "^1.0.67",
|
|
54
|
-
"@wix/metro-runtime": "^1.
|
|
54
|
+
"@wix/metro-runtime": "^1.1542.0",
|
|
55
55
|
"eslint": "^7.32.0",
|
|
56
56
|
"eslint-config-sdk": "0.0.0",
|
|
57
57
|
"graphql": "16.8.0",
|
|
58
58
|
"is-ci": "^3.0.1",
|
|
59
59
|
"jest": "^27.5.1",
|
|
60
60
|
"jest-teamcity": "^1.11.0",
|
|
61
|
-
"nock": "^13.3.
|
|
61
|
+
"nock": "^13.3.6",
|
|
62
62
|
"node-fetch": "2.6.13",
|
|
63
63
|
"ts-jest": "^27.1.5",
|
|
64
64
|
"tsup": "^7.2.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"wallaby": {
|
|
88
88
|
"autoDetect": true
|
|
89
89
|
},
|
|
90
|
-
"falconPackageHash": "
|
|
90
|
+
"falconPackageHash": "7dd3b786429aec1b6fa9565fdc952b1c2634c917344e82dba377ff4d"
|
|
91
91
|
}
|