@agoric/eventual-send
Advanced tools
Comparing version 0.11.1-dev.2 to 0.11.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [0.11.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/eventual-send@0.11.1-dev.2...@agoric/eventual-send@0.11.1) (2020-10-11) | ||
### Bug Fixes | ||
* improved error message when eventual send target is undefined ([#1847](https://github.com/Agoric/agoric-sdk/issues/1847)) ([f33d30e](https://github.com/Agoric/agoric-sdk/commit/f33d30e46eeb209f039e81a92350c06611cc45a1)) | ||
* **eventual-send:** silence unhandled rejection for remote calls ([fb7c247](https://github.com/Agoric/agoric-sdk/commit/fb7c247688eacf09e975ca87ab7ef246cd240136)) | ||
## [0.11.1-dev.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/eventual-send@0.11.1-dev.1...@agoric/eventual-send@0.11.1-dev.2) (2020-09-18) | ||
@@ -8,0 +20,0 @@ |
{ | ||
"name": "@agoric/eventual-send", | ||
"version": "0.11.1-dev.2", | ||
"version": "0.11.1", | ||
"description": "Extend a Promise class to implement the eventual-send API", | ||
@@ -25,3 +25,3 @@ "main": "src/no-shim.js", | ||
"devDependencies": { | ||
"@agoric/install-ses": "^0.3.2-dev.2", | ||
"@agoric/install-ses": "^0.3.2", | ||
"ava": "^3.12.1", | ||
@@ -93,3 +93,3 @@ "esm": "^3.2.7", | ||
}, | ||
"gitHead": "433cc17e06b38df2e3b9034d5e2ab8f7e33f239d" | ||
"gitHead": "f30f9c002959e5f358b6458315057141c29605e8" | ||
} |
@@ -364,3 +364,5 @@ /* global harden */ | ||
const ftype = typeof t; | ||
throw TypeError(`target is not a function, typeof is ${ftype}`); | ||
throw TypeError( | ||
`Cannot invoke target as a function, the type is ${ftype}`, | ||
); | ||
} | ||
@@ -372,3 +374,3 @@ return t(...args); | ||
throw TypeError( | ||
`target cannot contain [${q(method)}], typeof is ${ftype}`, | ||
`Cannot deliver ${q(method)} to target; typeof target is "${ftype}"`, | ||
); | ||
@@ -378,11 +380,8 @@ } | ||
const names = Object.getOwnPropertyNames(t).sort(); | ||
throw TypeError(`target[${q(method)}] does not exist, has ${names}`); | ||
throw TypeError(`target has no method ${q(method)}, has [${names}]`); | ||
} | ||
if (!(t[method] instanceof Function)) { | ||
const ftype = typeof t[method]; | ||
const names = Object.getOwnPropertyNames(t).sort(); | ||
throw TypeError( | ||
`target[${q( | ||
method, | ||
)}] is not a function, typeof is ${ftype}, has ${names}`, | ||
`invoked method ${q(method)} is not a function, it is a ${ftype}`, | ||
); | ||
@@ -455,2 +454,6 @@ } | ||
// Workaround for Node.js: silence "Unhandled Rejection" by default when | ||
// using the static methods. | ||
returnedP.catch(_ => {}); | ||
// We return a handled promise with the default unsettled handler. | ||
@@ -457,0 +460,0 @@ // This prevents a race between the above Promise.resolves and |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
102238
2160
1