Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/sdk

Package Overview
Dependencies
Maintainers
0
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/sdk - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

2

build/rest-modules.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc