@agoric/promise-kit
Advanced tools
Comparing version 0.2.30-dev-8a2cbe2.0 to 0.2.30-dev-8a6875f.0
{ | ||
"name": "@agoric/promise-kit", | ||
"version": "0.2.30-dev-8a2cbe2.0+8a2cbe2", | ||
"version": "0.2.30-dev-8a6875f.0+8a6875f", | ||
"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-8a2cbe2.0+8a2cbe2" | ||
}, | ||
"devDependencies": { | ||
@@ -65,3 +62,3 @@ "ava": "^3.12.1" | ||
}, | ||
"gitHead": "8a2cbe25f0bf6b64ff4a7c69604f22b483f4fc5e" | ||
"gitHead": "8a6875f40025c2e6f3d7184f687ce81a2c611e51" | ||
} |
/* 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() { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
0
79
15865