@routr/location 2.15.3 → 2.16.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/dist/memory_store.js +7 -1
- package/dist/utils.js +2 -3
- package/package.json +4 -4
package/dist/memory_store.js
CHANGED
|
@@ -44,7 +44,13 @@ class MemoryStore {
|
|
|
44
44
|
}
|
|
45
45
|
/** @inheritdoc */
|
|
46
46
|
delete(key) {
|
|
47
|
-
|
|
47
|
+
// Also drop the per-call entries findRoutes caches under `${key}:...`,
|
|
48
|
+
// matching the prefix match in RedisStore.delete
|
|
49
|
+
this.collections.forEach((_, k) => {
|
|
50
|
+
if (k === key || k.startsWith(`${key}:`)) {
|
|
51
|
+
this.collections.delete(k);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
return;
|
|
49
55
|
}
|
|
50
56
|
/** @inheritdoc */
|
package/dist/utils.js
CHANGED
|
@@ -72,9 +72,8 @@ const getServiceInfo = (bindAddr, locator) => {
|
|
|
72
72
|
}),
|
|
73
73
|
removeRoutes: (call, callback) => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
74
|
try {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
});
|
|
75
|
+
yield locator.removeRoutes(call.request);
|
|
76
|
+
callback(null, {});
|
|
78
77
|
}
|
|
79
78
|
catch (e) {
|
|
80
79
|
callback(e, null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/location",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Creates and maintains a list of routes to all registered endpoints",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@fonoster/logger": "0.6.0",
|
|
29
29
|
"@grpc/grpc-js": "~1.14.6",
|
|
30
|
-
"@routr/common": "^2.
|
|
31
|
-
"@routr/processor": "^2.
|
|
30
|
+
"@routr/common": "^2.16.0",
|
|
31
|
+
"@routr/processor": "^2.16.0",
|
|
32
32
|
"ajv": "^6.12.6",
|
|
33
33
|
"fp-ts": "^2.11.8",
|
|
34
34
|
"redis": "^4.0.4"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"bugs": {
|
|
41
41
|
"url": "https://github.com/fonoster/routr/issues"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "db8a2eeb4b3f57a7f6b632d8d3378ffe53fc6cfe"
|
|
44
44
|
}
|