@routr/connect 2.4.0 → 2.4.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/access.js CHANGED
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.checkAccessFromPSTN = exports.checkAgentOrPeerAccess = exports.checkAccess = void 0;
13
13
  /*
14
14
  * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
15
- * http://github.com/fonoster
15
+ * http://github.com/fonoster/routr
16
16
  *
17
17
  * This file is part of Routr.
18
18
  *
package/dist/envs.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CONNECT_VERIFIER_OPTIONS = exports.CONNECT_VERIFIER_PUBLIC_KEY_PATH = exports.CONNECT_VERIFIER_ADDR = exports.API_ADDR = exports.LOCATION_ADDR = exports.BIND_ADDR = void 0;
5
5
  /*
6
6
  * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
- * http://github.com/fonoster
7
+ * http://github.com/fonoster/routr
8
8
  *
9
9
  * This file is part of Routr.
10
10
  *
@@ -16,7 +16,7 @@ exports.handleRegister = void 0;
16
16
  *
17
17
  * This file is part of Routr
18
18
  *
19
- * Licensed under the MIT License (the "License")
19
+ * Licensed under the MIT License (the "License");
20
20
  * you may not use this file except in compliance with
21
21
  * the License. You may obtain a copy of the License at
22
22
  *
@@ -7,7 +7,7 @@ exports.handleRegistry = void 0;
7
7
  *
8
8
  * This file is part of Routr
9
9
  *
10
- * Licensed under the MIT License (the "License")
10
+ * Licensed under the MIT License (the "License");
11
11
  * you may not use this file except in compliance with
12
12
  * the License. You may obtain a copy of the License at
13
13
  *
@@ -16,7 +16,7 @@ exports.handleRequest = void 0;
16
16
  *
17
17
  * This file is part of Routr
18
18
  *
19
- * Licensed under the MIT License (the "License")
19
+ * Licensed under the MIT License (the "License");
20
20
  * you may not use this file except in compliance with
21
21
  * the License. You may obtain a copy of the License at
22
22
  *
package/dist/router.js CHANGED
@@ -14,9 +14,9 @@ exports.router = void 0;
14
14
  * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/routr
16
16
  *
17
- * This file is part of Routr
17
+ * This file is part of Routr.
18
18
  *
19
- * Licensed under the MIT License (the "License")
19
+ * Licensed under the MIT License (the "License");
20
20
  * you may not use this file except in compliance with
21
21
  * the License. You may obtain a copy of the License at
22
22
  *
@@ -117,12 +117,15 @@ function router(location, apiClient) {
117
117
  return failedCheck;
118
118
  }
119
119
  }
120
- const result = (direction, route, extended) => {
121
- return {
120
+ const result = (direction, route, extended) => route
121
+ ? {
122
122
  direction,
123
123
  route: Object.assign(Object.assign({}, route), { metadata: extended })
124
+ }
125
+ : {
126
+ direction,
127
+ route: null
124
128
  };
125
- };
126
129
  // We add metadata to the route object so we can use it later to link to an account
127
130
  switch (routingDirection) {
128
131
  case types_1.RoutingDirection.AGENT_TO_AGENT: {
package/dist/tailor.js CHANGED
@@ -7,7 +7,7 @@ exports.tailor = void 0;
7
7
  *
8
8
  * This file is part of Routr
9
9
  *
10
- * Licensed under the MIT License (the "License")
10
+ * Licensed under the MIT License (the "License");
11
11
  * you may not use this file except in compliance with
12
12
  * the License. You may obtain a copy of the License at
13
13
  *
package/dist/tracer.js CHANGED
@@ -10,7 +10,7 @@ exports.init = void 0;
10
10
  *
11
11
  * This file is part of Routr
12
12
  *
13
- * Licensed under the MIT License (the "License")
13
+ * Licensed under the MIT License (the "License");
14
14
  * you may not use this file except in compliance with
15
15
  * the License. You may obtain a copy of the License at
16
16
  *
package/dist/utils.js CHANGED
@@ -42,7 +42,7 @@ exports.getVerifierImpl = exports.hasXConnectObjectHeader = exports.getSIPURI =
42
42
  *
43
43
  * This file is part of Routr
44
44
  *
45
- * Licensed under the MIT License (the "License")
45
+ * Licensed under the MIT License (the "License");
46
46
  * you may not use this file except in compliance with
47
47
  * the License. You may obtain a copy of the License at
48
48
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/connect",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Default processor",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -28,9 +28,9 @@
28
28
  "@opentelemetry/sdk-trace-base": "^1.0.4",
29
29
  "@opentelemetry/sdk-trace-node": "^1.0.4",
30
30
  "@opentelemetry/semantic-conventions": "^1.0.4",
31
- "@routr/common": "^2.4.0",
32
- "@routr/location": "^2.4.0",
33
- "@routr/processor": "^2.4.0",
31
+ "@routr/common": "^2.4.1",
32
+ "@routr/location": "^2.4.2",
33
+ "@routr/processor": "^2.4.1",
34
34
  "jsonwebtoken": "^9.0.0"
35
35
  },
36
36
  "devDependencies": {
@@ -49,5 +49,5 @@
49
49
  "bugs": {
50
50
  "url": "https://github.com/fonoster/routr/issues"
51
51
  },
52
- "gitHead": "704808be190e0fc8b07ceb3d98c15758c5c6c33c"
52
+ "gitHead": "52833e4aa168461a95bee87068919a7838b4b418"
53
53
  }