@jobber/formatters 0.3.1-node22-3bf0edd.346 → 0.4.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/dist/currency.js +1 -2
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/dist/currency.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatCurrency =
|
|
3
|
+
exports.formatCurrency = formatCurrency;
|
|
4
4
|
const config_1 = require("./config");
|
|
5
5
|
function formatCurrency(amount, currency = config_1.config.defaultCurrency) {
|
|
6
6
|
return amount.toLocaleString("en", {
|
|
@@ -8,4 +8,3 @@ function formatCurrency(amount, currency = config_1.config.defaultCurrency) {
|
|
|
8
8
|
currency: currency,
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
exports.formatCurrency = formatCurrency;
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// comments for manual release
|
|
17
18
|
__exportStar(require("./currency"), exports);
|
|
18
19
|
__exportStar(require("./CurrencyType"), exports);
|
|
19
20
|
__exportStar(require("./config"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/formatters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"dist/*"
|
|
14
14
|
],
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "baec68accebefa70b2f1234d757473e67a713ced"
|
|
16
16
|
}
|