@azure/msal-node-extensions 5.0.4 → 5.0.5

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.
Files changed (51) hide show
  1. package/bin/arm64/dpapi.node +0 -0
  2. package/bin/ia32/dpapi.node +0 -0
  3. package/bin/x64/dpapi.node +0 -0
  4. package/dist/Dpapi.mjs +1 -1
  5. package/dist/broker/NativeBrokerPlugin.mjs +1 -1
  6. package/dist/error/PersistenceError.mjs +1 -1
  7. package/dist/index.mjs +1 -1
  8. package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs +2 -2
  9. package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs.map +1 -1
  10. package/dist/lib/msal-common/dist/error/AuthError.mjs +2 -2
  11. package/dist/lib/msal-common/dist/error/AuthError.mjs.map +1 -1
  12. package/dist/lib/msal-common/dist/error/ClientAuthError.mjs +2 -2
  13. package/dist/lib/msal-common/dist/error/ClientAuthError.mjs.map +1 -1
  14. package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs +2 -2
  15. package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  16. package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs +2 -2
  17. package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs.map +1 -1
  18. package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +2 -2
  19. package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  20. package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs +2 -2
  21. package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  22. package/dist/lib/msal-common/dist/error/PlatformBrokerError.mjs +2 -2
  23. package/dist/lib/msal-common/dist/error/PlatformBrokerError.mjs.map +1 -1
  24. package/dist/lib/msal-common/dist/error/ServerError.mjs +2 -2
  25. package/dist/lib/msal-common/dist/error/ServerError.mjs.map +1 -1
  26. package/dist/lib/msal-common/dist/logger/Logger.mjs +2 -2
  27. package/dist/lib/msal-common/dist/logger/Logger.mjs.map +1 -1
  28. package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +2 -2
  29. package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  30. package/dist/lib/msal-common/dist/utils/Constants.mjs +2 -2
  31. package/dist/lib/msal-common/dist/utils/Constants.mjs.map +1 -1
  32. package/dist/lib/msal-common/dist/utils/TimeUtils.mjs +2 -2
  33. package/dist/lib/msal-common/dist/utils/TimeUtils.mjs.map +1 -1
  34. package/dist/lock/CrossPlatformLock.mjs +1 -1
  35. package/dist/packageMetadata.d.ts +1 -1
  36. package/dist/packageMetadata.mjs +2 -2
  37. package/dist/persistence/BasePersistence.mjs +1 -1
  38. package/dist/persistence/DataProtectionScope.mjs +1 -1
  39. package/dist/persistence/FilePersistence.mjs +1 -1
  40. package/dist/persistence/FilePersistenceWithDataProtection.mjs +1 -1
  41. package/dist/persistence/KeychainPersistence.mjs +1 -1
  42. package/dist/persistence/LibSecretPersistence.mjs +1 -1
  43. package/dist/persistence/PersistenceCachePlugin.mjs +1 -1
  44. package/dist/persistence/PersistenceCreator.mjs +1 -1
  45. package/dist/utils/Constants.mjs +1 -1
  46. package/dist/utils/Environment.mjs +1 -1
  47. package/dist/utils/TypeGuards.mjs +1 -1
  48. package/lib/msal-node-extensions.cjs +15 -15
  49. package/lib/msal-node-extensions.cjs.map +1 -1
  50. package/lib/types/packageMetadata.d.ts +1 -1
  51. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"TimeUtils.mjs","sources":["../../../../../../../lib/msal-common/dist/utils/TimeUtils.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.4 2026-02-10 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Utility functions for managing date and time operations.\r\n */\r\n/**\r\n * return the current time in Unix time (seconds).\r\n */\r\nfunction nowSeconds() {\r\n // Date.getTime() returns in milliseconds.\r\n return Math.round(new Date().getTime() / 1000.0);\r\n}\r\n/**\r\n * Converts JS Date object to seconds\r\n * @param date Date\r\n */\r\nfunction toSecondsFromDate(date) {\r\n // Convert date to seconds\r\n return date.getTime() / 1000;\r\n}\r\n/**\r\n * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).\r\n * @param seconds\r\n */\r\nfunction toDateFromSeconds(seconds) {\r\n if (seconds) {\r\n return new Date(Number(seconds) * 1000);\r\n }\r\n return new Date();\r\n}\r\n/**\r\n * check if a token is expired based on given UTC time in seconds.\r\n * @param expiresOn\r\n */\r\nfunction isTokenExpired(expiresOn, offset) {\r\n // check for access token expiry\r\n const expirationSec = Number(expiresOn) || 0;\r\n const offsetCurrentTimeSec = nowSeconds() + offset;\r\n // If current time + offset is greater than token expiration time, then token is expired.\r\n return offsetCurrentTimeSec > expirationSec;\r\n}\r\n/**\r\n * Checks if a cache entry is expired based on the last updated time and cache retention days.\r\n * @param lastUpdatedAt\r\n * @param cacheRetentionDays\r\n * @returns\r\n */\r\nfunction isCacheExpired(lastUpdatedAt, cacheRetentionDays) {\r\n const cacheExpirationTimestamp = Number(lastUpdatedAt) + cacheRetentionDays * 24 * 60 * 60 * 1000;\r\n return Date.now() > cacheExpirationTimestamp;\r\n}\r\n/**\r\n * If the current time is earlier than the time that a token was cached at, we must discard the token\r\n * i.e. The system clock was turned back after acquiring the cached token\r\n * @param cachedAt\r\n * @param offset\r\n */\r\nfunction wasClockTurnedBack(cachedAt) {\r\n const cachedAtSec = Number(cachedAt);\r\n return cachedAtSec > nowSeconds();\r\n}\r\n/**\r\n * Waits for t number of milliseconds\r\n * @param t number\r\n * @param value T\r\n */\r\nfunction delay(t, value) {\r\n return new Promise((resolve) => setTimeout(() => resolve(value), t));\r\n}\n\nexport { delay, isCacheExpired, isTokenExpired, nowSeconds, toDateFromSeconds, toSecondsFromDate, wasClockTurnedBack };\n//# sourceMappingURL=TimeUtils.mjs.map\n"],"names":[],"mappings":";;AAAA;AAwBA;AACA;AACA;AACA;AACA,SAAS,iBAAiB,CAAC,OAAO,EAAE;AACpC,IAAI,IAAI,OAAO,EAAE;AACjB,QAAQ,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;AAChD,KAAK;AACL,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;AACtB;;;;"}
1
+ {"version":3,"file":"TimeUtils.mjs","sources":["../../../../../../../lib/msal-common/dist/utils/TimeUtils.mjs"],"sourcesContent":["/*! @azure/msal-common v16.1.0 2026-02-24 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Utility functions for managing date and time operations.\r\n */\r\n/**\r\n * return the current time in Unix time (seconds).\r\n */\r\nfunction nowSeconds() {\r\n // Date.getTime() returns in milliseconds.\r\n return Math.round(new Date().getTime() / 1000.0);\r\n}\r\n/**\r\n * Converts JS Date object to seconds\r\n * @param date Date\r\n */\r\nfunction toSecondsFromDate(date) {\r\n // Convert date to seconds\r\n return date.getTime() / 1000;\r\n}\r\n/**\r\n * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).\r\n * @param seconds\r\n */\r\nfunction toDateFromSeconds(seconds) {\r\n if (seconds) {\r\n return new Date(Number(seconds) * 1000);\r\n }\r\n return new Date();\r\n}\r\n/**\r\n * check if a token is expired based on given UTC time in seconds.\r\n * @param expiresOn\r\n */\r\nfunction isTokenExpired(expiresOn, offset) {\r\n // check for access token expiry\r\n const expirationSec = Number(expiresOn) || 0;\r\n const offsetCurrentTimeSec = nowSeconds() + offset;\r\n // If current time + offset is greater than token expiration time, then token is expired.\r\n return offsetCurrentTimeSec > expirationSec;\r\n}\r\n/**\r\n * Checks if a cache entry is expired based on the last updated time and cache retention days.\r\n * @param lastUpdatedAt\r\n * @param cacheRetentionDays\r\n * @returns\r\n */\r\nfunction isCacheExpired(lastUpdatedAt, cacheRetentionDays) {\r\n const cacheExpirationTimestamp = Number(lastUpdatedAt) + cacheRetentionDays * 24 * 60 * 60 * 1000;\r\n return Date.now() > cacheExpirationTimestamp;\r\n}\r\n/**\r\n * If the current time is earlier than the time that a token was cached at, we must discard the token\r\n * i.e. The system clock was turned back after acquiring the cached token\r\n * @param cachedAt\r\n * @param offset\r\n */\r\nfunction wasClockTurnedBack(cachedAt) {\r\n const cachedAtSec = Number(cachedAt);\r\n return cachedAtSec > nowSeconds();\r\n}\r\n/**\r\n * Waits for t number of milliseconds\r\n * @param t number\r\n * @param value T\r\n */\r\nfunction delay(t, value) {\r\n return new Promise((resolve) => setTimeout(() => resolve(value), t));\r\n}\n\nexport { delay, isCacheExpired, isTokenExpired, nowSeconds, toDateFromSeconds, toSecondsFromDate, wasClockTurnedBack };\n//# sourceMappingURL=TimeUtils.mjs.map\n"],"names":[],"mappings":";;AAAA;AAwBA;AACA;AACA;AACA;AACA,SAAS,iBAAiB,CAAC,OAAO,EAAE;AACpC,IAAI,IAAI,OAAO,EAAE;AACjB,QAAQ,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;AAChD,KAAK;AACL,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;AACtB;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import { promises } from 'fs';
4
4
  import { pid } from 'process';
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@azure/msal-node-extensions";
2
- export declare const version = "5.0.4";
2
+ export declare const version = "5.0.5";
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  /* eslint-disable header/header */
4
4
  const name = "@azure/msal-node-extensions";
5
- const version = "5.0.4";
5
+ const version = "5.0.5";
6
6
 
7
7
  export { name, version };
8
8
  //# sourceMappingURL=packageMetadata.mjs.map
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import { PersistenceError } from '../error/PersistenceError.mjs';
4
4
  import { Constants } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import { promises } from 'fs';
4
4
  import { dirname } from 'path';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import { FilePersistence } from './FilePersistence.mjs';
4
4
  import { PersistenceError } from '../error/PersistenceError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import keytar from 'keytar';
4
4
  import { FilePersistence } from './FilePersistence.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import keytar from 'keytar';
4
4
  import { FilePersistence } from './FilePersistence.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import { CrossPlatformLock } from '../lock/CrossPlatformLock.mjs';
4
4
  import { pid } from 'process';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import { FilePersistenceWithDataProtection } from './FilePersistenceWithDataProtection.mjs';
4
4
  import { LibSecretPersistence } from './LibSecretPersistence.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  import path from 'path';
4
4
  import { Constants, Platform } from './Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v5.0.4 2026-02-10 */
1
+ /*! @azure/msal-node-extensions v5.0.5 2026-02-24 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -343,7 +343,7 @@ class PersistenceCachePlugin {
343
343
  }
344
344
  }
345
345
 
346
- /*! @azure/msal-common v16.0.4 2026-02-10 */
346
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
347
347
  /**
348
348
  * we considered making this "enum" in the request instead of string, however it looks like the allowed list of
349
349
  * prompt values kept changing over past couple of years. There are some undocumented prompt values for some
@@ -380,10 +380,10 @@ const CacheOutcome = {
380
380
  // When a token is found in the cache or the cache is not supposed to be hit when making the request
381
381
  NOT_APPLICABLE: "0"};
382
382
 
383
- /*! @azure/msal-common v16.0.4 2026-02-10 */
383
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
384
384
  const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
385
385
 
386
- /*! @azure/msal-common v16.0.4 2026-02-10 */
386
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
387
387
  /*
388
388
  * Copyright (c) Microsoft Corporation. All rights reserved.
389
389
  * Licensed under the MIT License.
@@ -411,7 +411,7 @@ class AuthError extends Error {
411
411
  }
412
412
  }
413
413
 
414
- /*! @azure/msal-common v16.0.4 2026-02-10 */
414
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
415
415
 
416
416
  /*
417
417
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -431,7 +431,7 @@ function createClientConfigurationError(errorCode) {
431
431
  return new ClientConfigurationError(errorCode);
432
432
  }
433
433
 
434
- /*! @azure/msal-common v16.0.4 2026-02-10 */
434
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
435
435
 
436
436
  /*
437
437
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -454,16 +454,16 @@ function createClientAuthError(errorCode, additionalMessage) {
454
454
  return new ClientAuthError(errorCode, additionalMessage);
455
455
  }
456
456
 
457
- /*! @azure/msal-common v16.0.4 2026-02-10 */
457
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
458
458
  const untrustedAuthority = "untrusted_authority";
459
459
 
460
- /*! @azure/msal-common v16.0.4 2026-02-10 */
460
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
461
461
  const noAccountFound = "no_account_found";
462
462
  const noNetworkConnectivity = "no_network_connectivity";
463
463
  const userCanceled = "user_canceled";
464
464
  const platformBrokerError = "platform_broker_error";
465
465
 
466
- /*! @azure/msal-common v16.0.4 2026-02-10 */
466
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
467
467
  /*
468
468
  * Copyright (c) Microsoft Corporation. All rights reserved.
469
469
  * Licensed under the MIT License.
@@ -724,7 +724,7 @@ class Logger {
724
724
  }
725
725
  }
726
726
 
727
- /*! @azure/msal-common v16.0.4 2026-02-10 */
727
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
728
728
 
729
729
  /*
730
730
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -743,7 +743,7 @@ class ServerError extends AuthError {
743
743
  }
744
744
  }
745
745
 
746
- /*! @azure/msal-common v16.0.4 2026-02-10 */
746
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
747
747
  /**
748
748
  * Error thrown when user interaction is required.
749
749
  */
@@ -760,7 +760,7 @@ class InteractionRequiredAuthError extends AuthError {
760
760
  }
761
761
  }
762
762
 
763
- /*! @azure/msal-common v16.0.4 2026-02-10 */
763
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
764
764
  /**
765
765
  * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).
766
766
  * @param seconds
@@ -772,7 +772,7 @@ function toDateFromSeconds(seconds) {
772
772
  return new Date();
773
773
  }
774
774
 
775
- /*! @azure/msal-common v16.0.4 2026-02-10 */
775
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
776
776
 
777
777
  /*
778
778
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -817,7 +817,7 @@ class PlatformBrokerError extends AuthError {
817
817
  }
818
818
  }
819
819
 
820
- /*! @azure/msal-common v16.0.4 2026-02-10 */
820
+ /*! @azure/msal-common v16.1.0 2026-02-24 */
821
821
 
822
822
  /*
823
823
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1701,7 +1701,7 @@ class PersistenceCreator {
1701
1701
 
1702
1702
  /* eslint-disable header/header */
1703
1703
  const name = "@azure/msal-node-extensions";
1704
- const version = "5.0.4";
1704
+ const version = "5.0.5";
1705
1705
 
1706
1706
  /*
1707
1707
  * Copyright (c) Microsoft Corporation. All rights reserved.