Socket
Socket
Sign inDemoInstall

@azure/msal-common

Package Overview
Dependencies
0
Maintainers
3
Versions
116
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.0.1 to 9.0.2

2

dist/_virtual/_tslib.js

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*! *****************************************************************************

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientAuthError } from '../error/ClientAuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientAuthError } from '../error/ClientAuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator, __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { Separators, CacheAccountType, CacheType, Constants } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { Separators, APP_METADATA } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { AUTHORITY_METADATA_CONSTANTS } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -81,16 +81,13 @@ import { CredentialType, CacheType, Constants, Separators, AuthenticationScheme } from '../../utils/Constants.js';

CredentialEntity.getCredentialType = function (key) {
// First keyword search will match all "AccessToken" and "AccessToken_With_AuthScheme" credentials
if (key.indexOf(CredentialType.ACCESS_TOKEN.toLowerCase()) !== -1) {
// Perform second search to differentiate between "AccessToken" and "AccessToken_With_AuthScheme" credential types
if (key.indexOf(CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) !== -1) {
return CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME;
var separator = Separators.CACHE_KEY_SEPARATOR;
// Match host names like "login.microsoftonline.com", "https://accounts.google.com:4000", etc.
var domainRe = "(https?:\\/\\/)?([\\w-]+\\.)*([\\w-]{1,63})(\\.(\\w{2,3}))(\\:[0-9]{4,5})?";
for (var _i = 0, _a = Object.keys(CredentialType); _i < _a.length; _i++) {
var credKey = _a[_i];
var credVal = CredentialType[credKey].toLowerCase();
// Verify credential type is preceded by a valid host name (environment)
if (key.toLowerCase().search("(?<=" + separator + domainRe + ")" + separator + credVal + separator) !== -1) {
return CredentialType[credKey];
}
return CredentialType.ACCESS_TOKEN;
}
else if (key.indexOf(CredentialType.ID_TOKEN.toLowerCase()) !== -1) {
return CredentialType.ID_TOKEN;
}
else if (key.indexOf(CredentialType.REFRESH_TOKEN.toLowerCase()) !== -1) {
return CredentialType.REFRESH_TOKEN;
}
return Constants.NOT_DEFINED;

@@ -97,0 +94,0 @@ };

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { SERVER_TELEM_CONSTANTS } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ThrottlingConstants } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -8,2 +8,3 @@ import { BaseClient } from "./BaseClient";

import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload";
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
/**

@@ -14,3 +15,3 @@ * Oauth2.0 Authorization Code client

protected includeRedirectUri: boolean;
constructor(configuration: ClientConfiguration);
constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
/**

@@ -17,0 +18,0 @@ * Creates the URL of the authorization request letting the user input credentials and consent to the

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -27,4 +27,4 @@ import { __extends, __awaiter, __generator, __assign, __spreadArrays } from '../_virtual/_tslib.js';

__extends(AuthorizationCodeClient, _super);
function AuthorizationCodeClient(configuration) {
var _this = _super.call(this, configuration) || this;
function AuthorizationCodeClient(configuration, performanceClient) {
var _this = _super.call(this, configuration, performanceClient) || this;
// Flag to indicate if client is for hybrid spa auth code redemption

@@ -63,9 +63,11 @@ _this.includeRedirectUri = true;

AuthorizationCodeClient.prototype.acquireToken = function (request, authCodePayload) {
var _a;
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function () {
var reqTimestamp, response, requestId, responseHandler;
return __generator(this, function (_b) {
switch (_b.label) {
var atsMeasurement, reqTimestamp, response, requestId, httpVerAuthority, responseHandler;
var _this = this;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
this.logger.info("in acquireToken call");
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement("AuthCodeClientAcquireToken", request.correlationId);
this.logger.info("in acquireToken call in auth-code client");
if (!request || StringUtils.isEmpty(request.code)) {

@@ -77,9 +79,28 @@ throw ClientAuthError.createTokenRequestCannotBeMadeError();

case 1:
response = _b.sent();
requestId = (_a = response.headers) === null || _a === void 0 ? void 0 : _a[HeaderNames.X_MS_REQUEST_ID];
response = _d.sent();
requestId = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_REQUEST_ID];
httpVerAuthority = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_HTTP_VERSION];
if (httpVerAuthority) {
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
httpVerAuthority: httpVerAuthority
});
}
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
// Validate response. This function throws a server error if an error is returned by the server.
responseHandler.validateTokenResponse(response.body);
return [4 /*yield*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId)];
case 2: return [2 /*return*/, _b.sent()];
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId).then(function (result) {
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
success: true
});
return result;
})
.catch(function (error) {
_this.logger.verbose("Error in fetching token in ACC", request.correlationId);
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
errorCode: error.errorCode,
subErrorCode: error.subError,
success: false
});
throw error;
})];
}

@@ -86,0 +107,0 @@ });

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -33,8 +33,8 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';

