Socket
Socket
Sign inDemoInstall

@azure/communication-common

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/communication-common - npm Package Compare versions

Comparing version 2.1.1-alpha.20221017.1 to 2.1.1-alpha.20221020.2

5

dist-esm/src/identifierModels.js

@@ -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(":");

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc