@orion-js/echoes 3.2.26 → 3.2.29
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/lib/request/getURL.js +3 -1
- package/package.json +3 -3
package/lib/request/getURL.js
CHANGED
|
@@ -5,7 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const config_1 = __importDefault(require("../config"));
|
|
7
7
|
function default_1(serviceName) {
|
|
8
|
-
|
|
8
|
+
if (serviceName.startsWith('http'))
|
|
9
|
+
return serviceName;
|
|
10
|
+
const url = config_1.default?.requests?.services[serviceName];
|
|
9
11
|
if (!url) {
|
|
10
12
|
throw new Error(`No URL found in echoes config for service ${serviceName}`);
|
|
11
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/echoes",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.29",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@orion-js/env": "^3.2.21",
|
|
21
21
|
"@orion-js/helpers": "^3.2.21",
|
|
22
|
-
"@orion-js/http": "^3.2.
|
|
22
|
+
"@orion-js/http": "^3.2.29",
|
|
23
23
|
"@orion-js/services": "^3.2.21",
|
|
24
24
|
"axios": "^0.24.0",
|
|
25
25
|
"jssha": "^3.2.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "73acda2229c205547d70d19376984443d5625b20"
|
|
44
44
|
}
|