RefreshTokenClient.prototype.acquireToken = function (request) {
var _a, _b, _c;
var _a, _b, _c, _d;
return __awaiter(this, void 0, void 0, function () {
var atsMeasurement, reqTimestamp, response, requestId, responseHandler;
var atsMeasurement, reqTimestamp, response, httpVerToken, requestId, responseHandler;
var _this = this;
return __generator(this, function (_d) {
switch (_d.label) {
return __generator(this, function (_e) {
switch (_e.label) {
case 0:

@@ -46,7 +46,13 @@ atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);

case 1:
response = _d.sent();
response = _e.sent();
httpVerToken = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_HTTP_VERSION];
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
refreshTokenSize: ((_b = response.body.refresh_token) === null || _b === void 0 ? void 0 : _b.length) || 0
refreshTokenSize: ((_c = response.body.refresh_token) === null || _c === void 0 ? void 0 : _c.length) || 0,
});
requestId = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_REQUEST_ID];
if (httpVerToken) {
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
httpVerToken: httpVerToken,
});
}
requestId = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_REQUEST_ID];
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);

@@ -53,0 +59,0 @@ responseHandler.validateTokenResponse(response.body);

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -7,3 +7,3 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

import { RequestParameterBuilder } from '../request/RequestParameterBuilder.js';
import { GrantType } from '../utils/Constants.js';
import { GrantType, HeaderNames } from '../utils/Constants.js';
import { StringUtils } from '../utils/StringUtils.js';

@@ -32,12 +32,18 @@ import { TimeUtils } from '../utils/TimeUtils.js';

UsernamePasswordClient.prototype.acquireToken = function (request) {
var _a, _b;
return __awaiter(this, void 0, void 0, function () {
var reqTimestamp, response, responseHandler, tokenResponse;
return __generator(this, function (_a) {
switch (_a.label) {
var atsMeasurement, reqTimestamp, response, httpVerToken, responseHandler, tokenResponse;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
this.logger.info("in acquireToken call");
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement("UsernamePasswordClientAcquireToken", request.correlationId);
this.logger.info("in acquireToken call in username-password client");
reqTimestamp = TimeUtils.nowSeconds();
return [4 /*yield*/, this.executeTokenRequest(this.authority, request)];
case 1:
response = _a.sent();
response = _c.sent();
httpVerToken = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_HTTP_VERSION];
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
httpVerToken: httpVerToken
});
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);

@@ -44,0 +50,0 @@ // Validate response. This function throws a server error if an error is returned by the server.

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __assign, __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { JoseHeaderError } from '../error/JoseHeaderError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.js';

@@ -38,2 +38,3 @@ import { LoggerOptions } from "../config/ClientConfiguration";

constructor(loggerOptions: LoggerOptions, packageName?: string, packageVersion?: string);
private static createDefaultLoggerOptions;
/**

@@ -40,0 +41,0 @@ * Create new Logger with existing configurations.

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -31,9 +31,19 @@ import { StringUtils } from '../utils/StringUtils.js';

};
this.localCallback = loggerOptions.loggerCallback || defaultLoggerCallback;
this.piiLoggingEnabled = loggerOptions.piiLoggingEnabled || false;
this.level = typeof (loggerOptions.logLevel) === "number" ? loggerOptions.logLevel : LogLevel.Info;
this.correlationId = loggerOptions.correlationId || Constants.EMPTY_STRING;
var setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions();
this.localCallback = setLoggerOptions.loggerCallback || defaultLoggerCallback;
this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false;
this.level = typeof (setLoggerOptions.logLevel) === "number" ? setLoggerOptions.logLevel : LogLevel.Info;
this.correlationId = setLoggerOptions.correlationId || Constants.EMPTY_STRING;
this.packageName = packageName || Constants.EMPTY_STRING;
this.packageVersion = packageVersion || Constants.EMPTY_STRING;
}
Logger.createDefaultLoggerOptions = function () {
return {
loggerCallback: function () {
// allow users to not set loggerCallback
},
piiLoggingEnabled: false,
logLevel: LogLevel.Info
};
};
/**

@@ -40,0 +50,0 @@ * Create new Logger with existing configurations.

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { AuthError } from '../error/AuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ThrottlingConstants, CacheSchemaType, Constants, HeaderNames } from '../utils/Constants.js';

export declare const name = "@azure/msal-common";
export declare const version = "9.0.1";
export declare const version = "9.0.2";
//# sourceMappingURL=packageMetadata.d.ts.map

@@ -1,8 +0,8 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';
/* eslint-disable header/header */
var name = "@azure/msal-common";
var version = "9.0.1";
var version = "9.0.2";
export { name, version };
//# sourceMappingURL=packageMetadata.js.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { StringUtils } from '../utils/StringUtils.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -292,3 +292,3 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

code: code,
fromNativeBroker: false
fromNativeBroker: false,
}];

