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.14.1-dev-fea822e.0 to 0.14.1

dist/eventual-send.cjs.js

14

CHANGELOG.md

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

### [0.14.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/eventual-send@0.14.0...@agoric/eventual-send@0.14.1) (2022-02-21)
### Features
* **eventual-send:** harden eventual-send arguments, like SwingSet ([dd0f48b](https://github.com/Agoric/agoric-sdk/commit/dd0f48b7b66847613bf17486cd865a9b5a17b2ef))
### Bug Fixes
* Remove extraneous eslint globals ([17087e4](https://github.com/Agoric/agoric-sdk/commit/17087e4605db7d3b30dfccf2434b2850b45e3408))
## [0.14.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/eventual-send@0.13.30...@agoric/eventual-send@0.14.0) (2021-12-02)

@@ -8,0 +22,0 @@

18

package.json
{
"name": "@agoric/eventual-send",
"version": "0.14.1-dev-fea822e.0+fea822e",
"version": "0.14.1",
"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-fea822e.0+fea822e",
"@agoric/lockdown": "0.1.2-dev-fea822e.0+fea822e",
"@endo/ses-ava": "^0.2.8",
"@endo/lockdown": "^0.1.7",
"@endo/ses-ava": "^0.2.19",
"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": "fea822ec75c27c8758b872730424c0a3f1a1c623"
"gitHead": "8eef3e3bce863e3c57f92c4189991f04f09e158d"
}
// @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 @@ },

@@ -282,5 +282,4 @@ // @ts-check

// local handled Promise.
[pendingHandler, continueForwarding] = makePostponedHandler(
HandledPromise,
);
[pendingHandler, continueForwarding] =
makePostponedHandler(HandledPromise);
}

@@ -430,3 +429,3 @@

// Resolving a Presence returns the pre-registered handled promise.
let resolvedPromise = presenceToPromise.get(value);
let resolvedPromise = presenceToPromise.get(/** @type {any} */ (value));
if (!resolvedPromise) {

@@ -567,3 +566,5 @@ resolvedPromise = Promise.resolve(value);

const unknownBaseHandledPromise = baseHandledPromise;
HandledPromise = /** @type {typeof HandledPromise} */ (unknownBaseHandledPromise);
HandledPromise = /** @type {typeof HandledPromise} */ (
unknownBaseHandledPromise
);

@@ -570,0 +571,0 @@ // We cannot harden(HandledPromise) because we're a vetted shim which

@@ -14,7 +14,5 @@ /* eslint-disable no-shadow,no-unused-vars,no-use-before-define,no-var,vars-on-top */

: T extends Record<string | number | symbol, Function>
? ERef<
{
[K in keyof T]: EOnly<T[K]>;
}
>
? ERef<{
[K in keyof T]: EOnly<T[K]>;
}>
: ERef<T>;

@@ -21,0 +19,0 @@

@@ -1,2 +0,1 @@

/* global HandledPromise */
import makeE from './E.js';

@@ -3,0 +2,0 @@

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