@wix/sdk 1.11.0 → 1.11.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.
package/build/rest-modules.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { BuildRESTFunction, PublicMetadata, RESTFunctionDescriptor } from '@wix/
|
|
|
2
2
|
export type RESTModuleOptions = {
|
|
3
3
|
HTTPHost?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const getDefaultDomain: (
|
|
5
|
+
export declare const getDefaultDomain: (_method: string, _url: string) => string;
|
|
6
6
|
export declare function buildRESTDescriptor<T extends RESTFunctionDescriptor>(origFunc: T, publicMetadata: PublicMetadata, boundFetch: (url: string | URL, init?: RequestInit) => Promise<Response>, options?: RESTModuleOptions): BuildRESTFunction<T>;
|
package/build/rest-modules.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { biHeaderGenerator } from './bi/biHeaderGenerator.js';
|
|
2
|
-
import { API_URL
|
|
3
|
-
export const getDefaultDomain = (
|
|
4
|
-
!FORCE_WRITE_API_URLS.some((write_url) => url === write_url)
|
|
5
|
-
? READ_ONLY_API_URL
|
|
6
|
-
: API_URL;
|
|
2
|
+
import { API_URL } from './common.js';
|
|
3
|
+
export const getDefaultDomain = (_method, _url) => API_URL;
|
|
7
4
|
export function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, options) {
|
|
8
5
|
return origFunc({
|
|
9
6
|
request: async (factory) => {
|
|
@@ -2,5 +2,5 @@ import { BuildRESTFunction, PublicMetadata, RESTFunctionDescriptor } from '@wix/
|
|
|
2
2
|
export type RESTModuleOptions = {
|
|
3
3
|
HTTPHost?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const getDefaultDomain: (
|
|
5
|
+
export declare const getDefaultDomain: (_method: string, _url: string) => string;
|
|
6
6
|
export declare function buildRESTDescriptor<T extends RESTFunctionDescriptor>(origFunc: T, publicMetadata: PublicMetadata, boundFetch: (url: string | URL, init?: RequestInit) => Promise<Response>, options?: RESTModuleOptions): BuildRESTFunction<T>;
|
|
@@ -3,10 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildRESTDescriptor = exports.getDefaultDomain = void 0;
|
|
4
4
|
const biHeaderGenerator_js_1 = require("./bi/biHeaderGenerator.js");
|
|
5
5
|
const common_js_1 = require("./common.js");
|
|
6
|
-
const getDefaultDomain = (
|
|
7
|
-
!common_js_1.FORCE_WRITE_API_URLS.some((write_url) => url === write_url)
|
|
8
|
-
? common_js_1.READ_ONLY_API_URL
|
|
9
|
-
: common_js_1.API_URL;
|
|
6
|
+
const getDefaultDomain = (_method, _url) => common_js_1.API_URL;
|
|
10
7
|
exports.getDefaultDomain = getDefaultDomain;
|
|
11
8
|
function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, options) {
|
|
12
9
|
return origFunc({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -122,5 +122,5 @@
|
|
|
122
122
|
"wallaby": {
|
|
123
123
|
"autoDetect": true
|
|
124
124
|
},
|
|
125
|
-
"falconPackageHash": "
|
|
125
|
+
"falconPackageHash": "463d0e16e85562d2b889feb9295a186f2437388d43ef754d18ab5ad7"
|
|
126
126
|
}
|