koatty_cacheable 1.3.2 → 1.3.7
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 +63 -0
- package/CHANGELOG.md +1 -1
- package/dist/LICENSE +29 -0
- package/dist/README.md +57 -0
- package/dist/index.d.ts +47 -35
- package/dist/index.js +194 -239
- package/dist/index.mjs +173 -0
- package/dist/package.json +89 -0
- package/package.json +32 -23
- package/target/npmlist.json +1 -0
- package/.eslintignore +0 -9
- package/.eslintrc.js +0 -43
- package/babel.config.js +0 -21
- package/commitlint.config.js +0 -14
- package/dist/index.js.map +0 -1
- package/jest.config.js +0 -36
- package/jest_html_reporters.html +0 -60
- package/tsconfig.json +0 -67
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "koatty_cacheable",
|
|
3
|
+
"version": "1.3.7",
|
|
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 && copyfiles package.json LICENSE README.md dist/",
|
|
8
|
+
"build:js": "del-cli --force dist && npx rollup -c .rollup.config.js",
|
|
9
|
+
"build:doc": "del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
+
"build:dts": "del-cli --force temp && npx tsc && npx api-extractor run --local --verbose",
|
|
11
|
+
"eslint": "eslint --ext .ts,.js ./",
|
|
12
|
+
"prepublishOnly": "npm test && npm run build",
|
|
13
|
+
"prerelease": "npm test && npm run build",
|
|
14
|
+
"release": "standard-version",
|
|
15
|
+
"test": "npm run eslint && jest --passWithNoTests"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"exports": {
|
|
19
|
+
"require": "./dist/index.js",
|
|
20
|
+
"import": "./dist/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/thinkkoa/koatty_cacheable.git"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"cache",
|
|
28
|
+
"store",
|
|
29
|
+
"koatty",
|
|
30
|
+
"thinkkoa"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">10.0.0"
|
|
34
|
+
},
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "richenlin",
|
|
37
|
+
"email": "richenlin@gmail.com"
|
|
38
|
+
},
|
|
39
|
+
"license": "BSD-3-Clause",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/thinkkoa/koatty_cacheable/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/thinkkoa/koatty_cacheable",
|
|
44
|
+
"maintainers": [
|
|
45
|
+
{
|
|
46
|
+
"name": "richenlin",
|
|
47
|
+
"email": "richenlin@gmail.com"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@commitlint/cli": "^17.x.x",
|
|
52
|
+
"@commitlint/config-conventional": "^17.x.x",
|
|
53
|
+
"@microsoft/api-documenter": "^7.x.x",
|
|
54
|
+
"@microsoft/api-extractor": "^7.x.x",
|
|
55
|
+
"@rollup/plugin-json": "^4.x.x",
|
|
56
|
+
"@types/jest": "^27.x.x",
|
|
57
|
+
"@types/koa": "^2.x.x",
|
|
58
|
+
"@types/node": "^16.x.x",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^5.x.x",
|
|
60
|
+
"@typescript-eslint/parser": "^5.x.x",
|
|
61
|
+
"conventional-changelog-cli": "^2.x.x",
|
|
62
|
+
"copyfiles": "^2.x.x",
|
|
63
|
+
"del-cli": "^4.x.x",
|
|
64
|
+
"eslint": "^8.x.x",
|
|
65
|
+
"eslint-plugin-jest": "^26.x.x",
|
|
66
|
+
"husky": "^4.x.x",
|
|
67
|
+
"jest": "^28.x.x",
|
|
68
|
+
"jest-html-reporters": "^3.x.x",
|
|
69
|
+
"rollup": "^2.x.x",
|
|
70
|
+
"rollup-plugin-typescript2": "^0.x.x",
|
|
71
|
+
"standard-version": "^9.x.x",
|
|
72
|
+
"ts-jest": "^28.x.x",
|
|
73
|
+
"ts-node": "^10.x.x",
|
|
74
|
+
"typescript": "^4.x.x"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"koatty_container": "^1.x.x",
|
|
78
|
+
"koatty_lib": "^1.x.x",
|
|
79
|
+
"koatty_logger": "^1.x.x",
|
|
80
|
+
"koatty_store": "^1.x.x",
|
|
81
|
+
"tslib": "^2.4.0"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"koatty_container": "^1.x.x",
|
|
85
|
+
"koatty_lib": "^1.x.x",
|
|
86
|
+
"koatty_logger": "^1.x.x",
|
|
87
|
+
"koatty_store": "^1.x.x"
|
|
88
|
+
}
|
|
89
|
+
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koatty_cacheable",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Cacheable for koatty.",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "
|
|
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": "del-cli --force dist && npx rollup -c .rollup.config.js",
|
|
9
|
+
"build:doc": "del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api",
|
|
10
|
+
"build:dts": "del-cli --force temp && npx tsc && npx api-extractor run --local --verbose",
|
|
7
11
|
"eslint": "eslint --ext .ts,.js ./",
|
|
8
12
|
"prepublishOnly": "npm test && npm run build",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"test": "npm run eslint && jest --passWithNoTests"
|
|
12
|
-
"test:cov": "jest --collectCoverage --detectOpenHandles",
|
|
13
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
13
|
+
"prerelease": "npm test && npm run build",
|
|
14
|
+
"release": "standard-version",
|
|
15
|
+
"test": "npm run eslint && jest --passWithNoTests"
|
|
14
16
|
},
|
|
15
17
|
"main": "./dist/index.js",
|
|
18
|
+
"exports": {
|
|
19
|
+
"require": "./dist/index.js",
|
|
20
|
+
"import": "./dist/index.mjs"
|
|
21
|
+
},
|
|
16
22
|
"repository": {
|
|
17
23
|
"type": "git",
|
|
18
24
|
"url": "git+https://github.com/thinkkoa/koatty_cacheable.git"
|
|
@@ -42,26 +48,28 @@
|
|
|
42
48
|
}
|
|
43
49
|
],
|
|
44
50
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@commitlint/config-conventional": "^15.x.x",
|
|
51
|
+
"@commitlint/cli": "^17.x.x",
|
|
52
|
+
"@commitlint/config-conventional": "^17.x.x",
|
|
53
|
+
"@microsoft/api-documenter": "^7.x.x",
|
|
54
|
+
"@microsoft/api-extractor": "^7.x.x",
|
|
55
|
+
"@rollup/plugin-json": "^4.x.x",
|
|
51
56
|
"@types/jest": "^27.x.x",
|
|
52
57
|
"@types/koa": "^2.x.x",
|
|
53
58
|
"@types/node": "^16.x.x",
|
|
54
59
|
"@typescript-eslint/eslint-plugin": "^5.x.x",
|
|
55
60
|
"@typescript-eslint/parser": "^5.x.x",
|
|
56
61
|
"conventional-changelog-cli": "^2.x.x",
|
|
62
|
+
"copyfiles": "^2.x.x",
|
|
57
63
|
"del-cli": "^4.x.x",
|
|
58
64
|
"eslint": "^8.x.x",
|
|
59
|
-
"eslint-plugin-jest": "^
|
|
60
|
-
"husky": "^
|
|
61
|
-
"jest": "^
|
|
62
|
-
"jest-html-reporters": "^
|
|
65
|
+
"eslint-plugin-jest": "^26.x.x",
|
|
66
|
+
"husky": "^4.x.x",
|
|
67
|
+
"jest": "^28.x.x",
|
|
68
|
+
"jest-html-reporters": "^3.x.x",
|
|
69
|
+
"rollup": "^2.x.x",
|
|
70
|
+
"rollup-plugin-typescript2": "^0.x.x",
|
|
63
71
|
"standard-version": "^9.x.x",
|
|
64
|
-
"ts-jest": "^
|
|
72
|
+
"ts-jest": "^28.x.x",
|
|
65
73
|
"ts-node": "^10.x.x",
|
|
66
74
|
"typescript": "^4.x.x"
|
|
67
75
|
},
|
|
@@ -70,11 +78,12 @@
|
|
|
70
78
|
"koatty_lib": "^1.x.x",
|
|
71
79
|
"koatty_logger": "^1.x.x",
|
|
72
80
|
"koatty_store": "^1.x.x",
|
|
73
|
-
"tslib": "^2.
|
|
81
|
+
"tslib": "^2.4.0"
|
|
74
82
|
},
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"koatty_container": "^1.x.x",
|
|
85
|
+
"koatty_lib": "^1.x.x",
|
|
86
|
+
"koatty_logger": "^1.x.x",
|
|
87
|
+
"koatty_store": "^1.x.x"
|
|
79
88
|
}
|
|
80
89
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"1.3.4","name":"koatty_cacheable","dependencies":{"koatty_container":{"version":"1.6.6"},"koatty_lib":{"version":"1.2.6"},"koatty_logger":{"version":"1.2.4"},"koatty_store":{"version":"1.4.10"},"tslib":{"version":"2.3.1"}}}
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
module.exports = {
|
|
5
|
-
root: true,
|
|
6
|
-
parser: '@typescript-eslint/parser',
|
|
7
|
-
extends: [
|
|
8
|
-
'plugin:@typescript-eslint/recommended', // 使用@typescript-eslint/eslint-plugin的推荐规则
|
|
9
|
-
'plugin:jest/recommended',
|
|
10
|
-
],
|
|
11
|
-
plugins: [
|
|
12
|
-
'@typescript-eslint',
|
|
13
|
-
'jest',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
project: './tsconfig.json',
|
|
17
|
-
},
|
|
18
|
-
env: {
|
|
19
|
-
node: true,
|
|
20
|
-
mongo: true,
|
|
21
|
-
jest: true,
|
|
22
|
-
},
|
|
23
|
-
rules: {
|
|
24
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
25
|
-
// "@typescript-eslint/no-require-imports": "off",
|
|
26
|
-
"@typescript-eslint/no-var-requires": "off",
|
|
27
|
-
"@typescript-eslint/member-ordering": "off",
|
|
28
|
-
"@typescript-eslint/consistent-type-assertions": "off",
|
|
29
|
-
"@typescript-eslint/no-param-reassign": "off",
|
|
30
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
31
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
32
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
33
|
-
"@typescript-eslint/ban-types": ["error",
|
|
34
|
-
{
|
|
35
|
-
"types": {
|
|
36
|
-
"Object": false,
|
|
37
|
-
"Function": false,
|
|
38
|
-
},
|
|
39
|
-
"extendDefaults": true
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
};
|
package/babel.config.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Description : babel配置
|
|
3
|
-
* @usage : 用于jest执行用例
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
presets: [
|
|
8
|
-
[
|
|
9
|
-
'@babel/preset-env',
|
|
10
|
-
{
|
|
11
|
-
targets: {
|
|
12
|
-
node: 'current',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
'@babel/preset-typescript',
|
|
17
|
-
],
|
|
18
|
-
plugins: [
|
|
19
|
-
['@babel/plugin-proposal-decorators', { 'legacy': true }]
|
|
20
|
-
],
|
|
21
|
-
};
|
package/commitlint.config.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
module.exports = {
|
|
5
|
-
extends: ['@commitlint/config-conventional'],
|
|
6
|
-
rules: {
|
|
7
|
-
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore']],
|
|
8
|
-
'type-empty': [2, 'never'],
|
|
9
|
-
'scope-enum': [0], // 不校验scope类型
|
|
10
|
-
'scope-empty': [0], // 不校验scope是否设置
|
|
11
|
-
'subject-case': [0], // 不校验描述的字符格式
|
|
12
|
-
'subject-min-length': [2, 'always', 5], // 描述至少5个字符
|
|
13
|
-
},
|
|
14
|
-
};
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;GAMG;AACH,gEAAqC;AACrC,iDAAwD;AACxD,+CAA+D;AAC/D,uDAA6D;AAW7D,aAAa;AACb,MAAM,UAAU,GAAwB;IACpC,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;;;;GAKG;AACI,KAAK,UAAU,aAAa,CAAC,GAAgB;;IAChD,IAAI,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,aAAa,EAAE;QACpD,OAAO,UAAU,CAAC,KAAK,CAAC;KAC3B;IACD,MAAM,GAAG,GAAiB,MAAA,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,mCAAI,EAAE,CAAC;IAC/D,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACrB,6BAAM,CAAC,IAAI,CAAC,8HAA8H,CAAC,CAAC;KAC/I;IACD,UAAU,CAAC,KAAK,GAAG,oBAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,C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D,4CAA4C;wBAC5C,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;qBACnC;yBAAM;wBACH,4CAA4C;wBAC5C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;wBAC3C,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;4BAC1B,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,GAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;yBACjE;6BAAM;4BACH,MAAM,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;yBACrD;wBACD,OAAO,GAAG,CAAC;qBACd;iBACJ;qBAAM;oBACH,4CAA4C;oBAC5C,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;iBACnC;YACL,CAAC;SACJ,CAAC;QACF,OAAO,UAAU,CAAC;IACtB,CAAC,CAAC;AACN,CAAC;AArED,gCAqEC"}
|
package/jest.config.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// jest详细配置参见:
|
|
6
|
-
// https://jestjs.io/docs/en/configuration.html
|
|
7
|
-
|
|
8
|
-
module.exports = {
|
|
9
|
-
preset: 'ts-jest',
|
|
10
|
-
testEnvironment: 'node', // 测试用例运行环境
|
|
11
|
-
testMatch: ['<rootDir>/test/**/*.(spec|test).[jt]s'], // 匹配测试用例的路径规则
|
|
12
|
-
reporters: [
|
|
13
|
-
'default',
|
|
14
|
-
'jest-html-reporters'
|
|
15
|
-
], // 测试用例报告
|
|
16
|
-
collectCoverage: true, // 是否收集测试时的覆盖率信息
|
|
17
|
-
coverageReporters: [
|
|
18
|
-
'html',
|
|
19
|
-
'lcov',
|
|
20
|
-
'json',
|
|
21
|
-
'text',
|
|
22
|
-
'clover',
|
|
23
|
-
'text-summary',
|
|
24
|
-
], // 收集测试时的覆盖率信息
|
|
25
|
-
// 将 `ts-jest` 的配置注入到运行时的全局变量中
|
|
26
|
-
globals: {
|
|
27
|
-
'ts-jest': {
|
|
28
|
-
// 是否使用 babel 配置来转译
|
|
29
|
-
babelConfig: true,
|
|
30
|
-
// 编译 Typescript 所依赖的配置
|
|
31
|
-
tsconfig: '<rootDir>/tsconfig.json',
|
|
32
|
-
// 是否启用报告诊断,这里是不启用
|
|
33
|
-
diagnostics: false,
|
|
34
|
-
},
|
|
35
|
-
}
|
|
36
|
-
};
|