@qaecy/cue-sdk 0.0.44 → 0.0.50
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 +10 -10
- package/browser.js +3 -3
- package/{document-filter-Cj0Yql1C.js → document-filter-C9Og2u8R.js} +3 -3
- package/index.js +1 -1
- package/lib/models.d.ts +5 -5
- package/node.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -416,16 +416,16 @@ actually compress well are eligible (`.ifc`, `.dxf`, `.ttl`, `.nt`, `.jelly`,
|
|
|
416
416
|
that list.
|
|
417
417
|
|
|
418
418
|
Whether a given upload gets compressed is gated per-project by
|
|
419
|
-
`ProjectSettings.gzipEnabled`
|
|
420
|
-
|
|
421
|
-
project
|
|
422
|
-
`
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
project
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
419
|
+
`ProjectSettings.gzipEnabled` — **absent now means ON** (the rollout has been
|
|
420
|
+
verified end-to-end, including against an already-populated production
|
|
421
|
+
project; see `gzip-steps.md` Phase 3). Set it explicitly to `false` to opt a
|
|
422
|
+
project out. `sync()` and `syncBrowserFile()` read this from the project doc
|
|
423
|
+
and forward it to `uploadRaw`'s trailing `gzip` param — `syncBrowserFile`
|
|
424
|
+
caches it once per space (populated by `initBrowserSync`) rather than
|
|
425
|
+
re-fetching the project on every dropped file. There is no admin-panel toggle
|
|
426
|
+
for this yet (same as `tier` on an already-created project) — opt a project
|
|
427
|
+
out by setting `projectSettings.gzipEnabled: false` directly on that
|
|
428
|
+
project's Firestore doc.
|
|
429
429
|
|
|
430
430
|
## GIS
|
|
431
431
|
|
package/browser.js
CHANGED
|
@@ -45656,7 +45656,7 @@ class Ob {
|
|
|
45656
45656
|
*/
|
|
45657
45657
|
async initBrowserSync(e) {
|
|
45658
45658
|
const t = await this._projects.getProject(e);
|
|
45659
|
-
this._gzipEnabledBySpace.set(e, t?.projectSettings?.gzipEnabled ?? !
|
|
45659
|
+
this._gzipEnabledBySpace.set(e, t?.projectSettings?.gzipEnabled ?? !0), await this._initPendingBatch(e);
|
|
45660
45660
|
}
|
|
45661
45661
|
/**
|
|
45662
45662
|
* Pushes filesystem-structure metadata for all provided files directly to the
|
|
@@ -45735,7 +45735,7 @@ class Ob {
|
|
|
45735
45735
|
this._legacy = c ?? !1;
|
|
45736
45736
|
const l = await this._auth.getToken();
|
|
45737
45737
|
if (!l) throw new Error("Not authenticated. Call cue.auth.signIn() first.");
|
|
45738
|
-
const h = await this._getOrCreateGraph(n, l), m = await this._projects.getProject(n), b = m?.projectSettings?.gzipEnabled ?? !
|
|
45738
|
+
const h = await this._getOrCreateGraph(n, l), m = await this._projects.getProject(n), b = m?.projectSettings?.gzipEnabled ?? !0;
|
|
45739
45739
|
s && console.info("Listing remote files ⏳");
|
|
45740
45740
|
const [S, v] = await Promise.all([
|
|
45741
45741
|
this._listRemoteFiles(h, n, o, s),
|
|
@@ -46030,7 +46030,7 @@ WHERE {
|
|
|
46030
46030
|
const c = kb(e.relativePath, n, i, e.md5, o);
|
|
46031
46031
|
if (!c.blob_name) throw new Error(`blob_name missing for ${e.relativePath}`);
|
|
46032
46032
|
let l = this._gzipEnabledBySpace.get(n);
|
|
46033
|
-
l === void 0 && (l = (await this._projects.getProject(n))?.projectSettings?.gzipEnabled ?? !
|
|
46033
|
+
l === void 0 && (l = (await this._projects.getProject(n))?.projectSettings?.gzipEnabled ?? !0), await this._blob.uploadRaw(
|
|
46034
46034
|
c.blob_name,
|
|
46035
46035
|
e.data,
|
|
46036
46036
|
c,
|
|
@@ -10577,7 +10577,7 @@ class Ae {
|
|
|
10577
10577
|
*/
|
|
10578
10578
|
async initBrowserSync(t) {
|
|
10579
10579
|
const e = await this._projects.getProject(t);
|
|
10580
|
-
this._gzipEnabledBySpace.set(t, e?.projectSettings?.gzipEnabled ?? !
|
|
10580
|
+
this._gzipEnabledBySpace.set(t, e?.projectSettings?.gzipEnabled ?? !0), await this._initPendingBatch(t);
|
|
10581
10581
|
}
|
|
10582
10582
|
/**
|
|
10583
10583
|
* Pushes filesystem-structure metadata for all provided files directly to the
|
|
@@ -10656,7 +10656,7 @@ class Ae {
|
|
|
10656
10656
|
this._legacy = p ?? !1;
|
|
10657
10657
|
const c = await this._auth.getToken();
|
|
10658
10658
|
if (!c) throw new Error("Not authenticated. Call cue.auth.signIn() first.");
|
|
10659
|
-
const h = await this._getOrCreateGraph(o, c), d = await this._projects.getProject(o), u = d?.projectSettings?.gzipEnabled ?? !
|
|
10659
|
+
const h = await this._getOrCreateGraph(o, c), d = await this._projects.getProject(o), u = d?.projectSettings?.gzipEnabled ?? !0;
|
|
10660
10660
|
i && console.info("Listing remote files ⏳");
|
|
10661
10661
|
const [w, m] = await Promise.all([
|
|
10662
10662
|
this._listRemoteFiles(h, o, r, i),
|
|
@@ -10951,7 +10951,7 @@ WHERE {
|
|
|
10951
10951
|
const p = ke(t.relativePath, o, a, t.md5, r);
|
|
10952
10952
|
if (!p.blob_name) throw new Error(`blob_name missing for ${t.relativePath}`);
|
|
10953
10953
|
let c = this._gzipEnabledBySpace.get(o);
|
|
10954
|
-
c === void 0 && (c = (await this._projects.getProject(o))?.projectSettings?.gzipEnabled ?? !
|
|
10954
|
+
c === void 0 && (c = (await this._projects.getProject(o))?.projectSettings?.gzipEnabled ?? !0), await this._blob.uploadRaw(
|
|
10955
10955
|
p.blob_name,
|
|
10956
10956
|
t.data,
|
|
10957
10957
|
p,
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as a, C as u, a as C, b as t, c as i, d as r, e as o, f as c, g as n, h as p, i as S, j as m, k as E, l as A, m as P, n as R, o as l, p as g, q as D, r as j, s as U, t as x, u as d, v as f, w as h, x as I, y as T, z as y, A as G, D as _, E as b, F as q, G as v, H as w, I as B, R as F, S as L, J as N, K as O } from "./document-filter-
|
|
1
|
+
import { B as a, C as u, a as C, b as t, c as i, d as r, e as o, f as c, g as n, h as p, i as S, j as m, k as E, l as A, m as P, n as R, o as l, p as g, q as D, r as j, s as U, t as x, u as d, v as f, w as h, x as I, y as T, z as y, A as G, D as _, E as b, F as q, G as v, H as w, I as B, R as F, S as L, J as N, K as O } from "./document-filter-C9Og2u8R.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BASE_CURRENCY,
|
|
4
4
|
u as Cue,
|
package/lib/models.d.ts
CHANGED
|
@@ -154,11 +154,11 @@ export interface ProjectSettings {
|
|
|
154
154
|
tier?: 's' | 'm' | 'l';
|
|
155
155
|
/**
|
|
156
156
|
* Gzip-compress eligible raw uploads for this project (see `gzip-steps.md`
|
|
157
|
-
* Phase 3 —
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* today (same as `tier` on an existing
|
|
161
|
-
* project's Firestore doc.
|
|
157
|
+
* Phase 3). Absent now means ON — the rollout has been verified end-to-end,
|
|
158
|
+
* including against an already-populated production project, so `sync.ts`
|
|
159
|
+
* defaults this to `true`. Set explicitly to `false` to opt a project out.
|
|
160
|
+
* No admin-panel UI toggles this today (same as `tier` on an existing
|
|
161
|
+
* project) — set it directly on the project's Firestore doc.
|
|
162
162
|
*/
|
|
163
163
|
gzipEnabled?: boolean;
|
|
164
164
|
}
|
package/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as s } from "./document-filter-
|
|
2
|
-
import { B as o, a as c, b as i, c as n, d as p, e as S, f as m, g as E, h as A, i as l, j as P, k as R, l as g, m as D, n as x, o as d, p as j, q as U, r as f, s as h, t as I, u as T, v as y, w as G, x as N, y as _, z as b, A as q, D as v, E as w, F as B, G as F, H as L, I as O, R as k, S as z, J as H, K as J } from "./document-filter-
|
|
1
|
+
import { C as s } from "./document-filter-C9Og2u8R.js";
|
|
2
|
+
import { B as o, a as c, b as i, c as n, d as p, e as S, f as m, g as E, h as A, i as l, j as P, k as R, l as g, m as D, n as x, o as d, p as j, q as U, r as f, s as h, t as I, u as T, v as y, w as G, x as N, y as _, z as b, A as q, D as v, E as w, F as B, G as F, H as L, I as O, R as k, S as z, J as H, K as J } from "./document-filter-C9Og2u8R.js";
|
|
3
3
|
class C extends s {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
super(e);
|