@xyo-network/hash 3.14.16 → 3.14.18
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.
package/README.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
# @xyo-network/hash
|
|
2
|
+
|
|
1
3
|
[![logo][]](https://xyo.network)
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
Version: 3.14.16
|
|
6
|
+
|
|
7
|
+
Primary SDK for using XYO Protocol 2.0
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
[TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__hash)
|
|
12
|
+
|
|
13
|
+
Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
|
|
6
14
|
|
|
7
15
|
## License
|
|
8
16
|
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// ../../../../../../node_modules/.store/@xylabs-platform-npm-4.
|
|
48
|
+
// ../../../../../../node_modules/.store/@xylabs-platform-npm-4.9.3-468b37d1bb/package/dist/browser/index.mjs
|
|
49
49
|
var subtle = globalThis.crypto.subtle;
|
|
50
50
|
|
|
51
|
-
// ../../../../../../node_modules/.store/@xylabs-threads-npm-4.
|
|
51
|
+
// ../../../../../../node_modules/.store/@xylabs-threads-npm-4.9.3-a225891f77/package/dist/browser/worker/worker.browser.mjs
|
|
52
52
|
var import_is_observable_2_1_0 = __toESM(require_package(), 1);
|
|
53
53
|
var DefaultErrorSerializer = {
|
|
54
54
|
deserialize(message) {
|
|
@@ -45,11 +45,19 @@
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// ../../../../../../node_modules/.store/@xylabs-
|
|
48
|
+
// ../../../../../../node_modules/.store/@xylabs-typeof-npm-4.9.3-6db6225b66/package/dist/neutral/index.mjs
|
|
49
|
+
function isUndefined(value) {
|
|
50
|
+
return value === void 0;
|
|
51
|
+
}
|
|
52
|
+
function isString(value) {
|
|
53
|
+
return typeof value === "string";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ../../../../../../node_modules/.store/@xylabs-hex-npm-4.9.3-08382d5bd3/package/dist/neutral/index.mjs
|
|
49
57
|
var assertError = (value, assert, defaultMessage) => {
|
|
50
|
-
if (assert) {
|
|
58
|
+
if (!isUndefined(assert)) {
|
|
51
59
|
const assertString = typeof assert === "string" ? assert : typeof assert === "boolean" ? defaultMessage : assert(value, defaultMessage);
|
|
52
|
-
if (assertString) {
|
|
60
|
+
if (isString(assertString) || assertString === true) {
|
|
53
61
|
throw new Error(assertString === true ? defaultMessage : assertString);
|
|
54
62
|
}
|
|
55
63
|
}
|
|
@@ -95,13 +103,13 @@
|
|
|
95
103
|
break;
|
|
96
104
|
}
|
|
97
105
|
default: {
|
|
98
|
-
return assert ? assertError(value, assert, `Unsupported type [${typeof value}]`)
|
|
106
|
+
return isUndefined(assert) ? void 0 : assertError(value, assert, `Unsupported type [${typeof value}]`);
|
|
99
107
|
}
|
|
100
108
|
}
|
|
101
109
|
return isHash(stringValue) ? stringValue : assertError(value, assert, `Value is not a Hash [${value}]`);
|
|
102
110
|
}
|
|
103
111
|
|
|
104
|
-
// ../../../../../../node_modules/.store/@xylabs-threads-npm-4.
|
|
112
|
+
// ../../../../../../node_modules/.store/@xylabs-threads-npm-4.9.3-a225891f77/package/dist/browser/worker/worker.browser.mjs
|
|
105
113
|
var import_is_observable_2_1_0 = __toESM(require_package(), 1);
|
|
106
114
|
var DefaultErrorSerializer = {
|
|
107
115
|
deserialize(message) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/hash",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.18",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -50,24 +50,23 @@
|
|
|
50
50
|
"wasmHashBundle": "esbuild src/worker/wasmHash.ts --bundle --outfile=dist/browser/worker/wasmHash-bundle.mjs --target=chrome120,firefox120,safari14,edge120"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@xylabs/assert": "^4.
|
|
54
|
-
"@xylabs/hex": "^4.
|
|
55
|
-
"@xylabs/object": "^4.
|
|
56
|
-
"@xylabs/platform": "^4.
|
|
57
|
-
"@xylabs/threads": "^4.
|
|
58
|
-
"@xylabs/typeof": "^4.
|
|
59
|
-
"@xyo-network/wasm": "^3.14.
|
|
53
|
+
"@xylabs/assert": "^4.9.3",
|
|
54
|
+
"@xylabs/hex": "^4.9.3",
|
|
55
|
+
"@xylabs/object": "^4.9.3",
|
|
56
|
+
"@xylabs/platform": "^4.9.3",
|
|
57
|
+
"@xylabs/threads": "^4.9.3",
|
|
58
|
+
"@xylabs/typeof": "^4.9.3",
|
|
59
|
+
"@xyo-network/wasm": "^3.14.18",
|
|
60
60
|
"hash-wasm": "^4.12.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@xylabs/delay": "^4.
|
|
64
|
-
"@xylabs/tsconfig": "^6.
|
|
65
|
-
"@xylabs/vitest-extended": "^4.
|
|
66
|
-
"esbuild": "^0.25.
|
|
67
|
-
"knip": "^5.50.5",
|
|
63
|
+
"@xylabs/delay": "^4.9.3",
|
|
64
|
+
"@xylabs/tsconfig": "^6.5.5",
|
|
65
|
+
"@xylabs/vitest-extended": "^4.9.3",
|
|
66
|
+
"esbuild": "^0.25.4",
|
|
68
67
|
"publint": "^0.3.12",
|
|
69
68
|
"typescript": "^5.8.3",
|
|
70
|
-
"vitest": "^3.1.
|
|
69
|
+
"vitest": "^3.1.3"
|
|
71
70
|
},
|
|
72
71
|
"publishConfig": {
|
|
73
72
|
"access": "public"
|