@wix/sdk 1.12.14 → 1.13.1

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.
@@ -29,6 +29,7 @@ export function createClient(config) {
29
29
  ..._headers,
30
30
  ...authHeaders?.headers,
31
31
  ...options?.headers,
32
+ ...config.host?.essentials?.passThroughHeaders,
32
33
  },
33
34
  });
34
35
  };
@@ -112,6 +113,12 @@ export function createClient(config) {
112
113
  }
113
114
  }
114
115
  },
116
+ /**
117
+ * @param relativeUrl The URL to fetch relative to the API base URL
118
+ * @param options The fetch options
119
+ * @returns The fetch Response object
120
+ * @deprecated Use `fetchWithAuth` instead
121
+ */
115
122
  fetch: (relativeUrl, options) => {
116
123
  const apiBaseUrl = config.host?.apiBaseUrl ?? DEFAULT_API_URL;
117
124
  const finalUrl = new URL(relativeUrl, `https://${apiBaseUrl}`);
@@ -32,6 +32,7 @@ function createClient(config) {
32
32
  ..._headers,
33
33
  ...authHeaders?.headers,
34
34
  ...options?.headers,
35
+ ...config.host?.essentials?.passThroughHeaders,
35
36
  },
36
37
  });
37
38
  };
@@ -115,6 +116,12 @@ function createClient(config) {
115
116
  }
116
117
  }
117
118
  },
119
+ /**
120
+ * @param relativeUrl The URL to fetch relative to the API base URL
121
+ * @param options The fetch options
122
+ * @returns The fetch Response object
123
+ * @deprecated Use `fetchWithAuth` instead
124
+ */
118
125
  fetch: (relativeUrl, options) => {
119
126
  const apiBaseUrl = config.host?.apiBaseUrl ?? common_js_1.DEFAULT_API_URL;
120
127
  const finalUrl = new URL(relativeUrl, `https://${apiBaseUrl}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.12.14",
3
+ "version": "1.13.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -65,11 +65,11 @@
65
65
  "dependencies": {
66
66
  "@babel/runtime": "^7.23.2",
67
67
  "@wix/identity": "^1.0.78",
68
- "@wix/image-kit": "^1.83.0",
68
+ "@wix/image-kit": "^1.88.0",
69
69
  "@wix/redirects": "^1.0.41",
70
70
  "@wix/sdk-context": "^0.0.1",
71
- "@wix/sdk-runtime": "0.3.19",
72
- "@wix/sdk-types": "^1.12.0",
71
+ "@wix/sdk-runtime": "0.3.21",
72
+ "@wix/sdk-types": "^1.12.3",
73
73
  "jose": "^5.2.1",
74
74
  "querystring": "^0.2.1",
75
75
  "type-fest": "^4.9.0"
@@ -85,7 +85,7 @@
85
85
  "@wix/events": "^1.0.179",
86
86
  "@wix/metro": "^1.0.73",
87
87
  "@wix/metro-runtime": "^1.1677.0",
88
- "@wix/sdk-runtime": "0.3.19",
88
+ "@wix/sdk-runtime": "0.3.21",
89
89
  "eslint": "^8.56.0",
90
90
  "eslint-config-sdk": "0.0.0",
91
91
  "graphql": "^16.8.0",
@@ -119,5 +119,5 @@
119
119
  "wallaby": {
120
120
  "autoDetect": true
121
121
  },
122
- "falconPackageHash": "b3311f3e856f7fda5bd9d3d658ebffaf428cb466a862d8223dfd6842"
122
+ "falconPackageHash": "3a53f4124da875ed7a1db465a1f937663876d6744b70ece0954146b4"
123
123
  }