@locker/aura-disabled
Advanced tools
Comparing version 0.18.15 to 0.18.16
@@ -17,4 +17,4 @@ /*! | ||
* Bundle from @locker/aura-disabled | ||
* Generated: 2023-03-09 | ||
* Version: 0.18.15 | ||
* Generated: 2023-03-23 | ||
* Version: 0.18.16 | ||
*/ | ||
@@ -24,12 +24,14 @@ | ||
'use strict'; | ||
/* 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) { | ||
return (0, eval)('(function(){\n' + src + '\n})()'); | ||
} | ||
function create(src, key, sourceURL) { | ||
@@ -41,89 +43,69 @@ return { | ||
} | ||
function createForClass(src, defDescriptor) { | ||
return evaluate('return (\n' + src + '\n)'); | ||
} // @deprecated | ||
} | ||
// @deprecated | ||
function createForDef(src, def) { | ||
return evaluate(src); | ||
} | ||
function createForDefNext(src, def, sandboxSpecifier) { | ||
return evaluate(src); | ||
} | ||
function createForModule(src, defDescriptor) { | ||
return evaluate('return (\n' + src + '\n)'); | ||
} | ||
function getEnv(key) { | ||
return window; | ||
} | ||
function getEnvForSecureObject(st) { | ||
return window; | ||
} | ||
function getKeyForNamespace(namespace) { | ||
/* Do Nothing */ | ||
} | ||
function getRaw(value) { | ||
return value; | ||
} | ||
function initialize(types) { | ||
/* Do Nothing */ | ||
} | ||
function isEnabled() { | ||
return false; | ||
} // @deprecated | ||
} | ||
// @deprecated | ||
function instanceOf(value, type) { | ||
return value instanceof type; | ||
} | ||
function runScript(src, namespace) { | ||
return evaluate(src); | ||
} | ||
function trust(from, thing) { | ||
/* Do Nothing */ | ||
} | ||
function unwrap(from, st) { | ||
return st; | ||
} | ||
function wrapComponent(component) { | ||
return component; | ||
} | ||
function wrapComponentEvent(component, event) { | ||
return event; | ||
} | ||
function wrap(thing, metaFrom, metaTo) { | ||
return thing; | ||
} | ||
function getMethodUsageMetrics() { | ||
/* nothing */ | ||
} | ||
function isSecureLightningElement() { | ||
/* nothing */ | ||
} | ||
function markLiveObject() { | ||
/* nothing */ | ||
} | ||
function trackAsLiveTarget() { | ||
/* nothing */ | ||
} | ||
const trusted = { | ||
@@ -130,0 +112,0 @@ createHTML: function (value) { |
@@ -17,6 +17,6 @@ /*! | ||
* Bundle from @locker/aura-disabled | ||
* Generated: 2023-03-09 | ||
* Version: 0.18.15 | ||
* Generated: 2023-03-23 | ||
* Version: 0.18.16 | ||
*/ | ||
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}({}); |
{ | ||
"name": "@locker/aura-disabled", | ||
"version": "0.18.15", | ||
"version": "0.18.16", | ||
"description": "Aura Locker Disabled", | ||
@@ -5,0 +5,0 @@ "author": "Salesforce UI Security Team", |
160
8398