@routr/location 2.7.2 → 2.7.4

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/dist/location.js +5 -2
  2. package/package.json +4 -4
package/dist/location.js CHANGED
@@ -106,8 +106,11 @@ class Location {
106
106
  const r = (backend === null || backend === void 0 ? void 0 : backend.withSessionAffinity) && request.sessionAffinityRef
107
107
  ? [yield this.nextWithAffinity(routes, request.sessionAffinityRef)]
108
108
  : [this.next(routes, request)];
109
- this.store.put(storeKeyWithLabels, r[0]);
110
- return r;
109
+ if (r.length > 0 && r[0]) {
110
+ this.store.put(storeKeyWithLabels, r[0]);
111
+ return r;
112
+ }
113
+ return [];
111
114
  });
112
115
  }
113
116
  /** @inheritdoc */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/location",
3
- "version": "2.7.2",
3
+ "version": "2.7.4",
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",
@@ -35,8 +35,8 @@
35
35
  "@opentelemetry/sdk-trace-base": "^1.0.4",
36
36
  "@opentelemetry/sdk-trace-node": "^1.0.4",
37
37
  "@opentelemetry/semantic-conventions": "^1.0.4",
38
- "@routr/common": "^2.7.2",
39
- "@routr/processor": "^2.7.2",
38
+ "@routr/common": "^2.7.3",
39
+ "@routr/processor": "^2.7.3",
40
40
  "ajv": "^6.12.6",
41
41
  "fp-ts": "^2.11.8",
42
42
  "redis": "^4.0.4"
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/fonoster/routr/issues"
50
50
  },
51
- "gitHead": "01dfded02d52434ae789257b069b3bba1949878f"
51
+ "gitHead": "de542901b7302344af859c4970ba22733cfb6fc1"
52
52
  }