@weave-js/redis-transport 0.9.4 → 0.11.1
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/CHANGELOG.md +24 -0
- package/lib/index.js +4 -5
- package/package.json +4 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.11.1](https://github.com/weave-microservices/weave/compare/@weave-js/redis-transport@0.11.0...@weave-js/redis-transport@0.11.1) (2022-03-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @weave-js/redis-transport
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.11.0](https://github.com/weave-microservices/weave/compare/@weave-js/redis-transport@0.10.0...@weave-js/redis-transport@0.11.0) (2022-02-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @weave-js/redis-transport
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [0.10.0](https://github.com/weave-microservices/weave/compare/@weave-js/redis-transport@0.9.4...@weave-js/redis-transport@0.10.0) (2021-10-18)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @weave-js/redis-transport
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [0.9.4](https://github.com/weave-microservices/weave/compare/@weave-js/redis-transport@0.9.3...@weave-js/redis-transport@0.9.4) (2021-09-09)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @weave-js/redis-transport
|
package/lib/index.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Author: Kevin Ries (kevin@fachw3rk.de)
|
|
3
3
|
* -----
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2021 Fachwerk
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
const redis = require('redis')
|
|
8
|
-
const { defaultsDeep } = require('@weave-js/utils')
|
|
8
|
+
const { defaultsDeep, promiseDelay } = require('@weave-js/utils')
|
|
9
9
|
const { TransportAdapters } = require('@weave-js/core')
|
|
10
|
-
const utils = require('@weave-js/utils')
|
|
11
10
|
|
|
12
11
|
const defaultOptions = {
|
|
13
12
|
port: 6379,
|
|
14
13
|
host: '127.0.0.1'
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
const RedisTransportAdapter = adapterOptions => {
|
|
16
|
+
const RedisTransportAdapter = (adapterOptions) => {
|
|
18
17
|
let clientSub
|
|
19
18
|
let clientPub
|
|
20
19
|
|
|
@@ -97,7 +96,7 @@ const RedisTransportAdapter = adapterOptions => {
|
|
|
97
96
|
clientPub.quit()
|
|
98
97
|
clientSub.quit()
|
|
99
98
|
}
|
|
100
|
-
return
|
|
99
|
+
return promiseDelay(Promise.resolve(), 500)
|
|
101
100
|
}
|
|
102
101
|
})
|
|
103
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weave-js/redis-transport",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "weave redis transport adapter module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,12 +23,7 @@
|
|
|
23
23
|
"@weave-js/core": ">=0.9.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@weave-js/core": "^0.
|
|
27
|
-
"eslint": "^7.30.0",
|
|
28
|
-
"eslint-config-fw": "^1.0.3",
|
|
29
|
-
"eslint-loader": "^4.0.2",
|
|
30
|
-
"istanbul": "^0.4.5",
|
|
31
|
-
"jest": "^27.0.6"
|
|
26
|
+
"@weave-js/core": "^0.11.1"
|
|
32
27
|
},
|
|
33
28
|
"jest": {
|
|
34
29
|
"testEnvironment": "node",
|
|
@@ -38,8 +33,8 @@
|
|
|
38
33
|
]
|
|
39
34
|
},
|
|
40
35
|
"dependencies": {
|
|
41
|
-
"@weave-js/utils": "^0.
|
|
36
|
+
"@weave-js/utils": "^0.10.1",
|
|
42
37
|
"redis": "^3.1.2"
|
|
43
38
|
},
|
|
44
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "bc467dd08fe0626c40e7eb19b344c102386baf15"
|
|
45
40
|
}
|