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

@agoric/base-zone

Package Overview
Dependencies
Maintainers
9
Versions
1044
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/base-zone - npm Package Compare versions

Comparing version 0.1.1-dev-e2e36cc.0 to 0.1.1-dev-e456308.0

6

package.json
{
"name": "@agoric/base-zone",
"version": "0.1.1-dev-e2e36cc.0+e2e36cc",
"version": "0.1.1-dev-e456308.0+e456308",
"description": "Allocation zone abstraction library and heap implementation",

@@ -30,3 +30,3 @@ "type": "module",

"dependencies": {
"@agoric/store": "0.9.3-dev-e2e36cc.0+e2e36cc",
"@agoric/store": "0.9.3-dev-e456308.0+e456308",
"@endo/common": "^1.2.1",

@@ -62,3 +62,3 @@ "@endo/exo": "^1.4.0",

},
"gitHead": "e2e36cc1e1c015fc517a179019184fdc81f3e809"
"gitHead": "e4563081e57304520ee75f85aff490fcdb640c20"
}

@@ -1,2 +0,2 @@

export function makeHeapZone(baseLabel?: string | undefined): import('./types.js').Zone;
export function makeHeapZone(baseLabel?: string | undefined): import("./types.js").Zone;
//# sourceMappingURL=heap.d.ts.map
// @ts-check
// @jessie-check
import { Far } from '@endo/far';
import { Far, isPassable } from '@endo/pass-style';
import { makeExo, defineExoClass, defineExoClassKit } from '@endo/exo';

@@ -15,3 +15,2 @@ import {

import { agoricVatDataKeys as keys } from './keys.js';
import { isPassable } from './is-passable.js';

@@ -18,0 +17,0 @@ /**

// @jessie-check
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
import '@agoric/store/exported.js';
// eslint-disable-next-line import/export

@@ -4,0 +7,0 @@ export * from './exports.js';

@@ -1,23 +0,8 @@

import { passStyleOf } from '@endo/pass-style';
import { isPassable as realIsPassable } from '@endo/pass-style';
/**
* Is `specimen` Passable? This returns true iff `passStyleOf(specimen)`
* returns a string. This returns `false` iff `passStyleOf(specimen)` throws.
* Under no normal circumstance should `isPassable(specimen)` throw.
*
* TODO implement an isPassable that does not rely on try/catch, and
* move it to @endo/pass-style.
* This implementation is just a standin until then
*
* @deprecated Import `isPassable` directly from `@endo/pass-style`
* @param {any} specimen
* @returns {specimen is Passable}
*/
export const isPassable = specimen => {
try {
// In fact, it never returns undefined. It either returns a
// string or throws.
return passStyleOf(specimen) !== undefined;
} catch (_) {
return false;
}
};
export const isPassable = specimen => realIsPassable(specimen);

@@ -6,3 +6,3 @@ /**

*/
export const agoricVatDataKeys: import('./types.js').KeyMakers;
export const agoricVatDataKeys: import("./types.js").KeyMakers;
//# sourceMappingURL=keys.d.ts.map

@@ -1,2 +0,2 @@

export function makeOnceKit(debugName: string, stores: import('./types.js').Stores, backingStore?: any): {
export function makeOnceKit(debugName: string, stores: import("./types.js").Stores, backingStore?: globalThis.MapStore<string, any> | undefined): {
makeOnce: <V>(key: string, maker: (key: string) => V) => V;

@@ -3,0 +3,0 @@ wrapProvider: <T extends (key: string, ...rest: unknown[]) => any>(provider: T, labelToKeys?: ((label: string) => string[]) | undefined) => T;

@@ -1,2 +0,2 @@

export function prepareRevocableMakerKit<U = any>(zone: import('@agoric/base-zone').Zone, uKindName: string, uMethodNames: (string | symbol)[], options?: RevocableKitOptions<any> | undefined): RevocableMakerKit<U>;
export function prepareRevocableMakerKit<U = any>(zone: import("@agoric/base-zone").Zone, uKindName: string, uMethodNames: (string | symbol)[], options?: RevocableKitOptions<any> | undefined): RevocableMakerKit<U>;
export type RevocableMakerKit<U = any> = {

@@ -3,0 +3,0 @@ revoke: (revocable: U) => boolean;

@@ -1,2 +0,2 @@

export type KeyCategories = 'exoClass' | 'exoClassKit' | 'exo' | 'store' | 'zone';
export type KeyCategories = "exoClass" | "exoClassKit" | "exo" | "store" | "zone";
export type KeyMakers = Record<KeyCategories, (label: string) => string[]>;

@@ -42,15 +42,15 @@ /**

*/
mapStore: <K, V>(label: string, options?: StoreOptions) => globalThis.MapStore<K, V>;
mapStore: <K, V>(label: string, options?: StoreOptions) => MapStore<K, V>;
/**
* provide a Set-like store named `label` in the zone
*/
setStore: <K_1>(label: string, options?: StoreOptions) => globalThis.SetStore<K_1>;
setStore: <K>(label: string, options?: StoreOptions) => SetStore<K>;
/**
* provide a WeakMap-like store named `label` in the zone
*/
weakMapStore: <K_2, V_1>(label: string, options?: StoreOptions) => globalThis.WeakMapStore<K_2, V_1>;
weakMapStore: <K, V>(label: string, options?: StoreOptions) => WeakMapStore<K, V>;
/**
* provide a WeakSet-like store named `label` in the zone
*/
weakSetStore: <K_3>(label: string, options?: StoreOptions) => globalThis.WeakSetStore<K_3>;
weakSetStore: <K>(label: string, options?: StoreOptions) => WeakSetStore<K>;
};

@@ -57,0 +57,0 @@ import { makeExo } from '@endo/exo';

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