vis-core 0.21.51 → 0.21.52

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.
@@ -89,7 +89,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
89
89
  ).toString(CryptoJS.enc.Utf8), de = JSON.parse($t), Xe = Date.now();
90
90
  return !de.s || de.s > Xe ? (this.token = void 0, "") : de.e && de.e < Xe ? (this.token = void 0, "") : (de.isValid = Tt, de);
91
91
  }
92
- }, version = "0.21.51";
92
+ }, version = "0.21.52";
93
93
  /**
94
94
  * @license
95
95
  * Copyright 2010-2024 Three.js Authors
@@ -49398,18 +49398,21 @@ const compareVersion = (st, e) => {
49398
49398
  Zt.attributeName = Zt.attributeName.replace(Wt, `caId.${Wt}`);
49399
49399
  }
49400
49400
  }), compareVersion(st.c.version, "0.21.24") === -1 && st.h.u[0] && st.h.u[0].visType === "map" && (ct = (c = st.v) == null ? void 0 : c.eo) != null && ct.parentBgCurvatureResolution && (delete st.v.eo.parentBgCurvatureResolution, st.v.eo.parentBgTopSegments = 400), st;
49401
- }, jsonFetch = (st, e) => {
49402
- const s = makePromiseCreator(!0);
49403
- return fetch(st).then((c) => {
49404
- let ct = c;
49405
- if (ct.ok)
49406
- return ct.json();
49401
+ }, jsonFetch = (st, e, s = !1) => {
49402
+ const c = makePromiseCreator(!0), ct = st.endsWith("gzip") || s;
49403
+ return fetch(st).then((Zt) => {
49404
+ let Wt = Zt;
49405
+ if (Wt.ok)
49406
+ return ct ? Wt.blob().then((Yt) => {
49407
+ const vt = new DecompressionStream("gzip"), Tt = Yt.stream().pipeThrough(vt);
49408
+ return new Response(Tt);
49409
+ }) : Wt;
49407
49410
  throw new Error("Network response was not ok.");
49408
- }).then((c) => {
49409
- s.resolve(c);
49410
- }).catch((c) => {
49411
- s.reject(c);
49412
- }), s.promise;
49411
+ }).then((Zt) => Zt.json()).then((Zt) => {
49412
+ c.resolve(Zt);
49413
+ }).catch((Zt) => {
49414
+ c.reject(Zt);
49415
+ }), c.promise;
49413
49416
  };
49414
49417
  class Editor {
49415
49418
  constructor(e) {
@@ -3,5 +3,5 @@ type DownloadProgress = {
3
3
  transferredBytes: number;
4
4
  totalBytes: number;
5
5
  };
6
- declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void) => Promise<any>;
6
+ declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gizp?: boolean) => Promise<any>;
7
7
  export default _default;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.21.51";
1
+ declare const _default: "0.21.52";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.51",
3
+ "version": "0.21.52",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",