New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@azure/core-client

Package Overview
Dependencies
Maintainers
2
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/core-client - npm Package Compare versions

Comparing version 1.9.3-alpha.20241016.3 to 1.9.3-alpha.20241021.2

3

dist/browser/authorizeRequestOnClaimChallenge.js

@@ -50,2 +50,3 @@ // Copyright (c) Microsoft Corporation.

export async function authorizeRequestOnClaimChallenge(onChallengeOptions) {
var _a;
const { scopes, response } = onChallengeOptions;

@@ -70,5 +71,5 @@ const logger = onChallengeOptions.logger || coreClientLogger;

}
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`);
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;
}
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map

@@ -27,2 +27,3 @@ // Copyright (c) Microsoft Corporation.

export const authorizeRequestOnTenantChallenge = async (challengeOptions) => {
var _a;
const requestOptions = requestToOptions(challengeOptions.request);

@@ -41,3 +42,3 @@ const challenge = getChallenge(challengeOptions.response);

}
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`);
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;

@@ -44,0 +45,0 @@ }

@@ -54,2 +54,3 @@ "use strict";

async function authorizeRequestOnClaimChallenge(onChallengeOptions) {
var _a;
const { scopes, response } = onChallengeOptions;

@@ -74,5 +75,5 @@ const logger = onChallengeOptions.logger || log_js_1.logger;

}
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`);
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;
}
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map

@@ -30,2 +30,3 @@ "use strict";

const authorizeRequestOnTenantChallenge = async (challengeOptions) => {
var _a;
const requestOptions = requestToOptions(challengeOptions.request);

@@ -44,3 +45,3 @@ const challenge = getChallenge(challengeOptions.response);

}
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`);
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;

@@ -47,0 +48,0 @@ }

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.47.9"
"packageVersion": "7.47.11"
}
]
}

@@ -50,2 +50,3 @@ // Copyright (c) Microsoft Corporation.

export async function authorizeRequestOnClaimChallenge(onChallengeOptions) {
var _a;
const { scopes, response } = onChallengeOptions;

@@ -70,5 +71,5 @@ const logger = onChallengeOptions.logger || coreClientLogger;

}
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`);
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;
}
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map

@@ -27,2 +27,3 @@ // Copyright (c) Microsoft Corporation.

export const authorizeRequestOnTenantChallenge = async (challengeOptions) => {
var _a;
const requestOptions = requestToOptions(challengeOptions.request);

@@ -41,3 +42,3 @@ const challenge = getChallenge(challengeOptions.response);

}
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`);
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;

@@ -44,0 +45,0 @@ }

@@ -50,2 +50,3 @@ // Copyright (c) Microsoft Corporation.

export async function authorizeRequestOnClaimChallenge(onChallengeOptions) {
var _a;
const { scopes, response } = onChallengeOptions;

@@ -70,5 +71,5 @@ const logger = onChallengeOptions.logger || coreClientLogger;

}
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`);
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;
}
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map

@@ -27,2 +27,3 @@ // Copyright (c) Microsoft Corporation.

export const authorizeRequestOnTenantChallenge = async (challengeOptions) => {
var _a;
const requestOptions = requestToOptions(challengeOptions.request);

@@ -41,3 +42,3 @@ const challenge = getChallenge(challengeOptions.response);

}
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`);
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`);
return true;

@@ -44,0 +45,0 @@ }

{
"name": "@azure/core-client",
"version": "1.9.3-alpha.20241016.3",
"version": "1.9.3-alpha.20241021.2",
"description": "Core library for interfacing with AutoRest generated code",

@@ -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

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