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.30-dev-067ae75.0 to 0.2.30-dev-07f2552.0

11

package.json
{
"name": "@agoric/promise-kit",
"version": "0.2.30-dev-067ae75.0+067ae75",
"version": "0.2.30-dev-07f2552.0+07f2552",
"description": "Helper for making promises",

@@ -33,5 +33,2 @@ "type": "module",

"homepage": "https://github.com/Agoric/agoric-sdk#readme",
"dependencies": {
"@agoric/eventual-send": "0.14.1-dev-067ae75.0+067ae75"
},
"devDependencies": {

@@ -52,6 +49,2 @@ "ava": "^3.12.1"

],
"prettier": {
"trailingComma": "all",
"singleQuote": true
},
"publishConfig": {

@@ -66,3 +59,3 @@ "access": "public"

},
"gitHead": "067ae75327a2316b32b092dc2992f7a27dd14310"
"gitHead": "07f2552ec95c7db1ca25d127630b0ff7f2ad3dc6"
}

14

src/promiseKit.js
/* global globalThis */
// @ts-check
// eslint-disable-next-line spaced-comment
/// <reference types="ses"/>
/** @type {import('@agoric/eventual-send').HandledPromiseConstructor | PromiseConstructor} */
/** @type {PromiseConstructor} */
const BestPipelinablePromise = globalThis.HandledPromise || Promise;

@@ -12,3 +11,3 @@

* @template T
* @typedef {Object} PromiseRecord A reified Promise
* @typedef {Object} PromiseKit A reified Promise
* @property {(value: ERef<T>) => void} resolve

@@ -20,3 +19,10 @@ * @property {(reason: any) => void} reject

/**
* PromiseRecord is deprecated in favor of PromiseKit.
*
* @template T
* @typedef {PromiseKit<T>} PromiseRecord
*/
/**
* @template T
* @typedef {T | PromiseLike<T>} ERef

@@ -40,3 +46,3 @@ * A reference of some kind for to an object of type T. It may be a direct

* @template T
* @returns {PromiseRecord<T>}
* @returns {PromiseKit<T>}
*/

@@ -43,0 +49,0 @@ export function makePromiseKit() {

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