arnacon-webrtc-service 0.1.76 → 0.1.77

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.
@@ -76,12 +76,12 @@
76
76
  "roflLogic": {
77
77
  "rpc": "https://sapphire.oasis.io",
78
78
  "chainId": 23294,
79
- "businessNumberDbAddress": "",
79
+ "businessNumberDbAddress": "0xeFB374e146440160583960Ce4Dc8525127919b78",
80
80
  "callerIdPoolAddress": "0x903796dc34Bb9A5eD76A41bBA6C40CfebD1f4269",
81
81
  "businessNumberDb": {
82
- "rpc": "https://sapphire.oasis.io",
83
- "chainId": 23294,
84
- "address": "0xFc80534F731E3849Bc06970B0e8645d72A34f493"
82
+ "rpc": "https://testnet.sapphire.oasis.io",
83
+ "chainId": 23295,
84
+ "address": "0xeFB374e146440160583960Ce4Dc8525127919b78"
85
85
  },
86
86
  "callerIdPool": {
87
87
  "rpc": "https://sapphire.oasis.io",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arnacon-webrtc-service",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "description": "Arnacon WebRTC core runtime and service modules",
5
5
  "main": "./webRTCservice/core.js",
6
6
  "type": "commonjs",
@@ -9,7 +9,7 @@ function getDomains(helpers) {
9
9
 
10
10
  function looksLikeBusinessDomain(value) {
11
11
  const target = String(value || "").trim().toLowerCase();
12
- return target.includes(".") && !target.includes("@") && !target.endsWith(".global");
12
+ return !!target && !/^[+*]?\d+$/.test(target) && !target.includes("@") && !target.endsWith(".global");
13
13
  }
14
14
 
15
15
  async function resolveInboundTarget(ctx) {
@@ -9,7 +9,7 @@ function getDomains(helpers) {
9
9
 
10
10
  function looksLikeBusinessDomain(value) {
11
11
  const target = String(value || "").trim().toLowerCase();
12
- return target.includes(".") && !target.includes("@") && !target.endsWith(".global");
12
+ return !!target && !/^[+*]?\d+$/.test(target) && !target.includes("@") && !target.endsWith(".global");
13
13
  }
14
14
 
15
15
  async function resolveInboundTarget(ctx) {