@xyo-network/hash
Advanced tools
Comparing version 2.104.0 to 2.104.1
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -53,4 +52,3 @@ }); | ||
var removeEmptyFields = /* @__PURE__ */ __name((obj) => { | ||
if (obj === null || Array.isArray(obj)) | ||
return obj; | ||
if (obj === null || Array.isArray(obj)) return obj; | ||
const newObject = {}; | ||
@@ -213,4 +211,3 @@ for (const [key, value] of Object.entries(obj)) { | ||
static createWorker(url, func) { | ||
if (url) | ||
console.debug(`createWorker: ${url}`); | ||
if (url) console.debug(`createWorker: ${url}`); | ||
return assertEx2(this.createBrowserWorker?.(url) ?? this.createNodeWorker?.(func), () => "Unable to create worker"); | ||
@@ -325,4 +322,3 @@ } | ||
static createWorkerPool(url, func, size = 8) { | ||
if (url) | ||
console.debug(`createWorkerPool: ${url}`); | ||
if (url) console.debug(`createWorkerPool: ${url}`); | ||
const createFunc = /* @__PURE__ */ __name(() => spawn(this.createWorker(url, func)), "createFunc"); | ||
@@ -329,0 +325,0 @@ return Pool(createFunc, size); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -15,10 +14,7 @@ }); | ||
var hasEmptyFields = /* @__PURE__ */ __name((obj) => { | ||
if (obj === null || Array.isArray(obj)) | ||
return false; | ||
if (obj === void 0 || Object.keys(obj).length === 0) | ||
return true; | ||
if (obj === null || Array.isArray(obj)) return false; | ||
if (obj === void 0 || Object.keys(obj).length === 0) return true; | ||
for (const [value] of Object.values(obj)) { | ||
if (typeOf(value) === "object") { | ||
if (hasEmptyFields(value)) | ||
return true; | ||
if (hasEmptyFields(value)) return true; | ||
} else if (value === void 0) { | ||
@@ -62,4 +58,3 @@ return true; | ||
var removeEmptyFields = /* @__PURE__ */ __name((obj) => { | ||
if (obj === null || Array.isArray(obj)) | ||
return obj; | ||
if (obj === null || Array.isArray(obj)) return obj; | ||
const newObject = {}; | ||
@@ -222,4 +217,3 @@ for (const [key, value] of Object.entries(obj)) { | ||
static createWorker(url, func) { | ||
if (url) | ||
console.debug(`createWorker: ${url}`); | ||
if (url) console.debug(`createWorker: ${url}`); | ||
return assertEx2(this.createBrowserWorker?.(url) ?? this.createNodeWorker?.(func), () => "Unable to create worker"); | ||
@@ -334,4 +328,3 @@ } | ||
static createWorkerPool(url, func, size = 8) { | ||
if (url) | ||
console.debug(`createWorkerPool: ${url}`); | ||
if (url) console.debug(`createWorkerPool: ${url}`); | ||
const createFunc = /* @__PURE__ */ __name(() => spawn(this.createWorker(url, func)), "createFunc"); | ||
@@ -338,0 +331,0 @@ return Pool(createFunc, size); |
@@ -7,10 +7,6 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
}); | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
@@ -20,10 +16,7 @@ // src/hasEmptyFields.ts | ||
var hasEmptyFields = /* @__PURE__ */ __name((obj) => { | ||
if (obj === null || Array.isArray(obj)) | ||
return false; | ||
if (obj === void 0 || Object.keys(obj).length === 0) | ||
return true; | ||
if (obj === null || Array.isArray(obj)) return false; | ||
if (obj === void 0 || Object.keys(obj).length === 0) return true; | ||
for (const [value] of Object.values(obj)) { | ||
if (typeOf(value) === "object") { | ||
if (hasEmptyFields(value)) | ||
return true; | ||
if (hasEmptyFields(value)) return true; | ||
} else if (value === void 0) { | ||
@@ -67,4 +60,3 @@ return true; | ||
var removeEmptyFields = /* @__PURE__ */ __name((obj) => { | ||
if (obj === null || Array.isArray(obj)) | ||
return obj; | ||
if (obj === null || Array.isArray(obj)) return obj; | ||
const newObject = {}; | ||
@@ -201,4 +193,3 @@ for (const [key, value] of Object.entries(obj)) { | ||
var _a, _b; | ||
if (url) | ||
console.debug(`createWorker: ${url}`); | ||
if (url) console.debug(`createWorker: ${url}`); | ||
return assertEx2(((_a = this.createBrowserWorker) == null ? void 0 : _a.call(this, url)) ?? ((_b = this.createNodeWorker) == null ? void 0 : _b.call(this, func)), () => "Unable to create worker"); | ||
@@ -316,4 +307,3 @@ } | ||
static createWorkerPool(url, func, size = 8) { | ||
if (url) | ||
console.debug(`createWorkerPool: ${url}`); | ||
if (url) console.debug(`createWorkerPool: ${url}`); | ||
const createFunc = /* @__PURE__ */ __name(() => spawn(this.createWorker(url, func)), "createFunc"); | ||
@@ -320,0 +310,0 @@ return Pool(createFunc, size); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -6,4 +6,3 @@ var __defProp = Object.defineProperty; | ||
}) : x)(function(x) { | ||
if (typeof require !== "undefined") | ||
return require.apply(this, arguments); | ||
if (typeof require !== "undefined") return require.apply(this, arguments); | ||
throw Error('Dynamic require of "' + x + '" is not supported'); | ||
@@ -10,0 +9,0 @@ }); |
@@ -20,3 +20,3 @@ { | ||
"@xylabs/typeof": "^3.5.1", | ||
"@xyo-network/wasm": "~2.104.0", | ||
"@xyo-network/wasm": "~2.104.1", | ||
"hash-wasm": "^4.11.0", | ||
@@ -29,4 +29,4 @@ "sha.js": "^2.4.11" | ||
"@xylabs/delay": "^3.5.1", | ||
"@xylabs/ts-scripts-yarn3": "^3.10.4", | ||
"@xylabs/tsconfig": "^3.10.4", | ||
"@xylabs/ts-scripts-yarn3": "^3.11.2", | ||
"@xylabs/tsconfig": "^3.11.2", | ||
"esbuild": "^0.21.4", | ||
@@ -80,4 +80,4 @@ "typescript": "^5.4.5" | ||
"sideEffects": false, | ||
"version": "2.104.0", | ||
"version": "2.104.1", | ||
"type": "module" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
632525
8153
Updated@xyo-network/wasm@~2.104.1