@eternl/formats 0.7.0 → 0.8.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/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toTypeError = exports.toRangeError = exports.toError = exports.getFormatErrorMessage = exports.FormatError = exports.formatCsvDate = exports.formatDisplayDate = exports.buildCsv = exports.csvCurrencyCode = exports.formatCsvPercent = exports.formatCsvNumber = exports.formatDisplayCompact = exports.formatDisplayPercent = exports.formatDisplayCurrency = exports.formatDisplayNumber = void 0;
3
+ exports.DECIMAL_DOT = exports.DECIMAL_EMPTY = exports.DECIMAL_ZERO = exports.DEFAULT_SIGN_PLUS = exports.DEFAULT_SIGN_MINUS = exports.DISPLAY_SIGNS = exports.toTypeError = exports.toRangeError = exports.toError = exports.getFormatErrorMessage = exports.FormatError = exports.formatCsvDate = exports.formatDisplayDate = exports.buildCsv = exports.csvCurrencyCode = exports.formatCsvPercent = exports.formatCsvNumber = exports.formatDisplayCompact = exports.formatDisplayPercent = exports.formatDisplayCurrency = exports.formatDisplayNumber = void 0;
4
4
  var display_1 = require("./display");
5
5
  Object.defineProperty(exports, "formatDisplayNumber", { enumerable: true, get: function () { return display_1.formatDisplayNumber; } });
6
6
  Object.defineProperty(exports, "formatDisplayCurrency", { enumerable: true, get: function () { return display_1.formatDisplayCurrency; } });
@@ -20,3 +20,10 @@ Object.defineProperty(exports, "getFormatErrorMessage", { enumerable: true, get:
20
20
  Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return errors_1.toError; } });
21
21
  Object.defineProperty(exports, "toRangeError", { enumerable: true, get: function () { return errors_1.toRangeError; } });
22
22
  Object.defineProperty(exports, "toTypeError", { enumerable: true, get: function () { return errors_1.toTypeError; } });
23
+ var constants_1 = require("./constants");
24
+ Object.defineProperty(exports, "DISPLAY_SIGNS", { enumerable: true, get: function () { return constants_1.DISPLAY_SIGNS; } });
25
+ Object.defineProperty(exports, "DEFAULT_SIGN_MINUS", { enumerable: true, get: function () { return constants_1.DEFAULT_SIGN_MINUS; } });
26
+ Object.defineProperty(exports, "DEFAULT_SIGN_PLUS", { enumerable: true, get: function () { return constants_1.DEFAULT_SIGN_PLUS; } });
27
+ Object.defineProperty(exports, "DECIMAL_ZERO", { enumerable: true, get: function () { return constants_1.DECIMAL_ZERO; } });
28
+ Object.defineProperty(exports, "DECIMAL_EMPTY", { enumerable: true, get: function () { return constants_1.DECIMAL_EMPTY; } });
29
+ Object.defineProperty(exports, "DECIMAL_DOT", { enumerable: true, get: function () { return constants_1.DECIMAL_DOT; } });
package/dist/esm/index.js CHANGED
@@ -2,4 +2,5 @@ export { formatDisplayNumber, formatDisplayCurrency, formatDisplayPercent, forma
2
2
  export { formatCsvNumber, formatCsvPercent, csvCurrencyCode, buildCsv } from './csv';
3
3
  export { formatDisplayDate, formatCsvDate } from './date';
4
4
  export { FormatError, getFormatErrorMessage, toError, toRangeError, toTypeError } from './errors';
5
+ export { DISPLAY_SIGNS, DEFAULT_SIGN_MINUS, DEFAULT_SIGN_PLUS, DECIMAL_ZERO, DECIMAL_EMPTY, DECIMAL_DOT } from './constants';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAkC,WAAW,CAAA;AAE9C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACT,MAAkC,OAAO,CAAA;AAE1C,OAAO,EACL,iBAAiB,EACjB,aAAa,EACd,MAAkC,QAAQ,CAAA;AAE3C,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,OAAO,EACP,YAAY,EACZ,WAAW,EACZ,MAAkC,UAAU,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAkC,WAAW,CAAA;AAE9C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACT,MAAkC,OAAO,CAAA;AAE1C,OAAO,EACL,iBAAiB,EACjB,aAAa,EACd,MAAkC,QAAQ,CAAA;AAE3C,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,OAAO,EACP,YAAY,EACZ,WAAW,EACZ,MAAkC,UAAU,CAAA;AAe7C,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,WAAW,EACZ,MAAkC,aAAa,CAAA"}
@@ -3,3 +3,4 @@ export { formatCsvNumber, formatCsvPercent, csvCurrencyCode, buildCsv } from './
3
3
  export { formatDisplayDate, formatCsvDate } from './date';
4
4
  export { FormatError, getFormatErrorMessage, toError, toRangeError, toTypeError } from './errors';
5
5
  export type { NumericLike, RoundingMode, NumberStyle, SignDisplay, CommonNumberOptions, DisplayNumberOptions, CsvNumberOptions, CsvColumnSpec, CsvRow, CompactUnit } from './types';
6
+ export { DISPLAY_SIGNS, DEFAULT_SIGN_MINUS, DEFAULT_SIGN_PLUS, DECIMAL_ZERO, DECIMAL_EMPTY, DECIMAL_DOT } from './constants';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternl/formats",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Locale-aware display and CSV formatting helpers for numeric data.",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",