@jobber/formatters 0.2.2-pre.40 → 0.2.2-pre.42

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
package/dist/config.js CHANGED
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.config = void 0;
14
15
  var global_1 = require("./global");
15
16
  var configOverrides = (global_1.global.ATLANTIS_ENV || {}).config || {};
16
17
  exports.config = Object.freeze(__assign({ defaultCurrency: "USD", errorNotifier: function (message, error) {
package/dist/currency.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatCurrency = void 0;
3
4
  var config_1 = require("./config");
4
5
  function formatCurrency(amount, currency) {
5
6
  if (currency === void 0) { currency = config_1.config.defaultCurrency; }
package/dist/global.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.global = void 0;
3
4
  function getGlobal() {
4
5
  if (typeof window !== "undefined") {
5
6
  return window;
package/dist/index.js CHANGED
@@ -1,7 +1,15 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./currency"));
7
- __export(require("./config"));
13
+ __exportStar(require("./currency"), exports);
14
+ __exportStar(require("./CurrencyType"), exports);
15
+ __exportStar(require("./config"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/formatters",
3
- "version": "0.2.2-pre.40+6695bed1",
3
+ "version": "0.2.2-pre.42+8d561917",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "typescript": "^3.8.3"
18
18
  },
19
- "gitHead": "6695bed1d371d60cf3f6fa6a02c2819d576bf410"
19
+ "gitHead": "8d561917679fcf9a7eadd01b9d4406d8a6f5aa58"
20
20
  }