intl-format-cache
Advanced tools
Comparing version 2.2.7 to 2.2.9
@@ -6,2 +6,18 @@ # Change Log | ||
## [2.2.9](https://github.com/formatjs/formatjs/compare/intl-format-cache@2.2.7...intl-format-cache@2.2.9) (2019-06-03) | ||
**Note:** Version bump only for package intl-format-cache | ||
## [2.2.8](https://github.com/formatjs/formatjs/compare/intl-format-cache@2.2.7...intl-format-cache@2.2.8) (2019-06-03) | ||
**Note:** Version bump only for package intl-format-cache | ||
## [2.2.7](https://github.com/formatjs/formatjs/compare/intl-format-cache@2.2.6...intl-format-cache@2.2.7) (2019-05-31) | ||
@@ -8,0 +24,0 @@ |
{ | ||
"name": "intl-format-cache", | ||
"version": "2.2.7", | ||
"version": "2.2.9", | ||
"description": "A memoizer factory for Intl format constructors.", | ||
@@ -9,9 +9,12 @@ "main": "index.js", | ||
"scripts": { | ||
"clean": "rimraf dist lib", | ||
"benchmark": "ts-node --project tests/tsconfig.json tests/benchmark", | ||
"build": "tsc -p src && tsc -p src/tsconfig.cjs.json", | ||
"clean": "rimraf lib dist", | ||
"cover": "nyc npm t", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"test": "TS_NODE_PROJECT='tests/tsconfig.json' mocha -r ts-node/register -r source-map-support/register -r chai/register-expect tests/index.ts --reporter spec" | ||
"build": "tsc && tsc -p src/tsconfig.cjs.json && rollup -c rollup.config.js", | ||
"test": "mocha --opts ../../mocha.opts tests/index.ts", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"intl-messageformat": "^3.3.0", | ||
"intl-relativeformat": "^5.0.0" | ||
}, | ||
"repository": { | ||
@@ -31,3 +34,3 @@ "type": "git", | ||
"homepage": "https://github.com/formatjs/formatjs", | ||
"gitHead": "ddea07e45ad093b29dbb1680bc9077309e41ae53" | ||
"gitHead": "6c131ebfbd0431cc32520f6880e1ea917797a389" | ||
} |
@@ -49,3 +49,3 @@ /* | ||
function orderedProps(obj: object) { | ||
function orderedProps(obj: Record<string, any>) { | ||
return Object.keys(obj) | ||
@@ -70,5 +70,5 @@ .sort() | ||
const memoizeFormatConstructor: MemoizeFormatConstructorFn = ( | ||
FormatConstructor, | ||
cache = {} | ||
) => (...args) => { | ||
FormatConstructor: any, | ||
cache: Record<string, any> = {} | ||
) => (...args: any[]) => { | ||
const cacheId = getCacheId(args); | ||
@@ -75,0 +75,0 @@ let format = cacheId && cache[cacheId]; |
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"module": "es6", | ||
"target": "es5", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"moduleResolution": "node", | ||
"lib": ["dom", "es2018.intl", "es6"] | ||
} | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"include": ["src/*.ts"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
740
53937
2
1