@thzero/library_server_service_grpc 0.15.9 → 0.15.13

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/client.js +4 -4
  2. package/package.json +5 -9
package/client.js CHANGED
@@ -60,7 +60,7 @@ class BaseClientGrpcService extends Service {
60
60
  host.secure = opts.secure;
61
61
  }
62
62
  }
63
- else
63
+ else
64
64
  host = await this._hostFromConfig(correlationId, host, key, opts);
65
65
 
66
66
  return host;
@@ -72,13 +72,13 @@ class BaseClientGrpcService extends Service {
72
72
 
73
73
  const config = this._config.getBackend(key);
74
74
  this._enforceNotNull('BaseClientGrpcService', '_hostFromConfig', config, 'config', correlationId);
75
- this._enforceNotEmpty('BaseClientGrpcService', '_hostFromConfig', config.url, 'config.url', correlationId);
75
+ this._enforceNotEmpty('BaseClientGrpcService', '_hostFromConfig', config.baseUrl, 'config.baseUrl', correlationId);
76
76
 
77
- host.url = config.url;
77
+ host.url = config.baseUrl;
78
78
 
79
79
  this._logger.debug('BaseServerGrpcService', '_host', 'config.discoverable', config.discoverable, correlationId);
80
80
  if (!config.discoverable)
81
- return resource;
81
+ return host;
82
82
 
83
83
  this._logger.debug('BaseServerGrpcService', '_host', '_serviceDiscoveryResources', (this._serviceDiscoveryResources != null), correlationId);
84
84
  if (!(this._serviceDiscoveryResources && config.discoverable))
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server_service_grpc",
3
3
  "type": "module",
4
- "version": "0.15.9",
4
+ "version": "0.15.13",
5
5
  "version_major": 0,
6
6
  "version_minor": 15,
7
- "version_patch": 9,
8
- "version_date": "04/07/2022",
7
+ "version_patch": 13,
8
+ "version_date": "05/26/2022",
9
9
  "description": "",
10
10
  "author": "thZero",
11
11
  "repository": {
@@ -20,15 +20,11 @@
20
20
  },
21
21
  "main": "index.js",
22
22
  "scripts": {
23
- "cli-update": "./node_modules/.bin/library-cli --updateversion --pi",
24
- "cli-update-w": ".\\node_modules\\.bin\\library-cli --updateversion --pi",
23
+ "cli-update": "library-cli --updateversion --pi",
25
24
  "test": "echo \"Error: no test specified\" && exit 1"
26
25
  },
27
26
  "dependencies": {
28
- "@grpc/grpc-js": "^1.6.2"
29
- },
30
- "devDependencies": {
31
- "@thzero/library_cli": "^0.15"
27
+ "@grpc/grpc-js": "^1.6.7"
32
28
  },
33
29
  "peerDependencies": {
34
30
  "@thzero/library_common": "^0.15",