Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agoric/eventual-send

Package Overview
Dependencies
Maintainers
5
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/eventual-send - npm Package Compare versions

Comparing version 0.11.1-dev.2 to 0.11.1

12

CHANGELOG.md

@@ -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 @@

6

package.json
{
"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

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