@azure/communication-common
Advanced tools
Comparing version 2.1.1-alpha.20221017.1 to 2.1.1-alpha.20221020.2
@@ -82,4 +82,3 @@ // Copyright (c) Microsoft Corporation. | ||
return rawId; | ||
// strip the leading +. We just assume correct E.164 format here because validation should only happen server-side, not client-side. | ||
return `4:${phoneNumber.replace(/^\+/, "")}`; | ||
return `4:${phoneNumber}`; | ||
} | ||
@@ -98,3 +97,3 @@ case "unknown": { | ||
if (rawId.startsWith("4:")) { | ||
return { kind: "phoneNumber", phoneNumber: `+${rawId.substring("4:".length)}` }; | ||
return { kind: "phoneNumber", phoneNumber: `${rawId.substring("4:".length)}` }; | ||
} | ||
@@ -101,0 +100,0 @@ const segments = rawId.split(":"); |
@@ -395,4 +395,3 @@ 'use strict'; | ||
return rawId; | ||
// strip the leading +. We just assume correct E.164 format here because validation should only happen server-side, not client-side. | ||
return `4:${phoneNumber.replace(/^\+/, "")}`; | ||
return `4:${phoneNumber}`; | ||
} | ||
@@ -411,3 +410,3 @@ case "unknown": { | ||
if (rawId.startsWith("4:")) { | ||
return { kind: "phoneNumber", phoneNumber: `+${rawId.substring("4:".length)}` }; | ||
return { kind: "phoneNumber", phoneNumber: `${rawId.substring("4:".length)}` }; | ||
} | ||
@@ -414,0 +413,0 @@ const segments = rawId.split(":"); |
{ | ||
"name": "@azure/communication-common", | ||
"version": "2.1.1-alpha.20221017.1", | ||
"version": "2.1.1-alpha.20221020.2", | ||
"description": "Common package for Azure Communication services.", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165867
1496