@locker/near-membrane-base
Advanced tools
Comparing version 0.10.13 to 0.10.14
{ | ||
"name": "@locker/near-membrane-base", | ||
"version": "0.10.13", | ||
"version": "0.10.14", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "author": "Caridy Patiño <caridy@gmail.com>", | ||
}, | ||
"gitHead": "7df5686fda093935f1fdaba33a928c4d6641488e" | ||
"gitHead": "f9cbe56b205f44a8b9841b54b501eb0013600199" | ||
} |
import { createMembraneMarshall } from './membrane'; | ||
export declare function createBlueConnector(globalObjectVirtualizationTarget?: WindowProxy & typeof globalThis): ReturnType<typeof createMembraneMarshall>; | ||
export declare function createRedConnector(evaluator: typeof eval): ReturnType<typeof createMembraneMarshall>; | ||
export declare type Connector = ReturnType<typeof createMembraneMarshall>; | ||
export declare function createBlueConnector(globalObject: typeof globalThis): Connector; | ||
export declare function createRedConnector(evaluator: typeof eval): Connector; | ||
//# sourceMappingURL=connector.d.ts.map |
@@ -0,8 +1,9 @@ | ||
import { DistortionCallback, ProxyTarget } from './membrane'; | ||
import { Connector } from './connector'; | ||
import { Instrumentation } from './instrumentation'; | ||
import { createMembraneMarshall, DistortionCallback, ProxyTarget } from './membrane'; | ||
import { PropertyKeys } from './types'; | ||
interface VirtualEnvironmentOptions { | ||
blueConnector: ReturnType<typeof createMembraneMarshall>; | ||
export interface VirtualEnvironmentOptions { | ||
blueConnector: Connector; | ||
distortionCallback?: DistortionCallback; | ||
redConnector: ReturnType<typeof createMembraneMarshall>; | ||
redConnector: Connector; | ||
instrumentation?: Instrumentation; | ||
@@ -30,3 +31,2 @@ } | ||
} | ||
export {}; | ||
//# sourceMappingURL=environment.d.ts.map |
@@ -5,3 +5,3 @@ import { VirtualEnvironment } from './environment'; | ||
export declare function getFilteredGlobalOwnKeys(source: object): PropertyKeys; | ||
export declare function linkIntrinsics(env: VirtualEnvironment, globalObjectVirtualizationTarget: typeof globalThis): void; | ||
export declare function linkIntrinsics(env: VirtualEnvironment, globalObject: typeof globalThis): void; | ||
//# sourceMappingURL=intrinsics.d.ts.map |
@@ -27,3 +27,4 @@ /** | ||
import { PropertyKey, PropertyKeys } from './types'; | ||
declare type CallablePushTarget = (foreignTargetPointer: () => void, foreignTargetTraits: number, foreignTargetFunctionArity: number | undefined, foreignTargetFunctionName: string | undefined) => Pointer; | ||
declare type CallablePushTarget = (foreignTargetPointer: () => void, foreignTargetTraits: number, foreignTargetFunctionArity: number, foreignTargetFunctionName: string, foreignTargetTypedArrayLength: number) => Pointer; | ||
declare type CallablePushErrorTarget = CallablePushTarget; | ||
declare type CallableApply = (targetPointer: Pointer, thisArgPointerOrUndefined: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive; | ||
@@ -41,6 +42,7 @@ declare type CallableConstruct = (targetPointer: Pointer, newTargetPointer: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive; | ||
declare type CallableSet = (targetPointer: Pointer, key: PropertyKey, valuePointerOrPrimitive: PointerOrPrimitive, receiverPointerOrPrimitive: PointerOrPrimitive) => boolean; | ||
declare type CallableDebugInfo = (...args: Parameters<typeof console.info>) => boolean; | ||
declare type CallableDebugInfo = (...args: Parameters<typeof console.info>) => void; | ||
declare type CallableGetLazyPropertyDescriptorStateByTarget = (targetPointer: Pointer) => PointerOrPrimitive; | ||
declare type CallableGetTargetIntegrityTraits = (targetPointer: Pointer) => number; | ||
declare type CallableGetToStringTagOfTarget = (targetPointer: Pointer) => string; | ||
declare type CallableGetTypedArrayIndexedValue = (targetPointer: Pointer, index: PropertyKey) => number | bigint; | ||
declare type CallableInstallErrorPrepareStackTrace = () => void; | ||
@@ -73,7 +75,7 @@ declare type CallableIsTargetLive = (targetPointer: Pointer) => boolean; | ||
export declare type GetTransferableValue = (value: any) => PointerOrPrimitive; | ||
export declare type HooksCallback = (globalThisPointer: Pointer | undefined, getSelectedTarget: GetSelectedTarget | undefined, getTransferableValue: GetTransferableValue | undefined, callableGetPropertyValuePointer: CallableGetPropertyValuePointer | undefined, callableEvaluate: CallableEvaluate | undefined, callableLinkPointers: CallableLinkPointers | undefined, 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 | undefined, callableGetLazyPropertyDescriptorStateByTarget: CallableGetLazyPropertyDescriptorStateByTarget, callableGetTargetIntegrityTraits: CallableGetTargetIntegrityTraits, callableGetToStringTagOfTarget: CallableGetToStringTagOfTarget, callableInstallErrorPrepareStackTrace: CallableInstallErrorPrepareStackTrace, callableInstallLazyPropertyDescriptors: CallableInstallLazyPropertyDescriptors | undefined, callableIsTargetLive: CallableIsTargetLive, callableIsTargetRevoked: CallableIsTargetRevoked, callableSerializeTarget: CallableSerializeTarget, callableSetLazyPropertyDescriptorStateByTarget: CallableSetLazyPropertyDescriptorStateByTarget, callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors: CallableBatchGetPrototypeOfAndGetOwnPropertyDescriptors, callableBatchGetPrototypeOfWhenHasNoOwnProperty: CallableBatchGetPrototypeOfWhenHasNoOwnProperty, callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor: CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor) => void; | ||
export declare type HooksCallback = (globalThisPointer: Pointer | undefined, getSelectedTarget: GetSelectedTarget | undefined, getTransferableValue: GetTransferableValue | undefined, callableGetPropertyValuePointer: CallableGetPropertyValuePointer | undefined, callableEvaluate: CallableEvaluate | undefined, callableLinkPointers: CallableLinkPointers | undefined, callablePushErrorTarget: CallablePushErrorTarget, 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 | undefined, callableGetLazyPropertyDescriptorStateByTarget: CallableGetLazyPropertyDescriptorStateByTarget, callableGetTargetIntegrityTraits: CallableGetTargetIntegrityTraits, callableGetToStringTagOfTarget: CallableGetToStringTagOfTarget, callableGetTypedArrayIndexedValue: CallableGetTypedArrayIndexedValue, callableInstallErrorPrepareStackTrace: CallableInstallErrorPrepareStackTrace, callableInstallLazyPropertyDescriptors: CallableInstallLazyPropertyDescriptors | undefined, callableIsTargetLive: CallableIsTargetLive, callableIsTargetRevoked: CallableIsTargetRevoked, callableSerializeTarget: CallableSerializeTarget, callableSetLazyPropertyDescriptorStateByTarget: CallableSetLazyPropertyDescriptorStateByTarget, callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors: CallableBatchGetPrototypeOfAndGetOwnPropertyDescriptors, callableBatchGetPrototypeOfWhenHasNoOwnProperty: CallableBatchGetPrototypeOfWhenHasNoOwnProperty, callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor: CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor) => void; | ||
export declare type Pointer = CallableFunction; | ||
export declare type ProxyTarget = CallableFunction | any[] | object; | ||
export declare function createMembraneMarshall(globalObjectVirtualizationTarget?: WindowProxy & typeof globalThis): (color: string, foreignCallableHooksCallback: HooksCallback, options?: HooksOptions | undefined) => HooksCallback; | ||
export declare function createMembraneMarshall(globalObject?: typeof globalThis | (WindowProxy & typeof globalThis)): (color: string, foreignCallableHooksCallback: HooksCallback, options?: 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
Sorry, the diff of this file is not supported yet
355552
7310