@ekwo-ai/factur-x 0.4.0 → 0.5.0
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/LICENSE +1 -1
- package/dist/rounding.d.ts +2 -1
- package/dist/rounding.d.ts.map +1 -1
- package/dist/rounding.js +2 -1
- package/dist/rounding.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
package/dist/rounding.d.ts
CHANGED
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* The file is deliberately identical in every package that holds a copy. A
|
|
20
20
|
* format brick may not import the core or another brick, so the rule is
|
|
21
21
|
* duplicated rather than shared — and `tests/rounding.test.ts` reads the
|
|
22
|
-
* copies and refuses one that has drifted. See
|
|
22
|
+
* copies and refuses one that has drifted. See
|
|
23
|
+
* `docs/decisions/0011-an-amount-is-rounded-at-its-currency.md`.
|
|
23
24
|
*/
|
|
24
25
|
export declare function roundCurrency(value: number, decimals?: number): number;
|
|
25
26
|
//# sourceMappingURL=rounding.d.ts.map
|
package/dist/rounding.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../src/rounding.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../src/rounding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAUjE"}
|
package/dist/rounding.js
CHANGED
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
* The file is deliberately identical in every package that holds a copy. A
|
|
20
20
|
* format brick may not import the core or another brick, so the rule is
|
|
21
21
|
* duplicated rather than shared — and `tests/rounding.test.ts` reads the
|
|
22
|
-
* copies and refuses one that has drifted. See
|
|
22
|
+
* copies and refuses one that has drifted. See
|
|
23
|
+
* `docs/decisions/0011-an-amount-is-rounded-at-its-currency.md`.
|
|
23
24
|
*/
|
|
24
25
|
export function roundCurrency(value, decimals = 2) {
|
|
25
26
|
const factor = 10 ** decimals;
|
package/dist/rounding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounding.js","sourceRoot":"","sources":["../src/rounding.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rounding.js","sourceRoot":"","sources":["../src/rounding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC;IACvD,MAAM,MAAM,GAAG,EAAE,IAAI,QAAQ,CAAC;IAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;IACxC,0EAA0E;IAC1E,4EAA4E;IAC5E,iDAAiD;IACjD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;IAC7D,qEAAqE;IACrE,sCAAsC;IACtC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;AACvD,CAAC"}
|
package/package.json
CHANGED