@agoric/promise-kit
Advanced tools
Comparing version 0.2.30-dev-e0f7ee8.0 to 0.2.30-dev-e280146.0
{ | ||
"name": "@agoric/promise-kit", | ||
"version": "0.2.30-dev-e0f7ee8.0+e0f7ee8", | ||
"version": "0.2.30-dev-e280146.0+e280146", | ||
"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-e0f7ee8.0+e0f7ee8" | ||
}, | ||
"devDependencies": { | ||
@@ -65,3 +62,3 @@ "ava": "^3.12.1" | ||
}, | ||
"gitHead": "e0f7ee8884648973c63bbcae587ea36e51f58a64" | ||
"gitHead": "e2801460d5e52abfa61a936c6c3ebcc1cdbac4d0" | ||
} |
@@ -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