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
0
Versions
1016
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-2347e82.0 to 0.1.1-dev-23e127e.0

src/watch-promise.d.ts

27

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

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

"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*'",
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
"test": "ava",

@@ -31,12 +31,13 @@ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",

"dependencies": {
"@agoric/store": "0.9.3-dev-2347e82.0+2347e82",
"@endo/common": "^1.2.1",
"@endo/exo": "^1.4.0",
"@endo/far": "^1.1.1",
"@endo/pass-style": "^1.3.1",
"@endo/patterns": "^1.3.1"
"@agoric/store": "0.9.3-dev-23e127e.0+23e127e",
"@endo/common": "^1.2.8",
"@endo/errors": "^1.2.8",
"@endo/exo": "^1.5.7",
"@endo/far": "^1.1.9",
"@endo/pass-style": "^1.4.7",
"@endo/patterns": "^1.4.7"
},
"devDependencies": {
"@endo/init": "^1.1.1",
"@endo/ses-ava": "^1.2.1",
"@endo/init": "^1.1.7",
"@endo/ses-ava": "^1.2.8",
"ava": "^5.3.0"

@@ -52,3 +53,3 @@ },

"files": [
"test/**/test-*.js"
"test/**/*.test.*"
],

@@ -62,5 +63,5 @@ "require": [

"typeCoverage": {
"atLeast": 88.55
"atLeast": 91.4
},
"gitHead": "2347e82d876f08893e08f448ee13b11a1577bb48"
"gitHead": "23e127e8596a02139a9062d20893c842a833cec1"
}

@@ -15,2 +15,3 @@ // @ts-check

import { agoricVatDataKeys as keys } from './keys.js';
import { watchPromise } from './watch-promise.js';

@@ -53,2 +54,3 @@ /**

makeOnce,
watchPromise,
detached: detachedHeapStores.detached,

@@ -55,0 +57,0 @@ isStorable: detachedHeapStores.isStorable,

@@ -5,2 +5,3 @@ export * from "./exports.js";

export * from "./is-passable.js";
export * from "./watch-promise.js";
//# sourceMappingURL=index.d.ts.map
// @jessie-check
// XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
import '@agoric/store/exported.js';
/// <reference types="@agoric/store/exported.js" />

@@ -13,1 +12,2 @@ // eslint-disable-next-line import/export

export * from './is-passable.js';
export * from './watch-promise.js';
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;
wrapProvider: <T extends (key: string, ...rest: unknown[]) => any>(provider: T, labelToKeys?: ((label: string) => string[]) | undefined) => T;
wrapProvider: <T extends (key: string, ...rest: any[]) => any>(provider: T, labelToKeys?: ((label: string) => string[]) | undefined) => T;
};
//# sourceMappingURL=make-once.d.ts.map
// @ts-check
const { Fail } = assert;
import { Fail } from '@endo/errors';

@@ -38,3 +38,3 @@ /** @param {string} label */

*
* @template {(key: string, ...rest: unknown[]) => any} T
* @template {(key: string, ...rest: any[]) => any} T
* @param {T} provider

@@ -41,0 +41,0 @@ * @param {(label: string) => string[]} [labelToKeys]

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

import { Fail, q } from '@endo/errors';
import { fromUniqueEntries } from '@endo/common/from-unique-entries.js';
import { M } from '@endo/patterns';
import { fromUniqueEntries } from '@endo/common/from-unique-entries.js';
const { Fail, quote: q } = assert;
/** @import {Amplify} from '@endo/exo'; */

@@ -97,2 +98,3 @@ /**

/** @type {Amplify<any>} */
let amplifier;

@@ -99,0 +101,0 @@

@@ -29,2 +29,6 @@ export type KeyCategories = "exoClass" | "exoClassKit" | "exo" | "store" | "zone";

subZone: (label: string, options?: StoreOptions) => Zone;
/**
* register a promise watcher created by this zone
*/
watchPromise: typeof watchPromise;
};

@@ -43,3 +47,3 @@ export type Stores = {

*/
mapStore: <K, V>(label: string, options?: StoreOptions) => MapStore<K, V>;
mapStore: (label: string, options?: StoreOptions) => MapStore<any, any>;
/**

@@ -61,2 +65,3 @@ * provide a Set-like store named `label` in the zone

import { defineExoClassKit } from '@endo/exo';
import { watchPromise } from './watch-promise.js';
//# sourceMappingURL=types.d.ts.map
// eslint-disable-next-line no-unused-vars
import { makeExo, defineExoClass, defineExoClassKit } from '@endo/exo';
// eslint-disable-next-line no-unused-vars
import { watchPromise } from './watch-promise.js';
// Ensure this is a module.
export {};
/**
* @import {Key} from '@endo/patterns';
* @import {Passable} from '@endo/pass-style';
*/
/** @typedef {'exoClass' | 'exoClassKit' | 'exo' | 'store' | 'zone'} KeyCategories */

@@ -19,2 +29,3 @@ /** @typedef {Record<KeyCategories, (label: string) => string[]>} KeyMakers */

* @property {(label: string, options?: StoreOptions) => Zone} subZone create a new Zone that can be passed to untrusted consumers without exposing the storage of the parent zone
* @property {typeof watchPromise} watchPromise register a promise watcher created by this zone
*/

@@ -26,5 +37,5 @@

* @property {(specimen: unknown) => boolean} isStorable return true if the specimen can be stored in the zone, whether as exo-object state or in a store
* @property {<K,V>(label: string, options?: StoreOptions) => MapStore<K, V>} mapStore provide a Map-like store named `label` in the zone
* @property {(label: string, options?: StoreOptions) => MapStore<any, any>} mapStore provide a Map-like store named `label` in the zone
* @property {<K>(label: string, options?: StoreOptions) => SetStore<K>} setStore provide a Set-like store named `label` in the zone
* @property {<K,V>(
* @property {<K, V>(
* label: string, options?: StoreOptions) => WeakMapStore<K, V>

@@ -31,0 +42,0 @@ * } weakMapStore provide a WeakMap-like store named `label` in the zone

// This file can contain .js-specific Typescript compiler config.
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"maxNodeModuleJsDepth": 2,
},
"compilerOptions": {},
"include": [

@@ -8,0 +6,0 @@ "*.js",

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