koatty_store 1.6.2 → 1.7.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 -62
- package/CHANGELOG.md +29 -27
- package/LICENSE +29 -29
- package/README.md +2 -2
- package/dist/LICENSE +29 -29
- package/dist/README.md +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1866 -1850
- package/dist/index.mjs +1866 -1850
- package/dist/package.json +103 -99
- package/package.json +103 -99
- package/.vscode/launch.json +0 -25
package/dist/package.json
CHANGED
|
@@ -1,99 +1,103 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "koatty_store",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Cache store 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 && copyfiles package.json LICENSE README.md dist/",
|
|
8
|
-
"build:js": "
|
|
9
|
-
"build:doc": "
|
|
10
|
-
"build:dts": "
|
|
11
|
-
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
-
"lock": "npm i --package-lock-only",
|
|
13
|
-
"prepublishOnly": "npm test && npm run build",
|
|
14
|
-
"prerelease": "npm test && npm run build",
|
|
15
|
-
"
|
|
16
|
-
"release": "
|
|
17
|
-
"release:
|
|
18
|
-
"release:
|
|
19
|
-
"
|
|
20
|
-
"test": "
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"eslint": "^8.x.x",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"jest": "^
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
}
|
|
99
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "koatty_store",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"description": "Cache store 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": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
|
|
13
|
+
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
+
"prerelease": "npm run lock && 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": "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/koatty/koatty_store.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"web",
|
|
35
|
+
"typescript",
|
|
36
|
+
"framework",
|
|
37
|
+
"mvc",
|
|
38
|
+
"koa2",
|
|
39
|
+
"restful",
|
|
40
|
+
"agile",
|
|
41
|
+
"koatty_store",
|
|
42
|
+
"koatty"
|
|
43
|
+
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">10.0.0"
|
|
46
|
+
},
|
|
47
|
+
"author": {
|
|
48
|
+
"name": "richenlin",
|
|
49
|
+
"email": "richenlin@gmail.com"
|
|
50
|
+
},
|
|
51
|
+
"license": "BSD-3-Clause",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/koatty/koatty_store/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/koatty/koatty_store",
|
|
56
|
+
"maintainers": [
|
|
57
|
+
{
|
|
58
|
+
"name": "richenlin",
|
|
59
|
+
"email": "richenlin@gmail.com"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@commitlint/cli": "^19.x.x",
|
|
64
|
+
"@commitlint/config-conventional": "^19.x.x",
|
|
65
|
+
"@microsoft/api-documenter": "^7.x.x",
|
|
66
|
+
"@microsoft/api-extractor": "^7.x.x",
|
|
67
|
+
"@rollup/plugin-commonjs": "^28.x.x",
|
|
68
|
+
"@rollup/plugin-json": "^6.x.x",
|
|
69
|
+
"@rollup/plugin-node-resolve": "^15.x.x",
|
|
70
|
+
"@types/jest": "^29.x.x",
|
|
71
|
+
"@types/koa": "^2.x.x",
|
|
72
|
+
"@types/lodash": "^4.x.x",
|
|
73
|
+
"@types/node": "^22.x.x",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.x.x",
|
|
75
|
+
"@typescript-eslint/parser": "^8.x.x",
|
|
76
|
+
"conventional-changelog-cli": "^5.x.x",
|
|
77
|
+
"eslint": "^8.x.x",
|
|
78
|
+
"eslint-plugin-jest": "^28.x.x",
|
|
79
|
+
"husky": "^4.x.x",
|
|
80
|
+
"jest": "^29.x.x",
|
|
81
|
+
"jest-html-reporters": "^3.x.x",
|
|
82
|
+
"reflect-metadata": "^0.x.x",
|
|
83
|
+
"rollup": "^4.x.x",
|
|
84
|
+
"rollup-plugin-delete": "^2.x.x",
|
|
85
|
+
"rollup-plugin-typescript2": "^0.x.x",
|
|
86
|
+
"standard-version": "^9.x.x",
|
|
87
|
+
"ts-jest": "^29.x.x",
|
|
88
|
+
"ts-node": "^10.x.x",
|
|
89
|
+
"tslib": "^2.x.x",
|
|
90
|
+
"typescript": "^5.x.x"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"generic-pool": "^3.9.0",
|
|
94
|
+
"ioredis": "^5.4.1",
|
|
95
|
+
"koatty_lib": "^1.x.x",
|
|
96
|
+
"koatty_logger": "^2.x.x",
|
|
97
|
+
"lodash": "^4.17.21"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"koatty_lib": "^1.x.x",
|
|
101
|
+
"koatty_logger": "^2.x.x"
|
|
102
|
+
}
|
|
103
|
+
}
|
package/package.json
CHANGED
|
@@ -1,99 +1,103 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "koatty_store",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Cache store 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 && copyfiles package.json LICENSE README.md dist/",
|
|
8
|
-
"build:js": "
|
|
9
|
-
"build:doc": "
|
|
10
|
-
"build:dts": "
|
|
11
|
-
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
-
"lock": "npm i --package-lock-only",
|
|
13
|
-
"prepublishOnly": "npm test && npm run build",
|
|
14
|
-
"prerelease": "npm test && npm run build",
|
|
15
|
-
"
|
|
16
|
-
"release": "
|
|
17
|
-
"release:
|
|
18
|
-
"release:
|
|
19
|
-
"
|
|
20
|
-
"test": "
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"eslint": "^8.x.x",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"jest": "^
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
}
|
|
99
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "koatty_store",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"description": "Cache store 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": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
|
|
13
|
+
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
|
|
14
|
+
"prerelease": "npm run lock && 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": "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/koatty/koatty_store.git"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"web",
|
|
35
|
+
"typescript",
|
|
36
|
+
"framework",
|
|
37
|
+
"mvc",
|
|
38
|
+
"koa2",
|
|
39
|
+
"restful",
|
|
40
|
+
"agile",
|
|
41
|
+
"koatty_store",
|
|
42
|
+
"koatty"
|
|
43
|
+
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">10.0.0"
|
|
46
|
+
},
|
|
47
|
+
"author": {
|
|
48
|
+
"name": "richenlin",
|
|
49
|
+
"email": "richenlin@gmail.com"
|
|
50
|
+
},
|
|
51
|
+
"license": "BSD-3-Clause",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/koatty/koatty_store/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/koatty/koatty_store",
|
|
56
|
+
"maintainers": [
|
|
57
|
+
{
|
|
58
|
+
"name": "richenlin",
|
|
59
|
+
"email": "richenlin@gmail.com"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@commitlint/cli": "^19.x.x",
|
|
64
|
+
"@commitlint/config-conventional": "^19.x.x",
|
|
65
|
+
"@microsoft/api-documenter": "^7.x.x",
|
|
66
|
+
"@microsoft/api-extractor": "^7.x.x",
|
|
67
|
+
"@rollup/plugin-commonjs": "^28.x.x",
|
|
68
|
+
"@rollup/plugin-json": "^6.x.x",
|
|
69
|
+
"@rollup/plugin-node-resolve": "^15.x.x",
|
|
70
|
+
"@types/jest": "^29.x.x",
|
|
71
|
+
"@types/koa": "^2.x.x",
|
|
72
|
+
"@types/lodash": "^4.x.x",
|
|
73
|
+
"@types/node": "^22.x.x",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.x.x",
|
|
75
|
+
"@typescript-eslint/parser": "^8.x.x",
|
|
76
|
+
"conventional-changelog-cli": "^5.x.x",
|
|
77
|
+
"eslint": "^8.x.x",
|
|
78
|
+
"eslint-plugin-jest": "^28.x.x",
|
|
79
|
+
"husky": "^4.x.x",
|
|
80
|
+
"jest": "^29.x.x",
|
|
81
|
+
"jest-html-reporters": "^3.x.x",
|
|
82
|
+
"reflect-metadata": "^0.x.x",
|
|
83
|
+
"rollup": "^4.x.x",
|
|
84
|
+
"rollup-plugin-delete": "^2.x.x",
|
|
85
|
+
"rollup-plugin-typescript2": "^0.x.x",
|
|
86
|
+
"standard-version": "^9.x.x",
|
|
87
|
+
"ts-jest": "^29.x.x",
|
|
88
|
+
"ts-node": "^10.x.x",
|
|
89
|
+
"tslib": "^2.x.x",
|
|
90
|
+
"typescript": "^5.x.x"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"generic-pool": "^3.9.0",
|
|
94
|
+
"ioredis": "^5.4.1",
|
|
95
|
+
"koatty_lib": "^1.x.x",
|
|
96
|
+
"koatty_logger": "^2.x.x",
|
|
97
|
+
"lodash": "^4.17.21"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"koatty_lib": "^1.x.x",
|
|
101
|
+
"koatty_logger": "^2.x.x"
|
|
102
|
+
}
|
|
103
|
+
}
|
package/.vscode/launch.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// 使用 IntelliSense 了解相关属性。
|
|
3
|
-
// 悬停以查看现有属性的描述。
|
|
4
|
-
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Launch Typescript Project",
|
|
9
|
-
"type": "node",
|
|
10
|
-
"request": "launch",
|
|
11
|
-
"args": [
|
|
12
|
-
"${workspaceRoot}/test/test.ts"
|
|
13
|
-
],
|
|
14
|
-
"runtimeArgs": [
|
|
15
|
-
"--nolazy",
|
|
16
|
-
"-r",
|
|
17
|
-
"ts-node/register"
|
|
18
|
-
],
|
|
19
|
-
"sourceMaps": true,
|
|
20
|
-
"cwd": "${workspaceRoot}",
|
|
21
|
-
"protocol": "inspector",
|
|
22
|
-
"internalConsoleOptions": "neverOpen"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|