@wix/sdk 1.5.6 → 1.5.7

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.
@@ -289,7 +289,7 @@ function createClient(config) {
289
289
  const finalUrl = new URL(relativeUrl, `https://${API_URL}`);
290
290
  finalUrl.host = API_URL;
291
291
  finalUrl.protocol = "https";
292
- return boundFetch(finalUrl, options);
292
+ return boundFetch(finalUrl.toString(), options);
293
293
  },
294
294
  async graphql(query, variables, opts = {
295
295
  apiVersion: "alpha"
package/build/index.d.mts CHANGED
@@ -77,9 +77,7 @@ interface GraphQLFormattedError {
77
77
  };
78
78
  }
79
79
 
80
- type Headers = {
81
- Authorization: string;
82
- } & Record<string, string>;
80
+ type Headers = Record<string, string>;
83
81
  /**
84
82
  * This type takes in a descriptors object of a certain Host (including an `unknown` host)
85
83
  * and returns an object with the same structure, but with all descriptors replaced with their API.
package/build/index.d.ts CHANGED
@@ -77,9 +77,7 @@ interface GraphQLFormattedError {
77
77
  };
78
78
  }
79
79
 
80
- type Headers = {
81
- Authorization: string;
82
- } & Record<string, string>;
80
+ type Headers = Record<string, string>;
83
81
  /**
84
82
  * This type takes in a descriptors object of a certain Host (including an `unknown` host)
85
83
  * and returns an object with the same structure, but with all descriptors replaced with their API.
package/build/index.js CHANGED
@@ -333,7 +333,7 @@ function createClient(config) {
333
333
  const finalUrl = new URL(relativeUrl, `https://${API_URL}`);
334
334
  finalUrl.host = API_URL;
335
335
  finalUrl.protocol = "https";
336
- return boundFetch(finalUrl, options);
336
+ return boundFetch(finalUrl.toString(), options);
337
337
  },
338
338
  async graphql(query, variables, opts = {
339
339
  apiVersion: "alpha"
package/build/index.mjs CHANGED
@@ -287,7 +287,7 @@ function createClient(config) {
287
287
  const finalUrl = new URL(relativeUrl, `https://${API_URL}`);
288
288
  finalUrl.host = API_URL;
289
289
  finalUrl.protocol = "https";
290
- return boundFetch(finalUrl, options);
290
+ return boundFetch(finalUrl.toString(), options);
291
291
  },
292
292
  async graphql(query, variables, opts = {
293
293
  apiVersion: "alpha"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -20,8 +20,7 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsup",
23
- "test": "jest",
24
- "test:watch": "jest --watch",
23
+ "test": "vitest",
25
24
  "lint": "eslint --max-warnings=0 .",
26
25
  "lint:fix": "eslint --max-warnings=0 . --fix",
27
26
  "typecheck": "tsc --noEmit"
@@ -31,9 +30,9 @@
31
30
  },
32
31
  "dependencies": {
33
32
  "@babel/runtime": "^7.23.2",
34
- "@wix/identity": "^1.0.60",
35
- "@wix/image-kit": "^1.38.0",
36
- "@wix/redirects": "^1.0.26",
33
+ "@wix/identity": "^1.0.62",
34
+ "@wix/image-kit": "^1.40.0",
35
+ "@wix/redirects": "^1.0.28",
37
36
  "@wix/sdk-types": "1.5.1",
38
37
  "pkce-challenge": "^3.1.0",
39
38
  "querystring": "^0.2.1",
@@ -43,26 +42,22 @@
43
42
  "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"
44
43
  },
45
44
  "devDependencies": {
46
- "@swc/core": "^1.3.93",
47
- "@swc/jest": "^0.2.29",
48
- "@types/jest": "^27.5.2",
49
- "@types/node": "^16.18.59",
50
- "@types/node-fetch": "^2.6.7",
51
- "@wix/ecom": "^1.0.373",
52
- "@wix/events": "^1.0.124",
45
+ "@types/is-ci": "^3.0.4",
46
+ "@types/node": "^20.9.0",
47
+ "@wix/ecom": "^1.0.379",
48
+ "@wix/events": "^1.0.127",
53
49
  "@wix/metro": "^1.0.67",
54
- "@wix/metro-runtime": "^1.1543.0",
50
+ "@wix/metro-runtime": "^1.1547.0",
55
51
  "eslint": "^7.32.0",
56
52
  "eslint-config-sdk": "0.0.0",
57
53
  "graphql": "16.8.0",
58
54
  "is-ci": "^3.0.1",
59
- "jest": "^27.5.1",
60
- "jest-teamcity": "^1.11.0",
61
- "nock": "^13.3.6",
62
- "node-fetch": "2.6.13",
63
- "ts-jest": "^27.1.5",
55
+ "jsdom": "^22.1.0",
56
+ "msw": "^2.0.5",
64
57
  "tsup": "^7.2.0",
65
- "typescript": "~4.9.5"
58
+ "typescript": "~4.9.5",
59
+ "vitest": "^0.34.6",
60
+ "vitest-teamcity-reporter": "^0.2.0"
66
61
  },
67
62
  "yoshiFlowLibrary": {
68
63
  "buildEsmWithBabel": true
@@ -87,5 +82,5 @@
87
82
  "wallaby": {
88
83
  "autoDetect": true
89
84
  },
90
- "falconPackageHash": "211b585939203c364aa9bc472dff350de2d7923e78ecb0dcbf0c444e"
85
+ "falconPackageHash": "ef89c90113560669ac1e3eaddcf8cb682516f3c71c91e15d3dbf4821"
91
86
  }