@qaecy/cue-sdk 0.0.10 → 0.0.12

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.
@@ -851,7 +851,7 @@ class mt {
851
851
  */
852
852
  async sparql(t, e, s) {
853
853
  console.log(s);
854
- const i = s === "qlever" ? Ot : Ut;
854
+ const i = s === "fuseki" ? Ut : Ot;
855
855
  console.log(`Executing SPARQL query against ${i} for project ${e} with graph type ${s ?? "fuseki"}`);
856
856
  const n = new URLSearchParams();
857
857
  n.append("query", t);
@@ -2958,7 +2958,10 @@ function Tt(l, t, e, s, i, n, a, c = !1, r = !1) {
2958
2958
  };
2959
2959
  }
2960
2960
  async function O() {
2961
- return import("fs/promises");
2961
+ return import(
2962
+ /* webpackIgnore: true */
2963
+ "fs/promises"
2964
+ );
2962
2965
  }
2963
2966
  async function At(l) {
2964
2967
  if (typeof window < "u")
@@ -2984,13 +2987,25 @@ async function Ve() {
2984
2987
  const t = new Uint8Array(await l.arrayBuffer()), s = await import(`${j}/dir_scanner_wasm.mjs`);
2985
2988
  await s.default({ module_or_path: t }), D = s.scan;
2986
2989
  } else {
2987
- const { readFile: l } = await O(), { join: t } = await import("path"), { pathToFileURL: e } = await import("url"), s = t(__dirname, "assets", "wasm"), i = await l(t(s, "dir_scanner_wasm_bg.wasm")), a = await import(e(t(s, "dir_scanner_wasm.mjs")).href);
2990
+ const { readFile: l } = await O(), { join: t } = await import(
2991
+ /* webpackIgnore: true */
2992
+ "path"
2993
+ ), { pathToFileURL: e } = await import(
2994
+ /* webpackIgnore: true */
2995
+ "url"
2996
+ ), s = t(__dirname, "assets", "wasm"), i = await l(t(s, "dir_scanner_wasm_bg.wasm")), a = await import(e(t(s, "dir_scanner_wasm.mjs")).href);
2988
2997
  await a.default({ module_or_path: i }), D = a.scan;
2989
2998
  }
2990
2999
  }
2991
- const Xe = "fuseki", L = 1e3, Z = "cue:pending:";
3000
+ const Xe = "qlever", L = 1e3, Z = "cue:pending:";
2992
3001
  async function tt(l) {
2993
- const { tmpdir: t } = await import("os"), { join: e } = await import("path");
3002
+ const { tmpdir: t } = await import(
3003
+ /* webpackIgnore: true */
3004
+ "os"
3005
+ ), { join: e } = await import(
3006
+ /* webpackIgnore: true */
3007
+ "path"
3008
+ );
2994
3009
  return e(t(), `cue-sync-pending-${l}.json`);
2995
3010
  }
2996
3011
  async function St(l) {
@@ -3586,14 +3601,14 @@ export {
3586
3601
  Fe as i,
3587
3602
  yt as j,
3588
3603
  I as k,
3589
- X as l,
3590
- Re as m,
3591
- Ae as n,
3592
- ct as o,
3593
- Se as p,
3594
- xe as q,
3595
- Je as r,
3604
+ Je as l,
3605
+ hs as m,
3606
+ X as n,
3607
+ Re as o,
3608
+ Ae as p,
3609
+ ct as q,
3610
+ Se as r,
3596
3611
  Y as s,
3597
- Ee as t,
3598
- hs as u
3612
+ xe as t,
3613
+ Ee as u
3599
3614
  };
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Cue } from './lib/cue';
2
2
  export { CueAuth } from './lib/auth';
3
3
  export { CueApi } from './lib/api';
4
+ export { CueSyncApi, configureScanWasm } from './lib/sync';
4
5
  export { CueProjectSchema } from './lib/schema';
5
6
  export { CueProjectEntities } from './lib/entities';
6
7
  export { CueProjectDocuments } from './lib/documents';
package/index.js CHANGED
@@ -1,18 +1,20 @@
1
- import { C as s, a as u, b as C, c as t, d as i, e as c, f as o, g as r, h as l, i as P, j, k as h, R, l as m, s as E } from "./cue-CE1bYaia.js";
1
+ import { C as s, a as u, b as C, c, d as i, e as t, f as o, g as r, h as l, i as n, j as P, k as j, l as m, R as h, m as R, n as S, s as f } from "./cue-DvRdtUhi.js";
2
2
  export {
3
3
  s as Cue,
4
4
  u as CueApi,
5
5
  C as CueAuth,
6
- t as CueCache,
6
+ c as CueCache,
7
7
  i as CuePrivileges,
8
- c as CueProfile,
8
+ t as CueProfile,
9
9
  o as CueProjectDocuments,
10
10
  r as CueProjectEntities,
11
11
  l as CueProjectSchema,
12
- P as CueProjectView,
13
- j as CueProjects,
14
- h as CueSignal,
15
- R as REQUIRED_ROLES,
16
- m as cueComputed,
17
- E as staleWhileRevalidate
12
+ n as CueProjectView,
13
+ P as CueProjects,
14
+ j as CueSignal,
15
+ m as CueSyncApi,
16
+ h as REQUIRED_ROLES,
17
+ R as configureScanWasm,
18
+ S as cueComputed,
19
+ f as staleWhileRevalidate
18
20
  };
package/node.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as _, B as E, m as l, n as S, o as m, p as P, q as d, r as U, t as B, a as R } from "./cue-CE1bYaia.js";
2
- import { b as y, c as I, d as L, e as O, f as x, g as D, h as H, i as N, j as W, k as v, R as k, u as q, l as G, s as Q } from "./cue-CE1bYaia.js";
1
+ import { C as _, B as E, o as l, p as S, q as m, r as P, t as d, l as U, u as B, a as R } from "./cue-DvRdtUhi.js";
2
+ import { b as y, c as I, d as L, e as O, f as x, g as D, h as H, i as N, j as W, k as v, R as k, m as q, n as G, s as Q } from "./cue-DvRdtUhi.js";
3
3
  import { getStorage as s, connectStorageEmulator as o } from "firebase/storage";
4
4
  import "firebase/firestore";
5
5
  class w extends _ {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaecy/cue-sdk",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",