New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@locker/near-membrane-base

Package Overview
Dependencies
Maintainers
8
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/near-membrane-base - npm Package Compare versions

Comparing version 0.9.17 to 0.9.18

types/types.d.ts

4

package.json
{
"name": "@locker/near-membrane-base",
"version": "0.9.17",
"version": "0.9.18",
"license": "MIT",

@@ -23,3 +23,3 @@ "author": "Caridy Patiño <caridy@gmail.com>",

},
"gitHead": "c550f355e6cb56d60df1a225120a82154f6ef3d2"
"gitHead": "582b616c1d2368da1a9568b424a17e5dedd71afd"
}
import { Instrumentation } from './instrumentation';
import { createMembraneMarshall, DistortionCallback, ProxyTarget } from './membrane';
import { PropertyKeys } from './types';
interface VirtualEnvironmentOptions {

@@ -20,4 +21,4 @@ blueConnector: ReturnType<typeof createMembraneMarshall>;

private redCallableLinkPointers;
private redCallableDefineProperty;
private redCallableSetPrototypeOf;
private redCallableDefineProperties;
private redCallableInstallLazyDescriptors;

@@ -27,5 +28,5 @@ private redGlobalThisPointer;

evaluate(sourceText: string): any;
lazyRemap(target: ProxyTarget, ownKeys: (string | symbol)[], unforgeableGlobalThisKeys?: (string | symbol)[]): void;
link(...keys: (string | symbol)[]): void;
remap(target: ProxyTarget, safeBlueDescMap: PropertyDescriptorMap): void;
lazyRemap(target: ProxyTarget, ownKeys: PropertyKeys, unforgeableGlobalThisKeys?: PropertyKeys): void;
link(...keys: PropertyKeys): void;
remap(target: ProxyTarget, unsafeBlueDescMap: PropertyDescriptorMap): void;
remapProto(target: ProxyTarget, proto: object | null): void;

@@ -32,0 +33,0 @@ }

@@ -6,2 +6,3 @@ export * from './connector';

export * from './membrane';
export * from './types';
//# sourceMappingURL=index.d.ts.map

@@ -0,1 +1,5 @@

export interface Activity {
stop(data?: DataType): void;
error(data?: DataType): void;
}
export declare type DataType = boolean | object | number | string;

@@ -7,6 +11,2 @@ export interface Instrumentation {

}
export interface Activity {
stop(data?: DataType): void;
error(data?: DataType): void;
}
//# sourceMappingURL=instrumentation.d.ts.map
import { VirtualEnvironment } from './environment';
import { PropertyKeys } from './types';
export declare function assignFilteredGlobalDescriptorsFromPropertyDescriptorMap<T extends PropertyDescriptorMap>(descMap: T, source?: PropertyDescriptorMap, sourceForDesc?: PropertyDescriptorMap | undefined): T;
export declare function getFilteredGlobalOwnKeys(source: object): (string | symbol)[];
export declare function getFilteredGlobalOwnKeys(source: object): PropertyKeys;
export declare function linkIntrinsics(env: VirtualEnvironment, globalObjectVirtualizationTarget: typeof globalThis): void;
//# sourceMappingURL=intrinsics.d.ts.map

@@ -26,14 +26,15 @@ /**

import { Instrumentation } from './instrumentation';
declare type CallablePushTarget = (pointer: () => void, targetTraits: number, targetFunctionArity: number | undefined, targetFunctionName: string | undefined) => Pointer;
import { PropertyKey, PropertyKeys } from './types';
declare type CallablePushTarget = (pointer: () => void, targetTraits: number, targetFunctionName: string | undefined) => Pointer;
declare type CallableApply = (targetPointer: Pointer, thisArgPointerOrPrimitive: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive;
declare type CallableConstruct = (targetPointer: Pointer, newTargetPointer: PointerOrPrimitive, ...args: PointerOrPrimitive[]) => PointerOrPrimitive;
declare type CallableDeleteProperty = (targetPointer: Pointer, key: string | symbol) => boolean;
declare type CallableGet = (targetPointer: Pointer, targetTraits: number, key: string | symbol, receiver: PointerOrPrimitive) => PointerOrPrimitive;
declare type CallableGetOwnPropertyDescriptor = (targetPointer: Pointer, key: string | symbol, foreignCallableDescriptorCallback: CallableDescriptorCallback) => void;
declare type CallableDeleteProperty = (targetPointer: Pointer, key: PropertyKey) => boolean;
declare type CallableGet = (targetPointer: Pointer, targetTraits: number, key: PropertyKey, receiver: PointerOrPrimitive) => PointerOrPrimitive;
declare type CallableGetOwnPropertyDescriptor = (targetPointer: Pointer, key: PropertyKey, foreignCallableDescriptorCallback: CallableDescriptorCallback) => void;
declare type CallableGetPrototypeOf = (targetPointer: Pointer) => PointerOrPrimitive;
declare type CallableHas = (targetPointer: Pointer, key: string | symbol) => boolean;
declare type CallableHas = (targetPointer: Pointer, key: PropertyKey) => boolean;
declare type CallableIsExtensible = (targetPointer: Pointer) => boolean;
declare type CallableOwnKeys = (targetPointer: Pointer, foreignCallableKeysCallback: (...args: ReturnType<typeof Reflect.ownKeys>) => void) => void;
declare type CallablePreventExtensions = (targetPointer: Pointer) => number;
declare type CallableSet = (targetPointer: Pointer, key: string | symbol, value: PointerOrPrimitive, receiver: PointerOrPrimitive) => boolean;
declare type CallableSet = (targetPointer: Pointer, key: PropertyKey, value: PointerOrPrimitive, receiver: PointerOrPrimitive) => boolean;
declare type CallableDebugInfo = (...args: Parameters<typeof console.info>) => boolean;

@@ -46,7 +47,7 @@ declare type CallableGetTargetIntegrityTraits = (targetPointer: Pointer) => number;

declare type CallableSerializeTarget = (targetPointer: Pointer) => SerializedValue | undefined;
declare type CallableBatchGetPrototypeOfAndOwnPropertyDescriptors = (targetPointer: Pointer, foreignCallableDescriptorsCallback: CallableDescriptorsCallback) => PointerOrPrimitive;
declare type CallableBatchGetPrototypeOfWhenHasNoOwnProperty = (targetPointer: Pointer, key: string | symbol) => PointerOrPrimitive;
declare type CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor = (targetPointer: Pointer, key: string | symbol, foreignCallableDescriptorCallback: CallableDescriptorCallback) => PointerOrPrimitive;
declare type CallableDescriptorCallback = (configurable: boolean | symbol, enumerable: boolean | symbol, writable: boolean | symbol, valuePointer: PointerOrPrimitive, getPointer: PointerOrPrimitive, setPointer: PointerOrPrimitive) => void;
declare type CallableDescriptorsCallback = (...descriptorTuples: [string | symbol, ...Parameters<CallableDescriptorCallback>]) => void;
declare type CallableBatchGetPrototypeOfAndGetOwnPropertyDescriptors = (targetPointer: Pointer, foreignCallableDescriptorsCallback: CallableDescriptorsCallback) => PointerOrPrimitive;
declare type CallableBatchGetPrototypeOfWhenHasNoOwnProperty = (targetPointer: Pointer, key: PropertyKey) => PointerOrPrimitive;
declare type CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor = (targetPointer: Pointer, key: PropertyKey, foreignCallableDescriptorCallback: CallableDescriptorCallback) => PointerOrPrimitive;
declare type CallableDescriptorCallback = (key: PropertyKey, configurable: boolean | symbol, enumerable: boolean | symbol, writable: boolean | symbol, valuePointer: PointerOrPrimitive, getPointer: PointerOrPrimitive, setPointer: PointerOrPrimitive) => void;
declare type CallableDescriptorsCallback = (...descriptorTuples: [...Parameters<CallableDescriptorCallback>]) => void;
declare type CallableNonConfigurableDescriptorCallback = CallableDescriptorCallback;

@@ -56,6 +57,7 @@ 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: string | symbol, configurable: boolean | symbol, enumerable: boolean | symbol, writable: boolean | symbol, valuePointer: PointerOrPrimitive, getPointer: PointerOrPrimitive, setPointer: PointerOrPrimitive, foreignCallableNonConfigurableDescriptorCallback?: CallableNonConfigurableDescriptorCallback) => boolean;
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;
export declare type CallableEvaluate = (sourceText: string) => PointerOrPrimitive;
export declare type CallableGetPropertyValuePointer = (targetPointer: Pointer, key: string | symbol) => Pointer;
export declare type CallableInstallLazyDescriptors = (targetPointer: Pointer, ...ownKeysAndUnforgeableGlobalThisKeys: (string | symbol)[]) => void;
export declare type CallableGetPropertyValuePointer = (targetPointer: Pointer, key: PropertyKey) => Pointer;
export declare type CallableInstallLazyDescriptors = (targetPointer: Pointer, ...ownKeysAndUnforgeableGlobalThisKeys: PropertyKeys) => void;
export declare type CallableLinkPointers = (targetPointer: Pointer, foreignTargetPointer: Pointer) => void;

@@ -66,3 +68,3 @@ export declare type CallableSetPrototypeOf = (targetPointer: Pointer, protoPointerOrNull: Pointer | null) => boolean;

export declare type GetTransferableValue = (value: any) => 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, callableGetTargetIntegrityTraits: CallableGetTargetIntegrityTraits, callableGetToStringTagOfTarget: CallableGetToStringTagOfTarget, callableInstallErrorPrepareStackTrace: CallableInstallErrorPrepareStackTrace, callableInstallLazyDescriptors: CallableInstallLazyDescriptors, callableIsTargetLive: CallableIsTargetLive, callableIsTargetRevoked: CallableIsTargetRevoked, callableSerializeTarget: CallableSerializeTarget, callableBatchGetPrototypeOfAndOwnPropertyDescriptors: CallableBatchGetPrototypeOfAndOwnPropertyDescriptors, callableBatchGetPrototypeOfWhenHasNoOwnProperty: CallableBatchGetPrototypeOfWhenHasNoOwnProperty, callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor: CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor) => void;
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, callableGetTargetIntegrityTraits: CallableGetTargetIntegrityTraits, callableGetToStringTagOfTarget: CallableGetToStringTagOfTarget, callableInstallErrorPrepareStackTrace: CallableInstallErrorPrepareStackTrace, callableInstallLazyDescriptors: CallableInstallLazyDescriptors, callableIsTargetLive: CallableIsTargetLive, callableIsTargetRevoked: CallableIsTargetRevoked, callableSerializeTarget: CallableSerializeTarget, callableBatchGetPrototypeOfAndGetOwnPropertyDescriptors: CallableBatchGetPrototypeOfAndGetOwnPropertyDescriptors, callableBatchGetPrototypeOfWhenHasNoOwnProperty: CallableBatchGetPrototypeOfWhenHasNoOwnProperty, callableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor: CallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor) => void;
export interface HooksOptions {

@@ -74,9 +76,4 @@ distortionCallback?: DistortionCallback;

export declare type ProxyTarget = CallableFunction | any[] | object;
export declare const sharedMembraneState: {
proxyTargetToLazyPropertyStateMap: WeakMap<object, any>;
};
export declare function createMembraneMarshall(isInShadowRealm?: boolean, { proxyTargetToLazyPropertyStateMap }?: {
proxyTargetToLazyPropertyStateMap: WeakMap<object, any>;
}): (color: string, trapMutations: boolean, foreignCallableHooksCallback: HooksCallback, providedOptions?: HooksOptions | undefined) => HooksCallback;
export declare function createMembraneMarshall(isInShadowRealm?: boolean): (color: string, trapMutations: boolean, 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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc