@eriveltondasilva/currency 1.0.0 → 1.0.1
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @ERIVELTONDASILVA/CURRENCY v1.0.
|
|
2
|
+
* @ERIVELTONDASILVA/CURRENCY v1.0.1
|
|
3
3
|
*
|
|
4
4
|
* A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.
|
|
5
5
|
*
|
|
6
6
|
* @author Erivelton Silva <eriveltondasilva13@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright 2026 Erivelton Silva
|
|
9
|
-
* @version 1.0.
|
|
9
|
+
* @version 1.0.1
|
|
10
10
|
*
|
|
11
11
|
* @see https://github.com/eriveltondasilva/currency#readme - Documentation
|
|
12
12
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @ERIVELTONDASILVA/CURRENCY v1.0.
|
|
2
|
+
* @ERIVELTONDASILVA/CURRENCY v1.0.1
|
|
3
3
|
*
|
|
4
4
|
* A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.
|
|
5
5
|
*
|
|
6
6
|
* @author Erivelton Silva <eriveltondasilva13@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright 2026 Erivelton Silva
|
|
9
|
-
* @version 1.0.
|
|
9
|
+
* @version 1.0.1
|
|
10
10
|
*
|
|
11
11
|
* @see https://github.com/eriveltondasilva/currency#readme - Documentation
|
|
12
12
|
*
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* @see https://github.com/scurker/currency.js
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { M as MoneyInput, C as CountryCode, P as PricedItem, a as MoneyContract, R as RoundingMode } from './types-
|
|
18
|
-
export { F as FormatOptions } from './types-
|
|
17
|
+
import { M as MoneyInput, C as CountryCode, P as PricedItem, a as MoneyContract, R as RoundingMode } from './types-4aLlGB1Z.js';
|
|
18
|
+
export { F as FormatOptions } from './types-4aLlGB1Z.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Computes the total cost of a list of priced items.
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {w}from'./chunk-
|
|
2
|
-
* @ERIVELTONDASILVA/CURRENCY v1.0.
|
|
1
|
+
import {w}from'./chunk-322UWLAO.js';export{g as CurrencyMismatchError,d as DivisionByZeroError,e as InvalidAllocationError,b as InvalidInputError,c as InvalidPercentageError,f as InvalidRangeError,a as MoneyError,i as UnsafeIntegerError,h as UnsupportedCurrencyError,s as average,v as clamp,l as from,n as fromMinorUnits,m as fromString,j as isMoney,k as isMoneyInput,t as max,u as min,l as money,m as parse,q as percent,r as sum,p as total,o as zero}from'./chunk-322UWLAO.js';/**
|
|
2
|
+
* @ERIVELTONDASILVA/CURRENCY v1.0.1
|
|
3
3
|
*
|
|
4
4
|
* A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.
|
|
5
5
|
*
|
|
6
6
|
* @author Erivelton Silva <eriveltondasilva13@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright 2026 Erivelton Silva
|
|
9
|
-
* @version 1.0.
|
|
9
|
+
* @version 1.0.1
|
|
10
10
|
*
|
|
11
11
|
* @see https://github.com/eriveltondasilva/currency#readme - Documentation
|
|
12
12
|
*
|
package/dist/presets.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @ERIVELTONDASILVA/CURRENCY v1.0.
|
|
2
|
+
* @ERIVELTONDASILVA/CURRENCY v1.0.1
|
|
3
3
|
*
|
|
4
4
|
* A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.
|
|
5
5
|
*
|
|
6
6
|
* @author Erivelton Silva <eriveltondasilva13@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright 2026 Erivelton Silva
|
|
9
|
-
* @version 1.0.
|
|
9
|
+
* @version 1.0.1
|
|
10
10
|
*
|
|
11
11
|
* @see https://github.com/eriveltondasilva/currency#readme - Documentation
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @see https://github.com/scurker/currency.js
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as MoneyContract } from './types-
|
|
17
|
+
import { a as MoneyContract } from './types-4aLlGB1Z.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @module presets
|
package/dist/presets.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {m as m$1,l}from'./chunk-
|
|
2
|
-
* @ERIVELTONDASILVA/CURRENCY v1.0.
|
|
1
|
+
import {m as m$1,l}from'./chunk-322UWLAO.js';/**
|
|
2
|
+
* @ERIVELTONDASILVA/CURRENCY v1.0.1
|
|
3
3
|
*
|
|
4
4
|
* A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.
|
|
5
5
|
*
|
|
6
6
|
* @author Erivelton Silva <eriveltondasilva13@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright 2026 Erivelton Silva
|
|
9
|
-
* @version 1.0.
|
|
9
|
+
* @version 1.0.1
|
|
10
10
|
*
|
|
11
11
|
* @see https://github.com/eriveltondasilva/currency#readme - Documentation
|
|
12
12
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @ERIVELTONDASILVA/CURRENCY v1.0.
|
|
2
|
+
* @ERIVELTONDASILVA/CURRENCY v1.0.1
|
|
3
3
|
*
|
|
4
4
|
* A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.
|
|
5
5
|
*
|
|
6
6
|
* @author Erivelton Silva <eriveltondasilva13@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright 2026 Erivelton Silva
|
|
9
|
-
* @version 1.0.
|
|
9
|
+
* @version 1.0.1
|
|
10
10
|
*
|
|
11
11
|
* @see https://github.com/eriveltondasilva/currency#readme - Documentation
|
|
12
12
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eriveltondasilva/currency",
|
|
3
3
|
"description": "A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"currency",
|
|
7
7
|
"money",
|