@wix/sdk 1.15.10 → 1.15.11

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.
@@ -83,7 +83,7 @@ export function AppStrategy(opts) {
83
83
  }),
84
84
  });
85
85
  if (tokensRes.status !== 200) {
86
- throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
86
+ throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get('x-wix-request-id')}`);
87
87
  }
88
88
  const tokens = await tokensRes.json();
89
89
  refreshToken = tokens.refresh_token;
@@ -118,7 +118,7 @@ export function AppStrategy(opts) {
118
118
  }),
119
119
  });
120
120
  if (tokensRes.status !== 200) {
121
- throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
121
+ throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get('x-wix-request-id')}`);
122
122
  }
123
123
  const tokens = (await tokensRes.json());
124
124
  refreshToken = tokens.refresh_token;
@@ -145,7 +145,7 @@ export function AppStrategy(opts) {
145
145
  }),
146
146
  });
147
147
  if (tokensRes.status !== 200) {
148
- throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
148
+ throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get('x-wix-request-id')}`);
149
149
  }
150
150
  const tokens = (await tokensRes.json());
151
151
  cachedToken = {
@@ -171,7 +171,7 @@ export function AppStrategy(opts) {
171
171
  }),
172
172
  });
173
173
  if (tokenRes.status !== 200) {
174
- throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}`);
174
+ throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}, request id: ${tokenRes.headers.get('x-wix-request-id')}`);
175
175
  }
176
176
  const { access_token, expires_in } = (await tokenRes.json());
177
177
  cachedToken = {
@@ -119,7 +119,7 @@ function AppStrategy(opts) {
119
119
  }),
120
120
  });
121
121
  if (tokensRes.status !== 200) {
122
- throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
122
+ throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get('x-wix-request-id')}`);
123
123
  }
124
124
  const tokens = await tokensRes.json();
125
125
  refreshToken = tokens.refresh_token;
@@ -154,7 +154,7 @@ function AppStrategy(opts) {
154
154
  }),
155
155
  });
156
156
  if (tokensRes.status !== 200) {
157
- throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
157
+ throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get('x-wix-request-id')}`);
158
158
  }
159
159
  const tokens = (await tokensRes.json());
160
160
  refreshToken = tokens.refresh_token;
@@ -181,7 +181,7 @@ function AppStrategy(opts) {
181
181
  }),
182
182
  });
183
183
  if (tokensRes.status !== 200) {
184
- throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
184
+ throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get('x-wix-request-id')}`);
185
185
  }
186
186
  const tokens = (await tokensRes.json());
187
187
  cachedToken = {
@@ -207,7 +207,7 @@ function AppStrategy(opts) {
207
207
  }),
208
208
  });
209
209
  if (tokenRes.status !== 200) {
210
- throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}`);
210
+ throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}, request id: ${tokenRes.headers.get('x-wix-request-id')}`);
211
211
  }
212
212
  const { access_token, expires_in } = (await tokenRes.json());
213
213
  cachedToken = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.15.10",
3
+ "version": "1.15.11",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -72,23 +72,23 @@
72
72
  "@wix/image-kit": "^1.102.0",
73
73
  "@wix/redirects": "^1.0.70",
74
74
  "@wix/sdk-context": "^0.0.1",
75
- "@wix/sdk-runtime": "0.3.32",
75
+ "@wix/sdk-runtime": "0.3.35",
76
76
  "@wix/sdk-types": "^1.13.3",
77
77
  "jose": "^5.9.6",
78
- "type-fest": "^4.33.0"
78
+ "type-fest": "^4.34.1"
79
79
  },
80
80
  "optionalDependencies": {
81
81
  "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"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@types/is-ci": "^3.0.4",
85
- "@types/node": "^20.17.16",
86
- "@vitest/ui": "^1.6.0",
85
+ "@types/node": "^20.17.19",
86
+ "@vitest/ui": "^1.6.1",
87
87
  "@wix/ecom": "^1.0.886",
88
88
  "@wix/events": "^1.0.382",
89
89
  "@wix/metro": "^1.0.93",
90
90
  "@wix/metro-runtime": "^1.1891.0",
91
- "@wix/sdk-runtime": "0.3.32",
91
+ "@wix/sdk-runtime": "0.3.35",
92
92
  "eslint": "^8.57.1",
93
93
  "eslint-config-sdk": "0.0.0",
94
94
  "graphql": "^16.8.0",
@@ -96,7 +96,7 @@
96
96
  "jsdom": "^22.1.0",
97
97
  "msw": "^2.7.0",
98
98
  "typescript": "^5.7.3",
99
- "vitest": "^1.6.0",
99
+ "vitest": "^1.6.1",
100
100
  "vitest-teamcity-reporter": "^0.3.1"
101
101
  },
102
102
  "yoshiFlowLibrary": {
@@ -122,5 +122,5 @@
122
122
  "wallaby": {
123
123
  "autoDetect": true
124
124
  },
125
- "falconPackageHash": "e8829c84697790fbea57c74f353574170909075dc81f0d2000a69822"
125
+ "falconPackageHash": "429ddea4461d1b04a52fd7c3fd22843f303a0d897693ed0d6118a2b5"
126
126
  }