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 to 0.12.0-dev.0

25

CHANGELOG.md

@@ -6,2 +6,27 @@ # Change Log

# [0.12.0-dev.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/eventual-send@0.11.1...@agoric/eventual-send@0.12.0-dev.0) (2020-10-19)
### Features
* **E:** . ([eddf51e](https://github.com/Agoric/agoric-sdk/commit/eddf51eb3c3c59e4cf9031ee0c21231c6585b7c2))
* **E:** . ([4ce1239](https://github.com/Agoric/agoric-sdk/commit/4ce12393a36c6d68046442e0cf6b517c9c97f03c))
* **E:** . ([672c593](https://github.com/Agoric/agoric-sdk/commit/672c59351cf04a174f2cfd553f026929613cffaf))
* **E:** . ([c0d8013](https://github.com/Agoric/agoric-sdk/commit/c0d80138bb66c047466b040c7c44ebe4626dd939))
* **E:** . adding tests for the sendOnly variant. ([19182b3](https://github.com/Agoric/agoric-sdk/commit/19182b35088928e1feb5ef559efb66edec587a9a))
* **E:** . another test added. ([162c0d7](https://github.com/Agoric/agoric-sdk/commit/162c0d7f26f113d8ed6608c229add9592265ff66))
* **E:** . continuing ([6c51052](https://github.com/Agoric/agoric-sdk/commit/6c51052c7497e932d0b72d97b3fe0747b53b14cc))
* **E:** . continuing onward ([2b1eb5b](https://github.com/Agoric/agoric-sdk/commit/2b1eb5b9715cb3bf8c7bf1e4617dc6b3fab2ecd3))
* **E:** . fixing E.js ([4d57814](https://github.com/Agoric/agoric-sdk/commit/4d57814035576fccdd1f41fd13d50e3ebf719123))
* **E:** . fixing test-e.js ([a48bb95](https://github.com/Agoric/agoric-sdk/commit/a48bb956f6e6d63c483c03a43aa561cf72eb3424))
* **E:** . test skipped for now until I am destumped ([fd9df0f](https://github.com/Agoric/agoric-sdk/commit/fd9df0f3d78863e271107a687765c56d77edd62d))
* **E:** . throwsAsync not asyncThrows ([aa62713](https://github.com/Agoric/agoric-sdk/commit/aa62713d8947c46868c4b511bd29f330d3a7a13b))
* **E:** . voiding voids ([3908652](https://github.com/Agoric/agoric-sdk/commit/390865279be9cf30f64bb27500d50f5107ef1c89))
* **E:** . was missing a closing paren. ([b87d485](https://github.com/Agoric/agoric-sdk/commit/b87d485e241f2bca9b147a8006c0e80a96c5036e))
* **E:** starting to add missing E.sendOnly() ([e04ee59](https://github.com/Agoric/agoric-sdk/commit/e04ee592b761dc433adc3a7ccb08df0ac3895616))
## [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)

@@ -8,0 +33,0 @@

6

package.json
{
"name": "@agoric/eventual-send",
"version": "0.11.1",
"version": "0.12.0-dev.0",
"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",
"@agoric/install-ses": "^0.3.3-dev.0",
"ava": "^3.12.1",

@@ -93,3 +93,3 @@ "esm": "^3.2.7",

},
"gitHead": "f30f9c002959e5f358b6458315057141c29605e8"
"gitHead": "dd23e32e44e11c3b86e2ddb2abcd7b9b19f55062"
}

@@ -51,2 +51,32 @@ /* global harden */

/**
* A Proxy handler for E.sendOnly(x)
* For now it is just a variant on the E(x) Proxy handler.
*
* @param {*} x Any value passed to E.sendOnly(x)
* @returns {ProxyHandler} the Proxy handler
*/
function EsendOnlyProxyHandler(x, HandledPromise) {
return harden({
...readOnlyProxyHandler,
get(_target, p, _receiver) {
if (`${p}` !== p) {
return undefined;
}
return (...args) => {
HandledPromise.applyMethod(x, p, args);
return undefined;
};
},
apply(_target, _thisArg, argsArray = []) {
HandledPromise.applyFunction(x, argsArray);
return undefined;
},
has(_target, _p) {
// We just pretend that every thing exists.
return true;
},
});
}
export default function makeE(HandledPromise) {

@@ -71,2 +101,6 @@ function E(x) {

E.resolve = HandledPromise.resolve;
E.sendOnly = x => {
const handler = EsendOnlyProxyHandler(x, HandledPromise);
return harden(new Proxy(() => {}, handler));
};

@@ -73,0 +107,0 @@ E.when = (x, onfulfilled = undefined, onrejected = undefined) =>

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