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

@endo/marshal

Package Overview
Dependencies
Maintainers
5
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endo/marshal - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

src/types.test-d.d.ts

20

package.json
{
"name": "@endo/marshal",
"version": "1.0.1",
"version": "1.1.0",
"description": "marshal: encoding and deconding of Passable subgraphs",

@@ -43,11 +43,11 @@ "type": "module",

"dependencies": {
"@endo/eventual-send": "^1.0.1",
"@endo/nat": "^5.0.1",
"@endo/pass-style": "^1.0.1",
"@endo/promise-kit": "^1.0.1"
"@endo/eventual-send": "^1.1.0",
"@endo/nat": "^5.0.2",
"@endo/pass-style": "^1.1.0",
"@endo/promise-kit": "^1.0.2"
},
"devDependencies": {
"@endo/init": "^1.0.1",
"@endo/lockdown": "^1.0.1",
"@endo/ses-ava": "^1.0.1",
"@endo/init": "^1.0.2",
"@endo/lockdown": "^1.0.2",
"@endo/ses-ava": "^1.1.0",
"@fast-check/ava": "^1.1.5",

@@ -81,5 +81,5 @@ "ava": "^5.3.0",

"typeCoverage": {
"atLeast": 89.31
"atLeast": 85.3
},
"gitHead": "c02aec92c3caa417d6bdf3c4f555f0b2694d9f9e"
"gitHead": "373f9eebab66c94ed42350473c90fb25e6054f0a"
}

@@ -349,7 +349,2 @@ /// <reference types="ses"/>

case 'bigint': {
// Using @ts-ignore rather than @ts-expect-error below because
// with @ts-expect-error I get a red underline in vscode, but
// without it I get errors from `yarn lint`.
// @ts-ignore inadequate type inference
// See https://github.com/endojs/endo/pull/1259#discussion_r954561901
const { digits } = jsonEncoded;

@@ -365,15 +360,5 @@ typeof digits === 'string' ||

//
// Using @ts-ignore rather than @ts-expect-error below because
// with @ts-expect-error I get a red underline in vscode, but
// without it I get errors from `yarn lint`.
// @ts-ignore inadequate type inference
// See https://github.com/endojs/endo/pull/1259#discussion_r954561901
return Symbol.asyncIterator;
}
case 'symbol': {
// Using @ts-ignore rather than @ts-expect-error below because
// with @ts-expect-error I get a red underline in vscode, but
// without it I get errors from `yarn lint`.
// @ts-ignore inadequate type inference
// See https://github.com/endojs/endo/pull/1259#discussion_r954561901
const { name } = jsonEncoded;

@@ -383,7 +368,2 @@ return passableSymbolForName(name);

case 'tagged': {
// Using @ts-ignore rather than @ts-expect-error below because
// with @ts-expect-error I get a red underline in vscode, but
// without it I get errors from `yarn lint`.
// @ts-ignore inadequate type inference
// See https://github.com/endojs/endo/pull/1259#discussion_r954561901
const { tag, payload } = jsonEncoded;

@@ -417,7 +397,2 @@ return makeTagged(tag, decodeFromCapData(payload));

case 'hilbert': {
// Using @ts-ignore rather than @ts-expect-error below because
// with @ts-expect-error I get a red underline in vscode, but
// without it I get errors from `yarn lint`.
// @ts-ignore inadequate type inference
// See https://github.com/endojs/endo/pull/1259#discussion_r954561901
const { original, rest } = jsonEncoded;

@@ -424,0 +399,0 @@ hasOwnPropertyOf(jsonEncoded, 'original') ||

@@ -1,3 +0,3 @@

export type ConvertValToSlot<Slot> = (val: import('@endo/pass-style').PassableCap) => Slot;
export type ConvertSlotToVal<Slot> = (slot: Slot, iface?: string | undefined) => import('@endo/pass-style').PassableCap;
export type ConvertValToSlot<Slot> = (val: import("@endo/pass-style").PassableCap) => Slot;
export type ConvertSlotToVal<Slot> = (slot: Slot, iface?: string | undefined) => import("@endo/pass-style").PassableCap;
export type EncodingClass<T> = {

@@ -25,3 +25,3 @@ '@qclass': T;

index: number;
iface?: import('@endo/pass-style').InterfaceSpec;
iface?: string;
}) | (EncodingClass<'hilbert'> & {

@@ -57,4 +57,4 @@ original: Encoding;

};
export type ToCapData<Slot> = (val: import('@endo/pass-style').Passable) => CapData<Slot>;
export type FromCapData<Slot> = (data: CapData<Slot>) => import('@endo/pass-style').Passable;
export type ToCapData<Slot> = (val: any) => CapData<Slot>;
export type FromCapData<Slot> = (data: CapData<Slot>) => any;
export type Marshal<Slot> = {

@@ -150,3 +150,3 @@ /**

*/
export type RankCompare = (left: import('@endo/pass-style').Passable, right: import('@endo/pass-style').Passable) => RankComparison;
export type RankCompare = (left: any, right: any) => RankComparison;
/**

@@ -153,0 +153,0 @@ * A `FullCompare` function satisfies all the invariants stated below for

@@ -7,3 +7,3 @@ // @ts-check

* @callback ConvertValToSlot
* @param {import('@endo/pass-style').PassableCap} val
* @param {import("@endo/pass-style").PassableCap} val
* @returns {Slot}

@@ -16,4 +16,4 @@ */

* @param {Slot} slot
* @param {import('@endo/pass-style').InterfaceSpec} [iface]
* @returns {import('@endo/pass-style').PassableCap}
* @param {string} [iface]
* @returns {import("@endo/pass-style").PassableCap}
*/

@@ -39,3 +39,3 @@

* EncodingClass<'slot'> & { index: number,
* iface?: import('@endo/pass-style').InterfaceSpec
* iface?: string
* } |

@@ -90,3 +90,3 @@ * EncodingClass<'hilbert'> & { original: Encoding,

* @callback ToCapData
* @param {import('@endo/pass-style').Passable} val
* @param {any} val a Passable
* @returns {CapData<Slot>}

@@ -99,3 +99,3 @@ */

* @param {CapData<Slot>} data
* @returns {import('@endo/pass-style').Passable}
* @returns {any} a Passable
*/

@@ -180,4 +180,4 @@

* queries by magnitude.
* @param {import('@endo/pass-style').Passable} left
* @param {import('@endo/pass-style').Passable} right
* @param {any} left a Passable
* @param {any} right a Passable
* @returns {RankComparison}

@@ -184,0 +184,0 @@ */

Sorry, the diff of this file is not supported yet

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