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

@agoric/store

Package Overview
Dependencies
Maintainers
5
Versions
2684
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/store - npm Package Compare versions

Comparing version 0.6.9-dev-99c5296.0 to 0.6.9-dev-99caf87.0

18

package.json
{
"name": "@agoric/store",
"version": "0.6.9-dev-99c5296.0+99c5296",
"version": "0.6.9-dev-99caf87.0+99caf87",
"description": "Wrapper for JavaScript map",

@@ -34,9 +34,9 @@ "type": "module",

"dependencies": {
"@agoric/assert": "0.3.16-dev-99c5296.0+99c5296",
"@agoric/eventual-send": "0.14.1-dev-99c5296.0+99c5296",
"@agoric/marshal": "0.5.1-dev-99c5296.0+99c5296",
"@agoric/promise-kit": "0.2.30-dev-99c5296.0+99c5296"
"@agoric/assert": "0.3.16-dev-99caf87.0+99caf87",
"@agoric/eventual-send": "0.14.1-dev-99caf87.0+99caf87",
"@agoric/marshal": "0.5.1-dev-99caf87.0+99caf87",
"@agoric/promise-kit": "0.2.30-dev-99caf87.0+99caf87"
},
"devDependencies": {
"@agoric/swingset-vat": "0.24.2-dev-99c5296.0+99c5296",
"@agoric/swingset-vat": "0.24.2-dev-99caf87.0+99caf87",
"ava": "^3.12.1"

@@ -57,6 +57,2 @@ },

],
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"publishConfig": {

@@ -71,3 +67,3 @@ "access": "public"

},
"gitHead": "99c5296f69aed35ef34803a6ee17500af874261e"
"gitHead": "99caf87a3357d70579b108e791e38ec8bb11db13"
}
// @ts-check
// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -5,0 +4,0 @@

// @ts-check
// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -5,0 +4,0 @@

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

assertChecker,
Far,
getTag,

@@ -13,3 +14,2 @@ makeTagged,

// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -116,6 +116,6 @@

const { length } = keys;
return harden({
return Far('CopyMap entries iterable', {
[Symbol.iterator]: () => {
let i = 0;
return harden({
return Far('CopyMap entries iterator', {
next: () => {

@@ -122,0 +122,0 @@ /** @type {IteratorResult<[K,V],void>} */

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

// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -19,0 +18,0 @@

// @ts-check
// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -5,0 +4,0 @@

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

// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -32,0 +31,0 @@

@@ -136,10 +136,10 @@ // @ts-check

keyName = 'key',
{ keySchema = undefined, valueSchema = undefined } = {},
{ keyPattern = undefined, valuePattern = undefined } = {},
) => {
const jsmap = new Map();
if (keySchema !== undefined) {
assertPattern(keySchema);
if (keyPattern !== undefined) {
assertPattern(keyPattern);
}
if (valueSchema !== undefined) {
assertPattern(valueSchema);
if (valuePattern !== undefined) {
assertPattern(valuePattern);
}

@@ -153,4 +153,4 @@

assertPassable(value);
if (valueSchema !== undefined) {
fit(value, valueSchema);
if (valuePattern !== undefined) {
fit(value, valuePattern);
}

@@ -165,4 +165,4 @@ };

assertScalarKey(key);
if (keySchema !== undefined) {
fit(key, keySchema);
if (keyPattern !== undefined) {
fit(key, keyPattern);
}

@@ -169,0 +169,0 @@ assertKVOkToSet(key, value);

@@ -92,7 +92,7 @@ // @ts-check

keyName = 'key',
{ keySchema = undefined } = {},
{ keyPattern = undefined } = {},
) => {
const jsset = new Set();
if (keySchema !== undefined) {
assertPattern(keySchema);
if (keyPattern !== undefined) {
assertPattern(keyPattern);
}

@@ -106,4 +106,4 @@

assertScalarKey(key);
if (keySchema !== undefined) {
fit(key, keySchema);
if (keyPattern !== undefined) {
fit(key, keyPattern);
}

@@ -110,0 +110,0 @@ };

@@ -91,10 +91,10 @@ // @ts-check

keyName = 'key',
{ longLived = true, keySchema = undefined, valueSchema = undefined } = {},
{ longLived = true, keyPattern = undefined, valuePattern = undefined } = {},
) => {
const jsmap = new (longLived ? WeakMap : Map)();
if (keySchema !== undefined) {
assertPattern(keySchema);
if (keyPattern !== undefined) {
assertPattern(keyPattern);
}
if (valueSchema !== undefined) {
assertPattern(valueSchema);
if (valuePattern !== undefined) {
assertPattern(valuePattern);
}

@@ -108,4 +108,4 @@

assertPassable(value);
if (valueSchema !== undefined) {
fit(value, valueSchema);
if (valuePattern !== undefined) {
fit(value, valuePattern);
}

@@ -123,4 +123,4 @@ };

);
if (keySchema !== undefined) {
fit(key, keySchema);
if (keyPattern !== undefined) {
fit(key, keyPattern);
}

@@ -127,0 +127,0 @@ assertKVOkToSet(key, value);

@@ -73,7 +73,7 @@ // @ts-check

keyName = 'key',
{ longLived = true, keySchema = undefined } = {},
{ longLived = true, keyPattern = undefined } = {},
) => {
const jsset = new (longLived ? WeakSet : Set)();
if (keySchema !== undefined) {
assertPattern(keySchema);
if (keyPattern !== undefined) {
assertPattern(keyPattern);
}

@@ -90,4 +90,4 @@

);
if (keySchema !== undefined) {
fit(key, keySchema);
if (keyPattern !== undefined) {
fit(key, keyPattern);
}

@@ -94,0 +94,0 @@ };

// @ts-check
import { Far } from '@agoric/marshal';
const { details: X, quote: q } = assert;

@@ -57,3 +59,3 @@

const iterableKeys = harden({
const iterableKeys = Far('Iterable of keys', {
[Symbol.iterator]: () => {

@@ -64,3 +66,3 @@ const generation = updateCount;

let i = 0;
return harden({
return Far('Iterator of keys', {
next: () => {

@@ -67,0 +69,0 @@ assert.equal(

// @ts-check
// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>

@@ -50,3 +49,3 @@

*
* * I say "indended" above because Patterns, in order to be declarative
* * I say "intended" above because Patterns, in order to be declarative
* and passable, cannot have the generality of predicates written in a

@@ -89,4 +88,4 @@ * Turing-universal programming language. Rather, to represent the category of

* Defaults to true, so please mark short lived stores explicitly.
* @property {Pattern=} keySchema
* @property {Pattern=} valueSchema
* @property {Pattern=} keyPattern
* @property {Pattern=} valuePattern
*/

@@ -286,4 +285,5 @@

* @typedef {RankCompare} FullCompare
* A `FullCompare` function satisfies all the invariants stated above for
* `RankCompare`. In addition, its equality is as precise as the `KeyCompare`
* A `FullCompare` function satisfies all the invariants stated below for
* `RankCompare`'s relation with KeyCompare.
* In addition, its equality is as precise as the `KeyCompare`
* comparison defined below, in that, for all Keys `x` and `y`,

@@ -290,0 +290,0 @@ * `FullCompare(x, y) === 0` iff `KeyCompare(x, y) === 0`.

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