@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.
@@ -1,3 +1,3 @@
1
- import { MessageDispatcherConfig } from "../types";
2
1
  import * as E from "fp-ts/Either";
2
+ import { MessageDispatcherConfig } from "../types";
3
3
  export declare const getConfig: (path: string) => E.Either<Error, MessageDispatcherConfig>;
@@ -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
- const schema_1 = require("./schema");
31
- const ajv_1 = __importDefault(require("ajv"));
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) => {
@@ -0,0 +1,4 @@
1
+ import { MessageDispatcherConfig } from "./types";
2
+ import messageDispatcher from "./service";
3
+ export { getConfig } from "./config/get_config";
4
+ export { MessageDispatcherConfig, messageDispatcher };
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.9",
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/dispatcher",
9
- "types": "dist/dispatcher",
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.9",
39
- "@routr/processor": "^2.0.9",
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": "62eb05f0b3bfa05d84c9ce4b4644de5fb5453295"
50
+ "gitHead": "476d11cfb4fd3dc9847a0829cae6fece84d048df"
51
51
  }