nano-pow 5.2.1 → 5.2.2

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -633,7 +633,7 @@ var worker = async (compute) => {
633
633
  } catch (err) {
634
634
  if (typeof err === "object" && err != null) {
635
635
  const e = err;
636
- if (e.message === "integer divide by zero") {
636
+ if (typeof e.message === "string" && e.message.includes("divide by zero")) {
637
637
  result2 = "";
638
638
  } else {
639
639
  result2 = e.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-pow",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "Proof-of-work generation and validation with WebGPU/WebGL/WASM for Nano cryptocurrency.",
5
5
  "keywords": [
6
6
  "nemo",