@lrc-maker/lrc-parser
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = global || self, factory(global.lrcParser = {})); | ||
}(this, function (exports) { 'use strict'; | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -114,6 +114,6 @@ /*! ***************************************************************************** | ||
}; | ||
var storedFormaTter = new Map(); | ||
var storedFormatter = new Map(); | ||
var getFormatter = function (fixed) { | ||
if (storedFormaTter.has(fixed)) { | ||
return storedFormaTter.get(fixed); | ||
if (storedFormatter.has(fixed)) { | ||
return storedFormatter.get(fixed); | ||
} | ||
@@ -125,4 +125,5 @@ else { | ||
maximumFractionDigits: fixed, | ||
useGrouping: false, | ||
}); | ||
storedFormaTter.set(fixed, newFormatter); | ||
storedFormatter.set(fixed, newFormatter); | ||
return newFormatter; | ||
@@ -176,3 +177,3 @@ } | ||
})); | ||
}))); | ||
//# sourceMappingURL=lrc-parser.js.map |
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = global || self, factory(global.lrcParser = {})); | ||
}(this, function (exports) { 'use strict'; | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -59,6 +59,6 @@ const parser = (lrcString, option = {}) => { | ||
}; | ||
const storedFormaTter = new Map(); | ||
const storedFormatter = new Map(); | ||
const getFormatter = (fixed) => { | ||
if (storedFormaTter.has(fixed)) { | ||
return storedFormaTter.get(fixed); | ||
if (storedFormatter.has(fixed)) { | ||
return storedFormatter.get(fixed); | ||
} | ||
@@ -70,4 +70,5 @@ else { | ||
maximumFractionDigits: fixed, | ||
useGrouping: false, | ||
}); | ||
storedFormaTter.set(fixed, newFormatter); | ||
storedFormatter.set(fixed, newFormatter); | ||
return newFormatter; | ||
@@ -119,3 +120,3 @@ } | ||
})); | ||
}))); | ||
//# sourceMappingURL=lrc-parser.js.map |
@@ -52,6 +52,6 @@ export const parser = (lrcString, option = {}) => { | ||
}; | ||
const storedFormaTter = new Map(); | ||
const storedFormatter = new Map(); | ||
const getFormatter = (fixed) => { | ||
if (storedFormaTter.has(fixed)) { | ||
return storedFormaTter.get(fixed); | ||
if (storedFormatter.has(fixed)) { | ||
return storedFormatter.get(fixed); | ||
} | ||
@@ -63,4 +63,5 @@ else { | ||
maximumFractionDigits: fixed, | ||
useGrouping: false, | ||
}); | ||
storedFormaTter.set(fixed, newFormatter); | ||
storedFormatter.set(fixed, newFormatter); | ||
return newFormatter; | ||
@@ -67,0 +68,0 @@ } |
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = global || self, factory(global.lrcParser = {})); | ||
}(this, function (exports) { 'use strict'; | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -59,6 +59,6 @@ const parser = (lrcString, option = {}) => { | ||
}; | ||
const storedFormaTter = new Map(); | ||
const storedFormatter = new Map(); | ||
const getFormatter = (fixed) => { | ||
if (storedFormaTter.has(fixed)) { | ||
return storedFormaTter.get(fixed); | ||
if (storedFormatter.has(fixed)) { | ||
return storedFormatter.get(fixed); | ||
} | ||
@@ -70,4 +70,5 @@ else { | ||
maximumFractionDigits: fixed, | ||
useGrouping: false, | ||
}); | ||
storedFormaTter.set(fixed, newFormatter); | ||
storedFormatter.set(fixed, newFormatter); | ||
return newFormatter; | ||
@@ -119,3 +120,3 @@ } | ||
})); | ||
}))); | ||
//# sourceMappingURL=lrc-parser.js.map |
{ | ||
"name": "@lrc-maker/lrc-parser", | ||
"description": "lrc-parser for lrc-maker", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"repository": "https://github.com/lrc-maker/lrc-parser.git", | ||
@@ -33,13 +33,13 @@ "author": "magic-akari <hufan.akarin@gmail.com>", | ||
"devDependencies": { | ||
"@types/chai": "^4.2.3", | ||
"@types/chai": "^4.2.6", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.8", | ||
"@types/node": "^12.12.14", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.2.0", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.21.4", | ||
"rollup-plugin-typescript2": "^0.24.3", | ||
"ts-node": "^8.4.1", | ||
"tslint": "^5.20.0", | ||
"typescript": "^3.6.3" | ||
"mocha": "^6.2.2", | ||
"prettier": "^1.19.1", | ||
"rollup": "^1.27.9", | ||
"rollup-plugin-typescript2": "^0.25.3", | ||
"ts-node": "^8.5.4", | ||
"tslint": "^5.20.1", | ||
"typescript": "^3.7.3" | ||
}, | ||
@@ -46,0 +46,0 @@ "publishConfig": { |
@@ -96,7 +96,7 @@ declare global { | ||
const storedFormaTter = new Map<Fixed, Intl.NumberFormat>(); | ||
const storedFormatter = new Map<Fixed, Intl.NumberFormat>(); | ||
const getFormatter = (fixed: Fixed) => { | ||
if (storedFormaTter.has(fixed)) { | ||
return storedFormaTter.get(fixed)!; | ||
if (storedFormatter.has(fixed)) { | ||
return storedFormatter.get(fixed)!; | ||
} else { | ||
@@ -107,4 +107,5 @@ const newFormatter = new Intl.NumberFormat("en", { | ||
maximumFractionDigits: fixed, | ||
useGrouping: false, | ||
}); | ||
storedFormaTter.set(fixed, newFormatter); | ||
storedFormatter.set(fixed, newFormatter); | ||
return newFormatter; | ||
@@ -111,0 +112,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61903
778