@wix/sdk 1.5.2 → 1.5.3
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 +4 -2
- package/build/index.js +4 -2
- package/build/index.mjs +4 -2
- package/package.json +3 -3
package/build/browser/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/ambassador-modules.ts
|
|
2
|
-
import { transformError } from "@wix/metro-runtime/velo";
|
|
3
2
|
var parseMethod = (method) => {
|
|
4
3
|
switch (method) {
|
|
5
4
|
case "get":
|
|
@@ -61,7 +60,10 @@ var toHTTPModule = (factory) => (httpClient) => async (payload) => {
|
|
|
61
60
|
});
|
|
62
61
|
return data;
|
|
63
62
|
} catch (e) {
|
|
64
|
-
|
|
63
|
+
if (typeof e === "object" && e !== null && "response" in e && typeof e.response === "object" && e.response !== null && "data" in e.response) {
|
|
64
|
+
throw e.response.data;
|
|
65
|
+
}
|
|
66
|
+
throw e;
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
69
|
var ambassadorModuleOptions = () => ({
|
package/build/index.js
CHANGED
|
@@ -45,7 +45,6 @@ __export(src_exports, {
|
|
|
45
45
|
module.exports = __toCommonJS(src_exports);
|
|
46
46
|
|
|
47
47
|
// src/ambassador-modules.ts
|
|
48
|
-
var import_velo = require("@wix/metro-runtime/velo");
|
|
49
48
|
var parseMethod = (method) => {
|
|
50
49
|
switch (method) {
|
|
51
50
|
case "get":
|
|
@@ -107,7 +106,10 @@ var toHTTPModule = (factory) => (httpClient) => async (payload) => {
|
|
|
107
106
|
});
|
|
108
107
|
return data;
|
|
109
108
|
} catch (e) {
|
|
110
|
-
|
|
109
|
+
if (typeof e === "object" && e !== null && "response" in e && typeof e.response === "object" && e.response !== null && "data" in e.response) {
|
|
110
|
+
throw e.response.data;
|
|
111
|
+
}
|
|
112
|
+
throw e;
|
|
111
113
|
}
|
|
112
114
|
};
|
|
113
115
|
var ambassadorModuleOptions = () => ({
|
package/build/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/ambassador-modules.ts
|
|
2
|
-
import { transformError } from "@wix/metro-runtime/velo";
|
|
3
2
|
var parseMethod = (method) => {
|
|
4
3
|
switch (method) {
|
|
5
4
|
case "get":
|
|
@@ -61,7 +60,10 @@ var toHTTPModule = (factory) => (httpClient) => async (payload) => {
|
|
|
61
60
|
});
|
|
62
61
|
return data;
|
|
63
62
|
} catch (e) {
|
|
64
|
-
|
|
63
|
+
if (typeof e === "object" && e !== null && "response" in e && typeof e.response === "object" && e.response !== null && "data" in e.response) {
|
|
64
|
+
throw e.response.data;
|
|
65
|
+
}
|
|
66
|
+
throw e;
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
69
|
var ambassadorModuleOptions = () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"@babel/runtime": "^7.23.1",
|
|
34
34
|
"@wix/identity": "^1.0.59",
|
|
35
35
|
"@wix/image-kit": "^1.37.0",
|
|
36
|
-
"@wix/metro-runtime": "^1.1532.0",
|
|
37
36
|
"@wix/redirects": "^1.0.25",
|
|
38
37
|
"@wix/sdk-types": "1.5.0",
|
|
39
38
|
"pkce-challenge": "^3.1.0",
|
|
@@ -52,6 +51,7 @@
|
|
|
52
51
|
"@wix/ecom": "^1.0.362",
|
|
53
52
|
"@wix/events": "^1.0.122",
|
|
54
53
|
"@wix/metro": "^1.0.67",
|
|
54
|
+
"@wix/metro-runtime": "^1.1532.0",
|
|
55
55
|
"eslint": "^7.32.0",
|
|
56
56
|
"eslint-config-sdk": "0.0.0",
|
|
57
57
|
"graphql": "16.8.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"wallaby": {
|
|
88
88
|
"autoDetect": true
|
|
89
89
|
},
|
|
90
|
-
"falconPackageHash": "
|
|
90
|
+
"falconPackageHash": "8219aada4f2b926c1e6c891f568f63740ec5e81a092eedaf68a2024f"
|
|
91
91
|
}
|