@haverstack/core 0.42.0 → 0.43.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/README.md +5 -7
- package/dist/access.d.ts +30 -32
- package/dist/access.d.ts.map +1 -1
- package/dist/access.js +40 -98
- package/dist/access.js.map +1 -1
- package/dist/adapter/combine.d.ts.map +1 -1
- package/dist/adapter/combine.js +11 -3
- package/dist/adapter/combine.js.map +1 -1
- package/dist/adapter/index.d.ts +6 -4
- package/dist/adapter/index.d.ts.map +1 -1
- package/dist/adapter/index.js +4 -3
- package/dist/adapter/index.js.map +1 -1
- package/dist/adapter/reach.d.ts +14 -0
- package/dist/adapter/reach.d.ts.map +1 -0
- package/dist/adapter/reach.js +31 -0
- package/dist/adapter/reach.js.map +1 -0
- package/dist/associations/identity.d.ts +18 -42
- package/dist/associations/identity.d.ts.map +1 -1
- package/dist/associations/identity.js +60 -84
- package/dist/associations/identity.js.map +1 -1
- package/dist/associations/validation.d.ts +1 -8
- package/dist/associations/validation.d.ts.map +1 -1
- package/dist/associations/validation.js +3 -30
- package/dist/associations/validation.js.map +1 -1
- package/dist/collection.d.ts +7 -11
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +24 -34
- package/dist/collection.js.map +1 -1
- package/dist/content-match.d.ts +2 -2
- package/dist/content-match.js +2 -2
- package/dist/errors.d.ts +23 -8
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +28 -9
- package/dist/errors.js.map +1 -1
- package/dist/grants.d.ts +3 -3
- package/dist/grants.d.ts.map +1 -1
- package/dist/grants.js +4 -21
- package/dist/grants.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lazy.d.ts +13 -0
- package/dist/lazy.d.ts.map +1 -0
- package/dist/lazy.js +27 -0
- package/dist/lazy.js.map +1 -0
- package/dist/merge.d.ts +1 -1
- package/dist/merge.js +1 -1
- package/dist/query-validation.d.ts +41 -28
- package/dist/query-validation.d.ts.map +1 -1
- package/dist/query-validation.js +85 -71
- package/dist/query-validation.js.map +1 -1
- package/dist/record-changes.d.ts +12 -36
- package/dist/record-changes.d.ts.map +1 -1
- package/dist/record-changes.js +9 -98
- package/dist/record-changes.js.map +1 -1
- package/dist/scoped-stack/authority-snapshot.d.ts +37 -0
- package/dist/scoped-stack/authority-snapshot.d.ts.map +1 -0
- package/dist/scoped-stack/authority-snapshot.js +49 -0
- package/dist/scoped-stack/authority-snapshot.js.map +1 -0
- package/dist/scoped-stack/authority.d.ts +51 -38
- package/dist/scoped-stack/authority.d.ts.map +1 -1
- package/dist/scoped-stack/authority.js +160 -136
- package/dist/scoped-stack/authority.js.map +1 -1
- package/dist/scoped-stack/family-policy.d.ts +59 -0
- package/dist/scoped-stack/family-policy.d.ts.map +1 -0
- package/dist/scoped-stack/family-policy.js +68 -0
- package/dist/scoped-stack/family-policy.js.map +1 -0
- package/dist/scoped-stack/scoped-stack.d.ts +66 -86
- package/dist/scoped-stack/scoped-stack.d.ts.map +1 -1
- package/dist/scoped-stack/scoped-stack.js +243 -324
- package/dist/scoped-stack/scoped-stack.js.map +1 -1
- package/dist/scoped-stack/subscription.d.ts +14 -33
- package/dist/scoped-stack/subscription.d.ts.map +1 -1
- package/dist/scoped-stack/subscription.js +16 -57
- package/dist/scoped-stack/subscription.js.map +1 -1
- package/dist/stack/arguments.d.ts +27 -0
- package/dist/stack/arguments.d.ts.map +1 -0
- package/dist/stack/arguments.js +53 -0
- package/dist/stack/arguments.js.map +1 -0
- package/dist/stack/attachments.d.ts +1 -1
- package/dist/stack/attachments.js +1 -1
- package/dist/stack/changes.d.ts +4 -10
- package/dist/stack/changes.d.ts.map +1 -1
- package/dist/stack/changes.js +8 -8
- package/dist/stack/changes.js.map +1 -1
- package/dist/stack/client.d.ts +34 -58
- package/dist/stack/client.d.ts.map +1 -1
- package/dist/stack/install-app.d.ts.map +1 -1
- package/dist/stack/install-app.js +7 -5
- package/dist/stack/install-app.js.map +1 -1
- package/dist/stack/integrity.js +2 -2
- package/dist/stack/integrity.js.map +1 -1
- package/dist/stack/limits.d.ts +1 -1
- package/dist/stack/limits.js +1 -1
- package/dist/stack/reads.d.ts +9 -5
- package/dist/stack/reads.d.ts.map +1 -1
- package/dist/stack/reads.js +24 -4
- package/dist/stack/reads.js.map +1 -1
- package/dist/stack/stack.d.ts +77 -71
- package/dist/stack/stack.d.ts.map +1 -1
- package/dist/stack/stack.js +229 -256
- package/dist/stack/stack.js.map +1 -1
- package/dist/stack/type-grants.d.ts.map +1 -1
- package/dist/stack/type-grants.js +4 -4
- package/dist/stack/type-grants.js.map +1 -1
- package/dist/stack/write-expectation.d.ts +13 -12
- package/dist/stack/write-expectation.d.ts.map +1 -1
- package/dist/stack/write-expectation.js.map +1 -1
- package/dist/stack/write-gate.d.ts +23 -0
- package/dist/stack/write-gate.d.ts.map +1 -0
- package/dist/stack/write-gate.js +17 -0
- package/dist/stack/write-gate.js.map +1 -0
- package/dist/testing.d.ts +25 -9
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +147 -123
- package/dist/testing.js.map +1 -1
- package/dist/types/adapter.d.ts +90 -31
- package/dist/types/adapter.d.ts.map +1 -1
- package/dist/types/associations.d.ts +1 -17
- package/dist/types/associations.d.ts.map +1 -1
- package/dist/types/associations.js +1 -8
- package/dist/types/associations.js.map +1 -1
- package/dist/types/capabilities.d.ts +8 -8
- package/dist/types/capabilities.d.ts.map +1 -1
- package/dist/types/events.d.ts +3 -8
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/query.d.ts +4 -4
- package/dist/types/system.d.ts +1 -1
- package/dist/validate.d.ts +2 -0
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +2 -1
- package/dist/validate.js.map +1 -1
- package/dist/wire/body.d.ts +32 -9
- package/dist/wire/body.d.ts.map +1 -1
- package/dist/wire/body.js +69 -8
- package/dist/wire/body.js.map +1 -1
- package/dist/wire/index.d.ts +4 -4
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +3 -3
- package/dist/wire/index.js.map +1 -1
- package/dist/wire/record.d.ts +1 -8
- package/dist/wire/record.d.ts.map +1 -1
- package/dist/wire/record.js +0 -48
- package/dist/wire/record.js.map +1 -1
- package/dist/wire/request.d.ts +18 -18
- package/dist/wire/request.d.ts.map +1 -1
- package/dist/wire/request.js +41 -36
- package/dist/wire/request.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,19 +20,20 @@
|
|
|
20
20
|
* refusals.
|
|
21
21
|
*
|
|
22
22
|
* Also holds the feed side of the same rule: a subscription's deliveries
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* ask the same read reach a get() does, so a feed can never disagree with
|
|
24
|
+
* a read about what a session sees.
|
|
25
25
|
*
|
|
26
26
|
* See docs/spec/access-control.md and docs/spec/events.md § Permission scoping.
|
|
27
27
|
*/
|
|
28
28
|
import { ChangeEmitter } from '../stack/changes.js';
|
|
29
|
-
import type { PutAttachmentOptions, AssociationEdit, AttachmentContent, AuthorityAssociation, DataAssociation, EntityId, FileId, QueryResult, RecordChange, RecordId, RecordVersion, RecordJournalEntry, JournalQuery, VersionsQuery, StackAdapter, StackCapabilities, IfVersionOptions, StackQuery, StackRecord, SubscribeOptions, TypeId, Unsubscribe
|
|
29
|
+
import type { PutAttachmentOptions, AssociationEdit, AttachmentContent, AuthorityAssociation, DataAssociation, EntityId, FileId, QueryResult, Reach, RecordChange, RecordId, RecordVersion, RecordJournalEntry, JournalQuery, VersionsQuery, StackAdapter, StackCapabilities, IfVersionOptions, StackQuery, StackRecord, SubscribeOptions, TypeId, Unsubscribe } from '../types/index.js';
|
|
30
|
+
import type { SplitQuery } from '../query-validation.js';
|
|
30
31
|
import type { ExpectationOptions } from '../stack/write-expectation.js';
|
|
31
32
|
import type { ContentOf, ReadonlyTypeSchema, TypeHandle } from '../type-handle.js';
|
|
32
33
|
import type { Collection } from '../collection.js';
|
|
33
34
|
import type { MigrationRegistry } from '../stack/migrations.js';
|
|
34
35
|
import type { Stack } from '../stack/stack.js';
|
|
35
|
-
import type { BackdatableCreateRecordOptions, CollectAttachmentGarbageOptions, CollectAttachmentGarbageResult,
|
|
36
|
+
import type { BackdatableCreateRecordOptions, CollectAttachmentGarbageOptions, CollectAttachmentGarbageResult, DeleteRecordOptions, DeleteResult, GetRecordOptions, StackClient } from '../stack/client.js';
|
|
36
37
|
/**
|
|
37
38
|
* Held by Stack alone: the index re-exports ScopedStack but not this, so
|
|
38
39
|
* asEntity()/asActor() stay the only way to one, and the actor
|
|
@@ -54,10 +55,10 @@ export type ScopedStackInit = {
|
|
|
54
55
|
/** The stack's own unfiltered stream, which subscribe() narrows. */
|
|
55
56
|
changes: ChangeEmitter;
|
|
56
57
|
assertOpen: () => void;
|
|
57
|
-
/** Whether changes reach the stack from elsewhere — see subscribe(). */
|
|
58
|
-
relaysChanges: boolean;
|
|
59
58
|
/** The app's migrations, which collection() migrates records through. */
|
|
60
59
|
migrations: MigrationRegistry;
|
|
60
|
+
/** Stack.query() within a reach over type families — see query(). */
|
|
61
|
+
queryReadable: (split: SplitQuery, reach: Reach) => Promise<QueryResult>;
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* A permission-enforcing view of a Stack for one (principal, subject) pair,
|
|
@@ -72,8 +73,8 @@ export declare class ScopedStack implements StackClient {
|
|
|
72
73
|
private readonly adapter;
|
|
73
74
|
private readonly changes;
|
|
74
75
|
private readonly assertStackOpen;
|
|
75
|
-
private readonly relaysChanges;
|
|
76
76
|
private readonly migrations;
|
|
77
|
+
private readonly queryReadable;
|
|
77
78
|
/** Not callable from outside the package — see ScopedStackInit. */
|
|
78
79
|
constructor(token: typeof scopeToken, init: ScopedStackInit);
|
|
79
80
|
collection<S extends ReadonlyTypeSchema>(handle: TypeHandle<S>): Collection<ContentOf<S>>;
|
|
@@ -89,7 +90,7 @@ export declare class ScopedStack implements StackClient {
|
|
|
89
90
|
get subjectId(): EntityId | null;
|
|
90
91
|
get capabilities(): StackCapabilities;
|
|
91
92
|
private get actor();
|
|
92
|
-
/** Refuse a create this request
|
|
93
|
+
/** Refuse a create outside this request's reach — see ScopeAuthority.canCreate(). */
|
|
93
94
|
private requireCreateGrant;
|
|
94
95
|
/** Refuse anything but the owner acting as itself — see ScopeAuthority.ownerActingAlone. */
|
|
95
96
|
private requireOwnerActingAlone;
|
|
@@ -108,6 +109,8 @@ export declare class ScopedStack implements StackClient {
|
|
|
108
109
|
* See docs/spec/access-control.md § Delegation: principal and subject.
|
|
109
110
|
*/
|
|
110
111
|
private requireVerb;
|
|
112
|
+
/** requireVerb()'s gate, asked of a record already found in its family. */
|
|
113
|
+
private gateVerb;
|
|
111
114
|
/**
|
|
112
115
|
* Fetch a record the subject can reach and the principal holds `delete` on
|
|
113
116
|
* (via permissions or a delete grant), or throw.
|
|
@@ -146,96 +149,88 @@ export declare class ScopedStack implements StackClient {
|
|
|
146
149
|
*/
|
|
147
150
|
get(id: RecordId, opts?: GetRecordOptions): Promise<StackRecord | null>;
|
|
148
151
|
/**
|
|
149
|
-
* Runs through this.query(), so
|
|
150
|
-
* question the caller asks on its own behalf. includeUnlisted
|
|
151
|
-
* only when the request is the owner acting alone, per
|
|
152
|
+
* Runs through this.query(), so the read reach still applies — this
|
|
153
|
+
* answers a question the caller asks on its own behalf. includeUnlisted
|
|
154
|
+
* is passed only when the request is the owner acting alone, per
|
|
152
155
|
* docs/spec/identity.md § DID bindings.
|
|
153
156
|
*/
|
|
154
157
|
getEntityByDid(did: EntityId): Promise<StackRecord | null>;
|
|
155
158
|
getOwnerEntity(): Promise<StackRecord | null>;
|
|
156
159
|
/**
|
|
157
|
-
* Query records,
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
160
|
+
* Query records, among those this request can read: the adapter matches
|
|
161
|
+
* the request's read reach as one more condition of the query, so a page,
|
|
162
|
+
* its cursor and whether one comes back are decided among readable
|
|
163
|
+
* Records alone. See docs/spec/disclosure.md § What a query reveals.
|
|
161
164
|
*/
|
|
162
165
|
query(query?: StackQuery): Promise<QueryResult>;
|
|
163
166
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* § Composing a change set.
|
|
167
|
+
* Patch content on behalf of the subject, on the write gate, plus the
|
|
168
|
+
* gates a content value can carry: a card's binding fields and the files
|
|
169
|
+
* a `file-ref` field names. See docs/spec/access-control.md § Per-verb gates.
|
|
168
170
|
*/
|
|
169
|
-
mutate(id: RecordId, changes: RecordChangeSet, opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
170
171
|
patchContent(id: RecordId, patch: Record<string, unknown | null>, opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
171
172
|
/**
|
|
172
|
-
* The
|
|
173
|
-
*
|
|
174
|
-
* delegation, or a Group's admin rule for a `_group`. The gate the
|
|
175
|
-
* `permissions` and `unlisted` keys carry, which the write bit
|
|
176
|
-
* deliberately does not confer.
|
|
173
|
+
* The write gate, plus read access to the destination: a container is a
|
|
174
|
+
* reference the requester has to be allowed to create.
|
|
177
175
|
*/
|
|
178
|
-
|
|
176
|
+
setParent(id: RecordId, parentId: RecordId | null, opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
179
177
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* — still counts. See docs/spec/access-control.md § Record-level permissions.
|
|
178
|
+
* Listing decides who can enumerate a record, so it carries the reshare
|
|
179
|
+
* gate rather than the write bit. See docs/spec/unlisted.md.
|
|
183
180
|
*/
|
|
184
|
-
|
|
185
|
-
/** The reshare decision alone, for a record already read and write-gated. */
|
|
186
|
-
private requireReshareOf;
|
|
181
|
+
setUnlisted(id: RecordId, unlisted: boolean, opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
187
182
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* See docs/spec/identity.md § DID bindings.
|
|
183
|
+
* The write gate, plus the reference gate on each add new to the record:
|
|
184
|
+
* a remove, or an add of an identity already held, names a reference the
|
|
185
|
+
* record carries, so it is gated by the write bit alone.
|
|
192
186
|
*/
|
|
193
|
-
|
|
187
|
+
editAssociations(id: RecordId, edits: AssociationEdit[], opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
188
|
+
/** editAssociations()'s gates, with every element new to the set an add. */
|
|
189
|
+
setAssociations(id: RecordId, associations: DataAssociation[], opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
194
190
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
191
|
+
* The write gate, then the reference gate over the elements a write adds,
|
|
192
|
+
* asked against the stored set so an association the record already
|
|
193
|
+
* carries is not re-gated. `Stack` asks it of each read it writes from,
|
|
194
|
+
* so a retried write is gated on the set it lands on.
|
|
199
195
|
*/
|
|
200
|
-
private
|
|
196
|
+
private gateAssociationWrite;
|
|
201
197
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* See docs/spec/
|
|
198
|
+
* Extend or withdraw who reaches a record, on the reshare gate. The write
|
|
199
|
+
* bit does not confer it, or a write-holder could decide who else reaches
|
|
200
|
+
* the record. See docs/spec/access-control.md § Record-level permissions.
|
|
205
201
|
*/
|
|
206
|
-
|
|
202
|
+
editAccess(id: RecordId, edits: AssociationEdit[], opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
203
|
+
/** See editAccess() — the same gate. */
|
|
204
|
+
setAccess(id: RecordId, permissions: AuthorityAssociation[], opts?: IfVersionOptions & ExpectationOptions): Promise<StackRecord>;
|
|
207
205
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
206
|
+
* The record, having established that this request may decide who else
|
|
207
|
+
* reaches it — the owner-or-creator rule, asked of both sides of a
|
|
208
|
+
* delegation, or a Group's admin rule for a `_group`. The gate the access
|
|
209
|
+
* and listing verbs carry, which the write bit deliberately does not confer.
|
|
211
210
|
*/
|
|
212
|
-
private
|
|
211
|
+
private requireReshareable;
|
|
212
|
+
/** requireReshareable()'s gate, asked of a record already found in its family. */
|
|
213
|
+
private gateReshare;
|
|
213
214
|
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* read so it cannot depend on who is asking.
|
|
215
|
+
* Refuse a write moving content its family reserves to the owner acting
|
|
216
|
+
* alone — an `_app` card's bindings, the owner's own DID on an `_entity`
|
|
217
|
+
* — whichever verb carries it. See docs/spec/identity.md § DID bindings.
|
|
218
218
|
*/
|
|
219
|
-
|
|
220
|
-
/** See associate() — the same write gate, the same kind refusal. */
|
|
221
|
-
dissociate(id: RecordId, associations: DataAssociation[], opts?: ExpectationOptions): Promise<StackRecord>;
|
|
219
|
+
private requireOwnerFields;
|
|
222
220
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
221
|
+
* A delegated write's `appId` must match the `_app` card the owner
|
|
222
|
+
* registered for the principal's DID, if there is one: a verified
|
|
223
|
+
* principal may not claim a name the owner gave other software.
|
|
224
|
+
* See docs/spec/identity.md § Attribution and what can be trusted.
|
|
226
225
|
*/
|
|
227
|
-
|
|
226
|
+
private requireAppIdMatchesPrincipal;
|
|
228
227
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
* See docs/spec/access-control.md §
|
|
228
|
+
* Refuse anyone but the owner acting alone a write to a family only the
|
|
229
|
+
* owner writes — `_grant` and `_install`, which are authority — with the
|
|
230
|
+
* refusal an unreadable Record answers with. Any other family passes.
|
|
231
|
+
* See docs/spec/access-control.md § What a grant covers.
|
|
233
232
|
*/
|
|
234
|
-
|
|
235
|
-
/** Withdraw elements of who reaches a record — see grantAccess(). */
|
|
236
|
-
revokeAccess(id: RecordId, permissions: AuthorityAssociation[], opts?: ExpectationOptions): Promise<StackRecord>;
|
|
237
|
-
/** The reshare gate over an edit list — see grantAccess(). */
|
|
238
|
-
amendAccess(id: RecordId, changes: AssociationEdit[], opts?: ExpectationOptions, surface?: string): Promise<StackRecord>;
|
|
233
|
+
private requireOwnerAloneWriter;
|
|
239
234
|
/**
|
|
240
235
|
* Purge is owner-only: it is irreversible and destroys version
|
|
241
236
|
* history, so neither the write bit nor delete-own/delete-any grants
|
|
@@ -243,14 +238,6 @@ export declare class ScopedStack implements StackClient {
|
|
|
243
238
|
* limited to soft delete.
|
|
244
239
|
*/
|
|
245
240
|
delete(id: RecordId, opts?: DeleteRecordOptions & ExpectationOptions): Promise<DeleteResult>;
|
|
246
|
-
/**
|
|
247
|
-
* delete(), plus the record it acted on. Gated identically — the
|
|
248
|
-
* existence/visibility check that produces a 404 ahead of the 403
|
|
249
|
-
* permission gate still runs via requireDeletable() before either kind
|
|
250
|
-
* of delete, so this changes what a successful call reports, not the
|
|
251
|
-
* disclosure ordering a refused one follows.
|
|
252
|
-
*/
|
|
253
|
-
deleteAndReturn(id: RecordId, opts?: DeleteRecordOptions & ExpectationOptions): Promise<DeleteAndReturnResult>;
|
|
254
241
|
/**
|
|
255
242
|
* Reverse a soft delete. Gated the same as delete() — undelete is the
|
|
256
243
|
* inverse of soft delete, so granting one direction without the other
|
|
@@ -322,17 +309,10 @@ export declare class ScopedStack implements StackClient {
|
|
|
322
309
|
collectAttachmentGarbage(opts?: CollectAttachmentGarbageOptions): Promise<CollectAttachmentGarbageResult>;
|
|
323
310
|
/**
|
|
324
311
|
* Observe the changes this request may read, decided per event by the
|
|
325
|
-
* same
|
|
312
|
+
* same read reach that get() and query() ask. An unreadable record yields
|
|
326
313
|
* no event at all, since a change's existence is itself a disclosure.
|
|
327
314
|
* See docs/spec/events.md § Permission scoping.
|
|
328
315
|
*/
|
|
329
316
|
subscribe(handler: (change: RecordChange) => void, opts?: SubscribeOptions): Promise<Unsubscribe>;
|
|
330
|
-
/**
|
|
331
|
-
* canRead for one event, through the subscription's own cache. Grants
|
|
332
|
-
* are prefetched once and refilled after an invalidation rather than
|
|
333
|
-
* re-queried per event, which would be a `_grant` scan for every change
|
|
334
|
-
* the stack makes.
|
|
335
|
-
*/
|
|
336
|
-
private canReadCached;
|
|
337
317
|
}
|
|
338
318
|
//# sourceMappingURL=scoped-stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped-stack.d.ts","sourceRoot":"","sources":["../../src/scoped-stack/scoped-stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,OAAO,EAAE,aAAa,EAAqB,MAAM,qBAAqB,CAAC;AAEvE,OAAO,KAAK,EAIV,oBAAoB,EAEpB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,QAAQ,EACR,MAAM,
|
|
1
|
+
{"version":3,"file":"scoped-stack.d.ts","sourceRoot":"","sources":["../../src/scoped-stack/scoped-stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,OAAO,EAAE,aAAa,EAAqB,MAAM,qBAAqB,CAAC;AAEvE,OAAO,KAAK,EAIV,oBAAoB,EAEpB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,QAAQ,EACR,MAAM,EACN,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAe3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEnF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