@xyo-network/hash 5.4.1 → 5.5.1

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,55 +1,9 @@
1
1
  "use strict";
2
2
  (() => {
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJS = (cb, mod) => function __require() {
10
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
-
29
- // ../../../../../../node_modules/.pnpm/is-observable@2.1.0/node_modules/is-observable/index.js
30
- var require_is_observable = __commonJS({
31
- "../../../../../../node_modules/.pnpm/is-observable@2.1.0/node_modules/is-observable/index.js"(exports, module) {
32
- "use strict";
33
- module.exports = (value) => {
34
- if (!value) {
35
- return false;
36
- }
37
- if (typeof Symbol.observable === "symbol" && typeof value[Symbol.observable] === "function") {
38
- return value === value[Symbol.observable]();
39
- }
40
- if (typeof value["@@observable"] === "function") {
41
- return value === value["@@observable"]();
42
- }
43
- return false;
44
- };
45
- }
46
- });
47
-
48
- // ../../../../../../node_modules/.pnpm/@xylabs+platform@5.0.97/node_modules/@xylabs/platform/dist/browser/index-browser.mjs
3
+ // ../../../../../../node_modules/.pnpm/@xylabs+platform@5.0.100/node_modules/@xylabs/platform/dist/browser/index-browser.mjs
49
4
  var subtle = globalThis.crypto.subtle;
50
5
 
51
- // ../../../../../../node_modules/.pnpm/@xylabs+threads@5.0.97/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
52
- var import_is_observable_2_1_0 = __toESM(require_is_observable(), 1);
6
+ // ../../../../../../node_modules/.pnpm/@xylabs+threads@5.0.100_debug@4.4.3_observable-fns@0.6.1/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
53
7
  var DefaultErrorSerializer = {
54
8
  deserialize(message) {
55
9
  return Object.assign(new Error(message.message), {
@@ -82,6 +36,18 @@
82
36
  function serialize(input) {
83
37
  return globalThis.registeredSerializer.serialize(input);
84
38
  }
39
+ var isSomeObservable = (value) => {
40
+ if (!value) {
41
+ return false;
42
+ }
43
+ if (typeof Symbol.observable === "symbol" && typeof value[Symbol.observable] === "function") {
44
+ return value === value[Symbol.observable]();
45
+ }
46
+ if (typeof value["@@observable"] === "function") {
47
+ return value === value["@@observable"]();
48
+ }
49
+ return false;
50
+ };
85
51
  var $transferable = /* @__PURE__ */ Symbol("thread.transferable");
86
52
  function isTransferDescriptor(thing) {
87
53
  return thing && typeof thing === "object" && thing[$transferable];
@@ -92,7 +58,7 @@
92
58
  const activeSubscriptions = /* @__PURE__ */ new Map();
93
59
  const isMasterJobCancelMessage = (thing) => thing?.type === "cancel";
94
60
  const isMasterJobRunMessage = (thing) => thing?.type === "run";
95
- const isObservable = (thing) => (0, import_is_observable_2_1_0.default)(thing) || isZenObservable(thing);
61
+ const isObservable = (thing) => isSomeObservable(thing) || isZenObservable(thing);
96
62
  function isZenObservable(thing) {
97
63
  return thing && typeof thing === "object" && typeof thing.subscribe === "function";
98
64
  }
@@ -1,55 +1,12 @@
1
1
  "use strict";
2
2
  (() => {
3
- var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJS = (cb, mod) => function __require() {
10
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
- };
12
4
  var __export = (target, all) => {
13
5
  for (var name in all)
14
6
  __defProp(target, name, { get: all[name], enumerable: true });
15
7
  };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
- mod
31
- ));
32
8
 
33
- // ../../../../../../node_modules/.pnpm/is-observable@2.1.0/node_modules/is-observable/index.js
34
- var require_is_observable = __commonJS({
35
- "../../../../../../node_modules/.pnpm/is-observable@2.1.0/node_modules/is-observable/index.js"(exports, module) {
36
- "use strict";
37
- module.exports = (value) => {
38
- if (!value) {
39
- return false;
40
- }
41
- if (typeof Symbol.observable === "symbol" && typeof value[Symbol.observable] === "function") {
42
- return value === value[Symbol.observable]();
43
- }
44
- if (typeof value["@@observable"] === "function") {
45
- return value === value["@@observable"]();
46
- }
47
- return false;
48
- };
49
- }
50
- });
51
-
52
- // ../../../../../../node_modules/.pnpm/@xylabs+typeof@5.0.97/node_modules/@xylabs/typeof/dist/neutral/index.mjs
9
+ // ../../../../../../node_modules/.pnpm/@xylabs+typeof@5.0.100/node_modules/@xylabs/typeof/dist/neutral/index.mjs
53
10
  function isUndefined(value) {
54
11
  return value === void 0;
55
12
  }
@@ -4005,7 +3962,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4005
3962
  return _superRefine(fn);
4006
3963
  }
4007
3964
 
4008
- // ../../../../../../node_modules/.pnpm/@xylabs+error@5.0.97/node_modules/@xylabs/error/dist/neutral/index.mjs
3965
+ // ../../../../../../node_modules/.pnpm/@xylabs+error@5.0.100/node_modules/@xylabs/error/dist/neutral/index.mjs
4009
3966
  var assertError = (value, assert2, defaultMessage) => {
4010
3967
  if (!isUndefined(assert2)) {
4011
3968
  const assertString = typeof assert2 === "string" ? assert2 : typeof assert2 === "boolean" ? defaultMessage : assert2(value, defaultMessage);
@@ -4016,7 +3973,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4016
3973
  return void 0;
4017
3974
  };
4018
3975
 
4019
- // ../../../../../../node_modules/.pnpm/@xylabs+hex@5.0.97_zod@4.3.6/node_modules/@xylabs/hex/dist/neutral/index.mjs
3976
+ // ../../../../../../node_modules/.pnpm/@xylabs+hex@5.0.100_zod@4.3.6/node_modules/@xylabs/hex/dist/neutral/index.mjs
4020
3977
  var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
4021
3978
  return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
4022
3979
  };
@@ -4153,8 +4110,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4153
4110
  var BigIntToJsonZod = bigint2().nonnegative().transform((x) => toHex(x));
4154
4111
  var JsonToBigIntZod = string2().transform((x) => toHex(x)).transform((x) => hexToBigInt(x));
4155
4112
 
4156
- // ../../../../../../node_modules/.pnpm/@xylabs+threads@5.0.97/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
4157
- var import_is_observable_2_1_0 = __toESM(require_is_observable(), 1);
4113
+ // ../../../../../../node_modules/.pnpm/@xylabs+threads@5.0.100_debug@4.4.3_observable-fns@0.6.1/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
4158
4114
  var DefaultErrorSerializer = {
4159
4115
  deserialize(message) {
4160
4116
  return Object.assign(new Error(message.message), {
@@ -4187,6 +4143,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4187
4143
  function serialize(input) {
4188
4144
  return globalThis.registeredSerializer.serialize(input);
4189
4145
  }
4146
+ var isSomeObservable = (value) => {
4147
+ if (!value) {
4148
+ return false;
4149
+ }
4150
+ if (typeof Symbol.observable === "symbol" && typeof value[Symbol.observable] === "function") {
4151
+ return value === value[Symbol.observable]();
4152
+ }
4153
+ if (typeof value["@@observable"] === "function") {
4154
+ return value === value["@@observable"]();
4155
+ }
4156
+ return false;
4157
+ };
4190
4158
  var $transferable = /* @__PURE__ */ Symbol("thread.transferable");
4191
4159
  function isTransferDescriptor(thing) {
4192
4160
  return thing && typeof thing === "object" && thing[$transferable];
@@ -4197,7 +4165,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4197
4165
  const activeSubscriptions = /* @__PURE__ */ new Map();
4198
4166
  const isMasterJobCancelMessage = (thing) => thing?.type === "cancel";
4199
4167
  const isMasterJobRunMessage = (thing) => thing?.type === "run";
4200
- const isObservable = (thing) => (0, import_is_observable_2_1_0.default)(thing) || isZenObservable(thing);
4168
+ const isObservable = (thing) => isSomeObservable(thing) || isZenObservable(thing);
4201
4169
  function isZenObservable(thing) {
4202
4170
  return thing && typeof thing === "object" && typeof thing.subscribe === "function";
4203
4171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/hash",
3
- "version": "5.4.1",
3
+ "version": "5.5.1",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -48,31 +48,45 @@
48
48
  "README.md"
49
49
  ],
50
50
  "dependencies": {
51
- "@xylabs/threads": "~5.0.97",
52
- "hash-wasm": "~4.12.0"
51
+ "@xyo-network/wasm": "~5.5.1"
53
52
  },
54
53
  "devDependencies": {
55
54
  "@opentelemetry/api": "^1.9.1",
55
+ "@opentelemetry/sdk-trace-base": "^2.7.0",
56
56
  "@types/node": "^25.6.0",
57
- "@xylabs/hex": "^5.0.97",
58
- "@xylabs/platform": "^5.0.97",
59
- "@xylabs/sdk-js": "^5.0.97",
60
- "@xylabs/toolchain": "~7.10.8",
61
- "@xylabs/tsconfig": "~7.10.8",
62
- "@xylabs/vitest-extended": "~5.0.97",
63
- "@xylabs/vitest-matchers": "~5.0.97",
64
- "esbuild": "~0.28.0",
57
+ "@xylabs/hex": "^5.0.100",
58
+ "@xylabs/platform": "^5.0.100",
59
+ "@xylabs/sdk-js": "^5.0.100",
60
+ "@xylabs/threads": "^5.0.100",
61
+ "@xylabs/toolchain": "~7.11.8",
62
+ "@xylabs/tsconfig": "~7.11.8",
63
+ "@xylabs/vitest-extended": "^5.0.100",
64
+ "@xylabs/vitest-matchers": "~5.0.100",
65
+ "async-mutex": "^0.5.0",
66
+ "bn.js": "^5.2.3",
67
+ "buffer": "^6.0.3",
68
+ "chalk": "^5.6.2",
69
+ "debug": "~4.4.3",
70
+ "esbuild": "^0.28.0",
71
+ "eslint": "^10.2.1",
72
+ "ethers": "^6.16.0",
73
+ "hash-wasm": "~4.12.0",
74
+ "observable-fns": "~0.6.1",
65
75
  "pako": "~2.1.0",
66
76
  "publint": "~0.3.18",
67
77
  "typescript": "~5.9.3",
68
- "vite": "^8.0.8",
69
- "vitest": "~4.1.4",
70
- "zod": "^4.3.6",
71
- "@xyo-network/wasm": "~5.4.1"
78
+ "vite": "^8.0.9",
79
+ "vitest": "~4.1.5",
80
+ "wasm-feature-detect": "~1.8.0",
81
+ "zod": "^4.3.6"
72
82
  },
73
83
  "peerDependencies": {
74
- "@xylabs/sdk-js": "^5.0.97",
75
- "@xyo-network/wasm": "~5.4"
84
+ "@xylabs/sdk-js": "^5.0.100",
85
+ "@xylabs/threads": "^5.0.100",
86
+ "debug": "~4.4.3",
87
+ "hash-wasm": "~4.12.0",
88
+ "observable-fns": "~0.6.1",
89
+ "wasm-feature-detect": "~1.8.0"
76
90
  },
77
91
  "publishConfig": {
78
92
  "access": "public"