@locker/near-membrane-base
Advanced tools
Comparing version 0.9.22 to 0.9.23
{ | ||
"name": "@locker/near-membrane-base", | ||
"version": "0.9.22", | ||
"version": "0.9.23", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "author": "Caridy Patiño <caridy@gmail.com>", | ||
}, | ||
"gitHead": "577b9510857f89569a6bd6807ae3cc03dc03555d" | ||
"gitHead": "366efa99377b8099b7b67e1fabed27a9bd05b23b" | ||
} |
@@ -11,4 +11,2 @@ import { Instrumentation } from './instrumentation'; | ||
export declare class VirtualEnvironment { | ||
readonly blueConnector: ReturnType<typeof createMembraneMarshall>; | ||
readonly redConnector: ReturnType<typeof createMembraneMarshall>; | ||
private readonly blueCallableGetPropertyValuePointer; | ||
@@ -28,5 +26,5 @@ private readonly blueCallableLinkPointers; | ||
evaluate(sourceText: string): any; | ||
lazyRemap(target: ProxyTarget, ownKeys: PropertyKeys, unforgeableGlobalThisKeys?: PropertyKeys): void; | ||
lazyRemapProperties(target: ProxyTarget, ownKeys: PropertyKeys, unforgeableGlobalThisKeys?: PropertyKeys): void; | ||
link(...keys: PropertyKeys): void; | ||
remap(target: ProxyTarget, unsafeBlueDescMap: PropertyDescriptorMap): void; | ||
remapProperties(target: ProxyTarget, unsafeBlueDescMap: PropertyDescriptorMap): void; | ||
remapProto(target: ProxyTarget, proto: object | null): void; | ||
@@ -33,0 +31,0 @@ } |
@@ -28,4 +28,5 @@ /** | ||
declare type CallablePushTarget = (foreignTargetPointer: () => void, foreignTargetTraits: number, foreignTargetFunctionArity: number | undefined, foreignTargetFunctionName: string | undefined) => Pointer; | ||
declare type CallableApply = (targetPointer: Pointer, thisArgPointerOrPrimitive: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive; | ||
declare type CallableApply = (targetPointer: Pointer, thisArgPointerOrUndefined: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive; | ||
declare type CallableConstruct = (targetPointer: Pointer, newTargetPointer: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive; | ||
declare type CallableDefineProperty = (targetPointer: Pointer, key: PropertyKey, configurable: boolean | symbol, enumerable: boolean | symbol, writable: boolean | symbol, valuePointer: PointerOrPrimitive, getPointer: PointerOrPrimitive, setPointer: PointerOrPrimitive, foreignCallableNonConfigurableDescriptorCallback: CallableNonConfigurableDescriptorCallback) => boolean; | ||
declare type CallableDeleteProperty = (targetPointer: Pointer, key: PropertyKey) => boolean; | ||
@@ -55,6 +56,9 @@ declare type CallableGet = (targetPointer: Pointer, targetTraits: number, key: PropertyKey, receiverPointerOrPrimitive: PointerOrPrimitive) => PointerOrPrimitive; | ||
declare type CallableNonConfigurableDescriptorCallback = CallableDescriptorCallback; | ||
interface HooksOptions { | ||
distortionCallback?: DistortionCallback; | ||
instrumentation?: Instrumentation; | ||
} | ||
declare type PointerOrPrimitive = Pointer | Primitive; | ||
declare type Primitive = bigint | boolean | null | number | string | symbol | undefined; | ||
declare type SerializedValue = bigint | boolean | number | string | symbol; | ||
export declare type CallableDefineProperty = (targetPointer: Pointer, key: PropertyKey, configurable: boolean | symbol, enumerable: boolean | symbol, writable: boolean | symbol, valuePointer: PointerOrPrimitive, getPointer: PointerOrPrimitive, setPointer: PointerOrPrimitive, foreignCallableNonConfigurableDescriptorCallback: CallableNonConfigurableDescriptorCallback) => boolean; | ||
export declare type CallableDefineProperties = (targetPointer: Pointer, ...descriptorTuples: [...Parameters<CallableDescriptorCallback>]) => void; | ||
@@ -70,10 +74,6 @@ export declare type CallableEvaluate = (sourceText: string) => PointerOrPrimitive; | ||
export declare type HooksCallback = (globalThisPointer: Pointer, getSelectedTarget: GetSelectedTarget, getTransferableValue: GetTransferableValue, callableGetPropertyValuePointer: CallableGetPropertyValuePointer, callableEvaluate: CallableEvaluate, callableLinkPointers: CallableLinkPointers, callablePushTarget: CallablePushTarget, callableApply: CallableApply, callableConstruct: CallableConstruct, callableDefineProperty: CallableDefineProperty, callableDeleteProperty: CallableDeleteProperty, callableGet: CallableGet, callableGetOwnPropertyDescriptor: CallableGetOwnPropertyDescriptor, callableGetPrototypeOf: CallableGetPrototypeOf, callableHas: CallableHas, callableIsExtensible: CallableIsExtensible, callableOwnKeys: CallableOwnKeys, callablePreventExtensions: CallablePreventExtensions, callableSet: CallableSet, callableSetPrototypeOf: CallableSetPrototypeOf, callableDebugInfo: CallableDebugInfo, callableDefineProperties: CallableDefineProperties, callableGetLazyPropertyDescriptorStateByTarget: CallableGetLazyPropertyDescriptorStateByTarget, callableGetTargetIntegrityTraits: CallableGetTargetIntegrityTraits, callableGetToStringTagOfTarget: CallableGetToStringTagOfTarget, callableInstallErrorPrepareStackTrace: CallableInstallErrorPrepareStackTrace, callableInstallLazyDescriptors: CallableInstallLazyPropertyDescriptors, callableIsTargetLive: CallableIsTargetLive, callableIsTargetRevoked: CallableIsTargetRevoked, callableSerializeTarget: CallableSerializeTarget, callableSetLazyPropertyDescriptorStateByTarget: CallableSetLazyPropertyDescriptorStateByTarget, callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors: CallableBatchGetPrototypeOfAndGetOwnPropertyDescriptors, callableBatchGetPrototypeOfWhenHasNoOwnProperty: CallableBatchGetPrototypeOfWhenHasNoOwnProperty, callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor: CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor) => void; | ||
export interface HooksOptions { | ||
distortionCallback?: DistortionCallback; | ||
instrumentation?: Instrumentation; | ||
} | ||
export declare type Pointer = CallableFunction; | ||
export declare type ProxyTarget = CallableFunction | any[] | object; | ||
export declare function createMembraneMarshall(isInShadowRealm?: boolean): (color: string, trapMutations: boolean, foreignCallableHooksCallback: HooksCallback, providedOptions?: HooksOptions | undefined) => HooksCallback; | ||
export declare function createMembraneMarshall(isInShadowRealm?: boolean): (color: string, foreignCallableHooksCallback: HooksCallback, providedOptions?: HooksOptions | undefined) => HooksCallback; | ||
export {}; | ||
//# sourceMappingURL=membrane.d.ts.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
313697
6489