@xyo-network/hash 6.0.8 → 6.0.9
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+threads@6.0.
|
|
3
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+threads@6.0.8_debug@4.4.3_observable-fns@0.6.1/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
|
|
4
4
|
var DefaultErrorSerializer = {
|
|
5
5
|
deserialize(message) {
|
|
6
6
|
return Object.assign(new Error(message.message), {
|
|
@@ -205,11 +205,12 @@
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
const nodeProcess = globalThis.process;
|
|
209
|
+
if (nodeProcess !== void 0 && typeof nodeProcess.on === "function" && implementation.isWorkerRuntime()) {
|
|
210
|
+
nodeProcess.on("uncaughtException", (error) => {
|
|
210
211
|
setTimeout(() => postUncaughtErrorMessage(error), 250);
|
|
211
212
|
});
|
|
212
|
-
|
|
213
|
+
nodeProcess.on("unhandledRejection", (error) => {
|
|
213
214
|
if (error && typeof error.message === "string") {
|
|
214
215
|
setTimeout(() => postUncaughtErrorMessage(error), 250);
|
|
215
216
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+typeof@6.0.
|
|
3
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+typeof@6.0.8/node_modules/@xylabs/typeof/dist/neutral/index.mjs
|
|
4
4
|
function isUndefined(value) {
|
|
5
5
|
return value === void 0;
|
|
6
6
|
}
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
return _refine(ZodMiniCustom, fn, _params);
|
|
855
855
|
}
|
|
856
856
|
|
|
857
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+error@6.0.
|
|
857
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+error@6.0.8/node_modules/@xylabs/error/dist/neutral/index.mjs
|
|
858
858
|
var assertError = (value, assert, defaultMessage) => {
|
|
859
859
|
if (!isUndefined(assert)) {
|
|
860
860
|
const assertString = typeof assert === "string" ? assert : typeof assert === "boolean" ? defaultMessage : assert(value, defaultMessage);
|
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
return void 0;
|
|
866
866
|
};
|
|
867
867
|
|
|
868
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+hex@6.0.
|
|
868
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+hex@6.0.8_zod@4.4.3/node_modules/@xylabs/hex/dist/neutral/index.mjs
|
|
869
869
|
var HexRegExMinMax = (minBytes = 0, maxBytes = Number.MAX_SAFE_INTEGER / 2) => {
|
|
870
870
|
return new RegExp(`^[a-f0-9]{${minBytes * 2},${maxBytes * 2}}$`);
|
|
871
871
|
};
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
transform((x) => hexToBigInt(toHex(x)))
|
|
1025
1025
|
);
|
|
1026
1026
|
|
|
1027
|
-
// ../../../../../../node_modules/.pnpm/@xylabs+threads@6.0.
|
|
1027
|
+
// ../../../../../../node_modules/.pnpm/@xylabs+threads@6.0.8_debug@4.4.3_observable-fns@0.6.1/node_modules/@xylabs/threads/dist/browser/worker/worker.browser.mjs
|
|
1028
1028
|
var DefaultErrorSerializer = {
|
|
1029
1029
|
deserialize(message) {
|
|
1030
1030
|
return Object.assign(new Error(message.message), {
|
|
@@ -1229,11 +1229,12 @@
|
|
|
1229
1229
|
}
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1233
|
-
|
|
1232
|
+
const nodeProcess = globalThis.process;
|
|
1233
|
+
if (nodeProcess !== void 0 && typeof nodeProcess.on === "function" && implementation.isWorkerRuntime()) {
|
|
1234
|
+
nodeProcess.on("uncaughtException", (error) => {
|
|
1234
1235
|
setTimeout(() => postUncaughtErrorMessage(error), 250);
|
|
1235
1236
|
});
|
|
1236
|
-
|
|
1237
|
+
nodeProcess.on("unhandledRejection", (error) => {
|
|
1237
1238
|
if (error && typeof error.message === "string") {
|
|
1238
1239
|
setTimeout(() => postUncaughtErrorMessage(error), 250);
|
|
1239
1240
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/hash",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"README.md"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@xyo-network/wasm": "~6.0.
|
|
51
|
+
"@xyo-network/wasm": "~6.0.9"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@opentelemetry/api": "^1.9.1",
|
|
55
55
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
56
|
-
"@xylabs/hex": "^6.0.
|
|
57
|
-
"@xylabs/platform": "^6.0.
|
|
58
|
-
"@xylabs/sdk-js": "
|
|
59
|
-
"@xylabs/threads": "~6.0.
|
|
60
|
-
"@xylabs/toolchain": "~8.1.
|
|
61
|
-
"@xylabs/tsconfig": "~8.1.
|
|
62
|
-
"@xylabs/vitest-extended": "^6.0.
|
|
56
|
+
"@xylabs/hex": "^6.0.8",
|
|
57
|
+
"@xylabs/platform": "^6.0.8",
|
|
58
|
+
"@xylabs/sdk-js": "^6.0.8",
|
|
59
|
+
"@xylabs/threads": "~6.0.8",
|
|
60
|
+
"@xylabs/toolchain": "~8.1.16",
|
|
61
|
+
"@xylabs/tsconfig": "~8.1.16",
|
|
62
|
+
"@xylabs/vitest-extended": "^6.0.8",
|
|
63
63
|
"async-mutex": "^0.5.0",
|
|
64
64
|
"bn.js": "^5.2.3",
|
|
65
65
|
"buffer": "^6.0.3",
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"ethers": "^6.16.0",
|
|
70
70
|
"hash-wasm": "~4.12.0",
|
|
71
71
|
"observable-fns": "^0.6.1",
|
|
72
|
-
"pako": "^2.1",
|
|
73
72
|
"publint": "~0.3.21",
|
|
74
73
|
"typescript": "~6.0.3",
|
|
75
74
|
"vite": "^8.0.16",
|
|
@@ -88,7 +87,6 @@
|
|
|
88
87
|
"ethers": "^6.16",
|
|
89
88
|
"hash-wasm": "~4.12",
|
|
90
89
|
"observable-fns": "^0.6",
|
|
91
|
-
"pako": "^2.1",
|
|
92
90
|
"zod": "^4.4"
|
|
93
91
|
},
|
|
94
92
|
"engines": {
|