@endo/marshal
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -6,2 +6,11 @@ # Change Log | ||
### [0.6.4](https://github.com/endojs/endo/compare/@endo/marshal@0.6.3...@endo/marshal@0.6.4) (2022-04-12) | ||
### Features | ||
* **marshal:** stamp Remotable return with `RemotableBrand<L,R>` ([8b9b8fd](https://github.com/endojs/endo/commit/8b9b8fd9b1f40c22b1b9ddef46569db81dd7bff6)) | ||
### [0.6.3](https://github.com/endojs/endo/compare/@endo/marshal@0.6.2...@endo/marshal@0.6.3) (2022-03-07) | ||
@@ -8,0 +17,0 @@ |
{ | ||
"name": "@endo/marshal", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "marshal", | ||
@@ -40,9 +40,9 @@ "type": "module", | ||
"dependencies": { | ||
"@endo/eventual-send": "^0.14.8", | ||
"@endo/nat": "^4.1.8", | ||
"@endo/promise-kit": "^0.2.37" | ||
"@endo/eventual-send": "^0.15.0", | ||
"@endo/nat": "^4.1.9", | ||
"@endo/promise-kit": "^0.2.38" | ||
}, | ||
"devDependencies": { | ||
"@endo/lockdown": "^0.1.9", | ||
"@endo/ses-ava": "^0.2.21", | ||
"@endo/lockdown": "^0.1.10", | ||
"@endo/ses-ava": "^0.2.22", | ||
"ava": "^3.12.1", | ||
@@ -78,3 +78,3 @@ "c8": "^7.7.3" | ||
}, | ||
"gitHead": "9ddd58b4a26755cdba9403b0cb042b2067c69832" | ||
"gitHead": "59e511891ab67f4fa52d67141510974e22362134" | ||
} |
@@ -1,9 +0,6 @@ | ||
export function Remotable<T>(iface?: string | undefined, props?: undefined, remotable?: T | undefined): T & { | ||
__Remote__: T; | ||
}; | ||
export function Far<T>(farName: string, remotable?: T | undefined): T & { | ||
__Remote__: T; | ||
}; | ||
export function Remotable<T>(iface?: string | undefined, props?: undefined, remotable?: T | undefined): T & import("@endo/eventual-send").RemotableBrand<{}, T>; | ||
export function Far<T>(farName: string, remotable?: T | undefined): T & import("@endo/eventual-send").RemotableBrand<{}, T>; | ||
export function ToFarFunction(farName: string, func: (...args: any[]) => any): (...args: any[]) => any; | ||
export type InterfaceSpec = import('./types.js').InterfaceSpec; | ||
export type RemotableBrand<L, R> = import('@endo/eventual-send').RemotableBrand<L, R>; | ||
//# sourceMappingURL=make-far.d.ts.map |
@@ -13,2 +13,3 @@ // @ts-check | ||
/** @typedef {import('./types.js').InterfaceSpec} InterfaceSpec */ | ||
/** @template L,R @typedef {import('@endo/eventual-send').RemotableBrand<L, R>} RemotableBrand */ | ||
@@ -88,3 +89,3 @@ const { quote: q, details: X } = assert; | ||
* @param {T} [remotable={}] The object used as the remotable | ||
* @returns {T & { __Remote__: T }} remotable, modified for debuggability | ||
* @returns {T & RemotableBrand<{}, T>} remotable, modified for debuggability | ||
*/ | ||
@@ -134,3 +135,3 @@ export const Remotable = ( | ||
assert(iface !== undefined); // To make TypeScript happy | ||
return /** @type {T & { __Remote__: T }} */ (remotable); | ||
return /** @type {T & RemotableBrand<{}, T>} */ (remotable); | ||
}; | ||
@@ -137,0 +138,0 @@ harden(Remotable); |
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
166276
3225
+ Added@endo/eventual-send@0.15.5(transitive)
- Removed@endo/eventual-send@0.14.8(transitive)
Updated@endo/eventual-send@^0.15.0
Updated@endo/nat@^4.1.9
Updated@endo/promise-kit@^0.2.38