1 | {
|
2 | "name": "memoize-one",
|
3 | "version": "6.0.0",
|
4 | "description": "A memoization library which only remembers the latest invocation",
|
5 | "main": "dist/memoize-one.cjs.js",
|
6 | "types": "dist/memoize-one.d.ts",
|
7 | "module": "dist/memoize-one.esm.js",
|
8 | "sideEffects": false,
|
9 | "author": "Alex Reardon <alexreardon@gmail.com>",
|
10 | "license": "MIT",
|
11 | "repository": {
|
12 | "type": "git",
|
13 | "url": "https://github.com/alexreardon/memoize-one.git"
|
14 | },
|
15 | "files": [
|
16 | "/dist",
|
17 | "/src"
|
18 | ],
|
19 | "size-limit": [
|
20 | {
|
21 | "path": "dist/memoize-one.min.js",
|
22 | "limit": "234B"
|
23 | },
|
24 | {
|
25 | "path": "dist/memoize-one.js",
|
26 | "limit": "234B"
|
27 | },
|
28 | {
|
29 | "path": "dist/memoize-one.cjs.js",
|
30 | "limit": "230B"
|
31 | },
|
32 | {
|
33 | "path": "dist/memoize-one.esm.js",
|
34 | "limit": "246B"
|
35 | }
|
36 | ],
|
37 | "keywords": [
|
38 | "memoize",
|
39 | "memoization",
|
40 | "cache",
|
41 | "performance"
|
42 | ],
|
43 | "dependencies": {},
|
44 | "devDependencies": {
|
45 | "@size-limit/preset-small-lib": "^5.0.4",
|
46 | "@types/benchmark": "^2.1.1",
|
47 | "@types/jest": "^27.0.2",
|
48 | "@types/lodash.isequal": "^4.5.5",
|
49 | "@types/lodash.memoize": "^4.1.6",
|
50 | "@types/node": "^16.10.1",
|
51 | "@typescript-eslint/eslint-plugin": "^4.31.2",
|
52 | "@typescript-eslint/parser": "^4.31.2",
|
53 | "benchmark": "^2.1.4",
|
54 | "cross-env": "^7.0.3",
|
55 | "eslint": "7.32.0",
|
56 | "eslint-config-prettier": "^8.3.0",
|
57 | "eslint-plugin-jest": "^24.4.2",
|
58 | "eslint-plugin-prettier": "^4.0.0",
|
59 | "expect-type": "^0.12.0",
|
60 | "fast-memoize": "^2.5.2",
|
61 | "jest": "^27.2.2",
|
62 | "lodash.isequal": "^4.5.0",
|
63 | "lodash.memoize": "^4.1.2",
|
64 | "markdown-table": "^3.0.1",
|
65 | "mem": "^9.0.1",
|
66 | "memoizee": "^0.4.15",
|
67 | "moize": "^6.1.0",
|
68 | "nanocolors": "^0.2.9",
|
69 | "ora": "^6.0.1",
|
70 | "prettier": "2.4.1",
|
71 | "rimraf": "3.0.2",
|
72 | "rollup": "^2.57.0",
|
73 | "rollup-plugin-replace": "^2.2.0",
|
74 | "rollup-plugin-terser": "^7.0.2",
|
75 | "rollup-plugin-typescript": "^1.0.1",
|
76 | "size-limit": "^5.0.4",
|
77 | "ts-jest": "^27.0.5",
|
78 | "ts-node": "^10.2.1",
|
79 | "tslib": "^2.3.1",
|
80 | "typescript": "^4.4.3"
|
81 | },
|
82 | "config": {
|
83 | "prettier_target": "src/**/*.{ts,js,jsx,md,json} test/**/*.{ts,js,jsx,md,json}"
|
84 | },
|
85 | "scripts": {
|
86 | "validate": "yarn prettier:check && yarn eslint:check && yarn typescript:check",
|
87 | "test": "yarn jest",
|
88 | "test:size": "yarn build && yarn size-limit",
|
89 | "typescript:check": "yarn tsc --noEmit",
|
90 | "prettier:check": "yarn prettier --debug-check $npm_package_config_prettier_target",
|
91 | "prettier:write": "yarn prettier --write $npm_package_config_prettier_target",
|
92 | "eslint:check": "eslint $npm_package_config_prettier_target",
|
93 | "build": "yarn build:clean && yarn build:dist && yarn build:typescript && yarn build:flow",
|
94 | "build:clean": "yarn rimraf dist",
|
95 | "build:dist": "yarn rollup -c",
|
96 | "build:typescript": "yarn tsc ./src/memoize-one.ts --emitDeclarationOnly --declaration --outDir ./dist",
|
97 | "build:flow": "cp src/memoize-one.js.flow dist/memoize-one.cjs.js.flow",
|
98 | "perf": "yarn ts-node ./benchmarks/shallow-equal.ts",
|
99 | "perf:library-comparison": "yarn build && node ./benchmarks/library-comparison.js",
|
100 | "prepublishOnly": "yarn build"
|
101 | }
|
102 | }
|