New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@locker/aura-disabled

Package Overview
Dependencies
Maintainers
8
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/aura-disabled - npm Package Compare versions

Comparing version 0.19.2 to 0.19.3

49

dist/iife/aura-locker-disabled.js

@@ -17,4 +17,4 @@ /*!

* Bundle from @locker/aura-disabled
* Generated: 2023-04-25
* Version: 0.19.2
* Generated: 2023-05-03
* Version: 0.19.3
*/

@@ -25,10 +25,32 @@

/*!
* Copyright (C) 2023 salesforce.com, inc.
*/
// @ts-ignore: Prevent cannot find name 'trustedTypes' error.
const SUPPORTS_TRUSTED_TYPES = typeof trustedTypes !== 'undefined';
function createTrustedTypesPolicy(name, options) {
// @ts-ignore: Prevent cannot find name 'trustedTypes' error.
return trustedTypes.createPolicy(name, options);
}
function createFallbackPolicy(_name, options) {
return options;
}
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types
const createPolicy = SUPPORTS_TRUSTED_TYPES ? createTrustedTypesPolicy : createFallbackPolicy;
const policyOptions = {
createHTML(value) {
return value;
},
createScript(value) {
return value;
},
createScriptURL(value) {
return value;
}
};
const trusted = createPolicy('trusted', policyOptions);
/*! version: 0.19.3 */
/* eslint-disable no-unused-vars, prefer-template */
// This is a mock for non-compliant browsers, in particular for IE11.
// All methods have the same API as AuraLocker.js and it's normal to
// encounter unused variables.
// DO NOT USE ES6 METHODS IN THIS FILE.
function evaluate(src) {

@@ -110,13 +132,2 @@ return (0, eval)('(function(){\n' + src + '\n})()');

}
const trusted = {
createHTML: function (value) {
return value;
},
createScript: function (value) {
return value;
},
createScriptURL: function (value) {
return value;
}
};
exports.create = create;

@@ -123,0 +134,0 @@ exports.createForClass = createForClass;

@@ -17,6 +17,11 @@ /*!

* Bundle from @locker/aura-disabled
* Generated: 2023-04-25
* Version: 0.19.2
* Generated: 2023-05-03
* Version: 0.19.3
*/
var AuraLockerDisabled=function(n){"use strict";function t(n){return(0,eval)("(function(){\n"+n+"\n})()")}return n.create=function(n,r,e){return{globals:window,returnValue:t(n)}},n.createForClass=function(n,r){return t("return (\n"+n+"\n)")},n.createForDef=function(n,r){return t(n)},n.createForDefNext=function(n,r,e){return t(n)},n.createForModule=function(n,r){return t("return (\n"+n+"\n)")},n.getEnv=function(n){return window},n.getEnvForSecureObject=function(n){return window},n.getKeyForNamespace=function(n){},n.getMethodUsageMetrics=function(){},n.getRaw=function(n){return n},n.initialize=function(n){},n.instanceOf=function(n,t){return n instanceof t},n.isEnabled=function(){return!1},n.isSecureLightningElement=function(){},n.markLiveObject=function(){},n.runScript=function(n,r){return t(n)},n.trackAsLiveTarget=function(){},n.trust=function(n,t){},n.trusted={createHTML:function(n){return n},createScript:function(n){return n},createScriptURL:function(n){return n}},n.unwrap=function(n,t){return t},n.wrap=function(n,t,r){return n},n.wrapComponent=function(n){return n},n.wrapComponentEvent=function(n,t){return t},n}({});
var AuraLockerDisabled=function(n){"use strict";
/*!
* Copyright (C) 2023 salesforce.com, inc.
*/const t=("undefined"!=typeof trustedTypes?function(n,t){return trustedTypes.createPolicy(n,t)}:function(n,t){return t})("trusted",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n});
/*! version: 0.19.3 */
function e(n){return(0,eval)("(function(){\n"+n+"\n})()")}return n.create=function(n,t,r){return{globals:window,returnValue:e(n)}},n.createForClass=function(n,t){return e("return (\n"+n+"\n)")},n.createForDef=function(n,t){return e(n)},n.createForDefNext=function(n,t,r){return e(n)},n.createForModule=function(n,t){return e("return (\n"+n+"\n)")},n.getEnv=function(n){return window},n.getEnvForSecureObject=function(n){return window},n.getKeyForNamespace=function(n){},n.getMethodUsageMetrics=function(){},n.getRaw=function(n){return n},n.initialize=function(n){},n.instanceOf=function(n,t){return n instanceof t},n.isEnabled=function(){return!1},n.isSecureLightningElement=function(){},n.markLiveObject=function(){},n.runScript=function(n,t){return e(n)},n.trackAsLiveTarget=function(){},n.trust=function(n,t){},n.trusted=t,n.unwrap=function(n,t){return t},n.wrap=function(n,t,e){return n},n.wrapComponent=function(n){return n},n.wrapComponentEvent=function(n,t){return t},n}({});
{
"name": "@locker/aura-disabled",
"version": "0.19.2",
"version": "0.19.3",
"description": "Aura Locker Disabled",

@@ -17,3 +17,6 @@ "author": "Salesforce UI Security Team",

"build:dev": "cross-env NODE_ENV=development yarn build"
},
"dependencies": {
"@locker/trusted-types": "0.19.3"
}
}
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