@wix/sdk 1.15.25 → 1.15.27
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/rest-modules.js +3 -1
- package/build/wixClient.js +14 -3
- package/cjs/build/rest-modules.js +3 -1
- package/cjs/build/wixClient.js +14 -3
- package/package.json +8 -8
package/build/rest-modules.js
CHANGED
|
@@ -47,7 +47,9 @@ export function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, errorH
|
|
|
47
47
|
errorHandler?.handleError(transformedError, {
|
|
48
48
|
requestOptions: {
|
|
49
49
|
url: request.url,
|
|
50
|
-
|
|
50
|
+
method: request.method,
|
|
51
|
+
entityFqdn: requestOptions.entityFqdn,
|
|
52
|
+
methodFqn: requestOptions.methodFqn,
|
|
51
53
|
},
|
|
52
54
|
});
|
|
53
55
|
throw error;
|
package/build/wixClient.js
CHANGED
|
@@ -36,7 +36,10 @@ export function createClient(config) {
|
|
|
36
36
|
headers,
|
|
37
37
|
});
|
|
38
38
|
errorHandler?.handleError(response, {
|
|
39
|
-
requestOptions:
|
|
39
|
+
requestOptions: {
|
|
40
|
+
url: urlOrRequest.toString(),
|
|
41
|
+
method: requestInit?.method,
|
|
42
|
+
},
|
|
40
43
|
});
|
|
41
44
|
const consistentHeader = findConsistentHeader(response);
|
|
42
45
|
if (consistentHeader) {
|
|
@@ -52,7 +55,10 @@ export function createClient(config) {
|
|
|
52
55
|
}
|
|
53
56
|
const response = await fetch(urlOrRequest, requestInit);
|
|
54
57
|
errorHandler?.handleError(response, {
|
|
55
|
-
requestOptions:
|
|
58
|
+
requestOptions: {
|
|
59
|
+
url: urlOrRequest.url,
|
|
60
|
+
method: requestInit?.method,
|
|
61
|
+
},
|
|
56
62
|
});
|
|
57
63
|
const consistentHeader = findConsistentHeader(response);
|
|
58
64
|
if (consistentHeader) {
|
|
@@ -63,7 +69,12 @@ export function createClient(config) {
|
|
|
63
69
|
}
|
|
64
70
|
catch (e) {
|
|
65
71
|
errorHandler?.handleError(e, {
|
|
66
|
-
requestOptions:
|
|
72
|
+
requestOptions: {
|
|
73
|
+
url: typeof urlOrRequest === 'string' || urlOrRequest instanceof URL
|
|
74
|
+
? urlOrRequest.toString()
|
|
75
|
+
: urlOrRequest.url,
|
|
76
|
+
method: requestInit?.method,
|
|
77
|
+
},
|
|
67
78
|
});
|
|
68
79
|
throw e;
|
|
69
80
|
}
|
|
@@ -50,7 +50,9 @@ function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, errorHandler,
|
|
|
50
50
|
errorHandler?.handleError(transformedError, {
|
|
51
51
|
requestOptions: {
|
|
52
52
|
url: request.url,
|
|
53
|
-
|
|
53
|
+
method: request.method,
|
|
54
|
+
entityFqdn: requestOptions.entityFqdn,
|
|
55
|
+
methodFqn: requestOptions.methodFqn,
|
|
54
56
|
},
|
|
55
57
|
});
|
|
56
58
|
throw error;
|
package/cjs/build/wixClient.js
CHANGED
|
@@ -40,7 +40,10 @@ function createClient(config) {
|
|
|
40
40
|
headers,
|
|
41
41
|
});
|
|
42
42
|
errorHandler?.handleError(response, {
|
|
43
|
-
requestOptions:
|
|
43
|
+
requestOptions: {
|
|
44
|
+
url: urlOrRequest.toString(),
|
|
45
|
+
method: requestInit?.method,
|
|
46
|
+
},
|
|
44
47
|
});
|
|
45
48
|
const consistentHeader = findConsistentHeader(response);
|
|
46
49
|
if (consistentHeader) {
|
|
@@ -56,7 +59,10 @@ function createClient(config) {
|
|
|
56
59
|
}
|
|
57
60
|
const response = await fetch(urlOrRequest, requestInit);
|
|
58
61
|
errorHandler?.handleError(response, {
|
|
59
|
-
requestOptions:
|
|
62
|
+
requestOptions: {
|
|
63
|
+
url: urlOrRequest.url,
|
|
64
|
+
method: requestInit?.method,
|
|
65
|
+
},
|
|
60
66
|
});
|
|
61
67
|
const consistentHeader = findConsistentHeader(response);
|
|
62
68
|
if (consistentHeader) {
|
|
@@ -67,7 +73,12 @@ function createClient(config) {
|
|
|
67
73
|
}
|
|
68
74
|
catch (e) {
|
|
69
75
|
errorHandler?.handleError(e, {
|
|
70
|
-
requestOptions:
|
|
76
|
+
requestOptions: {
|
|
77
|
+
url: typeof urlOrRequest === 'string' || urlOrRequest instanceof URL
|
|
78
|
+
? urlOrRequest.toString()
|
|
79
|
+
: urlOrRequest.url,
|
|
80
|
+
method: requestInit?.method,
|
|
81
|
+
},
|
|
71
82
|
});
|
|
72
83
|
throw e;
|
|
73
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@wix/identity": "^1.0.104",
|
|
76
|
-
"@wix/image-kit": "^1.
|
|
76
|
+
"@wix/image-kit": "^1.112.0",
|
|
77
77
|
"@wix/redirects": "^1.0.70",
|
|
78
78
|
"@wix/sdk-context": "0.0.1",
|
|
79
|
-
"@wix/sdk-runtime": "0.3.
|
|
80
|
-
"@wix/sdk-types": "^1.13.
|
|
79
|
+
"@wix/sdk-runtime": "0.3.62",
|
|
80
|
+
"@wix/sdk-types": "^1.13.41",
|
|
81
81
|
"jose": "^5.10.0",
|
|
82
82
|
"type-fest": "^4.41.0"
|
|
83
83
|
},
|
|
@@ -86,20 +86,20 @@
|
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@types/is-ci": "^3.0.4",
|
|
89
|
-
"@types/node": "^20.19.
|
|
89
|
+
"@types/node": "^20.19.10",
|
|
90
90
|
"@vitest/ui": "^1.6.1",
|
|
91
91
|
"@wix/ecom": "^1.0.886",
|
|
92
92
|
"@wix/events": "^1.0.382",
|
|
93
93
|
"@wix/metro": "^1.0.93",
|
|
94
94
|
"@wix/metro-runtime": "^1.1891.0",
|
|
95
|
-
"@wix/sdk-runtime": "0.3.
|
|
95
|
+
"@wix/sdk-runtime": "0.3.62",
|
|
96
96
|
"eslint": "^8.57.1",
|
|
97
97
|
"eslint-config-sdk": "0.0.0",
|
|
98
98
|
"graphql": "^16.8.0",
|
|
99
99
|
"is-ci": "^3.0.1",
|
|
100
100
|
"jsdom": "^22.1.0",
|
|
101
101
|
"msw": "^2.10.4",
|
|
102
|
-
"typescript": "^5.
|
|
102
|
+
"typescript": "^5.9.2",
|
|
103
103
|
"vitest": "^1.6.1",
|
|
104
104
|
"vitest-teamcity-reporter": "^0.3.1"
|
|
105
105
|
},
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"wallaby": {
|
|
127
127
|
"autoDetect": true
|
|
128
128
|
},
|
|
129
|
-
"falconPackageHash": "
|
|
129
|
+
"falconPackageHash": "1c0389f91287fec42f5eb0e61b95c742450981c51f61cbdd6089f828"
|
|
130
130
|
}
|