mm_state_store 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +32 -46
package/jest.config.js ADDED
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Jest 测试配置
5
+ */
6
+ module.exports = {
7
+ testEnvironment: 'node',
8
+ testMatch: ['<rootDir>/test/**/*.test.js'],
9
+ collectCoverageFrom: ['lib/**/*.js', 'index.js'],
10
+ coverageThreshold: {
11
+ global: {
12
+ branches: 100,
13
+ functions: 100,
14
+ lines: 100,
15
+ statements: 100
16
+ }
17
+ }
18
+ };
package/package.json CHANGED
@@ -1,50 +1,36 @@
1
1
  {
2
- "name": "mm_state_store",
3
- "version": "1.0.1",
4
- "description": "状态存储模块:以对象标识为键缓存状态对象,支持过期时间与持久化",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://gitee.com/qiuwenwu91/mm_state_store.git"
9
- },
10
- "keywords": [
11
- "mm_mod",
12
- "mm_infra",
13
- "mm_data",
14
- "state",
15
- "状态",
16
- "缓存"
17
- ],
18
- "layer": "infra",
19
- "group": "data",
20
- "author": "邱文武",
21
- "license": "ISC",
22
- "engines": {
23
- "node": ">=18.0.0"
24
- },
25
- "scripts": {
26
- "test": "jest --coverage",
27
- "demo": "node example/index.js"
28
- },
29
- "jest": {
30
- "collectCoverageFrom": [
31
- "index.js",
32
- "lib/**/*.js"
2
+ "name": "mm_state_store",
3
+ "version": "1.0.2",
4
+ "description": "状态存储模块:以对象标识为键缓存状态对象,支持过期时间与持久化",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://gitee.com/qiuwenwu91/mm_state_store.git"
9
+ },
10
+ "keywords": [
11
+ "mm_mod",
12
+ "mm_infra",
13
+ "mm_data",
14
+ "state",
15
+ "状态",
16
+ "缓存"
33
17
  ],
34
- "coverageThreshold": {
35
- "global": {
36
- "lines": 100,
37
- "branches": 100,
38
- "functions": 100,
39
- "statements": 100
40
- }
18
+ "layer": "infra",
19
+ "group": "data",
20
+ "author": "邱文武",
21
+ "license": "ISC",
22
+ "engines": {
23
+ "node": ">=18.0.0"
24
+ },
25
+ "scripts": {
26
+ "test": "jest --coverage",
27
+ "demo": "node example/index.js"
28
+ },
29
+ "dependencies": {
30
+ "mm_corejs": "^1.1.4",
31
+ "mm_cache": "^1.5.5"
32
+ },
33
+ "devDependencies": {
34
+ "jest": "^30.5.2"
41
35
  }
42
- },
43
- "dependencies": {
44
- "mm_corejs": "^1.1.4",
45
- "mm_cache": "^1.5.5"
46
- },
47
- "devDependencies": {
48
- "jest": "^30.5.2"
49
- }
50
36
  }