@agoric/promise-kit
Advanced tools
Comparing version 0.2.30-dev-a3b499e.0 to 0.2.30-dev-a9895c4.0
{ | ||
"name": "@agoric/promise-kit", | ||
"version": "0.2.30-dev-a3b499e.0+a3b499e", | ||
"version": "0.2.30-dev-a9895c4.0+a9895c4", | ||
"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-a3b499e.0+a3b499e" | ||
}, | ||
"devDependencies": { | ||
@@ -65,3 +62,3 @@ "ava": "^3.12.1" | ||
}, | ||
"gitHead": "a3b499e21a5057da2937f893fb58d7e704cf275a" | ||
"gitHead": "a9895c41b57d5ab3543a213824e293ee304dbcaa" | ||
} |
@@ -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
80
15908