Socket
Socket
Sign inDemoInstall

intl-format-cache

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-format-cache - npm Package Compare versions

Comparing version 2.2.7 to 2.2.9

coverage/lcov-report/base.css

16

CHANGELOG.md

@@ -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 @@

17

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc