@locker/sandbox
Advanced tools
Comparing version 0.19.8 to 0.19.9
@@ -6,4 +6,2 @@ import { Instrumentation } from "@locker/instrumentation"; | ||
declare const CORE_SANDBOX_KEY = "lws-core-sandbox"; | ||
declare function evaluateInCoreSandbox(_key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
declare function evaluateInSandbox(key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
type DependencyRegistry = Record<OriginalDep, WrappedDep>; | ||
@@ -89,2 +87,3 @@ type EvalHelperBaseGenToAsync = (genNextWrapper: GeneratorMethodWrapper, genThrowWrapper: GeneratorMethodWrapper) => Promise<any>; | ||
type SandboxRegistry = Record<SandboxKey, SandboxRecord>; | ||
type Scope = Record<string, any>; | ||
// eslint-disable-next-line no-shadow | ||
@@ -104,5 +103,8 @@ declare const enum SourceType { | ||
type WrappedDep = any; | ||
declare function evaluateInCoreSandbox(_key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
declare function evaluateInSandbox(key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
declare function evaluateFunction(key: SandboxKey, fn: Function, scope?: Scope, sourceURL?: string, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): Function; | ||
declare function wrapDependency(dep: any, depName: string, key: string): any; | ||
declare function createRootWindowSandboxRecord({ context, endowments, instrumentation, key, type, verboseInstrumentation }: RootWindowRecordOptions): SandboxRecord; | ||
export { CORE_SANDBOX_KEY, evaluateInCoreSandbox, evaluateInSandbox, DependencyRegistry, EvalHelperBaseGenToAsync, EvalHelperForAwaitOf, EvalHelperLoadScript, EvalHelperLoadStyle, EvalHelpers, EvalHelpersFactory, EvalHelpersFactoryArguments, EvaluateOptions, ForOfState, GeneratorMethod, GeneratorMethodWrapper, LWSTrustedTypesOptions, OpaqueWindowRecordOptions, OriginalDep, RootWindowRecordOptions, RedBindings, SandboxRecord, ResourceLoaderStatus, SandboxRegistry, SourceType, SecondaryWindowRecordOptions, VirtualEnvironmentEvaluator, WrappedDep, wrapDependency, createRootWindowSandboxRecord }; | ||
export { CORE_SANDBOX_KEY, evaluateInCoreSandbox, evaluateInSandbox, evaluateFunction, DependencyRegistry, EvalHelperBaseGenToAsync, EvalHelperForAwaitOf, EvalHelperLoadScript, EvalHelperLoadStyle, EvalHelpers, EvalHelpersFactory, EvalHelpersFactoryArguments, EvaluateOptions, ForOfState, GeneratorMethod, GeneratorMethodWrapper, LWSTrustedTypesOptions, OpaqueWindowRecordOptions, OriginalDep, RootWindowRecordOptions, RedBindings, SandboxRecord, ResourceLoaderStatus, SandboxRegistry, Scope, SourceType, SecondaryWindowRecordOptions, VirtualEnvironmentEvaluator, WrappedDep, wrapDependency, createRootWindowSandboxRecord }; | ||
export { trusted } from '@locker/trusted-types'; |
@@ -6,4 +6,2 @@ import { Instrumentation } from "@locker/instrumentation"; | ||
declare const CORE_SANDBOX_KEY = "lws-core-sandbox"; | ||
declare function evaluateInCoreSandbox(_key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
declare function evaluateInSandbox(key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
type DependencyRegistry = Record<OriginalDep, WrappedDep>; | ||
@@ -89,2 +87,3 @@ type EvalHelperBaseGenToAsync = (genNextWrapper: GeneratorMethodWrapper, genThrowWrapper: GeneratorMethodWrapper) => Promise<any>; | ||
type SandboxRegistry = Record<SandboxKey, SandboxRecord>; | ||
type Scope = Record<string, any>; | ||
// eslint-disable-next-line no-shadow | ||
@@ -104,5 +103,8 @@ declare const enum SourceType { | ||
type WrappedDep = any; | ||
declare function evaluateInCoreSandbox(_key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
declare function evaluateInSandbox(key: SandboxKey, source: Function | string, context?: any, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): any; | ||
declare function evaluateFunction(key: SandboxKey, fn: Function, scope?: Scope, sourceURL?: string, endowments?: object, instrumentation?: Instrumentation, verboseInstrumentation?: boolean): Function; | ||
declare function wrapDependency(dep: any, depName: string, key: string): any; | ||
declare function createRootWindowSandboxRecord({ context, endowments, instrumentation, key, type, verboseInstrumentation }: RootWindowRecordOptions): SandboxRecord; | ||
export { CORE_SANDBOX_KEY, evaluateInCoreSandbox, evaluateInSandbox, DependencyRegistry, EvalHelperBaseGenToAsync, EvalHelperForAwaitOf, EvalHelperLoadScript, EvalHelperLoadStyle, EvalHelpers, EvalHelpersFactory, EvalHelpersFactoryArguments, EvaluateOptions, ForOfState, GeneratorMethod, GeneratorMethodWrapper, LWSTrustedTypesOptions, OpaqueWindowRecordOptions, OriginalDep, RootWindowRecordOptions, RedBindings, SandboxRecord, ResourceLoaderStatus, SandboxRegistry, SourceType, SecondaryWindowRecordOptions, VirtualEnvironmentEvaluator, WrappedDep, wrapDependency, createRootWindowSandboxRecord }; | ||
export { CORE_SANDBOX_KEY, evaluateInCoreSandbox, evaluateInSandbox, evaluateFunction, DependencyRegistry, EvalHelperBaseGenToAsync, EvalHelperForAwaitOf, EvalHelperLoadScript, EvalHelperLoadStyle, EvalHelpers, EvalHelpersFactory, EvalHelpersFactoryArguments, EvaluateOptions, ForOfState, GeneratorMethod, GeneratorMethodWrapper, LWSTrustedTypesOptions, OpaqueWindowRecordOptions, OriginalDep, RootWindowRecordOptions, RedBindings, SandboxRecord, ResourceLoaderStatus, SandboxRegistry, Scope, SourceType, SecondaryWindowRecordOptions, VirtualEnvironmentEvaluator, WrappedDep, wrapDependency, createRootWindowSandboxRecord }; | ||
export { trusted } from '@locker/trusted-types'; |
{ | ||
"name": "@locker/sandbox", | ||
"version": "0.19.8", | ||
"version": "0.19.9", | ||
"license": "SEE LICENSE IN LICENSE.txt", | ||
@@ -19,11 +19,11 @@ "author": "Salesforce UI Security Team", | ||
"dependencies": { | ||
"@locker/distortion": "0.19.8", | ||
"@locker/html-sanitizer": "0.19.8", | ||
"@locker/shared": "0.19.8", | ||
"@locker/shared-dom": "0.19.8", | ||
"@locker/shared-url": "0.19.8", | ||
"@locker/trusted-types": "0.19.8" | ||
"@locker/distortion": "0.19.9", | ||
"@locker/html-sanitizer": "0.19.9", | ||
"@locker/shared": "0.19.9", | ||
"@locker/shared-dom": "0.19.9", | ||
"@locker/shared-url": "0.19.9", | ||
"@locker/trusted-types": "0.19.9" | ||
}, | ||
"devDependencies": { | ||
"@locker/instrumentation": "0.19.8", | ||
"@locker/instrumentation": "0.19.9", | ||
"@locker/near-membrane-dom": "0.12.15" | ||
@@ -30,0 +30,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
588905
11793
+ Added@locker/distortion@0.19.9(transitive)
+ Added@locker/html-sanitizer@0.19.9(transitive)
+ Added@locker/internal-policy@0.19.9(transitive)
+ Added@locker/shared@0.19.9(transitive)
+ Added@locker/shared-dom@0.19.9(transitive)
+ Added@locker/shared-url@0.19.9(transitive)
+ Added@locker/trusted-types@0.19.9(transitive)
- Removed@locker/distortion@0.19.8(transitive)
- Removed@locker/html-sanitizer@0.19.8(transitive)
- Removed@locker/internal-policy@0.19.8(transitive)
- Removed@locker/shared@0.19.8(transitive)
- Removed@locker/shared-dom@0.19.8(transitive)
- Removed@locker/shared-url@0.19.8(transitive)
- Removed@locker/trusted-types@0.19.8(transitive)
Updated@locker/distortion@0.19.9
Updated@locker/shared@0.19.9
Updated@locker/shared-dom@0.19.9
Updated@locker/shared-url@0.19.9
Updated@locker/trusted-types@0.19.9