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

@agoric/promise-kit

Package Overview
Dependencies
Maintainers
5
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/promise-kit - npm Package Compare versions

Comparing version 0.2.20 to 0.2.21

9

CHANGELOG.md

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

### [0.2.21](https://github.com/Agoric/agoric-sdk/compare/@agoric/promise-kit@0.2.20...@agoric/promise-kit@0.2.21) (2021-07-28)
### Bug Fixes
* **promise-kit:** make strict typing compliant ([#3397](https://github.com/Agoric/agoric-sdk/issues/3397)) ([69e2692](https://github.com/Agoric/agoric-sdk/commit/69e2692188a386b49dbe1a662ac8cde286e7fe7e))
### [0.2.20](https://github.com/Agoric/agoric-sdk/compare/@agoric/promise-kit@0.2.19...@agoric/promise-kit@0.2.20) (2021-07-01)

@@ -8,0 +17,0 @@

16

package.json
{
"name": "@agoric/promise-kit",
"version": "0.2.20",
"version": "0.2.21",
"description": "Helper for making promises",
"parsers": {
"js": "mjs"
},
"type": "module",
"main": "src/promiseKit.js",

@@ -36,7 +34,6 @@ "engines": {

"dependencies": {
"@agoric/eventual-send": "^0.13.22"
"@agoric/eventual-send": "^0.13.23"
},
"devDependencies": {
"ava": "^3.12.1",
"esm": "agoric-labs/esm#Agoric-built"
"ava": "^3.12.1"
},

@@ -66,8 +63,5 @@ "files": [

],
"require": [
"esm"
],
"timeout": "2m"
},
"gitHead": "6410fbc01abf1f0d0fa3d6a1275fe8f117b98b0a"
"gitHead": "835ce6579a257107f363e29a234643679844cc0e"
}

@@ -7,2 +7,3 @@ /* global globalThis */

/** @type {import('@agoric/eventual-send').HandledPromiseConstructor | PromiseConstructor} */
const BestPipelinablePromise = globalThis.HandledPromise || Promise;

@@ -30,3 +31,3 @@

*/
const NOOP_INITIALIZER = harden(_ => {});
const NOOP_INITIALIZER = harden(() => {});

@@ -42,3 +43,3 @@ /**

export function makePromiseKit() {
/** @type {(value: T) => void} */
/** @type {(value: ERef<T>) => void} */
let res = NOOP_INITIALIZER;

@@ -48,2 +49,3 @@ /** @type {(reason: any) => void} */

/** @type {Promise<any> & {domain?: unknown}} */
const p = new BestPipelinablePromise((resolve, reject) => {

@@ -56,3 +58,3 @@ res = resolve;

// we remove it.
if (p.domain) {
if ('domain' in p) {
// deleting p.domain may break functionality. To retain current

@@ -59,0 +61,0 @@ // functionality at the expense of safety, set unsafe to true.

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