@agoric/marshal
Advanced tools
Comparing version 0.5.1-dev-8a6875f.0 to 0.5.1-dev-8a8335e.0
{ | ||
"name": "@agoric/marshal", | ||
"version": "0.5.1-dev-8a6875f.0+8a6875f", | ||
"version": "0.5.1-dev-8a8335e.0+8a8335e", | ||
"description": "marshal", | ||
@@ -15,4 +15,2 @@ "type": "module", | ||
"test:xs": "exit 0", | ||
"pretty-fix": "prettier --write '**/*.js'", | ||
"pretty-check": "prettier --check '**/*.js'", | ||
"lint-fix": "yarn lint:eslint --fix && yarn lint:types", | ||
@@ -38,9 +36,9 @@ "lint-check": "yarn lint", | ||
"dependencies": { | ||
"@agoric/eventual-send": "0.14.1-dev-8a6875f.0+8a6875f", | ||
"@agoric/eventual-send": "0.14.1-dev-8a8335e.0+8a8335e", | ||
"@agoric/nat": "^4.1.0", | ||
"@agoric/promise-kit": "0.2.30-dev-8a6875f.0+8a6875f" | ||
"@agoric/promise-kit": "0.2.30-dev-8a8335e.0+8a8335e" | ||
}, | ||
"devDependencies": { | ||
"@agoric/lockdown": "0.1.2-dev-8a6875f.0+8a6875f", | ||
"@endo/ses-ava": "^0.2.13", | ||
"@endo/lockdown": "^0.1.2", | ||
"@endo/ses-ava": "^0.2.14", | ||
"ava": "^3.12.1", | ||
@@ -59,6 +57,2 @@ "c8": "^7.7.2" | ||
}, | ||
"prettier": { | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
}, | ||
"publishConfig": { | ||
@@ -73,3 +67,3 @@ "access": "public" | ||
}, | ||
"gitHead": "8a6875f40025c2e6f3d7184f687ce81a2c611e51" | ||
"gitHead": "8a8335ed89646dbb4f3138198ff129858e9be100" | ||
} |
@@ -55,3 +55,3 @@ // @ts-check | ||
const proto = getPrototypeOf(candidate); | ||
const { name } = candidate; | ||
const { name } = proto; | ||
const EC = getErrorConstructor(name); | ||
@@ -66,2 +66,3 @@ if (!EC || EC.prototype !== proto) { | ||
const { | ||
// Must allow `cause`, `errors` | ||
message: mDesc, | ||
@@ -68,0 +69,0 @@ // Allow but ignore only extraneous own `stack` property. |
@@ -80,2 +80,3 @@ // @ts-check | ||
if (slotMap.has(val)) { | ||
// TODO assert that it's the same iface as before | ||
slotIndex = slotMap.get(val); | ||
@@ -92,2 +93,3 @@ assert.typeof(slotIndex, 'number'); | ||
// TODO explore removing this special case | ||
if (iface === undefined) { | ||
@@ -127,2 +129,4 @@ return harden({ | ||
marshalSaveError(err); | ||
// Must encode `cause`, `errors`. | ||
// nested non-passable errors must be ok from here. | ||
return harden({ | ||
@@ -284,2 +288,4 @@ [QCLASS]: 'error', | ||
} | ||
// TODO SECURITY HAZARD: must enfoce that remotable vs promise | ||
// is according to the encoded string. | ||
const slot = slots[Number(Nat(index))]; | ||
@@ -385,2 +391,3 @@ const val = convertSlotToVal(slot, iface); | ||
case 'error': { | ||
// Must decode `cause` and `errors` properties | ||
const { name, message, errorId } = rawTree; | ||
@@ -387,0 +394,0 @@ assert.typeof( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
134651
2880