@agoric/promise-kit
Advanced tools
Comparing version 0.2.30-dev-230d998.0 to 0.2.30-dev-3c4b2fb.0
{ | ||
"name": "@agoric/promise-kit", | ||
"version": "0.2.30-dev-230d998.0+230d998", | ||
"version": "0.2.30-dev-3c4b2fb.0+3c4b2fb", | ||
"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-230d998.0+230d998" | ||
}, | ||
"devDependencies": { | ||
@@ -65,3 +62,3 @@ "ava": "^3.12.1" | ||
}, | ||
"gitHead": "230d998b7b1b633eac02d68c1e4a8ce8fd3d9dd5" | ||
"gitHead": "3c4b2fb7126f82211bacd0b4c5a1e0a7ea595ed9" | ||
} |
@@ -7,3 +7,3 @@ /* global globalThis */ | ||
/** @type {import('@agoric/eventual-send').HandledPromiseConstructor | PromiseConstructor} */ | ||
/** @type {PromiseConstructor} */ | ||
const BestPipelinablePromise = globalThis.HandledPromise || Promise; | ||
@@ -13,3 +13,3 @@ | ||
* @template T | ||
* @typedef {Object} PromiseRecord A reified Promise | ||
* @typedef {Object} PromiseKit A reified Promise | ||
* @property {(value: ERef<T>) => void} resolve | ||
@@ -21,3 +21,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 | ||
@@ -41,3 +48,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>} | ||
*/ | ||
@@ -44,0 +51,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
181
80
15908