@hile/ioredis 1.0.14 → 1.1.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/README.md +2 -0
- package/SKILL.md +1 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/README.md
CHANGED
package/SKILL.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import pkg from '../package.json' with { type: 'json' };
|
|
1
2
|
import { defineService } from '@hile/core';
|
|
2
3
|
import Redis from 'ioredis';
|
|
3
4
|
/**
|
|
@@ -10,7 +11,7 @@ import Redis from 'ioredis';
|
|
|
10
11
|
* - REDIS_PASSWORD: Redis 密码
|
|
11
12
|
* - REDIS_DB: Redis 数据库
|
|
12
13
|
*/
|
|
13
|
-
export default defineService(async (shutdown) => {
|
|
14
|
+
export default defineService(Symbol.for(pkg.name), async (shutdown) => {
|
|
14
15
|
const options = {
|
|
15
16
|
host: process.env.REDIS_HOST,
|
|
16
17
|
port: typeof process.env.REDIS_PORT === 'string' ? Number(process.env.REDIS_PORT) : process.env.REDIS_PORT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hile/ioredis",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"vitest": "^4.0.18"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@hile/core": "^1.0
|
|
24
|
+
"@hile/core": "^1.1.0",
|
|
25
25
|
"ioredis": "^5.10.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "ec49eb8979b6c9c3ce99cb5311f1684bcde1bf2a"
|
|
28
28
|
}
|