@wix/api-client
Advanced tools
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({ |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"license": "UNLICENSED", | ||
@@ -38,3 +38,3 @@ "main": "build/index.js", | ||
"@wix/metro-runtime": "^1.1677.0", | ||
"@wix/sdk": "1.11.0" | ||
"@wix/sdk": "1.11.1" | ||
}, | ||
@@ -52,3 +52,3 @@ "wix": { | ||
}, | ||
"falconPackageHash": "bad997f56f5c8193d825bb9e8889b6ff02900da47b127db9c0220c6a" | ||
"falconPackageHash": "c3a0e71dc79f3729303f0f9c761ddc33874616c7c0988e164d05eabc" | ||
} |
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
78940
1945