@wix/api-client
Advanced tools
Comparing version 1.7.6 to 1.7.7
@@ -19,6 +19,6 @@ // we follow a simplified version of the axios convention | ||
// publicKey is base64 encoded | ||
return typeof btoa !== 'undefined' | ||
? btoa(publicKey) | ||
return typeof atob !== 'undefined' | ||
? atob(publicKey) | ||
: Buffer.from(publicKey, 'base64').toString('utf-8'); | ||
} | ||
} |
@@ -35,3 +35,3 @@ import { AuthenticationStrategy, BoundAuthenticationStrategy, BuildRESTFunction, Host, HostModule, HostModuleAPI, RESTFunctionDescriptor, SPIDefinition, EventDefinition } from '@wix/sdk-types'; | ||
*/ | ||
export type AssertHostMatches<T extends Descriptors, H extends Host<any>> = T extends HostModule<any, infer U> ? H extends undefined ? never : H extends U ? T : HostModule<any, H> : T extends RESTFunctionDescriptor<any> ? T : { | ||
export type AssertHostMatches<T extends Descriptors, H extends Host<any>> = T extends HostModule<any, infer U> ? H extends undefined ? never : H extends U ? T : `The host of this module does not match host provided to createClient.` : T extends RESTFunctionDescriptor<any> ? T : { | ||
[Key in keyof T]: T[Key] extends Descriptors ? AssertHostMatches<T[Key], H> : T[Key]; | ||
@@ -38,0 +38,0 @@ }; |
{ | ||
"name": "@wix/api-client", | ||
"version": "1.7.6", | ||
"version": "1.7.7", | ||
"license": "UNLICENSED", | ||
@@ -24,4 +24,4 @@ "main": "build/index.js", | ||
"@babel/runtime": "^7.23.2", | ||
"@wix/identity": "^1.0.73", | ||
"@wix/image-kit": "^1.56.0", | ||
"@wix/identity": "^1.0.74", | ||
"@wix/image-kit": "^1.58.0", | ||
"@wix/redirects": "^1.0.32", | ||
@@ -36,4 +36,4 @@ "@wix/sdk-types": "^1.5.9", | ||
"devDependencies": { | ||
"@wix/metro-runtime": "^1.1635.0", | ||
"@wix/sdk": "1.7.6" | ||
"@wix/metro-runtime": "^1.1638.0", | ||
"@wix/sdk": "1.7.7" | ||
}, | ||
@@ -51,3 +51,3 @@ "wix": { | ||
}, | ||
"falconPackageHash": "ff95761a750a5825a0708d74ca33b5b9261924064e04775e3754d3c5" | ||
"falconPackageHash": "fde777124f57b4ef30496771bd2ba9b38f47980514d1d16824a9bf7c" | ||
} |
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
71040
Updated@wix/identity@^1.0.74
Updated@wix/image-kit@^1.58.0