@yipe/dice 0.1.3 → 0.1.4
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2241,7 +2241,7 @@ var Mixture = class _Mixture {
|
|
|
2241
2241
|
c = t - grand - y;
|
|
2242
2242
|
grand = t;
|
|
2243
2243
|
}
|
|
2244
|
-
if (!(grand > 0)) throw new Error("
|
|
2244
|
+
if (!(grand > 0)) throw new Error("Mixture: zero total mass");
|
|
2245
2245
|
const internal = /* @__PURE__ */ new Map();
|
|
2246
2246
|
for (const [v, m] of this.totals) {
|
|
2247
2247
|
if (m <= 0 || Math.abs(m) < this.eps) continue;
|