@agoric/store
Advanced tools
Comparing version 0.6.9-dev-8a6875f.0 to 0.6.9-dev-8a8335e.0
{ | ||
"name": "@agoric/store", | ||
"version": "0.6.9-dev-8a6875f.0+8a6875f", | ||
"version": "0.6.9-dev-8a8335e.0+8a8335e", | ||
"description": "Wrapper for JavaScript map", | ||
@@ -34,9 +34,9 @@ "type": "module", | ||
"dependencies": { | ||
"@agoric/assert": "0.3.16-dev-8a6875f.0+8a6875f", | ||
"@agoric/eventual-send": "0.14.1-dev-8a6875f.0+8a6875f", | ||
"@agoric/marshal": "0.5.1-dev-8a6875f.0+8a6875f", | ||
"@agoric/promise-kit": "0.2.30-dev-8a6875f.0+8a6875f" | ||
"@agoric/assert": "0.3.16-dev-8a8335e.0+8a8335e", | ||
"@agoric/eventual-send": "0.14.1-dev-8a8335e.0+8a8335e", | ||
"@agoric/marshal": "0.5.1-dev-8a8335e.0+8a8335e", | ||
"@agoric/promise-kit": "0.2.30-dev-8a8335e.0+8a8335e" | ||
}, | ||
"devDependencies": { | ||
"@agoric/swingset-vat": "0.24.2-dev-8a6875f.0+8a6875f", | ||
"@agoric/swingset-vat": "0.24.2-dev-8a8335e.0+8a8335e", | ||
"ava": "^3.12.1" | ||
@@ -57,6 +57,2 @@ }, | ||
], | ||
"prettier": { | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
}, | ||
"publishConfig": { | ||
@@ -71,3 +67,3 @@ "access": "public" | ||
}, | ||
"gitHead": "8a6875f40025c2e6f3d7184f687ce81a2c611e51" | ||
"gitHead": "8a8335ed89646dbb4f3138198ff129858e9be100" | ||
} |
@@ -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 @@ }; |
@@ -87,4 +87,4 @@ // @ts-check | ||
* Defaults to true, so please mark short lived stores explicitly. | ||
* @property {Pattern=} keySchema | ||
* @property {Pattern=} valueSchema | ||
* @property {Pattern=} keyPattern | ||
* @property {Pattern=} valuePattern | ||
*/ | ||
@@ -91,0 +91,0 @@ |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
150599