Socket
Socket
Sign inDemoInstall

@azure/communication-common

Package Overview
Dependencies
Maintainers
2
Versions
200
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.3.2-alpha.20240827.1 to 2.3.2-alpha.20240828.1

2

dist-esm/src/autoRefreshTokenCredential.js
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { parseToken } from "./tokenParser";

@@ -4,0 +4,0 @@ const expiredToken = { token: "", expiresOnTimestamp: -10 };

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { AutoRefreshTokenCredential, } from "./autoRefreshTokenCredential";

@@ -4,0 +4,0 @@ import { StaticTokenCredential } from "./staticTokenCredential";

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
export {};
//# sourceMappingURL=communicationTokenCredential.js.map
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { isTokenCredential } from "@azure/core-auth";

@@ -4,0 +4,0 @@ import { parseConnectionString } from "./connectionString";

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { shaHMAC, shaHash } from "./cryptoUtils";

@@ -4,0 +4,0 @@ import { isNode } from "@azure/core-util";

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { bearerTokenAuthenticationPolicy, } from "@azure/core-rest-pipeline";

@@ -4,0 +4,0 @@ import { isTokenCredential } from "@azure/core-auth";

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { AzureKeyCredential } from "@azure/core-auth";

@@ -4,0 +4,0 @@ // TODO: update when connection string format is finalized

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
var _a;

@@ -4,0 +4,0 @@ /// <reference lib="dom" />

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { createHash, createHmac } from "crypto";

@@ -4,0 +4,0 @@ export const shaHash = async (content) => createHash("sha256").update(content).digest("base64");

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
export const encodeUTF8 = (str) => new TextEncoder().encode(str);

@@ -4,0 +4,0 @@ export function encodeUTF8fromBase64(str) {

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
export * from "./communicationAccessKeyCredentialPolicy";

@@ -4,0 +4,0 @@ export * from "./communicationAuthPolicy";

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

@@ -4,0 +4,0 @@ * Tests an Identifier to determine whether it implements CommunicationUserIdentifier.

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { getIdentifierKind, getIdentifierRawId, } from "./identifierModels";

@@ -4,0 +4,0 @@ const assertNotNullOrUndefined = (obj, prop) => {

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
export { AzureCommunicationTokenCredential } from "./azureCommunicationTokenCredential";

@@ -4,0 +4,0 @@ export * from "./credential";

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

@@ -4,0 +4,0 @@ * StaticTokenCredential

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
import { jwtDecode } from "jwt-decode";

@@ -4,0 +4,0 @@ export const parseToken = (token) => {

@@ -12,3 +12,3 @@ 'use strict';

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Licensed under the MIT License.
const parseToken = (token) => {

@@ -23,3 +23,3 @@ const { exp } = jwtDecode.jwtDecode(token);

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

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

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

@@ -142,3 +142,3 @@ * StaticTokenCredential

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

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

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

@@ -191,3 +191,3 @@ const shaHMAC = async (secret, content) => {

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

@@ -233,3 +233,3 @@ * CommunicationKeyCredentialPolicy provides a means of signing requests made through

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

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

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

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

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

@@ -328,3 +328,3 @@ var _a;

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

@@ -494,3 +494,3 @@ * Tests an Identifier to determine whether it implements CommunicationUserIdentifier.

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

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

{
"name": "@azure/communication-common",
"version": "2.3.2-alpha.20240827.1",
"version": "2.3.2-alpha.20240828.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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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