@wix/sdk 1.17.7 → 1.17.8

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.
@@ -156,8 +156,9 @@ export function createClient(config) {
156
156
  const wrappedModules = config.modules
157
157
  ? use(config.modules)
158
158
  : {};
159
- const authStrategy = { ...getAuthStrategy() };
160
- authStrategy.getAuthHeaders = boundGetAuthHeaders;
159
+ const authStrategy = getAuthStrategy();
160
+ const originalGetAuthHeaders = authStrategy.getAuthHeaders;
161
+ authStrategy.getAuthHeaders = originalGetAuthHeaders.bind(undefined, config.host);
161
162
  return {
162
163
  ...wrappedModules,
163
164
  auth: authStrategy,
@@ -160,8 +160,9 @@ function createClient(config) {
160
160
  const wrappedModules = config.modules
161
161
  ? use(config.modules)
162
162
  : {};
163
- const authStrategy = { ...getAuthStrategy() };
164
- authStrategy.getAuthHeaders = boundGetAuthHeaders;
163
+ const authStrategy = getAuthStrategy();
164
+ const originalGetAuthHeaders = authStrategy.getAuthHeaders;
165
+ authStrategy.getAuthHeaders = originalGetAuthHeaders.bind(undefined, config.host);
165
166
  return {
166
167
  ...wrappedModules,
167
168
  auth: authStrategy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.17.7",
3
+ "version": "1.17.8",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -127,5 +127,5 @@
127
127
  "wallaby": {
128
128
  "autoDetect": true
129
129
  },
130
- "falconPackageHash": "56ca4bfad88fe040bd3a7acf7270870a21caf1eac8736de6ef704215"
130
+ "falconPackageHash": "8f72ec0c97a8f13bb386ccbcdd22c84f78406fd9003327275a467015"
131
131
  }