koatty_cacheable 1.6.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rollup.config.js +59 -59
- package/CHANGELOG.md +47 -37
- package/LICENSE +29 -29
- package/README.md +235 -57
- package/dist/LICENSE +29 -29
- package/dist/README.md +235 -57
- package/dist/index.d.ts +32 -15
- package/dist/index.js +326 -132
- package/dist/index.mjs +325 -132
- package/dist/package.json +102 -98
- package/package.json +102 -98
package/dist/package.json
CHANGED
|
@@ -1,98 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "koatty_cacheable",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Cacheable for koatty.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
7
|
-
"build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
|
|
8
|
-
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
9
|
-
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
-
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
11
|
-
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
-
"lock": "
|
|
13
|
-
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
-
"prerelease": "npm
|
|
15
|
-
"release": "standard-version",
|
|
16
|
-
"release:pre": "npm run release -- --prerelease",
|
|
17
|
-
"release:major": "npm run release -- --release-as major",
|
|
18
|
-
"release:minor": "npm run release -- --release-as minor",
|
|
19
|
-
"test": "npm run eslint && jest --passWithNoTests",
|
|
20
|
-
"test:cov": "jest --collectCoverage --detectOpenHandles",
|
|
21
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
22
|
-
},
|
|
23
|
-
"main": "./dist/index.js",
|
|
24
|
-
"exports": {
|
|
25
|
-
"require": "./dist/index.js",
|
|
26
|
-
"import": "./dist/index.mjs",
|
|
27
|
-
"types": "./dist/index.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/thinkkoa/koatty_cacheable.git"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"cache",
|
|
35
|
-
"store",
|
|
36
|
-
"koatty",
|
|
37
|
-
"thinkkoa"
|
|
38
|
-
],
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">10.0.0"
|
|
41
|
-
},
|
|
42
|
-
"author": {
|
|
43
|
-
"name": "richenlin",
|
|
44
|
-
"email": "richenlin@gmail.com"
|
|
45
|
-
},
|
|
46
|
-
"license": "BSD-3-Clause",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/thinkkoa/koatty_cacheable/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/thinkkoa/koatty_cacheable",
|
|
51
|
-
"maintainers": [
|
|
52
|
-
{
|
|
53
|
-
"name": "richenlin",
|
|
54
|
-
"email": "richenlin@gmail.com"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "^19.x.x",
|
|
59
|
-
"@commitlint/config-conventional": "^19.x.x",
|
|
60
|
-
"@
|
|
61
|
-
"@microsoft/api-
|
|
62
|
-
"@
|
|
63
|
-
"@rollup/plugin-
|
|
64
|
-
"@rollup/plugin-
|
|
65
|
-
"@
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"@types/
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"
|
|
72
|
-
"eslint": "^8.x.x",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"jest": "^
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"rollup
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "koatty_cacheable",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Cacheable for koatty.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
7
|
+
"build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
|
|
8
|
+
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
9
|
+
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
+
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
11
|
+
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
+
"lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
|
|
13
|
+
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
+
"prerelease": "npm test && npm run build",
|
|
15
|
+
"release": "standard-version",
|
|
16
|
+
"release:pre": "npm run release -- --prerelease",
|
|
17
|
+
"release:major": "npm run release -- --release-as major",
|
|
18
|
+
"release:minor": "npm run release -- --release-as minor",
|
|
19
|
+
"test": "NODE_ENV=test npm run eslint && NODE_ENV=test jest --passWithNoTests",
|
|
20
|
+
"test:cov": "jest --collectCoverage --detectOpenHandles",
|
|
21
|
+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"exports": {
|
|
25
|
+
"require": "./dist/index.js",
|
|
26
|
+
"import": "./dist/index.mjs",
|
|
27
|
+
"types": "./dist/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/thinkkoa/koatty_cacheable.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"cache",
|
|
35
|
+
"store",
|
|
36
|
+
"koatty",
|
|
37
|
+
"thinkkoa"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">10.0.0"
|
|
41
|
+
},
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "richenlin",
|
|
44
|
+
"email": "richenlin@gmail.com"
|
|
45
|
+
},
|
|
46
|
+
"license": "BSD-3-Clause",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/thinkkoa/koatty_cacheable/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/thinkkoa/koatty_cacheable",
|
|
51
|
+
"maintainers": [
|
|
52
|
+
{
|
|
53
|
+
"name": "richenlin",
|
|
54
|
+
"email": "richenlin@gmail.com"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@commitlint/cli": "^19.x.x",
|
|
59
|
+
"@commitlint/config-conventional": "^19.x.x",
|
|
60
|
+
"@commitlint/format": "^19.x.x",
|
|
61
|
+
"@microsoft/api-documenter": "^7.x.x",
|
|
62
|
+
"@microsoft/api-extractor": "^7.x.x",
|
|
63
|
+
"@rollup/plugin-commonjs": "^28.x.x",
|
|
64
|
+
"@rollup/plugin-json": "^6.x.x",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^16.x.x",
|
|
66
|
+
"@types/jest": "^29.x.x",
|
|
67
|
+
"@types/koa": "^2.x.x",
|
|
68
|
+
"@types/lodash": "^4.x.x",
|
|
69
|
+
"@types/node": "^22.x.x",
|
|
70
|
+
"@types/ws": "^8.18.1",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.x.x",
|
|
72
|
+
"@typescript-eslint/parser": "^8.x.x",
|
|
73
|
+
"conventional-changelog-cli": "^5.x.x",
|
|
74
|
+
"eslint": "^8.x.x",
|
|
75
|
+
"eslint-plugin-jest": "^28.x.x",
|
|
76
|
+
"husky": "^4.x.x",
|
|
77
|
+
"jest": "^29.x.x",
|
|
78
|
+
"jest-html-reporters": "^3.x.x",
|
|
79
|
+
"reflect-metadata": "^0.x.x",
|
|
80
|
+
"rollup": "^4.x.x",
|
|
81
|
+
"rollup-plugin-delete": "^2.x.x",
|
|
82
|
+
"rollup-plugin-typescript2": "^0.x.x",
|
|
83
|
+
"standard-version": "^9.x.x",
|
|
84
|
+
"ts-jest": "^29.x.x",
|
|
85
|
+
"ts-node": "^10.x.x",
|
|
86
|
+
"tslib": "^2.x.x",
|
|
87
|
+
"typescript": "^5.x.x"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"koatty_container": "^1.x.x",
|
|
91
|
+
"koatty_core": "^1.x.x",
|
|
92
|
+
"koatty_lib": "^1.x.x",
|
|
93
|
+
"koatty_logger": "^2.x.x",
|
|
94
|
+
"koatty_store": "^1.x.x"
|
|
95
|
+
},
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"koatty_container": "^1.x.x",
|
|
98
|
+
"koatty_core": "^1.x.x",
|
|
99
|
+
"koatty_lib": "^1.x.x",
|
|
100
|
+
"koatty_logger": "^2.x.x"
|
|
101
|
+
}
|
|
102
|
+
}
|
package/package.json
CHANGED
|
@@ -1,98 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "koatty_cacheable",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Cacheable for koatty.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
7
|
-
"build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
|
|
8
|
-
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
9
|
-
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
-
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
11
|
-
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
-
"lock": "
|
|
13
|
-
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
-
"prerelease": "npm
|
|
15
|
-
"release": "standard-version",
|
|
16
|
-
"release:pre": "npm run release -- --prerelease",
|
|
17
|
-
"release:major": "npm run release -- --release-as major",
|
|
18
|
-
"release:minor": "npm run release -- --release-as minor",
|
|
19
|
-
"test": "npm run eslint && jest --passWithNoTests",
|
|
20
|
-
"test:cov": "jest --collectCoverage --detectOpenHandles",
|
|
21
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
22
|
-
},
|
|
23
|
-
"main": "./dist/index.js",
|
|
24
|
-
"exports": {
|
|
25
|
-
"require": "./dist/index.js",
|
|
26
|
-
"import": "./dist/index.mjs",
|
|
27
|
-
"types": "./dist/index.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/thinkkoa/koatty_cacheable.git"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"cache",
|
|
35
|
-
"store",
|
|
36
|
-
"koatty",
|
|
37
|
-
"thinkkoa"
|
|
38
|
-
],
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">10.0.0"
|
|
41
|
-
},
|
|
42
|
-
"author": {
|
|
43
|
-
"name": "richenlin",
|
|
44
|
-
"email": "richenlin@gmail.com"
|
|
45
|
-
},
|
|
46
|
-
"license": "BSD-3-Clause",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/thinkkoa/koatty_cacheable/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/thinkkoa/koatty_cacheable",
|
|
51
|
-
"maintainers": [
|
|
52
|
-
{
|
|
53
|
-
"name": "richenlin",
|
|
54
|
-
"email": "richenlin@gmail.com"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "^19.x.x",
|
|
59
|
-
"@commitlint/config-conventional": "^19.x.x",
|
|
60
|
-
"@
|
|
61
|
-
"@microsoft/api-
|
|
62
|
-
"@
|
|
63
|
-
"@rollup/plugin-
|
|
64
|
-
"@rollup/plugin-
|
|
65
|
-
"@
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"@types/
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"
|
|
72
|
-
"eslint": "^8.x.x",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"jest": "^
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"rollup
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "koatty_cacheable",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Cacheable for koatty.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
|
|
7
|
+
"build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
|
|
8
|
+
"build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
|
|
9
|
+
"build:doc": "npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
+
"build:dts": "npx tsc && npx api-extractor run --local --verbose",
|
|
11
|
+
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
+
"lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
|
|
13
|
+
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
+
"prerelease": "npm test && npm run build",
|
|
15
|
+
"release": "standard-version",
|
|
16
|
+
"release:pre": "npm run release -- --prerelease",
|
|
17
|
+
"release:major": "npm run release -- --release-as major",
|
|
18
|
+
"release:minor": "npm run release -- --release-as minor",
|
|
19
|
+
"test": "NODE_ENV=test npm run eslint && NODE_ENV=test jest --passWithNoTests",
|
|
20
|
+
"test:cov": "jest --collectCoverage --detectOpenHandles",
|
|
21
|
+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"exports": {
|
|
25
|
+
"require": "./dist/index.js",
|
|
26
|
+
"import": "./dist/index.mjs",
|
|
27
|
+
"types": "./dist/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/thinkkoa/koatty_cacheable.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"cache",
|
|
35
|
+
"store",
|
|
36
|
+
"koatty",
|
|
37
|
+
"thinkkoa"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">10.0.0"
|
|
41
|
+
},
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "richenlin",
|
|
44
|
+
"email": "richenlin@gmail.com"
|
|
45
|
+
},
|
|
46
|
+
"license": "BSD-3-Clause",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/thinkkoa/koatty_cacheable/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/thinkkoa/koatty_cacheable",
|
|
51
|
+
"maintainers": [
|
|
52
|
+
{
|
|
53
|
+
"name": "richenlin",
|
|
54
|
+
"email": "richenlin@gmail.com"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@commitlint/cli": "^19.x.x",
|
|
59
|
+
"@commitlint/config-conventional": "^19.x.x",
|
|
60
|
+
"@commitlint/format": "^19.x.x",
|
|
61
|
+
"@microsoft/api-documenter": "^7.x.x",
|
|
62
|
+
"@microsoft/api-extractor": "^7.x.x",
|
|
63
|
+
"@rollup/plugin-commonjs": "^28.x.x",
|
|
64
|
+
"@rollup/plugin-json": "^6.x.x",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^16.x.x",
|
|
66
|
+
"@types/jest": "^29.x.x",
|
|
67
|
+
"@types/koa": "^2.x.x",
|
|
68
|
+
"@types/lodash": "^4.x.x",
|
|
69
|
+
"@types/node": "^22.x.x",
|
|
70
|
+
"@types/ws": "^8.18.1",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.x.x",
|
|
72
|
+
"@typescript-eslint/parser": "^8.x.x",
|
|
73
|
+
"conventional-changelog-cli": "^5.x.x",
|
|
74
|
+
"eslint": "^8.x.x",
|
|
75
|
+
"eslint-plugin-jest": "^28.x.x",
|
|
76
|
+
"husky": "^4.x.x",
|
|
77
|
+
"jest": "^29.x.x",
|
|
78
|
+
"jest-html-reporters": "^3.x.x",
|
|
79
|
+
"reflect-metadata": "^0.x.x",
|
|
80
|
+
"rollup": "^4.x.x",
|
|
81
|
+
"rollup-plugin-delete": "^2.x.x",
|
|
82
|
+
"rollup-plugin-typescript2": "^0.x.x",
|
|
83
|
+
"standard-version": "^9.x.x",
|
|
84
|
+
"ts-jest": "^29.x.x",
|
|
85
|
+
"ts-node": "^10.x.x",
|
|
86
|
+
"tslib": "^2.x.x",
|
|
87
|
+
"typescript": "^5.x.x"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"koatty_container": "^1.x.x",
|
|
91
|
+
"koatty_core": "^1.x.x",
|
|
92
|
+
"koatty_lib": "^1.x.x",
|
|
93
|
+
"koatty_logger": "^2.x.x",
|
|
94
|
+
"koatty_store": "^1.x.x"
|
|
95
|
+
},
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"koatty_container": "^1.x.x",
|
|
98
|
+
"koatty_core": "^1.x.x",
|
|
99
|
+
"koatty_lib": "^1.x.x",
|
|
100
|
+
"koatty_logger": "^2.x.x"
|
|
101
|
+
}
|
|
102
|
+
}
|