Socket
Socket
Sign inDemoInstall

@azure/core-auth

Package Overview
Dependencies
3
Maintainers
2
Versions
219
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1-alpha.20240108.2 to 1.5.1-alpha.20240117.1

dist-esm/src/keyCredential.js

1

dist-esm/src/index.js
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export { AzureKeyCredential } from "./azureKeyCredential";
export { isKeyCredential } from "./keyCredential";
export { AzureNamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential";

@@ -5,0 +6,0 @@ export { AzureSASCredential, isSASCredential } from "./azureSASCredential";

@@ -48,2 +48,13 @@ 'use strict';

/**
* Tests an object to determine whether it implements KeyCredential.
*
* @param credential - The assumed KeyCredential to be tested.
*/
function isKeyCredential(credential) {
return coreUtil.isObjectWithProperties(credential, ["key"]) && typeof credential.key === "string";
}
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* A static name/key-based credential that supports updating

@@ -178,2 +189,3 @@ * the underlying name and key values.

exports.AzureSASCredential = AzureSASCredential;
exports.isKeyCredential = isKeyCredential;
exports.isNamedKeyCredential = isNamedKeyCredential;

@@ -180,0 +192,0 @@ exports.isSASCredential = isSASCredential;

2

package.json
{
"name": "@azure/core-auth",
"version": "1.5.1-alpha.20240108.2",
"version": "1.5.1-alpha.20240117.1",
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK",

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

@@ -149,2 +149,9 @@ import { AbortSignalLike } from '@azure/abort-controller';

/**
* Tests an object to determine whether it implements KeyCredential.
*
* @param credential - The assumed KeyCredential to be tested.
*/
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
/**
* Tests an object to determine whether it implements NamedKeyCredential.

@@ -151,0 +158,0 @@ *

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc