@routr/dispatcher 2.0.9 → 2.0.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.
- package/dist/config/get_config.d.ts +1 -1
- package/dist/config/get_config.js +20 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +10 -0
- package/dist/runner.js +0 -0
- package/package.json +6 -6
|
@@ -27,10 +27,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.getConfig = void 0;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
32
|
+
* http://github.com/fonoster/routr
|
|
33
|
+
*
|
|
34
|
+
* This file is part of Routr
|
|
35
|
+
*
|
|
36
|
+
* Licensed under the MIT License (the "License");
|
|
37
|
+
* you may not use this file except in compliance with
|
|
38
|
+
* the License. You may obtain a copy of the License at
|
|
39
|
+
*
|
|
40
|
+
* https://opensource.org/licenses/MIT
|
|
41
|
+
*
|
|
42
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
43
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
44
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
45
|
+
* See the License for the specific language governing permissions and
|
|
46
|
+
* limitations under the License.
|
|
47
|
+
*/
|
|
32
48
|
const E = __importStar(require("fp-ts/Either"));
|
|
49
|
+
const schema_1 = require("./schema");
|
|
33
50
|
const common_1 = require("@routr/common");
|
|
51
|
+
const ajv_1 = __importDefault(require("ajv"));
|
|
34
52
|
const ajv = new ajv_1.default();
|
|
35
53
|
const validate = ajv.compile(schema_1.schema);
|
|
36
54
|
const getConfig = (path) => {
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.messageDispatcher = exports.getConfig = void 0;
|
|
7
|
+
const service_1 = __importDefault(require("./service"));
|
|
8
|
+
exports.messageDispatcher = service_1.default;
|
|
9
|
+
var get_config_1 = require("./config/get_config");
|
|
10
|
+
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return get_config_1.getConfig; } });
|
package/dist/runner.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/dispatcher",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Receives SIP messages and forwards them to the corresponding Message Processor",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"main": "dist/
|
|
9
|
-
"types": "dist/
|
|
8
|
+
"main": "dist/index",
|
|
9
|
+
"types": "dist/index",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"prebuild": "rimraf ./dist tsconfig.tsbuildinfo",
|
|
12
12
|
"build": "tsc -b tsconfig.json"
|
|
@@ -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.0.
|
|
39
|
-
"@routr/processor": "^2.0.
|
|
38
|
+
"@routr/common": "^2.0.13",
|
|
39
|
+
"@routr/processor": "^2.0.13",
|
|
40
40
|
"ajv": "^6.12.6",
|
|
41
41
|
"fp-ts": "^2.11.8"
|
|
42
42
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"bugs": {
|
|
48
48
|
"url": "https://github.com/fonoster/routr/issues"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "476d11cfb4fd3dc9847a0829cae6fece84d048df"
|
|
51
51
|
}
|