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

@wix/sdk-runtime

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/sdk-runtime - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

13

build/context.js

@@ -15,2 +15,15 @@ import { wixContext } from '@wix/sdk-context';

initWixModules(wixModules, elevated) {
if (elevated) {
const elevatedClient = typeof $wixContext !== 'undefined'
? $wixContext.elevatedClient
: typeof wixContext.elevatedClient !== 'undefined'
? wixContext.elevatedClient
: typeof globalThis.__wix_context__ !== 'undefined'
? globalThis.__wix_context__.elevatedClient
: undefined;
if (!elevatedClient) {
throw new Error('An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules');
}
return elevatedClient.use(wixModules);
}
return contextualClient.use(wixModules);

@@ -17,0 +30,0 @@ },

@@ -18,2 +18,15 @@ "use strict";

initWixModules(wixModules, elevated) {
if (elevated) {
const elevatedClient = typeof $wixContext !== 'undefined'
? $wixContext.elevatedClient
: typeof sdk_context_1.wixContext.elevatedClient !== 'undefined'
? sdk_context_1.wixContext.elevatedClient
: typeof globalThis.__wix_context__ !== 'undefined'
? globalThis.__wix_context__.elevatedClient
: undefined;
if (!elevatedClient) {
throw new Error('An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules');
}
return elevatedClient.use(wixModules);
}
return contextualClient.use(wixModules);

@@ -20,0 +33,0 @@ },

4

package.json
{
"name": "@wix/sdk-runtime",
"version": "0.3.1",
"version": "0.3.2",
"license": "UNLICENSED",

@@ -92,3 +92,3 @@ "sideEffects": false,

},
"falconPackageHash": "d816d36bd8a315dc9738d8761a266a697d7d34158b0e0905e8d896dc"
"falconPackageHash": "47532e4a9375fe949430df5c15effbb706bb7c742a9b0c2977f6b976"
}
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