@agoric/eventual-send
Advanced tools
Comparing version 0.14.1-dev-ac23367.0 to 0.14.1-dev-b3c5716.0
{ | ||
"name": "@agoric/eventual-send", | ||
"version": "0.14.1-dev-ac23367.0+ac23367", | ||
"version": "0.14.1-dev-b3c5716.0+b3c5716", | ||
"description": "Extend a Promise class to implement the eventual-send API", | ||
@@ -13,5 +13,4 @@ "type": "module", | ||
"build": "exit 0", | ||
"lint-fix": "yarn lint:eslint --fix && yarn lint:types", | ||
"lint-check": "yarn lint", | ||
"lint": "yarn lint:types && yarn lint:eslint", | ||
"lint-fix": "yarn lint:eslint --fix", | ||
"lint": "run-s --continue-on-error lint:*", | ||
"lint:types": "tsc -p jsconfig.json", | ||
@@ -31,5 +30,4 @@ "lint:eslint": "eslint '**/*.js'" | ||
"devDependencies": { | ||
"@agoric/assert": "0.3.16-dev-ac23367.0+ac23367", | ||
"@agoric/lockdown": "0.1.2-dev-ac23367.0+ac23367", | ||
"@endo/ses-ava": "^0.2.13", | ||
"@endo/lockdown": "^0.1.5", | ||
"@endo/ses-ava": "^0.2.17", | ||
"ava": "^3.12.1", | ||
@@ -52,6 +50,2 @@ "c8": "^7.7.2" | ||
}, | ||
"prettier": { | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
}, | ||
"publishConfig": { | ||
@@ -66,3 +60,3 @@ "access": "public" | ||
}, | ||
"gitHead": "ac23367148f7b5d5a19cf0aef312251b036acb46" | ||
"gitHead": "b3c571690f49f3015eca140e8f0558862130ae4e" | ||
} |
10
src/E.js
// @ts-check | ||
import { trackTurns } from './track-turns.js'; | ||
// eslint-disable-next-line spaced-comment | ||
/// <reference path="index.d.ts" /> | ||
@@ -39,6 +38,7 @@ | ||
// #95 for details. | ||
return (...args) => harden(HandledPromise.applyMethod(x, p, args)); | ||
return (...args) => | ||
harden(HandledPromise.applyMethod(x, p, harden(args))); | ||
}, | ||
apply(_target, _thisArg, argArray = []) { | ||
return harden(HandledPromise.applyFunction(x, argArray)); | ||
return harden(HandledPromise.applyFunction(x, harden(argArray))); | ||
}, | ||
@@ -65,3 +65,3 @@ has(_target, _p) { | ||
return (...args) => { | ||
HandledPromise.applyMethodSendOnly(x, p, args); | ||
HandledPromise.applyMethodSendOnly(x, p, harden(args)); | ||
return undefined; | ||
@@ -71,3 +71,3 @@ }; | ||
apply(_target, _thisArg, argsArray = []) { | ||
HandledPromise.applyFunctionSendOnly(x, argsArray); | ||
HandledPromise.applyFunctionSendOnly(x, harden(argsArray)); | ||
return undefined; | ||
@@ -74,0 +74,0 @@ }, |
@@ -429,3 +429,3 @@ // @ts-check | ||
// Resolving a Presence returns the pre-registered handled promise. | ||
let resolvedPromise = presenceToPromise.get(value); | ||
let resolvedPromise = presenceToPromise.get(/** @type {any} */ (value)); | ||
if (!resolvedPromise) { | ||
@@ -432,0 +432,0 @@ resolvedPromise = Promise.resolve(value); |
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
4
68674