Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@endo/eventual-send

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endo/eventual-send - npm Package Compare versions

Comparing version 0.17.6 to 1.0.0

utils.d.ts

23

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc