pyric-admin 0.1.0-alpha.7 → 0.1.0-alpha.9
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/LICENSE +216 -0
- package/README.md +136 -29
- package/README.md.orig +48 -0
- package/dist/app/index.d.ts +23 -134
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +69 -202
- package/dist/app/index.js.map +1 -1
- package/dist/app/lifecycle.d.ts +7 -0
- package/dist/app/lifecycle.d.ts.map +1 -0
- package/dist/app/lifecycle.js +15 -0
- package/dist/app/lifecycle.js.map +1 -0
- package/dist/auth/index.d.ts +76 -105
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +27 -86
- package/dist/auth/index.js.map +1 -1
- package/dist/database/index.d.ts +72 -39
- package/dist/database/index.d.ts.map +1 -1
- package/dist/database/index.js +27 -45
- package/dist/database/index.js.map +1 -1
- package/dist/firestore/index.d.ts.map +1 -1
- package/dist/firestore/index.js +4 -1
- package/dist/firestore/index.js.map +1 -1
- package/dist/messaging/index.d.ts +154 -0
- package/dist/messaging/index.d.ts.map +1 -0
- package/dist/messaging/index.js +238 -0
- package/dist/messaging/index.js.map +1 -0
- package/dist/storage/index.d.ts +19 -38
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +14 -43
- package/dist/storage/index.js.map +1 -1
- package/package.json +16 -5
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `pyric-admin/storage` —
|
|
2
|
+
* `pyric-admin/storage` — sandbox mirror for the Admin Storage shape.
|
|
3
3
|
*
|
|
4
|
-
* Mirrors `firebase-admin/storage`
|
|
5
|
-
* selected at {@link initializeApp} time
|
|
6
|
-
*
|
|
7
|
-
* `PyricAdminApp` handle — no structural duck-typing, no per-call
|
|
8
|
-
* shape probing.
|
|
4
|
+
* Mirrors the useful `firebase-admin/storage` shape for local and remote
|
|
5
|
+
* sandbox apps selected at {@link initializeApp} time. Dispatch reads the
|
|
6
|
+
* {@link ADMIN_APP_TARGET} brand on the `PyricAdminApp` handle.
|
|
9
7
|
*
|
|
10
|
-
* - **
|
|
11
|
-
* `getStorage(adminApp)`. The returned object is the genuine
|
|
12
|
-
* production `Storage`, so every method on `Storage` / `Bucket` /
|
|
13
|
-
* `File` (from `@google-cloud/storage`) is present unchanged.
|
|
14
|
-
*
|
|
15
|
-
* - **Remote sandbox path** — a handle branded by `pyric-tools`'
|
|
8
|
+
* - **Remote sandbox path** — a handle branded by `@pyric/cli`'
|
|
16
9
|
* `connectRemoteSandbox()`/`remoteSandbox()` relays every data
|
|
17
10
|
* operation over the bridge to the browser-hosted SharedWorker's
|
|
18
11
|
* object store (admin lens pinned — rules bypass). Single bucket;
|
|
@@ -38,34 +31,26 @@
|
|
|
38
31
|
* **Deferred in the sandbox backend** (throws `"not implemented in
|
|
39
32
|
* pyric-admin/storage sandbox backend"`): streaming uploads
|
|
40
33
|
* (`createWriteStream`), resumable uploads, signed cookies, IAM
|
|
41
|
-
* policies, lifecycle rules, ACLs, copy/move, notifications.
|
|
42
|
-
* prod path keeps every one of these — only the sandbox stub omits
|
|
43
|
-
* them.
|
|
34
|
+
* policies, lifecycle rules, ACLs, copy/move, notifications.
|
|
44
35
|
*/
|
|
45
36
|
import { type PyricAdminApp } from '../app/index.js';
|
|
46
37
|
/**
|
|
47
|
-
* `pyric-admin/storage`'s `Storage` handle.
|
|
48
|
-
* literally `firebase-admin/storage`'s `Storage`. On the sandbox path
|
|
49
|
-
* this is an in-process surface that exposes the subset of methods
|
|
38
|
+
* `pyric-admin/storage`'s sandbox `Storage` handle. It exposes the subset
|
|
50
39
|
* documented in the module header.
|
|
51
40
|
*
|
|
52
41
|
* The shared `bucket(name?)` shape is the contract — consumers code
|
|
53
|
-
* against it without caring
|
|
54
|
-
* code against `firebase-admin/storage` in production.
|
|
42
|
+
* against it without caring whether the local or remote sandbox is live.
|
|
55
43
|
*/
|
|
56
44
|
export interface Storage {
|
|
57
45
|
/**
|
|
58
46
|
* Get a {@link Bucket} handle. When `name` is omitted, returns the
|
|
59
|
-
* default bucket (
|
|
60
|
-
* `firebase-admin/storage`'s `bucket()` resolves to from app config).
|
|
47
|
+
* sandbox default bucket (`'pyric-default'`).
|
|
61
48
|
*/
|
|
62
49
|
bucket(name?: string): Bucket;
|
|
63
50
|
}
|
|
64
51
|
/**
|
|
65
|
-
* A storage bucket handle
|
|
66
|
-
*
|
|
67
|
-
* `Bucket` and exposes every method that class carries; the sandbox
|
|
68
|
-
* path implements only the documented subset.
|
|
52
|
+
* A storage bucket handle implemented by both local and remote sandbox
|
|
53
|
+
* paths. Only the documented subset is supported.
|
|
69
54
|
*/
|
|
70
55
|
export interface Bucket {
|
|
71
56
|
/** Name of the bucket. Stable across `file()` lookups. */
|
|
@@ -76,7 +61,7 @@ export interface Bucket {
|
|
|
76
61
|
/**
|
|
77
62
|
* A file handle within a bucket. Method shapes mirror
|
|
78
63
|
* `@google-cloud/storage`'s `File` (return tuples for download / exists
|
|
79
|
-
* / getSignedUrl, etc.) so consumer code
|
|
64
|
+
* / getSignedUrl, etc.) so common consumer code retains the familiar shape.
|
|
80
65
|
*
|
|
81
66
|
* The sandbox backend implements the methods documented here. Any
|
|
82
67
|
* other `File` method from `@google-cloud/storage` (`createWriteStream`,
|
|
@@ -115,7 +100,7 @@ export interface File {
|
|
|
115
100
|
* `pyric-sandbox-storage://${path}?expires=${expires}`. The sandbox
|
|
116
101
|
* does NOT serve the URL — it's a deterministic placeholder so
|
|
117
102
|
* agent code that round-trips signed URLs (logs, fixtures, replay)
|
|
118
|
-
* sees a stable shape.
|
|
103
|
+
* sees a stable shape.
|
|
119
104
|
*/
|
|
120
105
|
getSignedUrl(options: GetSignedUrlOptions): Promise<[string]>;
|
|
121
106
|
}
|
|
@@ -125,25 +110,24 @@ export interface SaveOptions {
|
|
|
125
110
|
* Arbitrary metadata stored alongside the file. The sandbox stores
|
|
126
111
|
* it verbatim; consumers that need to round-trip `contentType`,
|
|
127
112
|
* `metadata.custom`, etc. get it back via internal admin tooling
|
|
128
|
-
* (not exposed on `File` itself yet).
|
|
129
|
-
* `@google-cloud/storage`.
|
|
113
|
+
* (not exposed on `File` itself yet).
|
|
130
114
|
*/
|
|
131
115
|
metadata?: Record<string, unknown>;
|
|
132
116
|
/**
|
|
133
|
-
* Content type hint
|
|
117
|
+
* Content type hint stored on the sandbox entry.
|
|
134
118
|
* Convenience shortcut for `metadata.contentType`.
|
|
135
119
|
*/
|
|
136
120
|
contentType?: string;
|
|
137
121
|
/**
|
|
138
122
|
* `resumable: false` is the only mode the sandbox models (single-
|
|
139
|
-
* shot writes).
|
|
140
|
-
*
|
|
123
|
+
* shot writes). The sandbox throws when set to `true` since resumable
|
|
124
|
+
* uploads are deferred.
|
|
141
125
|
*/
|
|
142
126
|
resumable?: boolean;
|
|
143
127
|
}
|
|
144
128
|
/** Options bag for {@link File.download}. Subset of `@google-cloud/storage`'s `DownloadOptions`. */
|
|
145
129
|
export interface DownloadOptions {
|
|
146
|
-
/**
|
|
130
|
+
/** The sandbox accepts but ignores `validation`. */
|
|
147
131
|
validation?: 'md5' | 'crc32c' | boolean;
|
|
148
132
|
}
|
|
149
133
|
/** Options bag for {@link File.getSignedUrl}. Mirrors `@google-cloud/storage`'s shape. */
|
|
@@ -168,10 +152,7 @@ export type StorageApp = PyricAdminApp;
|
|
|
168
152
|
/**
|
|
169
153
|
* Get the {@link Storage} service for the given app.
|
|
170
154
|
*
|
|
171
|
-
*
|
|
172
|
-
* the underlying `adminApp`. Drop-in compatible with production
|
|
173
|
-
* code that uses `firebase-admin/storage` directly.
|
|
174
|
-
* - **Sandbox app** → returns a sandbox-backed `Storage` whose state
|
|
155
|
+
* Returns a sandbox-backed `Storage` whose state
|
|
175
156
|
* lives on the `Sandbox`. `sandbox.reset()` wipes it.
|
|
176
157
|
*/
|
|
177
158
|
export declare function getStorage(app?: StorageApp): Storage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AASH,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAC;AAKzB;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,IAAI;IACnB,iDAAiD;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACvD;;;;OAIG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,qGAAqG;IACrG,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7B;;;;;;OAMG;IACH,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;CAC/D;AAED,4FAA4F;AAC5F,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,oGAAoG;AACpG,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;CACzC;AAED,0FAA0F;AAC1F,MAAM,WAAW,mBAAmB;IAClC,kGAAkG;IAClG,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;IAClD;;;;OAIG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,OAAO,CAuBpD"}
|
package/dist/storage/index.js
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `pyric-admin/storage` —
|
|
2
|
+
* `pyric-admin/storage` — sandbox mirror for the Admin Storage shape.
|
|
3
3
|
*
|
|
4
|
-
* Mirrors `firebase-admin/storage`
|
|
5
|
-
* selected at {@link initializeApp} time
|
|
6
|
-
*
|
|
7
|
-
* `PyricAdminApp` handle — no structural duck-typing, no per-call
|
|
8
|
-
* shape probing.
|
|
4
|
+
* Mirrors the useful `firebase-admin/storage` shape for local and remote
|
|
5
|
+
* sandbox apps selected at {@link initializeApp} time. Dispatch reads the
|
|
6
|
+
* {@link ADMIN_APP_TARGET} brand on the `PyricAdminApp` handle.
|
|
9
7
|
*
|
|
10
|
-
* - **
|
|
11
|
-
* `getStorage(adminApp)`. The returned object is the genuine
|
|
12
|
-
* production `Storage`, so every method on `Storage` / `Bucket` /
|
|
13
|
-
* `File` (from `@google-cloud/storage`) is present unchanged.
|
|
14
|
-
*
|
|
15
|
-
* - **Remote sandbox path** — a handle branded by `pyric-tools`'
|
|
8
|
+
* - **Remote sandbox path** — a handle branded by `@pyric/cli`'
|
|
16
9
|
* `connectRemoteSandbox()`/`remoteSandbox()` relays every data
|
|
17
10
|
* operation over the bridge to the browser-hosted SharedWorker's
|
|
18
11
|
* object store (admin lens pinned — rules bypass). Single bucket;
|
|
@@ -38,26 +31,22 @@
|
|
|
38
31
|
* **Deferred in the sandbox backend** (throws `"not implemented in
|
|
39
32
|
* pyric-admin/storage sandbox backend"`): streaming uploads
|
|
40
33
|
* (`createWriteStream`), resumable uploads, signed cookies, IAM
|
|
41
|
-
* policies, lifecycle rules, ACLs, copy/move, notifications.
|
|
42
|
-
* prod path keeps every one of these — only the sandbox stub omits
|
|
43
|
-
* them.
|
|
34
|
+
* policies, lifecycle rules, ACLs, copy/move, notifications.
|
|
44
35
|
*/
|
|
45
|
-
import { getStorage as getProdStorage } from 'firebase-admin/storage';
|
|
46
36
|
import { isRemoteSandbox, } from 'pyric/sandbox';
|
|
47
37
|
import { ADMIN_APP_TARGET, getApp, } from '../app/index.js';
|
|
38
|
+
import { assertAdminAppActive } from '../app/lifecycle.js';
|
|
48
39
|
/**
|
|
49
40
|
* Get the {@link Storage} service for the given app.
|
|
50
41
|
*
|
|
51
|
-
*
|
|
52
|
-
* the underlying `adminApp`. Drop-in compatible with production
|
|
53
|
-
* code that uses `firebase-admin/storage` directly.
|
|
54
|
-
* - **Sandbox app** → returns a sandbox-backed `Storage` whose state
|
|
42
|
+
* Returns a sandbox-backed `Storage` whose state
|
|
55
43
|
* lives on the `Sandbox`. `sandbox.reset()` wipes it.
|
|
56
44
|
*/
|
|
57
45
|
export function getStorage(app) {
|
|
58
46
|
// No-arg call resolves the default app; nothing initialized → captured
|
|
59
47
|
// `app/no-app` FirebaseAppError (see pyric-admin/app getApp).
|
|
60
48
|
const resolved = app === undefined ? getApp() : app;
|
|
49
|
+
assertAdminAppActive(resolved);
|
|
61
50
|
if (resolved[ADMIN_APP_TARGET] === 'sandbox') {
|
|
62
51
|
// Remote brand checked BEFORE the local arm (same dispatch order as
|
|
63
52
|
// auth/database): the local arm's WeakMap state + `onEvent` reset hook
|
|
@@ -69,30 +58,12 @@ export function getStorage(app) {
|
|
|
69
58
|
}
|
|
70
59
|
return getSandboxStorage(resolved);
|
|
71
60
|
}
|
|
72
|
-
if (resolved[ADMIN_APP_TARGET] === 'prod') {
|
|
73
|
-
return getProdStorageHandle(resolved);
|
|
74
|
-
}
|
|
75
61
|
// Defensive: the union is closed at the type level. A runtime value
|
|
76
62
|
// that lands here means a caller forged a handle without going
|
|
77
63
|
// through `initializeApp`.
|
|
78
64
|
throw new TypeError('pyric-admin/storage: getStorage expected a PyricAdminApp from `initializeApp`; ' +
|
|
79
65
|
'received a value with no recognized ADMIN_APP_TARGET brand.');
|
|
80
66
|
}
|
|
81
|
-
// ─── Prod path ──────────────────────────────────────────────────────────
|
|
82
|
-
/**
|
|
83
|
-
* Resolve the prod path. The returned `Storage` is the unmodified
|
|
84
|
-
* `firebase-admin/storage` handle — every `Bucket` / `File` method
|
|
85
|
-
* works exactly as documented in `@google-cloud/storage`.
|
|
86
|
-
*
|
|
87
|
-
* We assert-cast the result to our local {@link Storage} interface:
|
|
88
|
-
* structurally it's a superset (same `bucket(name?)` shape) and
|
|
89
|
-
* exposing the broader surface gives callers full access without
|
|
90
|
-
* forcing them back into a `firebase-admin/storage` import.
|
|
91
|
-
*/
|
|
92
|
-
function getProdStorageHandle(app) {
|
|
93
|
-
const prod = getProdStorage(app.adminApp);
|
|
94
|
-
return prod;
|
|
95
|
-
}
|
|
96
67
|
// ─── Sandbox path ───────────────────────────────────────────────────────
|
|
97
68
|
/**
|
|
98
69
|
* Default sandbox bucket name. Matches the `pyric-default` used by the
|
|
@@ -240,16 +211,16 @@ class SandboxFile {
|
|
|
240
211
|
// metadata), so `bucket('non-default')` throws instead of silently
|
|
241
212
|
// merging buckets. The default bucket name matches the local arm.
|
|
242
213
|
// - byte payloads are capped at 8 MiB per op (whole-object buffering
|
|
243
|
-
// over four relay hops; streaming stays unsupported on both arms).
|
|
214
|
+
// over four relay hops; streaming stays unsupported on both sandbox arms).
|
|
244
215
|
// `getSignedUrl` does NOT relay: it stays the byte-identical local stub.
|
|
245
216
|
/** firebase-admin's rules-bypass lens, pinned on every relayed operation. */
|
|
246
217
|
const STORAGE_REMOTE_ADMIN_LENS = { mode: 'admin' };
|
|
247
218
|
/**
|
|
248
219
|
* Raw per-op byte cap for relayed storage payloads. MUST mirror
|
|
249
|
-
*
|
|
220
|
+
* `@pyric/cli`' `MAX_STORAGE_OP_BYTES` (serve/worker/protocol.ts) — the
|
|
250
221
|
* worker host enforces the same cap on its end. Inlined (like the RTDB
|
|
251
222
|
* push-id generator) because `pyric-admin` deliberately does not depend on
|
|
252
|
-
*
|
|
223
|
+
* `@pyric/cli`.
|
|
253
224
|
*/
|
|
254
225
|
const MAX_REMOTE_STORAGE_OP_BYTES = 8 * 1024 * 1024;
|
|
255
226
|
/** One remote `Storage` per remote handle (handles only — never data). */
|
|
@@ -348,7 +319,7 @@ class RemoteFile {
|
|
|
348
319
|
catch (err) {
|
|
349
320
|
// The worker store's delete is already idempotent, but swallow a
|
|
350
321
|
// not-found defensively so the local arm's idempotent-delete contract
|
|
351
|
-
// holds even if `pyric/storage` adopts
|
|
322
|
+
// holds even if `pyric/storage` adopts stricter delete semantics later.
|
|
352
323
|
if (isObjectNotFound(err))
|
|
353
324
|
return;
|
|
354
325
|
throw err;
|
|
@@ -436,7 +407,7 @@ function normalizeExpires(expires) {
|
|
|
436
407
|
return expires.getTime();
|
|
437
408
|
// String form — accept anything `Date` parses. Bogus input becomes
|
|
438
409
|
// `NaN`, which is still embeddable in the URL; we don't enforce
|
|
439
|
-
// strictness because the
|
|
410
|
+
// strictness because the value only feeds the deterministic sandbox stub.
|
|
440
411
|
return new Date(expires).getTime();
|
|
441
412
|
}
|
|
442
413
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EACL,eAAe,GAIhB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,gBAAgB,EAChB,MAAM,GAGP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA8H3D;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,GAAgB;IACzC,uEAAuE;IACvE,8DAA8D;IAC9D,MAAM,QAAQ,GAAkB,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAE,GAAqB,CAAC;IACtF,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAC/B,IAAI,QAAQ,CAAC,gBAAgB,CAAC,KAAK,SAAS,EAAE,CAAC;QAC7C,oEAAoE;QACpE,uEAAuE;QACvE,oEAAoE;QACpE,sEAAsE;QACtE,oDAAoD;QACpD,IAAI,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IACD,oEAAoE;IACpE,+DAA+D;IAC/D,2BAA2B;IAC3B,MAAM,IAAI,SAAS,CACjB,iFAAiF;QAC/E,6DAA6D,CAChE,CAAC;AACJ,CAAC;AAED,2EAA2E;AAE3E;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,eAAe,CAAC;AAY/C;;;;;GAKG;AACH,MAAM,aAAa,GA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ClB,IAAY,EACZ,OAA4B;IAE5B,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,OAAO,2BAA2B,UAAU,IAAI,IAAI,YAAY,SAAS,WAAW,OAAO,CAAC,MAAM,EAAE,CAAC;AACvG,CAAC;AAED;;;;;GAKG;AACH,SAAS,OAAO,CAAC,IAAkC;IACjD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IACD,gEAAgE;IAChE,iEAAiE;IACjE,sDAAsD;IACtD,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,OAA+B;IACvD,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAChD,IAAI,OAAO,YAAY,IAAI;QAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IACtD,mEAAmE;IACnE,gEAAgE;IAChE,0EAA0E;IAC1E,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pyric-admin",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"homepage": "https://pyric.dev",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/davideast/pyric.git",
|
|
9
|
+
"directory": "packages/pyric-admin"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/davideast/pyric/issues"
|
|
13
|
+
},
|
|
14
|
+
"description": "Firebase Admin-shaped adapters for the Pyric development sandbox.",
|
|
5
15
|
"type": "module",
|
|
6
16
|
"exports": {
|
|
7
17
|
"./app": {
|
|
@@ -27,7 +37,8 @@
|
|
|
27
37
|
},
|
|
28
38
|
"files": [
|
|
29
39
|
"dist",
|
|
30
|
-
"README.md"
|
|
40
|
+
"README.md",
|
|
41
|
+
"LICENSE"
|
|
31
42
|
],
|
|
32
43
|
"scripts": {
|
|
33
44
|
"build": "tsc",
|
|
@@ -35,11 +46,11 @@
|
|
|
35
46
|
"typecheck": "bun x tsc -p tsconfig.json --noEmit"
|
|
36
47
|
},
|
|
37
48
|
"dependencies": {
|
|
38
|
-
"pyric": "^0.1.0-alpha.
|
|
39
|
-
"firebase-admin": "^13.0.0"
|
|
49
|
+
"pyric": "^0.1.0-alpha.9"
|
|
40
50
|
},
|
|
41
51
|
"devDependencies": {
|
|
42
52
|
"@types/bun": "latest",
|
|
53
|
+
"firebase-admin": "^13.0.0",
|
|
43
54
|
"typescript": "^5.7.0",
|
|
44
55
|
"fake-indexeddb": "^6.0.0"
|
|
45
56
|
},
|