@onlineapps/service-wrapper 2.0.51 → 2.0.52
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/package.json +5 -3
- package/src/ServiceWrapper.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/service-wrapper",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.52",
|
|
4
4
|
"description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"test:coverage": "jest --coverage",
|
|
12
12
|
"test:mocked": "node test/run-tests.js",
|
|
13
13
|
"docs": "jsdoc2md --files src/**/*.js > API.md",
|
|
14
|
-
"docs:html": "jsdoc -c jsdoc.json -d docs/html"
|
|
14
|
+
"docs:html": "jsdoc -c jsdoc.json -d docs/html",
|
|
15
|
+
"prepublishOnly": "cd $(git rev-parse --show-toplevel) && bash scripts/pre-publish-compatibility-check.sh shared/connector/service-wrapper",
|
|
16
|
+
"postpublish": "cd $(git rev-parse --show-toplevel) && bash scripts/update-manifest-from-npm.sh && bash scripts/update-all-services.sh"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
17
19
|
"microservices",
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
"@onlineapps/conn-orch-orchestrator": "^1.0.1",
|
|
34
36
|
"@onlineapps/conn-orch-registry": "^1.1.25",
|
|
35
37
|
"@onlineapps/conn-orch-validator": "^2.0.0",
|
|
36
|
-
"@onlineapps/service-common": "^1.0.
|
|
38
|
+
"@onlineapps/service-common": "^1.0.4",
|
|
37
39
|
"@onlineapps/monitoring-core": "^1.0.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
package/src/ServiceWrapper.js
CHANGED
|
@@ -153,7 +153,8 @@ class ServiceWrapper {
|
|
|
153
153
|
*/
|
|
154
154
|
async _waitForInfrastructureGate(context) {
|
|
155
155
|
const { waitForInfrastructureReady } = require('@onlineapps/service-common');
|
|
156
|
-
const
|
|
156
|
+
const { requireEnv } = require('@onlineapps/service-common');
|
|
157
|
+
const redisUrl = this.config.wrapper?.cache?.url || requireEnv('REDIS_URL', 'Redis connection URL');
|
|
157
158
|
const maxWait = parseInt(process.env.INFRASTRUCTURE_HEALTH_WAIT_MAX_TIME) || 300000;
|
|
158
159
|
const checkInterval = parseInt(process.env.INFRASTRUCTURE_HEALTH_WAIT_CHECK_INTERVAL) || 5000;
|
|
159
160
|
|