@routr/edgeport 2.6.0 → 2.6.2

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/fs.js CHANGED
@@ -62,14 +62,14 @@ const readConfigFile = (path) => {
62
62
  return yaml.load(content);
63
63
  }
64
64
  catch (e) {
65
- // Ignore
65
+ // no-op
66
66
  }
67
67
  // Experimental TOML support
68
68
  try {
69
69
  return toml.parse(content);
70
70
  }
71
71
  catch (e) {
72
- // Ignore
72
+ // no-op
73
73
  }
74
74
  try {
75
75
  return JSON.parse(content);
@@ -28,10 +28,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.getConfig = exports.validateConfig = exports.readFile = void 0;
30
30
  const E = __importStar(require("fp-ts/Either"));
31
- const ajv_1 = __importDefault(require("ajv"));
32
31
  const function_1 = require("fp-ts/function");
33
32
  const schema_1 = require("./schema");
34
33
  const fs_1 = require("./fs");
34
+ const ajv_1 = __importDefault(require("ajv"));
35
35
  const ajv = new ajv_1.default();
36
36
  const validate = ajv.compile(schema_1.schema);
37
37
  // TODO: Fix this unnecessary conversion to string
@@ -68,19 +68,19 @@ export declare const schema: {
68
68
  type: string;
69
69
  items: {
70
70
  type: string;
71
- };
72
- properties: {
73
- protocol: {
74
- type: string;
75
- };
76
- bindAddr: {
77
- type: string;
78
- };
79
- port: {
80
- type: string;
71
+ properties: {
72
+ protocol: {
73
+ type: string;
74
+ };
75
+ bindAddr: {
76
+ type: string;
77
+ };
78
+ port: {
79
+ type: string;
80
+ };
81
81
  };
82
+ required: string[];
82
83
  };
83
- required: string[];
84
84
  };
85
85
  processor: {
86
86
  description: string;
@@ -88,20 +88,20 @@ exports.schema = {
88
88
  description: "Acceptable Transport Protocols",
89
89
  type: "array",
90
90
  items: {
91
- type: "object"
92
- },
93
- properties: {
94
- protocol: {
95
- type: "string"
96
- },
97
- bindAddr: {
98
- type: "string"
91
+ type: "object",
92
+ properties: {
93
+ protocol: {
94
+ type: "string"
95
+ },
96
+ bindAddr: {
97
+ type: "string"
98
+ },
99
+ port: {
100
+ type: "integer"
101
+ }
99
102
  },
100
- port: {
101
- type: "integer"
102
- }
103
- },
104
- required: ["port", "protocol"]
103
+ required: ["port", "protocol"]
104
+ }
105
105
  },
106
106
  processor: {
107
107
  description: "Adjacent service for message routing",
package/dist/edgeport.js CHANGED
@@ -3,8 +3,8 @@ 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
- const assertions_1 = require("./assertions");
7
6
  const envs_1 = require("./envs");
7
+ const assertions_1 = require("./assertions");
8
8
  const create_listening_points_1 = __importDefault(require("./create_listening_points"));
9
9
  const create_sip_provider_1 = __importDefault(require("./create_sip_provider"));
10
10
  const create_sip_stack_1 = __importDefault(require("./create_sip_stack"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/edgeport",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "SIP endpoint at the edge of the network",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -29,11 +29,11 @@
29
29
  "url": "https://github.com/fonoster/routr/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@routr/common": "^2.6.0",
32
+ "@routr/common": "^2.6.1",
33
33
  "ajv": "^6.12.6",
34
34
  "fp-ts": "^2.11.8",
35
35
  "js-yaml": "^4.1.0",
36
36
  "toml": "^3.0.0"
37
37
  },
38
- "gitHead": "152e42ba7ed0ccb45497e53ed631ee57c966a6df"
38
+ "gitHead": "87f2724c378af3b3b3a4ae22b91dfa63201161d3"
39
39
  }