@diia-inhouse/redis 2.12.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/LICENCE.md +287 -0
- package/README.md +93 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/cache.js +3 -0
- package/dist/interfaces/cache.js.map +1 -0
- package/dist/interfaces/deps.js +3 -0
- package/dist/interfaces/deps.js.map +1 -0
- package/dist/interfaces/index.js +22 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/mutex.js +3 -0
- package/dist/interfaces/mutex.js.map +1 -0
- package/dist/interfaces/pubsub.js +3 -0
- package/dist/interfaces/pubsub.js.map +1 -0
- package/dist/interfaces/redis.js +8 -0
- package/dist/interfaces/redis.js.map +1 -0
- package/dist/interfaces/store.js +12 -0
- package/dist/interfaces/store.js.map +1 -0
- package/dist/services/cache.js +75 -0
- package/dist/services/cache.js.map +1 -0
- package/dist/services/index.js +22 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/mutex.js +44 -0
- package/dist/services/mutex.js.map +1 -0
- package/dist/services/providers/cache.js +56 -0
- package/dist/services/providers/cache.js.map +1 -0
- package/dist/services/providers/pubsub.js +86 -0
- package/dist/services/providers/pubsub.js.map +1 -0
- package/dist/services/pubsub.js +43 -0
- package/dist/services/pubsub.js.map +1 -0
- package/dist/services/redis.js +17 -0
- package/dist/services/redis.js.map +1 -0
- package/dist/services/store.js +135 -0
- package/dist/services/store.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interfaces/cache.d.ts +14 -0
- package/dist/types/interfaces/deps.d.ts +7 -0
- package/dist/types/interfaces/index.d.ts +5 -0
- package/dist/types/interfaces/mutex.d.ts +5 -0
- package/dist/types/interfaces/pubsub.d.ts +15 -0
- package/dist/types/interfaces/redis.d.ts +15 -0
- package/dist/types/interfaces/store.d.ts +23 -0
- package/dist/types/services/cache.d.ts +24 -0
- package/dist/types/services/index.d.ts +5 -0
- package/dist/types/services/mutex.d.ts +13 -0
- package/dist/types/services/providers/cache.d.ts +17 -0
- package/dist/types/services/providers/pubsub.d.ts +17 -0
- package/dist/types/services/pubsub.d.ts +15 -0
- package/dist/types/services/redis.d.ts +4 -0
- package/dist/types/services/store.d.ts +24 -0
- package/package.json +96 -0
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@diia-inhouse/redis",
|
|
3
|
+
"version": "2.12.0",
|
|
4
|
+
"description": "Redis services - redlock, pubsub, cache and store",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"repository": "https://github.com/diia-open-source/be-pkg-redis.git",
|
|
8
|
+
"author": "Diia",
|
|
9
|
+
"license": "SEE LICENCE IN LICENCE.md",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prebuild": "rimraf dist",
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"semantic-release": "semantic-release",
|
|
20
|
+
"start": "npm run build && node dist/index.js",
|
|
21
|
+
"lint": "eslint --ext .ts . && prettier --check .",
|
|
22
|
+
"lint-fix": "eslint '*/**/*.{js,ts}' --fix && prettier --write .",
|
|
23
|
+
"lint:lockfile": "lockfile-lint --path package-lock.json --allowed-hosts registry.npmjs.org --validate-https",
|
|
24
|
+
"prepare": "npm run build",
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"test:coverage": "jest --coverage",
|
|
27
|
+
"test:unit": "npm run test --selectProjects unit --",
|
|
28
|
+
"test:integration": "npm run test --selectProjects integration --",
|
|
29
|
+
"find-circulars": "madge --circular --extensions ts ./"
|
|
30
|
+
},
|
|
31
|
+
"resolutions": {
|
|
32
|
+
"@babel/traverse": "7.23.2"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"ioredis": "5.4.1",
|
|
36
|
+
"redis-semaphore": "5.5.1"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@diia-inhouse/env": ">=1.2.0",
|
|
40
|
+
"@diia-inhouse/errors": ">=1.4.2",
|
|
41
|
+
"@diia-inhouse/types": ">=3.50.0",
|
|
42
|
+
"@diia-inhouse/validators": ">=1.6.1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@diia-inhouse/configs": "1.31.1",
|
|
46
|
+
"@diia-inhouse/diia-logger": "2.15.0",
|
|
47
|
+
"@diia-inhouse/env": "1.16.0",
|
|
48
|
+
"@diia-inhouse/errors": "1.9.0",
|
|
49
|
+
"@diia-inhouse/eslint-config": "5.1.0",
|
|
50
|
+
"@diia-inhouse/test": "6.3.0",
|
|
51
|
+
"@diia-inhouse/types": "6.24.0",
|
|
52
|
+
"@diia-inhouse/validators": "1.17.0",
|
|
53
|
+
"@types/node": "20.12.10",
|
|
54
|
+
"eslint": "8.57.0",
|
|
55
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
56
|
+
"lockfile-lint": "4.13.2",
|
|
57
|
+
"madge": "7.0.0",
|
|
58
|
+
"prettier": "3.2.5",
|
|
59
|
+
"protobufjs": "7.2.5",
|
|
60
|
+
"rimraf": "5.0.5",
|
|
61
|
+
"semantic-release": "21.1.2",
|
|
62
|
+
"typescript": "5.4.5"
|
|
63
|
+
},
|
|
64
|
+
"release": {
|
|
65
|
+
"extends": "@diia-inhouse/configs/dist/semantic-release/package",
|
|
66
|
+
"branches": [
|
|
67
|
+
"main"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"commitlint": {
|
|
71
|
+
"extends": "@diia-inhouse/configs/dist/commitlint"
|
|
72
|
+
},
|
|
73
|
+
"eslintConfig": {
|
|
74
|
+
"extends": "@diia-inhouse/eslint-config",
|
|
75
|
+
"overrides": [
|
|
76
|
+
{
|
|
77
|
+
"files": [
|
|
78
|
+
"*.ts"
|
|
79
|
+
],
|
|
80
|
+
"parserOptions": {
|
|
81
|
+
"project": [
|
|
82
|
+
"./tsconfig.json",
|
|
83
|
+
"./tests/tsconfig.json"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"jest": {
|
|
90
|
+
"preset": "@diia-inhouse/configs/dist/jest"
|
|
91
|
+
},
|
|
92
|
+
"prettier": "@diia-inhouse/eslint-config/prettier",
|
|
93
|
+
"madge": {
|
|
94
|
+
"tsConfig": "./tsconfig.json"
|
|
95
|
+
}
|
|
96
|
+
}
|