@fonoster/common 0.3.17 → 0.3.18
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/env_is_set.js +19 -1
- package/dist/tracer.js +18 -0
- package/package.json +4 -4
package/dist/env_is_set.js
CHANGED
|
@@ -3,12 +3,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
8
|
+
* http://github.com/fonoster/fonoster
|
|
9
|
+
*
|
|
10
|
+
* This file is part of Fonoster
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the MIT License (the "License");
|
|
13
|
+
* you may not use this file except in compliance with
|
|
14
|
+
* the License. You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* https://opensource.org/licenses/MIT
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
6
24
|
const logger_1 = __importDefault(require("@fonoster/logger"));
|
|
7
25
|
function assertEnvIsSet(name) {
|
|
8
26
|
const register = require(process.env.SERVICES_ENVS ||
|
|
9
27
|
"/home/fonoster/service_envs.json");
|
|
10
28
|
const services = register.filter((service) => service.module === name);
|
|
11
|
-
for (
|
|
29
|
+
for (const value of services) {
|
|
12
30
|
value.env.forEach(function (variable) {
|
|
13
31
|
if (!(variable in process.env)) {
|
|
14
32
|
logger_1.default.error(`The environment variable ${variable} is required but was not found`);
|
package/dist/tracer.js
CHANGED
|
@@ -4,6 +4,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.init = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
9
|
+
* http://github.com/fonoster/fonoster
|
|
10
|
+
*
|
|
11
|
+
* This file is part of Fonoster
|
|
12
|
+
*
|
|
13
|
+
* Licensed under the MIT License (the "License");
|
|
14
|
+
* you may not use this file except in compliance with
|
|
15
|
+
* the License. You may obtain a copy of the License at
|
|
16
|
+
*
|
|
17
|
+
* https://opensource.org/licenses/MIT
|
|
18
|
+
*
|
|
19
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
+
* See the License for the specific language governing permissions and
|
|
23
|
+
* limitations under the License.
|
|
24
|
+
*/
|
|
7
25
|
const api_1 = require("@opentelemetry/api");
|
|
8
26
|
api_1.diag.setLogger(new api_1.DiagConsoleLogger(), getLogLevel());
|
|
9
27
|
const api_2 = __importDefault(require("@opentelemetry/api"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Common artifacts",
|
|
5
5
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"build": "tsc -b tsconfig.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fonoster/certs": "^0.3.
|
|
29
|
+
"@fonoster/certs": "^0.3.18",
|
|
30
30
|
"@fonoster/grpc-health-check": "^3.1.1",
|
|
31
|
-
"@fonoster/logger": "^0.3.
|
|
31
|
+
"@fonoster/logger": "^0.3.18",
|
|
32
32
|
"@grpc/grpc-js": "^1.3.7",
|
|
33
33
|
"@grpc/proto-loader": "^0.7.2",
|
|
34
34
|
"@opentelemetry/api": "^1.0.4",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "112ca8df92bb2b961d4c8c3a8aabc82f18d6f5d7"
|
|
54
54
|
}
|