@interop/was-react 0.11.0 → 0.11.1
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/README.md +17 -17
- package/dist/auth/loginFlow.d.ts +2 -2
- package/dist/auth/loginRequest.d.ts +15 -12
- package/dist/auth/loginRequest.d.ts.map +1 -1
- package/dist/auth/loginRequest.js +12 -10
- package/dist/auth/loginRequest.js.map +1 -1
- package/dist/auth/walletRequestTypes.d.ts +3 -2
- package/dist/auth/walletRequestTypes.d.ts.map +1 -1
- package/dist/storage/sharedCollectionReader.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -125,14 +125,14 @@ without them a concurrent multi-device edit falls back to server-wins.
|
|
|
125
125
|
|
|
126
126
|
At login, a public collection is requested from the wallet with the distinct
|
|
127
127
|
`https://w3id.org/byoe#public-collection` descriptor type (private collections
|
|
128
|
-
use `https://w3id.org/byoe#collection`): the wallet provisions it
|
|
129
|
-
a public-read policy, shows a world-readable consent warning, and
|
|
130
|
-
usual read/write capability (public covers only unauthenticated
|
|
131
|
-
stay capability-only). A wallet that predates the descriptor
|
|
132
|
-
unsatisfiable rather than silently provisioning a private
|
|
133
|
-
feature fails closed with older wallets. Publicness is
|
|
134
|
-
by the wallet -- the app itself can never escalate an
|
|
135
|
-
collection to public.
|
|
128
|
+
use `https://w3id.org/byoe#private-collection`): the wallet provisions it
|
|
129
|
+
plaintext with a public-read policy, shows a world-readable consent warning, and
|
|
130
|
+
delegates the usual read/write capability (public covers only unauthenticated
|
|
131
|
+
reads; writes stay capability-only). A wallet that predates the descriptor
|
|
132
|
+
reports the request unsatisfiable rather than silently provisioning a private
|
|
133
|
+
collection, so the feature fails closed with older wallets. Publicness is
|
|
134
|
+
granted at consent time by the wallet -- the app itself can never escalate an
|
|
135
|
+
existing private collection to public.
|
|
136
136
|
|
|
137
137
|
#### Shared (wallet-owned) collections
|
|
138
138
|
|
|
@@ -173,13 +173,13 @@ the same `key` or `id` in each is rejected at store open
|
|
|
173
173
|
(`validateSharedCollections`).
|
|
174
174
|
|
|
175
175
|
At login each shared collection is requested with the distinct
|
|
176
|
-
`https://w3id.org/byoe#shared-collection` descriptor type and the
|
|
177
|
-
action set `SHARED_ACTIONS` (`GET`/`HEAD`) -- an app never asks to
|
|
178
|
-
wallet collection. As with `https://w3id.org/byoe#public-collection`, a
|
|
179
|
-
that predates the type reports the request unsatisfiable and the feature
|
|
180
|
-
closed, which is the point: a share fuses two axes -- the read zcap AND an
|
|
181
|
-
in the collection's key-epoch roster -- and a wallet that granted only the
|
|
182
|
-
would hand the app ciphertext it cannot decrypt, surfacing as corrupt data
|
|
176
|
+
`https://w3id.org/byoe#shared-wallet-collection` descriptor type and the
|
|
177
|
+
read-only action set `SHARED_ACTIONS` (`GET`/`HEAD`) -- an app never asks to
|
|
178
|
+
write a wallet collection. As with `https://w3id.org/byoe#public-collection`, a
|
|
179
|
+
wallet that predates the type reports the request unsatisfiable and the feature
|
|
180
|
+
fails closed, which is the point: a share fuses two axes -- the read zcap AND an
|
|
181
|
+
entry in the collection's key-epoch roster -- and a wallet that granted only the
|
|
182
|
+
zcap would hand the app ciphertext it cannot decrypt, surfacing as corrupt data
|
|
183
183
|
rather than as a wallet that needs updating.
|
|
184
184
|
|
|
185
185
|
Decryption uses the app's **identity** key-agreement key: the X25519 twin of its
|
|
@@ -395,8 +395,8 @@ a progress line (`connecting` to `verifying`):
|
|
|
395
395
|
2. **One popup.** A VPR carrying a `DIDAuthentication` query plus one
|
|
396
396
|
`AppConnectQuery` -- the app's display name, `credentialType`, and
|
|
397
397
|
`vocabBase`, a `capabilityQuery` entry per configured collection, and a
|
|
398
|
-
`https://w3id.org/byoe#shared-collection` entry per shared collection
|
|
399
|
-
sent via `navigator.credentials.get` (`buildAppConnectVpr`). A `null`
|
|
398
|
+
`https://w3id.org/byoe#shared-wallet-collection` entry per shared collection
|
|
399
|
+
-- is sent via `navigator.credentials.get` (`buildAppConnectVpr`). A `null`
|
|
400
400
|
response is a user cancel (`LoginCancelledError`), not an error.
|
|
401
401
|
3. **The wallet matches or mints.** On a first run the wallet generates the
|
|
402
402
|
32-byte seed itself, self-issues the origin-bound app-key credential, and
|
package/dist/auth/loginFlow.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export interface LoginConfig {
|
|
|
50
50
|
collections: GrantRequestCollection[];
|
|
51
51
|
/**
|
|
52
52
|
* WAS collection ids of wallet-owned collections to request read-and-decrypt
|
|
53
|
-
* access to (the `https://w3id.org/byoe#shared-collection` grant).
|
|
54
|
-
* replicated.
|
|
53
|
+
* access to (the `https://w3id.org/byoe#shared-wallet-collection` grant).
|
|
54
|
+
* Read-only; never replicated.
|
|
55
55
|
*/
|
|
56
56
|
sharedCollections?: string[];
|
|
57
57
|
/**
|
|
@@ -32,8 +32,9 @@
|
|
|
32
32
|
* fails closed rather than degrading into a partial generic flow.
|
|
33
33
|
*
|
|
34
34
|
* A SHARED collection -- one the wallet already owns and encrypts, which the app
|
|
35
|
-
* asks to read and decrypt -- uses the
|
|
36
|
-
* type, and the
|
|
35
|
+
* asks to read and decrypt -- uses the
|
|
36
|
+
* `https://w3id.org/byoe#shared-wallet-collection` descriptor type, and the
|
|
37
|
+
* actions are read-only by construction ({@link SHARED_ACTIONS}):
|
|
37
38
|
* the app never requests writes on a wallet collection. Exactly like
|
|
38
39
|
* `https://w3id.org/byoe#public-collection`, a wallet that predates the type resolves the
|
|
39
40
|
* descriptor UNSATISFIABLE and fails closed -- which is the point here. A share
|
|
@@ -50,8 +51,8 @@ import type { SeedCredentialConfig } from '../identity/seedCredential.js';
|
|
|
50
51
|
import type { IVPRDetails } from './walletRequestTypes.js';
|
|
51
52
|
/**
|
|
52
53
|
* Default read/write actions requested on each private app collection -- also
|
|
53
|
-
* the `https://w3id.org/byoe#collection` class ceiling (the full WAS
|
|
54
|
-
* vocabulary).
|
|
54
|
+
* the `https://w3id.org/byoe#private-collection` class ceiling (the full WAS
|
|
55
|
+
* action vocabulary).
|
|
55
56
|
*/
|
|
56
57
|
export declare const RW_ACTIONS: string[];
|
|
57
58
|
/**
|
|
@@ -73,8 +74,9 @@ export declare const SHARED_ACTIONS: string[];
|
|
|
73
74
|
* The action ceiling of the descriptor class a collection is requested with
|
|
74
75
|
* (the App Connect spec's "Action ceilings" table): add-only for
|
|
75
76
|
* `visibility: 'public'` (`https://w3id.org/byoe#public-collection`), the full
|
|
76
|
-
* vocabulary otherwise (`https://w3id.org/byoe#collection`). Shares
|
|
77
|
-
* own fixed {@link SHARED_ACTIONS} and never consult a configured
|
|
77
|
+
* vocabulary otherwise (`https://w3id.org/byoe#private-collection`). Shares
|
|
78
|
+
* have their own fixed {@link SHARED_ACTIONS} and never consult a configured
|
|
79
|
+
* action set.
|
|
78
80
|
*
|
|
79
81
|
* @param [visibility] {'private' | 'public'}
|
|
80
82
|
* @returns {string[]}
|
|
@@ -91,8 +93,8 @@ export interface GrantRequestCollection {
|
|
|
91
93
|
id: string;
|
|
92
94
|
/**
|
|
93
95
|
* Who can read the collection; selects the descriptor type
|
|
94
|
-
* (`https://w3id.org/byoe#collection` for `'private'`/unset,
|
|
95
|
-
* for `'public'`).
|
|
96
|
+
* (`https://w3id.org/byoe#private-collection` for `'private'`/unset,
|
|
97
|
+
* `https://w3id.org/byoe#public-collection` for `'public'`).
|
|
96
98
|
*/
|
|
97
99
|
visibility?: 'private' | 'public';
|
|
98
100
|
}
|
|
@@ -110,8 +112,8 @@ export declare function newChallenge(): string;
|
|
|
110
112
|
* shape MINUS `controller` (the wallet fills it with the app-key subject DID)
|
|
111
113
|
* and MINUS `reason` (the App Connect consent screen supersedes per-grant
|
|
112
114
|
* reasons). A `visibility: 'public'` collection uses the
|
|
113
|
-
* `https://w3id.org/byoe#public-collection` descriptor type; everything else
|
|
114
|
-
* `https://w3id.org/byoe#collection`.
|
|
115
|
+
* `https://w3id.org/byoe#public-collection` descriptor type; everything else
|
|
116
|
+
* uses `https://w3id.org/byoe#private-collection`.
|
|
115
117
|
*
|
|
116
118
|
* @param options {object}
|
|
117
119
|
* @param options.challenge {string}
|
|
@@ -123,8 +125,9 @@ export declare function newChallenge(): string;
|
|
|
123
125
|
* @param options.collections {GrantRequestCollection[]} the collections to
|
|
124
126
|
* request (WAS collection id + visibility)
|
|
125
127
|
* @param [options.sharedCollections] {string[]} WAS collection ids of
|
|
126
|
-
* wallet-owned collections to request read-and-decrypt access to; each gets
|
|
127
|
-
* `https://w3id.org/byoe#shared-collection` descriptor with
|
|
128
|
+
* wallet-owned collections to request read-and-decrypt access to; each gets
|
|
129
|
+
* a `https://w3id.org/byoe#shared-wallet-collection` descriptor with
|
|
130
|
+
* {@link SHARED_ACTIONS}
|
|
128
131
|
* @param [options.actions] {string[]} the action set to request on each app
|
|
129
132
|
* collection; when omitted each collection requests exactly its class
|
|
130
133
|
* ceiling ({@link actionCeiling}). An explicit set naming an action above a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loginRequest.d.ts","sourceRoot":"","sources":["../../src/auth/loginRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"loginRequest.d.ts","sourceRoot":"","sources":["../../src/auth/loginRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,KAAK,EAEV,WAAW,EACZ,MAAM,yBAAyB,CAAA;AAEhC;;;;GAIG;AACH,eAAO,MAAM,UAAU,UAA2C,CAAA;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,UAA0B,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAkB,CAAA;AAE7C;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,EAAE,CAEzE;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;CAClC;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AA+CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,MAAM,EACN,OAAO,EACP,UAAU,EACV,WAAW,EACX,iBAAsB,EACtB,OAAO,EACR,EAAE;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,oBAAoB,CAAA;IAChC,WAAW,EAAE,sBAAsB,EAAE,CAAA;IACrC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB,GAAG,WAAW,CA2Cd"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Default read/write actions requested on each private app collection -- also
|
|
3
|
-
* the `https://w3id.org/byoe#collection` class ceiling (the full WAS
|
|
4
|
-
* vocabulary).
|
|
3
|
+
* the `https://w3id.org/byoe#private-collection` class ceiling (the full WAS
|
|
4
|
+
* action vocabulary).
|
|
5
5
|
*/
|
|
6
6
|
export const RW_ACTIONS = ['GET', 'HEAD', 'PUT', 'POST', 'DELETE'];
|
|
7
7
|
/**
|
|
@@ -23,8 +23,9 @@ export const SHARED_ACTIONS = ['GET', 'HEAD'];
|
|
|
23
23
|
* The action ceiling of the descriptor class a collection is requested with
|
|
24
24
|
* (the App Connect spec's "Action ceilings" table): add-only for
|
|
25
25
|
* `visibility: 'public'` (`https://w3id.org/byoe#public-collection`), the full
|
|
26
|
-
* vocabulary otherwise (`https://w3id.org/byoe#collection`). Shares
|
|
27
|
-
* own fixed {@link SHARED_ACTIONS} and never consult a configured
|
|
26
|
+
* vocabulary otherwise (`https://w3id.org/byoe#private-collection`). Shares
|
|
27
|
+
* have their own fixed {@link SHARED_ACTIONS} and never consult a configured
|
|
28
|
+
* action set.
|
|
28
29
|
*
|
|
29
30
|
* @param [visibility] {'private' | 'public'}
|
|
30
31
|
* @returns {string[]}
|
|
@@ -82,8 +83,8 @@ function requestedActions({ id, visibility, actions }) {
|
|
|
82
83
|
* shape MINUS `controller` (the wallet fills it with the app-key subject DID)
|
|
83
84
|
* and MINUS `reason` (the App Connect consent screen supersedes per-grant
|
|
84
85
|
* reasons). A `visibility: 'public'` collection uses the
|
|
85
|
-
* `https://w3id.org/byoe#public-collection` descriptor type; everything else
|
|
86
|
-
* `https://w3id.org/byoe#collection`.
|
|
86
|
+
* `https://w3id.org/byoe#public-collection` descriptor type; everything else
|
|
87
|
+
* uses `https://w3id.org/byoe#private-collection`.
|
|
87
88
|
*
|
|
88
89
|
* @param options {object}
|
|
89
90
|
* @param options.challenge {string}
|
|
@@ -95,8 +96,9 @@ function requestedActions({ id, visibility, actions }) {
|
|
|
95
96
|
* @param options.collections {GrantRequestCollection[]} the collections to
|
|
96
97
|
* request (WAS collection id + visibility)
|
|
97
98
|
* @param [options.sharedCollections] {string[]} WAS collection ids of
|
|
98
|
-
* wallet-owned collections to request read-and-decrypt access to; each gets
|
|
99
|
-
* `https://w3id.org/byoe#shared-collection` descriptor with
|
|
99
|
+
* wallet-owned collections to request read-and-decrypt access to; each gets
|
|
100
|
+
* a `https://w3id.org/byoe#shared-wallet-collection` descriptor with
|
|
101
|
+
* {@link SHARED_ACTIONS}
|
|
100
102
|
* @param [options.actions] {string[]} the action set to request on each app
|
|
101
103
|
* collection; when omitted each collection requests exactly its class
|
|
102
104
|
* ceiling ({@link actionCeiling}). An explicit set naming an action above a
|
|
@@ -111,7 +113,7 @@ export function buildAppConnectVpr({ challenge, domain, appName, credential, col
|
|
|
111
113
|
invocationTarget: {
|
|
112
114
|
type: visibility === 'public'
|
|
113
115
|
? 'https://w3id.org/byoe#public-collection'
|
|
114
|
-
: 'https://w3id.org/byoe#collection',
|
|
116
|
+
: 'https://w3id.org/byoe#private-collection',
|
|
115
117
|
name: id
|
|
116
118
|
}
|
|
117
119
|
}));
|
|
@@ -120,7 +122,7 @@ export function buildAppConnectVpr({ challenge, domain, appName, credential, col
|
|
|
120
122
|
referenceId: id,
|
|
121
123
|
allowedAction: SHARED_ACTIONS,
|
|
122
124
|
invocationTarget: {
|
|
123
|
-
type: 'https://w3id.org/byoe#shared-collection',
|
|
125
|
+
type: 'https://w3id.org/byoe#shared-wallet-collection',
|
|
124
126
|
name: id
|
|
125
127
|
}
|
|
126
128
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loginRequest.js","sourceRoot":"","sources":["../../src/auth/loginRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loginRequest.js","sourceRoot":"","sources":["../../src/auth/loginRequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -45,8 +45,9 @@ export type IDIDAuthenticationQuery = {
|
|
|
45
45
|
* (`controller`) wants on which storage target (`invocationTarget`), with an
|
|
46
46
|
* optional human-readable `reason` and RP-chosen `referenceId`. The
|
|
47
47
|
* `invocationTarget` is either a plain URL (satisfied only under the user's own
|
|
48
|
-
* Space) or a wallet-defined descriptor object
|
|
49
|
-
*
|
|
48
|
+
* Space) or a wallet-defined descriptor object
|
|
49
|
+
* (`https://w3id.org/byoe#private-collection`), resolved by
|
|
50
|
+
* `resolveInvocationTarget`. Login requests only ever ask for
|
|
50
51
|
* collection-scoped capabilities.
|
|
51
52
|
*/
|
|
52
53
|
export type ICapabilityQueryDetail = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletRequestTypes.d.ts","sourceRoot":"","sources":["../../src/auth/walletRequestTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,EACN,MAAM,8BAA8B,CAAA;AAErC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AAElE;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,mBAAmB,CAAA;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC3C,oBAAoB,CAAC,EAAE,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACtD,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"walletRequestTypes.d.ts","sourceRoot":"","sources":["../../src/auth/walletRequestTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,EACN,MAAM,8BAA8B,CAAA;AAErC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,uBAAuB,GAAG,gBAAgB,CAAA;AAElE;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,mBAAmB,CAAA;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC3C,oBAAoB,CAAC,EAAE,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACtD,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3D,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,sBAAsB,EACtB,YAAY,GAAG,QAAQ,CACxB,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,iBAAiB,CAAA;IACvB,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAA;QACZ,cAAc,EAAE,MAAM,CAAA;QACtB,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,eAAe,EAAE,0BAA0B,GAAG,0BAA0B,EAAE,CAAA;CAC3E,CAAA;AAED,YAAY,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* SharedCollectionReader: a READ-ONLY view over one wallet-owned encrypted
|
|
6
6
|
* collection the wallet has shared with this app (the
|
|
7
|
-
* `https://w3id.org/byoe#shared-collection` grant). It is the app-side
|
|
8
|
-
* wallet's share flow, and it is read-only BY CONSTRUCTION --
|
|
9
|
-
* verb on this class, the collection is never replicated
|
|
10
|
-
* sync bootstrap never PUTs a description onto it.
|
|
7
|
+
* `https://w3id.org/byoe#shared-wallet-collection` grant). It is the app-side
|
|
8
|
+
* other half of the wallet's share flow, and it is read-only BY CONSTRUCTION --
|
|
9
|
+
* there is no write verb on this class, the collection is never replicated
|
|
10
|
+
* into RxDB, and the sync bootstrap never PUTs a description onto it.
|
|
11
11
|
*
|
|
12
12
|
* A share fuses two axes, and both are needed here:
|
|
13
13
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/was-react",
|
|
3
3
|
"description": "React library for building 'Bring Your Own Everything' (BYOE) apps on Wallet Attached Storage: DID Auth login via CHAPI wallet, local-first encrypted storage, and background sync to a WAS server.",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm run clear && tsc",
|