@endo/eventual-send
Advanced tools
Comparing version 0.17.6 to 1.0.0
{ | ||
"name": "@endo/eventual-send", | ||
"version": "0.17.6", | ||
"version": "1.0.0", | ||
"description": "Extend a Promise class to implement the eventual-send API", | ||
@@ -13,4 +13,4 @@ "type": "module", | ||
"clean": "git clean -f '*.d.ts*'", | ||
"prepack": "tsc --build tsconfig.build.json", | ||
"postpack": "yarn clean", | ||
"build:types": "tsc --build tsconfig.build.json", | ||
"clean:types": "git clean -f '*.d.ts*'", | ||
"lint-fix": "yarn lint:eslint --fix && yarn lint:types", | ||
@@ -22,2 +22,8 @@ "lint-check": "yarn lint", | ||
}, | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": "./src/no-shim.js", | ||
"./shim.js": "./shim.js", | ||
"./utils.js": "./utils.js" | ||
}, | ||
"repository": { | ||
@@ -34,7 +40,7 @@ "type": "git", | ||
"dependencies": { | ||
"@endo/env-options": "^0.1.4" | ||
"@endo/env-options": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@endo/lockdown": "^0.1.32", | ||
"@endo/ses-ava": "^0.2.44", | ||
"@endo/lockdown": "^1.0.0", | ||
"@endo/ses-ava": "^1.0.0", | ||
"ava": "^5.3.0", | ||
@@ -69,3 +75,6 @@ "c8": "^7.14.0", | ||
}, | ||
"gitHead": "9c779d317c4b02133172dbe142c5b2d1727efc49" | ||
"typeCoverage": { | ||
"atLeast": 77.79 | ||
}, | ||
"gitHead": "6aa22009bf8128575c446aebceb0f9a01459d165" | ||
} |
export default makeE; | ||
export type EProxy = ReturnType<(HandledPromise: { | ||
new <R>(executor: import("./handled-promise.js").HandledExecutor<R>, unfulfilledHandler?: import("./handled-promise.js").Handler<Promise<unknown>> | undefined): Promise<R>; | ||
prototype: Promise<unknown>; | ||
prototype: Promise<unknown>; /** | ||
* E.sendOnly returns a proxy similar to E, but for which the results | ||
* are ignored (undefined is returned). | ||
* | ||
* @template T | ||
* @param {T} x target for method/function call | ||
* @returns {ESendOnlyCallableOrMethods<RemoteFunctions<T>>} method/function call proxy | ||
* @readonly | ||
*/ | ||
} & PromiseConstructor & import("./handled-promise.js").HandledPromiseStaticMethods) => (<T>(x: T) => ECallableOrMethods<RemoteFunctions<T>>) & { | ||
@@ -6,0 +14,0 @@ /** |
@@ -34,3 +34,3 @@ import { trackTurns } from './track-turns.js'; | ||
* | ||
* @param {*} x Any value passed to E(x) | ||
* @param {any} x Any value passed to E(x) | ||
* @param {import('./types').HandledPromiseConstructor} HandledPromise | ||
@@ -78,3 +78,3 @@ * @returns {ProxyHandler} the Proxy handler | ||
* | ||
* @param {*} x Any value passed to E.sendOnly(x) | ||
* @param {any} x Any value passed to E.sendOnly(x) | ||
* @param {import('./types').HandledPromiseConstructor} HandledPromise | ||
@@ -120,3 +120,3 @@ * @returns {ProxyHandler} the Proxy handler | ||
* | ||
* @param {*} x Any value passed to E.get(x) | ||
* @param {any} x Any value passed to E.get(x) | ||
* @param {import('./types').HandledPromiseConstructor} HandledPromise | ||
@@ -123,0 +123,0 @@ * @returns {ProxyHandler} the Proxy handler |
@@ -76,4 +76,4 @@ /// <reference types="ses" /> | ||
* | ||
* @param {*} target Any value. | ||
* @returns {*} If the target was a HandledPromise, the most-resolved parent | ||
* @param {any} target Any value. | ||
* @returns {any} If the target was a HandledPromise, the most-resolved parent | ||
* of it, otherwise the target. | ||
@@ -80,0 +80,0 @@ */ |
Sorry, the diff of this file is not supported yet
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
78321
32
1508
0
+ Added@endo/env-options@1.1.8(transitive)
- Removed@endo/env-options@0.1.4(transitive)
Updated@endo/env-options@^1.0.0