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.
- package/dist/index.js +1 -1
- 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 === "
|
|
636
|
+
if (typeof e.message === "string" && e.message.includes("divide by zero")) {
|
|
637
637
|
result2 = "";
|
|
638
638
|
} else {
|
|
639
639
|
result2 = e.message;
|