Socket
Socket
Sign inDemoInstall

@azure/communication-common

Package Overview
Dependencies
8
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0-alpha.20230927.1 to 2.3.0-alpha.20231002.1

17

dist/index.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var jwtDecode = require('jwt-decode');

@@ -11,9 +9,6 @@ var crypto = require('crypto');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const parseToken = (token) => {
const { exp } = jwtDecode__default["default"](token);
const { exp } = jwtDecode(token);
return {

@@ -26,2 +21,3 @@ token,

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const expiredToken = { token: "", expiresOnTimestamp: -10 };

@@ -143,2 +139,3 @@ const minutesToMs = (minutes) => minutes * 1000 * 60;

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**

@@ -182,2 +179,3 @@ * The CommunicationTokenCredential implementation with support for proactive token refresh.

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const shaHash = async (content) => crypto.createHash("sha256").update(content).digest("base64");

@@ -190,2 +188,3 @@ const shaHMAC = async (secret, content) => {

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**

@@ -231,2 +230,3 @@ * CommunicationKeyCredentialPolicy provides a means of signing requests made through

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**

@@ -253,2 +253,3 @@ * Creates a pipeline policy to authenticate request based

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// TODO: update when connection string format is finalized

@@ -281,2 +282,3 @@ const CONNECTION_STRING_REGEX = /endpoint=(.*);accesskey=(.*)/i;

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const isValidEndpoint = (host) => {

@@ -488,2 +490,3 @@ var _a;

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
const assertNotNullOrUndefined = (obj, prop) => {

@@ -490,0 +493,0 @@ const subObjName = Object.keys(obj)[0];

{
"name": "@azure/communication-common",
"version": "2.3.0-alpha.20230927.1",
"version": "2.3.0-alpha.20231002.1",
"description": "Common package for Azure Communication services.",

@@ -5,0 +5,0 @@ "sdk-type": "client",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc