@wix/sdk-runtime
Advanced tools
Comparing version 0.3.12 to 0.3.13
@@ -37,3 +37,6 @@ import { EventDefinition, ServicePluginDefinition, } from '@wix/sdk-types'; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
// this line should throw, but this would be a breaking change for older SDK versions | ||
// this is because in wixClient there's code that calls any function it detects and checks | ||
// if it's an ambassador module (see isAmbassadorModule) | ||
return; | ||
} | ||
@@ -52,3 +55,6 @@ return context.initWixModules(eventDefinition).apply(undefined, args); | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
// this line should throw, but this would be a breaking change for older SDK versions | ||
// this is because in wixClient there's code that calls any function it detects and checks | ||
// if it's an ambassador module (see isAmbassadorModule) | ||
return; | ||
} | ||
@@ -55,0 +61,0 @@ return context.initWixModules(servicePlugin).apply(undefined, args); |
@@ -43,3 +43,6 @@ "use strict"; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
// this line should throw, but this would be a breaking change for older SDK versions | ||
// this is because in wixClient there's code that calls any function it detects and checks | ||
// if it's an ambassador module (see isAmbassadorModule) | ||
return; | ||
} | ||
@@ -59,3 +62,6 @@ return context.initWixModules(eventDefinition).apply(undefined, args); | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
// this line should throw, but this would be a breaking change for older SDK versions | ||
// this is because in wixClient there's code that calls any function it detects and checks | ||
// if it's an ambassador module (see isAmbassadorModule) | ||
return; | ||
} | ||
@@ -62,0 +68,0 @@ return context.initWixModules(servicePlugin).apply(undefined, args); |
{ | ||
"name": "@wix/sdk-runtime", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"license": "UNLICENSED", | ||
@@ -112,3 +112,3 @@ "sideEffects": false, | ||
}, | ||
"falconPackageHash": "f474bf76b5befb2b20bcf1da96c431a8b0da27f5cccc02d20f75a7b6" | ||
"falconPackageHash": "685d8b51a1c2b47092cdaba85dc8b12c16b8d168ce67484fd4612d42" | ||
} |
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
172885
4354
2