@@ -295,0 +295,0 @@ }

@@ -21,5 +21,5 @@ import { PerformanceEvent, PerformanceEvents, StaticFields } from "./PerformanceEvent";

emitEvents(events: PerformanceEvent[], correlationId: string): void;
startPerformanceMeasuremeant(measureName: string, correlationId: string): IPerformanceMeasurement;
startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement;
generateId(): string;
}
//# sourceMappingURL=IPerformanceClient.d.ts.map

@@ -53,3 +53,3 @@ import { ApplicationTelemetry } from "../../config/ClientConfiguration";

*/
abstract startPerformanceMeasuremeant(measureName: string, correlationId: string): IPerformanceMeasurement;
abstract startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement;
/**

@@ -56,0 +56,0 @@ * Generates and returns a unique id, typically a guid.

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -50,3 +50,3 @@ import { __assign } from '../../_virtual/_tslib.js';

this.logger.trace("PerformanceClient: Performance measurement started for " + measureName, eventCorrelationId);
var performanceMeasurement = this.startPerformanceMeasuremeant(measureName, eventCorrelationId);
var performanceMeasurement = this.startPerformanceMeasurement(measureName, eventCorrelationId);
performanceMeasurement.startMeasurement();

@@ -53,0 +53,0 @@ var inProgressEvent = {

@@ -105,3 +105,8 @@ /**

*/
RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken"
RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken",
GetEndpointMetadataFromNetwork = "getEndpointMetadataFromNetwork",
GetCloudDiscoveryMetadataFromNetworkMeasurement = "getCloudDiscoveryMetadataFromNetworkMeasurement",
HandleRedirectPromiseMeasurement = "handleRedirectPromiseMeasurement",
UpdateCloudDiscoveryMetadataMeasurement = "updateCloudDiscoveryMetadataMeasurement",
UsernamePasswordClientAcquireToken = "usernamePasswordClientAcquireToken"
}

@@ -179,2 +184,4 @@ /**

matsHttpEventCount?: number;
httpVerToken?: string;
httpVerAuthority?: string;
};

@@ -181,0 +188,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -113,2 +113,7 @@ /*

PerformanceEvents["RefreshTokenClientAcquireTokenWithCachedRefreshToken"] = "refreshTokenClientAcquireTokenWithCachedRefreshToken";
PerformanceEvents["GetEndpointMetadataFromNetwork"] = "getEndpointMetadataFromNetwork";
PerformanceEvents["GetCloudDiscoveryMetadataFromNetworkMeasurement"] = "getCloudDiscoveryMetadataFromNetworkMeasurement";
PerformanceEvents["HandleRedirectPromiseMeasurement"] = "handleRedirectPromiseMeasurement";
PerformanceEvents["UpdateCloudDiscoveryMetadataMeasurement"] = "updateCloudDiscoveryMetadataMeasurement";
PerformanceEvents["UsernamePasswordClientAcquireToken"] = "usernamePasswordClientAcquireToken";
})(PerformanceEvents || (PerformanceEvents = {}));

@@ -115,0 +120,0 @@ /**

@@ -11,4 +11,4 @@ import { IPerformanceClient } from "./IPerformanceClient";

generateId(): string;
startPerformanceMeasuremeant(): IPerformanceMeasurement;
startPerformanceMeasurement(): IPerformanceMeasurement;
}
//# sourceMappingURL=StubPerformanceClient.d.ts.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -30,3 +30,3 @@ import { __extends } from '../../_virtual/_tslib.js';

};
StubPerformanceClient.prototype.startPerformanceMeasuremeant = function () {
StubPerformanceClient.prototype.startPerformanceMeasurement = function () {
return new StubPerformanceMeasurement();

@@ -33,0 +33,0 @@ };

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { SERVER_TELEM_CONSTANTS, CacheOutcome, Constants, Separators } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';

@@ -53,3 +53,4 @@ export declare const Constants: {

AuthenticationInfo = "Authentication-Info",
X_MS_REQUEST_ID = "x-ms-request-id"
X_MS_REQUEST_ID = "x-ms-request-id",
X_MS_HTTP_VERSION = "x-ms-httpver"
}

@@ -56,0 +57,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -79,2 +79,3 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

HeaderNames["X_MS_REQUEST_ID"] = "x-ms-request-id";
HeaderNames["X_MS_HTTP_VERSION"] = "x-ms-httpver";
})(HeaderNames || (HeaderNames = {}));

@@ -81,0 +82,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { StringUtils } from './StringUtils.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientAuthError } from '../error/ClientAuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.0.1 2022-12-07 */
/*! @azure/msal-common v9.0.2 2023-01-09 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -13,3 +13,3 @@ {

},
"version": "9.0.1",
"version": "9.0.2",
"description": "Microsoft Authentication Library for js",

@@ -16,0 +16,0 @@ "keywords": [

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 too big to display

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc