@azure/identity 3.1.2-alpha.20221118.8 → 3.1.2-alpha.20221128.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @azure/identity might be problematic. Click here for more details.
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js +3 -1
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js +3 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js.map +1 -1
- package/dist-esm/src/msal/utils.js +18 -0
- package/dist-esm/src/msal/utils.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var msalNode = require('@azure/msal-node');
|
|
6
|
-
var msalCommon = require('@azure/msal-common');
|
|
7
6
|
var logger$m = require('@azure/logger');
|
|
7
|
+
var msalCommon = require('@azure/msal-common');
|
|
8
8
|
var abortController = require('@azure/abort-controller');
|
|
9
9
|
var coreUtil = require('@azure/core-util');
|
|
10
10
|
var uuid = require('uuid');
|
|
@@ -385,6 +385,24 @@ const defaultLoggerCallback = (logger, platform = coreUtil.isNode ? "Node" : "Br
|
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
+
/**
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
391
|
+
function getMSALLogLevel(logLevel) {
|
|
392
|
+
switch (logLevel) {
|
|
393
|
+
case "error":
|
|
394
|
+
return msalCommon__namespace.LogLevel.Error;
|
|
395
|
+
case "info":
|
|
396
|
+
return msalCommon__namespace.LogLevel.Info;
|
|
397
|
+
case "verbose":
|
|
398
|
+
return msalCommon__namespace.LogLevel.Verbose;
|
|
399
|
+
case "warning":
|
|
400
|
+
return msalCommon__namespace.LogLevel.Warning;
|
|
401
|
+
default:
|
|
402
|
+
// default msal logging level should be Info
|
|
403
|
+
return msalCommon__namespace.LogLevel.Info;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
388
406
|
/**
|
|
389
407
|
* The common utility functions for the MSAL clients.
|
|
390
408
|
* Defined as a class so that the classes extending this one can have access to its methods and protected properties.
|
|
@@ -1078,6 +1096,7 @@ class MsalNode extends MsalBaseUtilities {
|
|
|
1078
1096
|
networkClient: this.identityClient,
|
|
1079
1097
|
loggerOptions: {
|
|
1080
1098
|
loggerCallback: defaultLoggerCallback(options.logger),
|
|
1099
|
+
logLevel: getMSALLogLevel(logger$m.getLogLevel()),
|
|
1081
1100
|
},
|
|
1082
1101
|
},
|
|
1083
1102
|
};
|