@locker/aura-disabled
Advanced tools
Comparing version 0.17.24 to 0.17.25
@@ -17,4 +17,4 @@ /*! | ||
* Bundle from @locker/aura-disabled | ||
* Generated: 2023-02-15 | ||
* Version: 0.18.6 | ||
* Generated: 2023-02-16 | ||
* Version: 0.17.25 | ||
*/ | ||
@@ -24,26 +24,2 @@ | ||
'use strict'; | ||
/*! | ||
* Copyright (C) 2023 salesforce.com, inc. | ||
*/ | ||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types | ||
const createPolicy = (name, options) => // @ts-ignore: Prevent cannot find name 'trustedTypes' error. | ||
typeof trustedTypes === 'undefined' ? // istanbul ignore next: currently unreachable via tests (trustedTypes never undefined) | ||
options : // @ts-ignore: Prevent cannot find name 'trustedTypes' error. | ||
trustedTypes.createPolicy(name, options); | ||
const defaults = { | ||
createHTML: function (value) { | ||
return value; | ||
}, | ||
createScript: function (value) { | ||
return value; | ||
}, | ||
createScriptURL: function (value) { | ||
return value; | ||
} | ||
}; | ||
const trusted = createPolicy('trusted', defaults); | ||
/*! version: 0.18.6 */ | ||
/* eslint-disable no-unused-vars, prefer-template */ | ||
@@ -170,3 +146,2 @@ // This is a mock for non-compliant browsers, in particular for IE11. | ||
exports.trust = trust; | ||
exports.trusted = trusted; | ||
exports.unwrap = unwrap; | ||
@@ -173,0 +148,0 @@ exports.wrap = wrap; |
@@ -17,11 +17,6 @@ /*! | ||
* Bundle from @locker/aura-disabled | ||
* Generated: 2023-02-15 | ||
* Version: 0.18.6 | ||
* Generated: 2023-02-16 | ||
* Version: 0.17.25 | ||
*/ | ||
var AuraLockerDisabled=function(n){"use strict"; | ||
/*! | ||
* Copyright (C) 2023 salesforce.com, inc. | ||
*/const t=(e="trusted",r={createHTML:function(n){return n},createScript:function(n){return n},createScriptURL:function(n){return n}},"undefined"==typeof trustedTypes?r:trustedTypes.createPolicy(e,r));var e,r; | ||
/*! version: 0.18.6 */ | ||
function u(n){return(0,eval)("(function(){\n"+n+"\n})()")}return n.create=function(n,t,e){return{globals:window,returnValue:u(n)}},n.createForClass=function(n,t){return u("return (\n"+n+"\n)")},n.createForDef=function(n,t){return u(n)},n.createForDefNext=function(n,t,e){return u(n)},n.createForModule=function(n,t){return u("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 u(n)},n.trackTargetAsLive=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}({}); | ||
var AuraLockerDisabled=function(n){"use strict";function t(n){return(0,eval)("(function(){\n"+n+"\n})()")}return n.create=function(n,e,r){return{globals:window,returnValue:t(n)}},n.createForClass=function(n,e){return t("return (\n"+n+"\n)")},n.createForDef=function(n,e){return t(n)},n.createForDefNext=function(n,e,r){return t(n)},n.createForModule=function(n,e){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,e){return t(n)},n.trackTargetAsLive=function(){},n.trust=function(n,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.17.24", | ||
"version": "0.17.25", | ||
"description": "Aura Locker Disabled", | ||
@@ -18,3 +18,3 @@ "author": "Salesforce UI Security Team", | ||
}, | ||
"gitHead": "5e0e0de06575de99a816fd5c71d323d75e5b361e" | ||
"gitHead": "e3421ee28dec007fc67301084643401d4bb52171" | ||
} |
8107
145