Comparing version 1.11.0 to 1.11.1
@@ -5,3 +5,3 @@ import { BuildRESTFunction, PublicMetadata, RESTFunctionDescriptor } from '@wix/sdk-types'; | ||
}; | ||
export declare const getDefaultDomain: (method: string, url: string) => "www.wixapis.com" | "readonly.wixapis.com"; | ||
export declare const getDefaultDomain: (_method: string, _url: string) => string; | ||
export declare function buildRESTDescriptor<T extends RESTFunctionDescriptor>(origFunc: T, publicMetadata: PublicMetadata, boundFetch: (url: string | URL, init?: RequestInit) => Promise<Response>, options?: RESTModuleOptions): BuildRESTFunction<T>; |
import { biHeaderGenerator } from './bi/biHeaderGenerator.js'; | ||
import { API_URL, FORCE_WRITE_API_URLS, READ_ONLY_API_URL } from './common.js'; | ||
export const getDefaultDomain = (method, url) => method === 'GET' && | ||
!FORCE_WRITE_API_URLS.some((write_url) => url === write_url) | ||
? READ_ONLY_API_URL | ||
: API_URL; | ||
import { API_URL } from './common.js'; | ||
export const getDefaultDomain = (_method, _url) => API_URL; | ||
export function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, options) { | ||
@@ -8,0 +5,0 @@ return origFunc({ |
@@ -5,3 +5,3 @@ import { BuildRESTFunction, PublicMetadata, RESTFunctionDescriptor } from '@wix/sdk-types'; | ||
}; | ||
export declare const getDefaultDomain: (method: string, url: string) => "www.wixapis.com" | "readonly.wixapis.com"; | ||
export declare const getDefaultDomain: (_method: string, _url: string) => string; | ||
export declare function buildRESTDescriptor<T extends RESTFunctionDescriptor>(origFunc: T, publicMetadata: PublicMetadata, boundFetch: (url: string | URL, init?: RequestInit) => Promise<Response>, options?: RESTModuleOptions): BuildRESTFunction<T>; |
@@ -6,6 +6,3 @@ "use strict"; | ||
const common_js_1 = require("./common.js"); | ||
const getDefaultDomain = (method, url) => method === 'GET' && | ||
!common_js_1.FORCE_WRITE_API_URLS.some((write_url) => url === write_url) | ||
? common_js_1.READ_ONLY_API_URL | ||
: common_js_1.API_URL; | ||
const getDefaultDomain = (_method, _url) => common_js_1.API_URL; | ||
exports.getDefaultDomain = getDefaultDomain; | ||
@@ -12,0 +9,0 @@ function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, options) { |
{ | ||
"name": "@wix/sdk", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"license": "UNLICENSED", | ||
@@ -125,3 +125,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "57511fd343222c563e2451556e20ff0de7c4a0a79996b4d145f363cd" | ||
"falconPackageHash": "463d0e16e85562d2b889feb9295a186f2437388d43ef754d18ab5ad7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166519
4038