@interop/wallet-core 0.110.0 → 0.111.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/dist/descriptors/index.d.ts +3 -4
- package/dist/descriptors/index.d.ts.map +1 -1
- package/dist/descriptors/index.js +3 -4
- package/dist/descriptors/index.js.map +1 -1
- package/dist/descriptors/logSource.d.ts +32 -16
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +36 -16
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/keys/collectionLogStore.d.ts +2 -2
- package/dist/keys/collectionLogStore.d.ts.map +1 -1
- package/dist/keys/collectionLogStore.js +2 -3
- package/dist/keys/collectionLogStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* refusing a head that is not a `WasEpochConfiguration`. Reads run under the
|
|
17
17
|
* collection-descriptor log class, so a ladder-signed append admits on
|
|
18
18
|
* `assertionMethod` membership alone. It keys each collection's chain-head
|
|
19
|
-
* pin by `collectionDescriptorLogPinId` over the Space
|
|
20
|
-
* slot
|
|
21
|
-
*
|
|
22
|
-
* publishes: the bare-controller read under it
|
|
19
|
+
* pin by `collectionDescriptorLogPinId` over the Space URL, the library-named
|
|
20
|
+
* slot, so no app builds one. It is the one governed-descriptor reader this
|
|
21
|
+
* subpath publishes: the bare-controller read under it
|
|
23
22
|
* (`readGovernedEpochConfiguration`, was-client's) states no log class and
|
|
24
23
|
* would read a collection log under the roster's license, so it stays
|
|
25
24
|
* module-internal.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/descriptors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/descriptors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAA"}
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* refusing a head that is not a `WasEpochConfiguration`. Reads run under the
|
|
17
17
|
* collection-descriptor log class, so a ladder-signed append admits on
|
|
18
18
|
* `assertionMethod` membership alone. It keys each collection's chain-head
|
|
19
|
-
* pin by `collectionDescriptorLogPinId` over the Space
|
|
20
|
-
* slot
|
|
21
|
-
*
|
|
22
|
-
* publishes: the bare-controller read under it
|
|
19
|
+
* pin by `collectionDescriptorLogPinId` over the Space URL, the library-named
|
|
20
|
+
* slot, so no app builds one. It is the one governed-descriptor reader this
|
|
21
|
+
* subpath publishes: the bare-controller read under it
|
|
23
22
|
* (`readGovernedEpochConfiguration`, was-client's) states no log class and
|
|
24
23
|
* would read a collection log under the roster's license, so it stays
|
|
25
24
|
* module-internal.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/descriptors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAA"}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*/
|
|
29
29
|
import { EPOCH_CONFIGURATION_STATE_TYPE, readGovernedEpochConfiguration } from '@interop/was-client/edv/core';
|
|
30
30
|
import type { EncryptionDescriptorSource } from '@interop/was-client/edv';
|
|
31
|
-
import {
|
|
31
|
+
import type { ResourceLogPinStore, ResourceLogStore } from '@interop/vh-resource-log';
|
|
32
32
|
import { type WebvhResourceLogController } from '../resourceLog/index.js';
|
|
33
33
|
/**
|
|
34
34
|
* The governed read boundary and the state-document schema identifier live in
|
|
@@ -39,26 +39,35 @@ import { type WebvhResourceLogController } from '../resourceLog/index.js';
|
|
|
39
39
|
export { EPOCH_CONFIGURATION_STATE_TYPE, readGovernedEpochConfiguration };
|
|
40
40
|
/**
|
|
41
41
|
* The pin-slot key for a collection's governing descriptor log: the slot a
|
|
42
|
-
* keyed `ResourceLogPinStore` holds that log's chain-head pin under
|
|
43
|
-
*
|
|
44
|
-
* names
|
|
45
|
-
* (`userKeyRosterPinId`) slots, so no
|
|
42
|
+
* keyed `ResourceLogPinStore` holds that log's chain-head pin under. The slot
|
|
43
|
+
* is the log's own URL, `{spaceUrl}{collectionId}/meta/log` (was-client's
|
|
44
|
+
* `collectionLogUrl`). The library names it, as it names the account log's
|
|
45
|
+
* (`accountLogPinId`) and the roster's (`userKeyRosterPinId`) slots, so no
|
|
46
|
+
* app builds one of its own.
|
|
46
47
|
*
|
|
47
48
|
* The slot follows the log's placement: the log is the collection's own
|
|
48
49
|
* `meta/log` sub-resource, inside the URL subtree of the collection it
|
|
49
50
|
* governs, so the read capability a share grantee or a connected app already
|
|
50
|
-
* holds covers it.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* holds covers it. It is keyed on the URL rather than on a Space id because
|
|
52
|
+
* the reader receives a Space URL and does not parse an id off it, and a
|
|
53
|
+
* fixed Space may carry no id. The account and roster slots stay id-keyed,
|
|
54
|
+
* since their readers hold the DID, which encodes the Space id. The one
|
|
55
|
+
* consequence of the split is that a collection log served from a new host
|
|
56
|
+
* lands in a new slot and is trusted afresh there, where the account log on
|
|
57
|
+
* the same client is still checked against its held pin.
|
|
58
|
+
*
|
|
59
|
+
* The URL is canonicalized by the helper, so every serialization of one
|
|
60
|
+
* Space names the same slot.
|
|
54
61
|
*
|
|
55
62
|
* @param options {object}
|
|
56
|
-
* @param options.
|
|
63
|
+
* @param options.spaceUrl {string} the data Space's URL
|
|
57
64
|
* @param options.collectionId {string} the governed collection
|
|
58
65
|
* @returns {string}
|
|
66
|
+
* @throws {ValidationError} when `spaceUrl` is not a Space URL, or the
|
|
67
|
+
* collection id is a reserved segment at an origin root
|
|
59
68
|
*/
|
|
60
|
-
export declare function collectionDescriptorLogPinId({
|
|
61
|
-
|
|
69
|
+
export declare function collectionDescriptorLogPinId({ spaceUrl, collectionId }: {
|
|
70
|
+
spaceUrl: string;
|
|
62
71
|
collectionId: string;
|
|
63
72
|
}): string;
|
|
64
73
|
/**
|
|
@@ -96,14 +105,21 @@ export declare function collectionDescriptorLogPinId({ spaceId, collectionId }:
|
|
|
96
105
|
* this log class
|
|
97
106
|
* @param options.pinStore {ResourceLogPinStore} this client's chain-head
|
|
98
107
|
* pins, keyed per log; each collection's slot is
|
|
99
|
-
* {@link collectionDescriptorLogPinId} over `
|
|
100
|
-
* @param options.
|
|
108
|
+
* {@link collectionDescriptorLogPinId} over `spaceUrl`
|
|
109
|
+
* @param options.spaceUrl {string} the URL of the data Space the
|
|
110
|
+
* collections belong to, as received (a grant's chain root, a stored
|
|
111
|
+
* pointer); no id is read off it
|
|
101
112
|
* @returns {EncryptionDescriptorSource}
|
|
113
|
+
* @throws {ValidationError} when `spaceUrl` is not a Space URL (not an
|
|
114
|
+
* absolute `http(s)` URL, or carrying a query, a fragment, or an empty
|
|
115
|
+
* path segment); refused here, at build time, since a refusal raised
|
|
116
|
+
* inside a read would be taken for a transport failure by was-client's
|
|
117
|
+
* `acquireDescriptor` and answered from the cache
|
|
102
118
|
*/
|
|
103
|
-
export declare function logGovernedDescriptorSource({ logFor, resolveController, pinStore,
|
|
119
|
+
export declare function logGovernedDescriptorSource({ logFor, resolveController, pinStore, spaceUrl }: {
|
|
104
120
|
logFor: (collectionId: string) => ResourceLogStore;
|
|
105
121
|
resolveController: () => Promise<WebvhResourceLogController>;
|
|
106
122
|
pinStore: ResourceLogPinStore;
|
|
107
|
-
|
|
123
|
+
spaceUrl: string;
|
|
108
124
|
}): EncryptionDescriptorSource;
|
|
109
125
|
//# sourceMappingURL=logSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSource.d.ts","sourceRoot":"","sources":["../../src/descriptors/logSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"logSource.d.ts","sourceRoot":"","sources":["../../src/descriptors/logSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAA;AAEhC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,YAAY,EACb,EAAE;IACD,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;CACrB,GAAG,MAAM,CAET;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACT,EAAE;IACD,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAClD,iBAAiB,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,CAAA;IAC5D,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,0BAA0B,CA4B7B"}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* wrote.
|
|
28
28
|
*/
|
|
29
29
|
import { EPOCH_CONFIGURATION_STATE_TYPE, readGovernedEpochConfiguration } from '@interop/was-client/edv/core';
|
|
30
|
-
import {
|
|
30
|
+
import { canonicalSpaceUrl, collectionLogUrl } from '@interop/was-client/paths';
|
|
31
31
|
import { controllerForLogClass } from '../resourceLog/index.js';
|
|
32
32
|
/**
|
|
33
33
|
* The governed read boundary and the state-document schema identifier live in
|
|
@@ -38,26 +38,35 @@ import { controllerForLogClass } from '../resourceLog/index.js';
|
|
|
38
38
|
export { EPOCH_CONFIGURATION_STATE_TYPE, readGovernedEpochConfiguration };
|
|
39
39
|
/**
|
|
40
40
|
* The pin-slot key for a collection's governing descriptor log: the slot a
|
|
41
|
-
* keyed `ResourceLogPinStore` holds that log's chain-head pin under
|
|
42
|
-
*
|
|
43
|
-
* names
|
|
44
|
-
* (`userKeyRosterPinId`) slots, so no
|
|
41
|
+
* keyed `ResourceLogPinStore` holds that log's chain-head pin under. The slot
|
|
42
|
+
* is the log's own URL, `{spaceUrl}{collectionId}/meta/log` (was-client's
|
|
43
|
+
* `collectionLogUrl`). The library names it, as it names the account log's
|
|
44
|
+
* (`accountLogPinId`) and the roster's (`userKeyRosterPinId`) slots, so no
|
|
45
|
+
* app builds one of its own.
|
|
45
46
|
*
|
|
46
47
|
* The slot follows the log's placement: the log is the collection's own
|
|
47
48
|
* `meta/log` sub-resource, inside the URL subtree of the collection it
|
|
48
49
|
* governs, so the read capability a share grantee or a connected app already
|
|
49
|
-
* holds covers it.
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
50
|
+
* holds covers it. It is keyed on the URL rather than on a Space id because
|
|
51
|
+
* the reader receives a Space URL and does not parse an id off it, and a
|
|
52
|
+
* fixed Space may carry no id. The account and roster slots stay id-keyed,
|
|
53
|
+
* since their readers hold the DID, which encodes the Space id. The one
|
|
54
|
+
* consequence of the split is that a collection log served from a new host
|
|
55
|
+
* lands in a new slot and is trusted afresh there, where the account log on
|
|
56
|
+
* the same client is still checked against its held pin.
|
|
57
|
+
*
|
|
58
|
+
* The URL is canonicalized by the helper, so every serialization of one
|
|
59
|
+
* Space names the same slot.
|
|
53
60
|
*
|
|
54
61
|
* @param options {object}
|
|
55
|
-
* @param options.
|
|
62
|
+
* @param options.spaceUrl {string} the data Space's URL
|
|
56
63
|
* @param options.collectionId {string} the governed collection
|
|
57
64
|
* @returns {string}
|
|
65
|
+
* @throws {ValidationError} when `spaceUrl` is not a Space URL, or the
|
|
66
|
+
* collection id is a reserved segment at an origin root
|
|
58
67
|
*/
|
|
59
|
-
export function collectionDescriptorLogPinId({
|
|
60
|
-
return
|
|
68
|
+
export function collectionDescriptorLogPinId({ spaceUrl, collectionId }) {
|
|
69
|
+
return collectionLogUrl({ spaceUrl, collectionId });
|
|
61
70
|
}
|
|
62
71
|
/**
|
|
63
72
|
* Builds the {@link EncryptionDescriptorSource} over per-collection resource
|
|
@@ -94,11 +103,22 @@ export function collectionDescriptorLogPinId({ spaceId, collectionId }) {
|
|
|
94
103
|
* this log class
|
|
95
104
|
* @param options.pinStore {ResourceLogPinStore} this client's chain-head
|
|
96
105
|
* pins, keyed per log; each collection's slot is
|
|
97
|
-
* {@link collectionDescriptorLogPinId} over `
|
|
98
|
-
* @param options.
|
|
106
|
+
* {@link collectionDescriptorLogPinId} over `spaceUrl`
|
|
107
|
+
* @param options.spaceUrl {string} the URL of the data Space the
|
|
108
|
+
* collections belong to, as received (a grant's chain root, a stored
|
|
109
|
+
* pointer); no id is read off it
|
|
99
110
|
* @returns {EncryptionDescriptorSource}
|
|
111
|
+
* @throws {ValidationError} when `spaceUrl` is not a Space URL (not an
|
|
112
|
+
* absolute `http(s)` URL, or carrying a query, a fragment, or an empty
|
|
113
|
+
* path segment); refused here, at build time, since a refusal raised
|
|
114
|
+
* inside a read would be taken for a transport failure by was-client's
|
|
115
|
+
* `acquireDescriptor` and answered from the cache
|
|
100
116
|
*/
|
|
101
|
-
export function logGovernedDescriptorSource({ logFor, resolveController, pinStore,
|
|
117
|
+
export function logGovernedDescriptorSource({ logFor, resolveController, pinStore, spaceUrl }) {
|
|
118
|
+
// Validation only: refuse a malformed Space URL here, at build time, rather
|
|
119
|
+
// than inside a read. The slot builder canonicalizes on its own, so the two
|
|
120
|
+
// call sites agree without this call.
|
|
121
|
+
canonicalSpaceUrl(spaceUrl);
|
|
102
122
|
return {
|
|
103
123
|
// Every read below resolves the governing log's verified head, which is
|
|
104
124
|
// the governed descriptor by construction. The head carries no `history`
|
|
@@ -113,7 +133,7 @@ export function logGovernedDescriptorSource({ logFor, resolveController, pinStor
|
|
|
113
133
|
logClass: 'collection-descriptor'
|
|
114
134
|
}),
|
|
115
135
|
pinStore,
|
|
116
|
-
logId: collectionDescriptorLogPinId({
|
|
136
|
+
logId: collectionDescriptorLogPinId({ spaceUrl, collectionId })
|
|
117
137
|
});
|
|
118
138
|
if (current === null) {
|
|
119
139
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSource.js","sourceRoot":"","sources":["../../src/descriptors/logSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,
|
|
1
|
+
{"version":3,"file":"logSource.js","sourceRoot":"","sources":["../../src/descriptors/logSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAK/E,OAAO,EACL,qBAAqB,EAEtB,MAAM,yBAAyB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|
* the handle passed in is the whole address: the store derives its own
|
|
17
|
-
* chain-head pin slot from the handle's Space and collection
|
|
17
|
+
* chain-head pin slot from the handle's Space URL and collection id
|
|
18
18
|
* ({@link collectionDescriptorLogPinId}), and no caller names a `logId`.
|
|
19
19
|
*
|
|
20
20
|
* Over it sit the two lookup builders every consumer of the
|
|
@@ -59,7 +59,7 @@ import { type SealableEncryptionDescriptorStore } from './rosterLogStore.js';
|
|
|
59
59
|
*
|
|
60
60
|
* @param options {object}
|
|
61
61
|
* @param options.collection {Collection} the collection handle whose
|
|
62
|
-
* `meta/log` is the log; its `
|
|
62
|
+
* `meta/log` is the log; its `spaceUrl` and `id` are what the pin slot is
|
|
63
63
|
* derived from, and its capability wiring is what every request rides
|
|
64
64
|
* @param options.resolveController {function}
|
|
65
65
|
* `() => Promise<WebvhResourceLogController>` -- the caller's currently
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionLogStore.d.ts","sourceRoot":"","sources":["../../src/keys/collectionLogStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"collectionLogStore.d.ts","sourceRoot":"","sources":["../../src/keys/collectionLogStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,kBAAkB,EAExB,MAA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AAE,UAAU,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,MAAM,EAAE,iBAAiB,CAAA;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;CACxC,GAAG,kBAAkB,CAmBrB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WasClient } from '@interop/was-client';
|
|
2
2
|
import { resourceLogStore } from '@interop/was-client/log';
|
|
3
|
-
import { spaceIdOfUrl } from '@interop/was-client/paths';
|
|
4
3
|
import { collectionDescriptorLogPinId } from '../descriptors/logSource.js';
|
|
5
4
|
import { accountControllerResolver } from '../webvh/verifyLog.js';
|
|
6
5
|
import { logGovernedDescriptorStore } from './rosterLogStore.js';
|
|
@@ -32,7 +31,7 @@ import { logGovernedDescriptorStore } from './rosterLogStore.js';
|
|
|
32
31
|
*
|
|
33
32
|
* @param options {object}
|
|
34
33
|
* @param options.collection {Collection} the collection handle whose
|
|
35
|
-
* `meta/log` is the log; its `
|
|
34
|
+
* `meta/log` is the log; its `spaceUrl` and `id` are what the pin slot is
|
|
36
35
|
* derived from, and its capability wiring is what every request rides
|
|
37
36
|
* @param options.resolveController {function}
|
|
38
37
|
* `() => Promise<WebvhResourceLogController>` -- the caller's currently
|
|
@@ -53,7 +52,7 @@ export function collectionDescriptorLogStore({ collection, resolveController, pi
|
|
|
53
52
|
resolveController,
|
|
54
53
|
pinStore,
|
|
55
54
|
logId: collectionDescriptorLogPinId({
|
|
56
|
-
|
|
55
|
+
spaceUrl: collection.spaceUrl,
|
|
57
56
|
collectionId: collection.id
|
|
58
57
|
}),
|
|
59
58
|
signer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionLogStore.js","sourceRoot":"","sources":["../../src/keys/collectionLogStore.ts"],"names":[],"mapp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;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,UAAU,uBAAuB,CAAC,EACtC,aAAa,EACb,UAAU,EACV,OAAO,EACP,GAAG,EACH,QAAQ,EACR,MAAM,EACN,GAAG,EACH,UAAU,EACV,kBAAkB,EAWnB;IACC,IAAI,KAAwB,CAAA;IAC5B,OAAO,0BAA0B,CAAC;QAChC,aAAa,EAAE,YAAY,CAAC,EAAE;YAC5B,KAAK,KAAK,IAAI,SAAS,CAAC;gBACtB,aAAa;gBACb,UAAU;gBACV,kBAAkB;aACnB,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,CAAC,CAAA;YACjC,OAAO,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;QACvC,CAAC;QACD,iBAAiB,EAAE,yBAAyB,CAAC;YAC3C,GAAG;YACH,QAAQ;YACR,GAAG;SACJ,CAAC;QACF,QAAQ;QACR,MAAM;KACP,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/wallet-core",
|
|
3
3
|
"description": "Shared wallet-domain logic (WAS sync engine core and wallet Space layout contracts) for Interop wallet apps.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.111.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm run clear && tsc",
|