cldr-compact-number
Advanced tools
Comparing version 0.0.6 to 0.1.0
@@ -205,12 +205,6 @@ function unwrapExports (x) { | ||
var es = createCommonjsModule(function (module, exports) { | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(format); | ||
__export(formatUtils); | ||
__export(mathUtils); | ||
var format_1 = format; | ||
exports.default = format_1.compactFormat; | ||
exports.default = format.compactFormat; | ||
}); | ||
@@ -217,0 +211,0 @@ |
@@ -211,12 +211,6 @@ (function (global, factory) { | ||
var es = createCommonjsModule(function (module, exports) { | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(format); | ||
__export(formatUtils); | ||
__export(mathUtils); | ||
var format_1 = format; | ||
exports.default = format_1.compactFormat; | ||
exports.default = format.compactFormat; | ||
}); | ||
@@ -223,0 +217,0 @@ |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./format")); | ||
__export(require("./format-utils")); | ||
__export(require("./math-utils")); | ||
var format_1 = require("./format"); | ||
exports.default = format_1.compactFormat; | ||
//# sourceMappingURL=index.js.map |
@@ -1,5 +0,2 @@ | ||
export * from './format'; | ||
export * from './format-utils'; | ||
export * from './math-utils'; | ||
import { compactFormat } from './format'; | ||
export default compactFormat; |
{ | ||
"name": "cldr-compact-number", | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"description": "Compact number formatting logic", | ||
"main": "dist/cldr-compact-number.umd.js", | ||
"module": "dist/cldr-compact-number.es5.js", | ||
"jsnext:main": "dist/cldr-compact-number.es5.js", | ||
"types": "dist/types/index.d.ts", | ||
@@ -9,0 +8,0 @@ "scripts": { |
@@ -62,11 +62,11 @@ import compactFormat from '../src'; | ||
}); | ||
expect(replaceWhitespace(result)).toBe('1,2 mil'); | ||
expect(replaceWhitespace(result)).toBe('1.2 mil'); | ||
result = format(11234, 'es', localeData, { | ||
significantDigits: 1 | ||
}); | ||
expect(replaceWhitespace(result)).toBe('11,2 mil'); | ||
expect(replaceWhitespace(result)).toBe('11.2 mil'); | ||
result = format(91934, 'es', localeData, { | ||
significantDigits: 2 | ||
}); | ||
expect(replaceWhitespace(result)).toBe('91,93 mil'); | ||
expect(replaceWhitespace(result)).toBe('91.93 mil'); | ||
}); | ||
@@ -73,0 +73,0 @@ |
Sorry, the diff of this file is not supported yet
42768
724