@agoric/promise-kit
Advanced tools
Comparing version 0.2.30-dev-53ae1a2.0 to 0.2.30-dev-58103ac.0
{ | ||
"name": "@agoric/promise-kit", | ||
"version": "0.2.30-dev-53ae1a2.0+53ae1a2", | ||
"version": "0.2.30-dev-58103ac.0+58103ac", | ||
"description": "Helper for making promises", | ||
@@ -14,5 +14,4 @@ "type": "module", | ||
"test:xs": "exit 0", | ||
"lint-fix": "yarn lint:eslint --fix && yarn lint:types", | ||
"lint-check": "yarn lint", | ||
"lint": "yarn lint:types && yarn lint:eslint", | ||
"lint-fix": "yarn lint:eslint --fix", | ||
"lint": "run-s --continue-on-error lint:*", | ||
"lint:eslint": "eslint '**/*.js'", | ||
@@ -34,5 +33,2 @@ "lint:types": "tsc -p jsconfig.json" | ||
"homepage": "https://github.com/Agoric/agoric-sdk#readme", | ||
"dependencies": { | ||
"@agoric/eventual-send": "0.14.1-dev-53ae1a2.0+53ae1a2" | ||
}, | ||
"devDependencies": { | ||
@@ -53,6 +49,2 @@ "ava": "^3.12.1" | ||
], | ||
"prettier": { | ||
"trailingComma": "all", | ||
"singleQuote": true | ||
}, | ||
"publishConfig": { | ||
@@ -67,3 +59,3 @@ "access": "public" | ||
}, | ||
"gitHead": "53ae1a20905cf5ecfe6f274aacd1a433f190ff3e" | ||
"gitHead": "58103ac216f4ce28cbbe73494af2ea11b5a110c0" | ||
} |
/* 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,5 +11,5 @@ | ||
* @template T | ||
* @typedef {Object} PromiseRecord A reified Promise | ||
* @typedef {Object} PromiseKit A reified Promise | ||
* @property {(value: ERef<T>) => void} resolve | ||
* @property {(reason: any) => void} reject | ||
* @property {(reason?: any) => void} reject | ||
* @property {Promise<T>} promise | ||
@@ -20,3 +19,10 @@ */ | ||
/** | ||
* 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
15740