@tensorix/metahub 0.1.6 → 0.1.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/core/sync/server.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qFAAqF;IACrF,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,wFAAwF;IACxF,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC5C,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED,6EAA6E;AAC7E,qBAAa,cAAe,SAAQ,KAAK;IAErC,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM;gBADZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM;CAQxB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,gF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GAAG,aAAa,CAkJnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"webui.d.ts","sourceRoot":"","sources":["../../../src/core/sync/webui.ts"],"names":[],"mappings":"AAgvBA;;;8EAG8E;AAC9E,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE/C;AAoBD;;;;2EAI2E;AAC3E,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAM/C;AAED;0CAC0C;AAC1C,wBAAsB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAiBvE"}
1
+ {"version":3,"file":"webui.d.ts","sourceRoot":"","sources":["../../../src/core/sync/webui.ts"],"names":[],"mappings":"AAgvBA;;;8EAG8E;AAC9E,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE/C;AAoBD;;;;2EAI2E;AAC3E,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAM/C;AAED;0CAC0C;AAC1C,wBAAsB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAsBvE"}
package/dist/index.js CHANGED
@@ -1,12 +1,16 @@
1
1
  // @bun
2
2
  var __defProp = Object.defineProperty;
3
+ var __returnValue = (v) => v;
4
+ function __exportSetter(name, newValue) {
5
+ this[name] = __returnValue.bind(null, newValue);
6
+ }
3
7
  var __export = (target, all) => {
4
8
  for (var name in all)
5
9
  __defProp(target, name, {
6
10
  get: all[name],
7
11
  enumerable: true,
8
12
  configurable: true,
9
- set: (newValue) => all[name] = () => newValue
13
+ set: __exportSetter.bind(all, name)
10
14
  });
11
15
  };
12
16
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
@@ -578,6 +582,7 @@ async function serveWebui(req) {
578
582
  headers: { "content-type": "text/javascript; charset=utf-8" }
579
583
  });
580
584
  } catch (e) {
585
+ console.error("[webui] failed to serve /webui.js \u2014", e);
581
586
  return new Response(`webui build failed: ${e}`, { status: 500 });
582
587
  }
583
588
  }
@@ -14028,7 +14033,7 @@ function finalize(ctx, schema) {
14028
14033
  result.$schema = "http://json-schema.org/draft-07/schema#";
14029
14034
  } else if (ctx.target === "draft-04") {
14030
14035
  result.$schema = "http://json-schema.org/draft-04/schema#";
14031
- } else if (ctx.target === "openapi-3.0") {} else {}
14036
+ } else if (ctx.target === "openapi-3.0") {}
14032
14037
  if (ctx.external?.uri) {
14033
14038
  const id = ctx.external.registry.get(schema)?.id;
14034
14039
  if (!id)
@@ -14272,7 +14277,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
14272
14277
  if (val === undefined) {
14273
14278
  if (ctx.unrepresentable === "throw") {
14274
14279
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
14275
- } else {}
14280
+ }
14276
14281
  } else if (typeof val === "bigint") {
14277
14282
  if (ctx.unrepresentable === "throw") {
14278
14283
  throw new Error("BigInt literals cannot be represented in JSON Schema");
@@ -17011,7 +17016,7 @@ function getServerConfig(db) {
17011
17016
  // package.json
17012
17017
  var package_default = {
17013
17018
  name: "@tensorix/metahub",
17014
- version: "0.1.6",
17019
+ version: "0.1.7",
17015
17020
  description: "Metahub core library and CLI",
17016
17021
  license: "AGPL-3.0-only",
17017
17022
  type: "module",
@@ -17977,7 +17982,7 @@ function startServer(opts = {}) {
17977
17982
  let timer = null;
17978
17983
  if (autoSync && syncIntervalMs > 0) {
17979
17984
  timer = setInterval(() => {
17980
- syncAllPeers(db).catch(() => {});
17985
+ syncAllPeers(db).catch((e) => console.error("[sync] auto-sync tick failed \u2014", e));
17981
17986
  }, syncIntervalMs);
17982
17987
  timer.unref?.();
17983
17988
  }
@@ -18100,4 +18105,4 @@ export {
18100
18105
  ChangeSchema
18101
18106
  };
18102
18107
 
18103
- //# debugId=F7BD99C8461B833164756E2164756E21
18108
+ //# debugId=548591A808956A3F64756E2164756E21