@bitcobblers/wod-wiki-lang 0.48.2172 → 0.48.2173
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 +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -8619,7 +8619,11 @@ var CalcUnitError = class extends Error {
|
|
|
8619
8619
|
}
|
|
8620
8620
|
};
|
|
8621
8621
|
function composeMulUnit(a, aDim, b, bDim, resultDim) {
|
|
8622
|
-
if (dimEquals(resultDim, DIM_ZERO))
|
|
8622
|
+
if (dimEquals(resultDim, DIM_ZERO)) {
|
|
8623
|
+
if (a && !b) return a;
|
|
8624
|
+
if (b && !a) return b;
|
|
8625
|
+
return dimEquals(aDim, bDim) ? a ?? b : void 0;
|
|
8626
|
+
}
|
|
8623
8627
|
const parts = [];
|
|
8624
8628
|
for (const [u, d] of [[a, aDim], [b, bDim]]) {
|
|
8625
8629
|
if (!u || dimEquals(d, DIM_ZERO)) continue;
|