@agoric/internal 0.3.3-dev-f1638f9.0 → 0.3.3-dev-87eb568.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/internal",
|
|
3
|
-
"version": "0.3.3-dev-
|
|
3
|
+
"version": "0.3.3-dev-87eb568.0+87eb568",
|
|
4
4
|
"description": "Externally unsupported utilities internal to agoric-sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint:types": "tsc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/assert": "0.6.1-dev-
|
|
24
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
23
|
+
"@agoric/assert": "0.6.1-dev-87eb568.0+87eb568",
|
|
24
|
+
"@agoric/base-zone": "0.1.1-dev-87eb568.0+87eb568",
|
|
25
25
|
"@endo/common": "^1.2.0",
|
|
26
26
|
"@endo/far": "^1.1.0",
|
|
27
27
|
"@endo/init": "^1.1.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@endo/promise-kit": "^1.1.0",
|
|
31
31
|
"@endo/stream": "^1.2.0",
|
|
32
32
|
"anylogger": "^0.21.0",
|
|
33
|
-
"jessie.js": "^0.3.
|
|
33
|
+
"jessie.js": "^0.3.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@endo/init": "^1.1.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"typeCoverage": {
|
|
54
54
|
"atLeast": 93.01
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "87eb5684440adfffc7828c3169ba0aeaffb9a809"
|
|
57
57
|
}
|
package/src/callback.d.ts
CHANGED
|
@@ -12,18 +12,18 @@ export function prepareAttenuator<M extends PropertyKey>(zone: import('@agoric/b
|
|
|
12
12
|
target?: any;
|
|
13
13
|
isSync?: boolean | undefined;
|
|
14
14
|
overrides?: { [K_1 in M]?: import("./types.js").Callback<any> | null | undefined; } | undefined;
|
|
15
|
-
}) => import("@endo/exo
|
|
15
|
+
}) => import("@endo/exo").Guarded<{ [K_2 in M]: (this: any, ...args: unknown[]) => any; }>;
|
|
16
16
|
export function prepareGuardedAttenuator<G extends import("@endo/patterns").InterfaceGuard<Record<PropertyKey, import("@endo/patterns").MethodGuard>>>(zone: import('@agoric/base-zone').Zone, interfaceGuard: G, opts?: {
|
|
17
17
|
tag?: string | undefined;
|
|
18
18
|
} | undefined): MakeAttenuator<any>;
|
|
19
|
-
export type MakeAttenuator<T extends import("@endo/exo/
|
|
19
|
+
export type MakeAttenuator<T extends import("@endo/exo/tools.js").Methods> = (...args: Parameters<ReturnType<(<M extends PropertyKey>(zone: import("@agoric/base-zone").Zone, methodNames: M[], { interfaceGuard, tag }?: {
|
|
20
20
|
interfaceGuard?: import("@endo/patterns").InterfaceGuard<{ [K in M]: import("@endo/patterns").MethodGuard; }> | undefined;
|
|
21
21
|
tag?: string | undefined;
|
|
22
22
|
}) => (args_0: {
|
|
23
23
|
target?: any;
|
|
24
24
|
isSync?: boolean | undefined;
|
|
25
25
|
overrides?: { [K_1 in M]?: import("./types.js").Callback<any> | null | undefined; } | undefined;
|
|
26
|
-
}) => import("@endo/exo
|
|
26
|
+
}) => import("@endo/exo").Guarded<{ [K_2 in M]: (this: any, ...args: unknown[]) => any; }>)>>) => import('@endo/exo').Farable<T>;
|
|
27
27
|
export type Callback<I extends (...args: unknown[]) => any> = import('./types.js').Callback<I>;
|
|
28
28
|
export type SyncCallback<I extends (...args: unknown[]) => any> = import('./types.js').SyncCallback<I>;
|
|
29
29
|
import type { ERef } from '@endo/far';
|
package/src/callback.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["call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AC,CAAC,CAAC;0BAxBvB,WAAW"}
|
package/src/callback.js
CHANGED
|
@@ -16,8 +16,8 @@ const ownKeys =
|
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @template {import('@endo/exo
|
|
20
|
-
* @typedef {(...args: Parameters<ReturnType<prepareAttenuator>>) => import('@endo/exo
|
|
19
|
+
* @template {import('@endo/exo').Methods} T
|
|
20
|
+
* @typedef {(...args: Parameters<ReturnType<prepareAttenuator>>) => import('@endo/exo').Farable<T>} MakeAttenuator
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export function makeChainStorageRoot(handleStorageMessage: (message: StorageMessage) => any, rootPath: string, rootOptions?: {
|
|
14
14
|
sequence?: boolean | undefined;
|
|
15
|
-
} | undefined): import("@endo/exo
|
|
15
|
+
} | undefined): import("@endo/exo").Guarded<{
|
|
16
16
|
getPath(): string;
|
|
17
17
|
/**
|
|
18
18
|
* @deprecated use getPath
|
|
@@ -42,7 +42,7 @@ export function assertCapData(data: unknown): asserts data is import("@endo/mars
|
|
|
42
42
|
export const assertPathSegment: (name: string) => void;
|
|
43
43
|
export function prepareChainStorageNode(zone: import('@agoric/base-zone').Zone): (messenger: import("./types.js").Callback<(message: StorageMessage) => any>, path: string, args_2?: {
|
|
44
44
|
sequence?: boolean | undefined;
|
|
45
|
-
} | undefined) => import("@endo/exo
|
|
45
|
+
} | undefined) => import("@endo/exo").Guarded<{
|
|
46
46
|
getPath(): string;
|
|
47
47
|
/**
|
|
48
48
|
* @deprecated use getPath
|
|
@@ -57,10 +57,10 @@ export function prepareChainStorageNode(zone: import('@agoric/base-zone').Zone):
|
|
|
57
57
|
setValue(value: string): Promise<void>;
|
|
58
58
|
}>;
|
|
59
59
|
export function makeSerializeToStorage(storageNode: ERef<StorageNode>, marshaller: ERef<{
|
|
60
|
-
toCapData: import("
|
|
61
|
-
fromCapData: import("
|
|
62
|
-
serialize: import("
|
|
63
|
-
unserialize: import("
|
|
60
|
+
toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<unknown>;
|
|
61
|
+
fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<unknown>;
|
|
62
|
+
serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<unknown>;
|
|
63
|
+
unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<unknown>;
|
|
64
64
|
}>): (value: unknown) => Promise<void>;
|
|
65
65
|
export type Marshaller = ReturnType<typeof import('@endo/marshal').makeMarshal>;
|
|
66
66
|
export type Unserializer = Pick<Marshaller, 'fromCapData'>;
|
|
@@ -4,16 +4,16 @@ export function slotToRemotable(_slotId: string, iface?: string): import("@endo/
|
|
|
4
4
|
* only serialize plain data, not Remotables.
|
|
5
5
|
*/
|
|
6
6
|
export const defaultMarshaller: {
|
|
7
|
-
toCapData: import("
|
|
8
|
-
fromCapData: import("
|
|
9
|
-
serialize: import("
|
|
10
|
-
unserialize: import("
|
|
7
|
+
toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
|
|
8
|
+
fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
|
|
9
|
+
serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
|
|
10
|
+
unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
|
|
11
11
|
};
|
|
12
12
|
export const slotStringUnserialize: (capData: any) => any;
|
|
13
13
|
export function makeFakeStorageKit(rootPath: string, rootOptions?: [handleStorageMessage: (message: import("./lib-chainStorage.js").StorageMessage) => any, rootPath: string, rootOptions?: {
|
|
14
14
|
sequence?: boolean | undefined;
|
|
15
15
|
} | undefined][2]): {
|
|
16
|
-
rootNode: import("@endo/exo
|
|
16
|
+
rootNode: import("@endo/exo").Guarded<{
|
|
17
17
|
getPath(): string;
|
|
18
18
|
getStoreKey(): Promise<import("./lib-chainStorage.js").VStorageKey>;
|
|
19
19
|
makeChildNode(name: string, childNodeOptions?: {
|