@azure/msal-node-extensions 1.0.0-beta.1 → 1.0.1

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 (116) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +207 -207
  3. package/bin/arm64/dpapi.node +0 -0
  4. package/bin/ia32/dpapi.node +0 -0
  5. package/bin/x64/dpapi.node +0 -0
  6. package/dist/{Dpapi.js → Dpapi.cjs} +2 -2
  7. package/dist/Dpapi.cjs.map +1 -0
  8. package/dist/{Dpapi.esm.js → Dpapi.mjs} +2 -2
  9. package/dist/Dpapi.mjs.map +1 -0
  10. package/dist/broker/{NativeBrokerPlugin.js → NativeBrokerPlugin.cjs} +19 -13
  11. package/dist/broker/NativeBrokerPlugin.cjs.map +1 -0
  12. package/dist/broker/{NativeBrokerPlugin.esm.js → NativeBrokerPlugin.mjs} +19 -13
  13. package/dist/broker/NativeBrokerPlugin.mjs.map +1 -0
  14. package/dist/error/{NativeAuthError.js → NativeAuthError.cjs} +2 -2
  15. package/dist/error/NativeAuthError.cjs.map +1 -0
  16. package/dist/error/{NativeAuthError.esm.js → NativeAuthError.mjs} +2 -2
  17. package/dist/error/NativeAuthError.mjs.map +1 -0
  18. package/dist/error/{PersistenceError.js → PersistenceError.cjs} +5 -3
  19. package/dist/error/PersistenceError.cjs.map +1 -0
  20. package/dist/error/{PersistenceError.esm.js → PersistenceError.mjs} +5 -3
  21. package/dist/error/PersistenceError.mjs.map +1 -0
  22. package/dist/{index.js → index.cjs} +11 -11
  23. package/dist/index.cjs.map +1 -0
  24. package/dist/{index.esm.js → index.mjs} +11 -11
  25. package/dist/index.mjs.map +1 -0
  26. package/dist/lock/{CrossPlatformLock.js → CrossPlatformLock.cjs} +7 -6
  27. package/dist/lock/CrossPlatformLock.cjs.map +1 -0
  28. package/dist/lock/{CrossPlatformLock.esm.js → CrossPlatformLock.mjs} +7 -6
  29. package/dist/lock/CrossPlatformLock.mjs.map +1 -0
  30. package/dist/{packageMetadata.js → packageMetadata.cjs} +3 -3
  31. package/dist/packageMetadata.cjs.map +1 -0
  32. package/dist/packageMetadata.d.ts +1 -1
  33. package/dist/packageMetadata.mjs +8 -0
  34. package/dist/packageMetadata.mjs.map +1 -0
  35. package/dist/persistence/{BasePersistence.js → BasePersistence.cjs} +6 -6
  36. package/dist/persistence/BasePersistence.cjs.map +1 -0
  37. package/dist/persistence/{BasePersistence.esm.js → BasePersistence.mjs} +6 -6
  38. package/dist/persistence/BasePersistence.mjs.map +1 -0
  39. package/dist/persistence/{DataProtectionScope.js → DataProtectionScope.cjs} +2 -2
  40. package/dist/persistence/DataProtectionScope.cjs.map +1 -0
  41. package/dist/persistence/DataProtectionScope.d.ts +1 -1
  42. package/dist/persistence/{DataProtectionScope.esm.js → DataProtectionScope.mjs} +2 -2
  43. package/dist/persistence/DataProtectionScope.mjs.map +1 -0
  44. package/dist/persistence/{FilePersistence.js → FilePersistence.cjs} +8 -8
  45. package/dist/persistence/FilePersistence.cjs.map +1 -0
  46. package/dist/persistence/{FilePersistence.esm.js → FilePersistence.mjs} +8 -8
  47. package/dist/persistence/FilePersistence.mjs.map +1 -0
  48. package/dist/persistence/{FilePersistenceWithDataProtection.js → FilePersistenceWithDataProtection.cjs} +17 -11
  49. package/dist/persistence/FilePersistenceWithDataProtection.cjs.map +1 -0
  50. package/dist/persistence/{FilePersistenceWithDataProtection.esm.js → FilePersistenceWithDataProtection.mjs} +17 -11
  51. package/dist/persistence/FilePersistenceWithDataProtection.mjs.map +1 -0
  52. package/dist/persistence/{KeychainPersistence.js → KeychainPersistence.cjs} +6 -6
  53. package/dist/persistence/KeychainPersistence.cjs.map +1 -0
  54. package/dist/persistence/{KeychainPersistence.esm.js → KeychainPersistence.mjs} +6 -6
  55. package/dist/persistence/KeychainPersistence.mjs.map +1 -0
  56. package/dist/persistence/{LibSecretPersistence.js → LibSecretPersistence.cjs} +6 -6
  57. package/dist/persistence/LibSecretPersistence.cjs.map +1 -0
  58. package/dist/persistence/{LibSecretPersistence.esm.js → LibSecretPersistence.mjs} +6 -6
  59. package/dist/persistence/LibSecretPersistence.mjs.map +1 -0
  60. package/dist/persistence/{PersistenceCachePlugin.js → PersistenceCachePlugin.cjs} +3 -3
  61. package/dist/persistence/PersistenceCachePlugin.cjs.map +1 -0
  62. package/dist/persistence/{PersistenceCachePlugin.esm.js → PersistenceCachePlugin.mjs} +3 -3
  63. package/dist/persistence/PersistenceCachePlugin.mjs.map +1 -0
  64. package/dist/persistence/{PersistenceCreator.js → PersistenceCreator.cjs} +17 -12
  65. package/dist/persistence/PersistenceCreator.cjs.map +1 -0
  66. package/dist/persistence/{PersistenceCreator.esm.js → PersistenceCreator.mjs} +17 -12
  67. package/dist/persistence/PersistenceCreator.mjs.map +1 -0
  68. package/dist/utils/{Constants.js → Constants.cjs} +5 -5
  69. package/dist/utils/{Constants.esm.js.map → Constants.cjs.map} +1 -1
  70. package/dist/utils/Constants.d.ts +2 -2
  71. package/dist/utils/{Constants.esm.js → Constants.mjs} +5 -5
  72. package/dist/utils/{Constants.js.map → Constants.mjs.map} +1 -1
  73. package/dist/utils/{Environment.js → Environment.cjs} +7 -7
  74. package/dist/utils/Environment.cjs.map +1 -0
  75. package/dist/utils/{Environment.esm.js → Environment.mjs} +7 -7
  76. package/dist/utils/Environment.mjs.map +1 -0
  77. package/dist/utils/{TypeGuards.js → TypeGuards.cjs} +3 -4
  78. package/dist/utils/TypeGuards.cjs.map +1 -0
  79. package/dist/utils/{TypeGuards.esm.js → TypeGuards.mjs} +3 -4
  80. package/dist/utils/TypeGuards.mjs.map +1 -0
  81. package/package.json +77 -70
  82. package/dist/Dpapi.esm.js.map +0 -1
  83. package/dist/Dpapi.js.map +0 -1
  84. package/dist/broker/NativeBrokerPlugin.esm.js.map +0 -1
  85. package/dist/broker/NativeBrokerPlugin.js.map +0 -1
  86. package/dist/error/NativeAuthError.esm.js.map +0 -1
  87. package/dist/error/NativeAuthError.js.map +0 -1
  88. package/dist/error/PersistenceError.esm.js.map +0 -1
  89. package/dist/error/PersistenceError.js.map +0 -1
  90. package/dist/index.esm.js.map +0 -1
  91. package/dist/index.js.map +0 -1
  92. package/dist/lock/CrossPlatformLock.esm.js.map +0 -1
  93. package/dist/lock/CrossPlatformLock.js.map +0 -1
  94. package/dist/packageMetadata.esm.js +0 -8
  95. package/dist/packageMetadata.esm.js.map +0 -1
  96. package/dist/packageMetadata.js.map +0 -1
  97. package/dist/persistence/BasePersistence.esm.js.map +0 -1
  98. package/dist/persistence/BasePersistence.js.map +0 -1
  99. package/dist/persistence/DataProtectionScope.esm.js.map +0 -1
  100. package/dist/persistence/DataProtectionScope.js.map +0 -1
  101. package/dist/persistence/FilePersistence.esm.js.map +0 -1
  102. package/dist/persistence/FilePersistence.js.map +0 -1
  103. package/dist/persistence/FilePersistenceWithDataProtection.esm.js.map +0 -1
  104. package/dist/persistence/FilePersistenceWithDataProtection.js.map +0 -1
  105. package/dist/persistence/KeychainPersistence.esm.js.map +0 -1
  106. package/dist/persistence/KeychainPersistence.js.map +0 -1
  107. package/dist/persistence/LibSecretPersistence.esm.js.map +0 -1
  108. package/dist/persistence/LibSecretPersistence.js.map +0 -1
  109. package/dist/persistence/PersistenceCachePlugin.esm.js.map +0 -1
  110. package/dist/persistence/PersistenceCachePlugin.js.map +0 -1
  111. package/dist/persistence/PersistenceCreator.esm.js.map +0 -1
  112. package/dist/persistence/PersistenceCreator.js.map +0 -1
  113. package/dist/utils/Environment.esm.js.map +0 -1
  114. package/dist/utils/Environment.js.map +0 -1
  115. package/dist/utils/TypeGuards.esm.js.map +0 -1
  116. package/dist/utils/TypeGuards.js.map +0 -1
@@ -1,14 +1,14 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- var FilePersistence = require('./FilePersistence.js');
6
- var PersistenceError = require('../error/PersistenceError.js');
7
- var Dpapi = require('../Dpapi.js');
8
- var DataProtectionScope = require('./DataProtectionScope.js');
5
+ var FilePersistence = require('./FilePersistence.cjs');
6
+ var PersistenceError = require('../error/PersistenceError.cjs');
7
+ var Dpapi = require('../Dpapi.cjs');
8
+ var DataProtectionScope = require('./DataProtectionScope.cjs');
9
9
  var path = require('path');
10
- var BasePersistence = require('./BasePersistence.js');
11
- var TypeGuards = require('../utils/TypeGuards.js');
10
+ var BasePersistence = require('./BasePersistence.cjs');
11
+ var TypeGuards = require('../utils/TypeGuards.cjs');
12
12
 
13
13
  /*
14
14
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24,7 +24,9 @@ class FilePersistenceWithDataProtection extends BasePersistence.BasePersistence
24
24
  constructor(filePersistence, scope, optionalEntropy) {
25
25
  super();
26
26
  this.scope = scope;
27
- this.optionalEntropy = optionalEntropy ? Buffer.from(optionalEntropy, "utf-8") : null;
27
+ this.optionalEntropy = optionalEntropy
28
+ ? Buffer.from(optionalEntropy, "utf-8")
29
+ : null;
28
30
  this.filePersistence = filePersistence;
29
31
  }
30
32
  static async create(fileLocation, scope, optionalEntropy, loggerOptions) {
@@ -49,8 +51,12 @@ class FilePersistenceWithDataProtection extends BasePersistence.BasePersistence
49
51
  async load() {
50
52
  try {
51
53
  const encryptedContents = await this.filePersistence.loadBuffer();
52
- if (typeof encryptedContents === "undefined" || !encryptedContents || 0 === encryptedContents.length) {
53
- this.filePersistence.getLogger().info("Encrypted contents loaded from file were null or empty");
54
+ if (typeof encryptedContents === "undefined" ||
55
+ !encryptedContents ||
56
+ 0 === encryptedContents.length) {
57
+ this.filePersistence
58
+ .getLogger()
59
+ .info("Encrypted contents loaded from file were null or empty");
54
60
  return null;
55
61
  }
56
62
  return Dpapi.Dpapi.unprotectData(encryptedContents, this.optionalEntropy, this.scope.toString()).toString();
@@ -83,4 +89,4 @@ class FilePersistenceWithDataProtection extends BasePersistence.BasePersistence
83
89
  }
84
90
 
85
91
  exports.FilePersistenceWithDataProtection = FilePersistenceWithDataProtection;
86
- //# sourceMappingURL=FilePersistenceWithDataProtection.js.map
92
+ //# sourceMappingURL=FilePersistenceWithDataProtection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilePersistenceWithDataProtection.cjs","sources":["../../src/persistence/FilePersistenceWithDataProtection.ts"],"sourcesContent":[null],"names":["BasePersistence","FilePersistence","Dpapi","isNodeError","PersistenceError","dirname","DataProtectionScope"],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AAYH;;;;;AAKG;AACG,MAAO,iCACT,SAAQA,+BAAe,CAAA;AAOvB,IAAA,WAAA,CACI,eAAgC,EAChC,KAA0B,EAC1B,eAAwB,EAAA;AAExB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,eAAe,GAAG,eAAe;cAChC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;cACrC,IAAI,CAAC;AACX,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;KAC1C;IAEM,aAAa,MAAM,CACtB,YAAoB,EACpB,KAA0B,EAC1B,eAAwB,EACxB,aAA6B,EAAA;QAE7B,MAAM,eAAe,GAAG,MAAMC,+BAAe,CAAC,MAAM,CAChD,YAAY,EACZ,aAAa,CAChB,CAAC;QACF,MAAM,WAAW,GAAG,IAAI,iCAAiC,CACrD,eAAe,EACf,KAAK,EACL,eAAe,CAClB,CAAC;AACF,QAAA,OAAO,WAAW,CAAC;KACtB;IAEM,MAAM,IAAI,CAAC,QAAgB,EAAA;QAC9B,IAAI;YACA,MAAM,iBAAiB,GAAGC,WAAK,CAAC,WAAW,CACvC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,EAC9B,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CACxB,CAAC;YACF,MAAM,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,C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ACd,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;KAC7C;IAEM,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;KAC3C;IAEM,8BAA8B,GAAA;AACjC,QAAA,MAAM,qBAAqB,GAAG,CAAG,EAAAC,YAAO,CACpC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CACrC,aAAa,CAAC;QACf,OAAO,iCAAiC,CAAC,MAAM,CAC3C,qBAAqB,EACrBC,uCAAmB,CAAC,WAAW,CAClC,CAAC;KACL;AACJ;;;;"}
@@ -1,12 +1,12 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
- import { FilePersistence } from './FilePersistence.esm.js';
4
- import { PersistenceError } from '../error/PersistenceError.esm.js';
5
- import { Dpapi } from '../Dpapi.esm.js';
6
- import { DataProtectionScope } from './DataProtectionScope.esm.js';
3
+ import { FilePersistence } from './FilePersistence.mjs';
4
+ import { PersistenceError } from '../error/PersistenceError.mjs';
5
+ import { Dpapi } from '../Dpapi.mjs';
6
+ import { DataProtectionScope } from './DataProtectionScope.mjs';
7
7
  import { dirname } from 'path';
8
- import { BasePersistence } from './BasePersistence.esm.js';
9
- import { isNodeError } from '../utils/TypeGuards.esm.js';
8
+ import { BasePersistence } from './BasePersistence.mjs';
9
+ import { isNodeError } from '../utils/TypeGuards.mjs';
10
10
 
11
11
  /*
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -22,7 +22,9 @@ class FilePersistenceWithDataProtection extends BasePersistence {
22
22
  constructor(filePersistence, scope, optionalEntropy) {
23
23
  super();
24
24
  this.scope = scope;
25
- this.optionalEntropy = optionalEntropy ? Buffer.from(optionalEntropy, "utf-8") : null;
25
+ this.optionalEntropy = optionalEntropy
26
+ ? Buffer.from(optionalEntropy, "utf-8")
27
+ : null;
26
28
  this.filePersistence = filePersistence;
27
29
  }
28
30
  static async create(fileLocation, scope, optionalEntropy, loggerOptions) {
@@ -47,8 +49,12 @@ class FilePersistenceWithDataProtection extends BasePersistence {
47
49
  async load() {
48
50
  try {
49
51
  const encryptedContents = await this.filePersistence.loadBuffer();
50
- if (typeof encryptedContents === "undefined" || !encryptedContents || 0 === encryptedContents.length) {
51
- this.filePersistence.getLogger().info("Encrypted contents loaded from file were null or empty");
52
+ if (typeof encryptedContents === "undefined" ||
53
+ !encryptedContents ||
54
+ 0 === encryptedContents.length) {
55
+ this.filePersistence
56
+ .getLogger()
57
+ .info("Encrypted contents loaded from file were null or empty");
52
58
  return null;
53
59
  }
54
60
  return Dpapi.unprotectData(encryptedContents, this.optionalEntropy, this.scope.toString()).toString();
@@ -81,4 +87,4 @@ class FilePersistenceWithDataProtection extends BasePersistence {
81
87
  }
82
88
 
83
89
  export { FilePersistenceWithDataProtection };
84
- //# sourceMappingURL=FilePersistenceWithDataProtection.esm.js.map
90
+ //# sourceMappingURL=FilePersistenceWithDataProtection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilePersistenceWithDataProtection.mjs","sources":["../../src/persistence/FilePersistenceWithDataProtection.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAYH;;;;;AAKG;AACG,MAAO,iCACT,SAAQ,eAAe,CAAA;AAOvB,IAAA,WAAA,CACI,eAAgC,EAChC,KAA0B,EAC1B,eAAwB,EAAA;AAExB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,eAAe,GAAG,eAAe;cAChC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;cACrC,IAAI,CAAC;AACX,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;KAC1C;IAEM,aAAa,MAAM,CACtB,YAAoB,EACpB,KAA0B,EAC1B,eAAwB,EACxB,aA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ACxB,CAAC,QAAQ,EAAE,CAAC;AAChB,SAAA;AAAC,QAAA,OAAO,GAAG,EAAE;AACV,YAAA,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;gBAClB,MAAM,gBAAgB,CAAC,mCAAmC,CACtD,GAAG,CAAC,OAAO,CACd,CAAC;AACL,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,GAAG,CAAC;AACb,aAAA;AACJ,SAAA;KACJ;AAEM,IAAA,MAAM,MAAM,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;KACxC;IAEM,MAAM,eAAe,CAAC,QAAgB,EAAA;QACzC,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;KACzD;IAEM,WAAW,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;KAC7C;IAEM,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;KAC3C;IAEM,8BAA8B,GAAA;AACjC,QAAA,MAAM,qBAAqB,GAAG,CAAG,EAAA,OAAO,CACpC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CACrC,aAAa,CAAC;QACf,OAAO,iCAAiC,CAAC,MAAM,CAC3C,qBAAqB,EACrB,mBAAmB,CAAC,WAAW,CAClC,CAAC;KACL;AACJ;;;;"}
@@ -1,13 +1,13 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
5
  var keytar = require('keytar');
6
- var FilePersistence = require('./FilePersistence.js');
7
- var PersistenceError = require('../error/PersistenceError.js');
6
+ var FilePersistence = require('./FilePersistence.cjs');
7
+ var PersistenceError = require('../error/PersistenceError.cjs');
8
8
  var path = require('path');
9
- var BasePersistence = require('./BasePersistence.js');
10
- var TypeGuards = require('../utils/TypeGuards.js');
9
+ var BasePersistence = require('./BasePersistence.cjs');
10
+ var TypeGuards = require('../utils/TypeGuards.cjs');
11
11
 
12
12
  /*
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -89,4 +89,4 @@ class KeychainPersistence extends BasePersistence.BasePersistence {
89
89
  }
90
90
 
91
91
  exports.KeychainPersistence = KeychainPersistence;
92
- //# sourceMappingURL=KeychainPersistence.js.map
92
+ //# sourceMappingURL=KeychainPersistence.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeychainPersistence.cjs","sources":["../../src/persistence/KeychainPersistence.ts"],"sourcesContent":[null],"names":["BasePersistence","FilePersistence","setPassword","isNodeError","PersistenceError","getPassword","deletePassword","dirname"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAWH;;;;;AAKG;AACG,MAAO,mBACT,SAAQA,+BAAe,CAAA;AAOvB,IAAA,WAAA,CACI,eAAgC,EAChC,WAAmB,EACnB,WAAmB,EAAA;AAEnB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;AACvC,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;KAClC;IAEM,aAAa,MAAM,CACtB,YAAoB,EACpB,WAAmB,EACnB,WAAmB,EACnB,aAA6B,EAAA;QAE7B,MAAM,eAAe,GAAG,MAAMC,+BAAe,CAAC,MAAM,CAChD,YAAY,EACZ,aAAa,CAChB,CAAC;QACF,MAAM,WAAW,GAAG,IAAI,mBAAmB,CACvC,eAAe,EACf,WAAW,EACX,WAAW,CACd,CAAC;AACF,QAAA,OAAO,WAAW,CAAC;KACtB;IAEM,MAAM,IAAI,CAAC,QAAgB,EAAA;QAC9B,IAAI;AACA,YAAA,MAAMC,kBAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACnE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AW,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;KAC7C;IAEM,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;KAC3C;IAEM,8BAA8B,GAAA;AACjC,QAAA,MAAM,qBAAqB,GAAG,CAAG,EAAAG,YAAO,CACpC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CACrC,aAAa,CAAC;QACf,OAAO,mBAAmB,CAAC,MAAM,CAC7B,qBAAqB,EACrB,kCAAkC,EAClC,iCAAiC,CACpC,CAAC;KACL;AACJ;;;;"}
@@ -1,11 +1,11 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  import { setPassword, getPassword, deletePassword } from 'keytar';
4
- import { FilePersistence } from './FilePersistence.esm.js';
5
- import { PersistenceError } from '../error/PersistenceError.esm.js';
4
+ import { FilePersistence } from './FilePersistence.mjs';
5
+ import { PersistenceError } from '../error/PersistenceError.mjs';
6
6
  import { dirname } from 'path';
7
- import { BasePersistence } from './BasePersistence.esm.js';
8
- import { isNodeError } from '../utils/TypeGuards.esm.js';
7
+ import { BasePersistence } from './BasePersistence.mjs';
8
+ import { isNodeError } from '../utils/TypeGuards.mjs';
9
9
 
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -87,4 +87,4 @@ class KeychainPersistence extends BasePersistence {
87
87
  }
88
88
 
89
89
  export { KeychainPersistence };
90
- //# sourceMappingURL=KeychainPersistence.esm.js.map
90
+ //# sourceMappingURL=KeychainPersistence.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeychainPersistence.mjs","sources":["../../src/persistence/KeychainPersistence.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAWH;;;;;AAKG;AACG,MAAO,mBACT,SAAQ,eAA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AA8B,CACjD,GAAG,CAAC,OAAO,CACd,CAAC;AACL,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,GAAG,CAAC;AACb,aAAA;AACJ,SAAA;KACJ;AAEM,IAAA,MAAM,MAAM,GAAA;QACf,IAAI;AACA,YAAA,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;YACpC,OAAO,MAAM,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;AACnE,SAAA;AAAC,QAAA,OAAO,GAAG,EAAE;AACV,YAAA,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;gBAClB,MAAM,gBAAgB,CAAC,8BAA8B,CACjD,GAAG,CAAC,OAAO,CACd,CAAC;AACL,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,GAAG,CAAC;AACb,aAAA;AACJ,SAAA;KACJ;IAEM,MAAM,eAAe,CAAC,QAAgB,EAAA;QACzC,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;KACzD;IAEM,WAAW,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;KAC7C;IAEM,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;KAC3C;IAEM,8BAA8B,GAAA;AACjC,QAAA,MAAM,qBAAqB,GAAG,CAAG,EAAA,OAAO,CACpC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CACrC,aAAa,CAAC;QACf,OAAO,mBAAmB,CAAC,MAAM,CAC7B,qBAAqB,EACrB,kCAAkC,EAClC,iCAAiC,CACpC,CAAC;KACL;AACJ;;;;"}
@@ -1,13 +1,13 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
5
  var keytar = require('keytar');
6
- var FilePersistence = require('./FilePersistence.js');
7
- var PersistenceError = require('../error/PersistenceError.js');
6
+ var FilePersistence = require('./FilePersistence.cjs');
7
+ var PersistenceError = require('../error/PersistenceError.cjs');
8
8
  var path = require('path');
9
- var BasePersistence = require('./BasePersistence.js');
10
- var TypeGuards = require('../utils/TypeGuards.js');
9
+ var BasePersistence = require('./BasePersistence.cjs');
10
+ var TypeGuards = require('../utils/TypeGuards.cjs');
11
11
 
12
12
  /*
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -90,4 +90,4 @@ class LibSecretPersistence extends BasePersistence.BasePersistence {
90
90
  }
91
91
 
92
92
  exports.LibSecretPersistence = LibSecretPersistence;
93
- //# sourceMappingURL=LibSecretPersistence.js.map
93
+ //# sourceMappingURL=LibSecretPersistence.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LibSecretPersistence.cjs","sources":["../../src/persistence/LibSecretPersistence.ts"],"sourcesContent":[null],"names":["BasePersistence","FilePersistence","setPassword","isNodeError","PersistenceError","getPassword","deletePassword","dirname"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAWH;;;;;;AAMG;AACG,MAAO,oBACT,SAAQA,+BAAe,CAAA;AAOvB,IAAA,WAAA,CACI,eAAgC,EAChC,WAAmB,EACnB,WAAmB,EAAA;AAEnB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;AACvC,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;KAClC;IAEM,aAAa,MAAM,CACtB,YAAoB,EACpB,WAAmB,EACnB,WAAmB,EACnB,aAA6B,EAAA;QAE7B,MAAM,eAAe,GAAG,MAAMC,+BAAe,CAAC,MAAM,CAChD,YAAY,EACZ,aAAa,CAChB,CAAC;QACF,MAAM,WAAW,GAAG,IAAI,oBAAoB,CACxC,eAAe,EACf,WAAW,EACX,WAAW,CACd,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;AAC5D,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,GAAG,CAAC;AACb,aAAA;AACJ,SAAA;KACJ;IAEM,MAAM,eAAe,CAAC,QAAgB,EAAA;QACzC,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;KACzD;IAEM,WAAW,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;KAC7C;IAEM,SAAS,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;KAC3C;IAEM,8BAA8B,GAAA;AACjC,QAAA,MAAM,qBAAqB,GAAG,CAAG,EAAAG,YAAO,CACpC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CACrC,aAAa,CAAC;QACf,OAAO,oBAAoB,CAAC,MAAM,CAC9B,qBAAqB,EACrB,kCAAkC,EAClC,iCAAiC,CACpC,CAAC;KACL;AACJ;;;;"}
@@ -1,11 +1,11 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  import { setPassword, getPassword, deletePassword } from 'keytar';
4
- import { FilePersistence } from './FilePersistence.esm.js';
5
- import { PersistenceError } from '../error/PersistenceError.esm.js';
4
+ import { FilePersistence } from './FilePersistence.mjs';
5
+ import { PersistenceError } from '../error/PersistenceError.mjs';
6
6
  import { dirname } from 'path';
7
- import { BasePersistence } from './BasePersistence.esm.js';
8
- import { isNodeError } from '../utils/TypeGuards.esm.js';
7
+ import { BasePersistence } from './BasePersistence.mjs';
8
+ import { isNodeError } from '../utils/TypeGuards.mjs';
9
9
 
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -88,4 +88,4 @@ class LibSecretPersistence extends BasePersistence {
88
88
  }
89
89
 
90
90
  export { LibSecretPersistence };
91
- //# sourceMappingURL=LibSecretPersistence.esm.js.map
91
+ //# sourceMappingURL=LibSecretPersistence.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LibSecretPersistence.mjs","sources":["../../src/persistence/LibSecretPersistence.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;AAWH;;;;;;AAMG;AACG,MAAO,oBACT,SAAQ,eAAe,CAAA;AAOvB,IAAA,WAAA,CACI,eAAgC,EAChC,WAAmB,EACnB,WAAmB,EAAA;AAEnB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;AACvC,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;KAClC;IAEM,aAAa,MAAM,CACtB,YAAoB,EACpB,WAAmB,EACnB,WAAmB,EACnB,aAA6B,EAAA;QAE7B,MAAM,eAAe,GAAG,MAAM,eAAe,CAAC,MAAM,CAChD,YAAY,EACZ,aAAa,CAChB,CAAC;QACF,MAAM,WAAW,GAAG,IAAI,oBAAoB,CACxC,eAAe,EACf,WAAW,EACX,WAAW,CACd,CAAC;AACF,QAAA,OAAO,WAAW,CAAC;KACtB;IAEM,MAAM,IAAI,CAAC,QAAgB,EAAA;QAC9B,IAAI;AACA,YAAA,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACnE,SAAA;AAAC,QAAA,OAAO,GAAG,EAAE;AACV,YAAA,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;gBAClB,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC5D,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,GAAG,CAAC;AACb,aAAA;AACJ,SAAA;;QAED,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACzC;AAEM,IAAA,MAAM,IAAI,G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B,EACrB,kCAAkC,EAClC,iCAAiC,CACpC,CAAC;KACL;AACJ;;;;"}
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- var CrossPlatformLock = require('../lock/CrossPlatformLock.js');
5
+ var CrossPlatformLock = require('../lock/CrossPlatformLock.cjs');
6
6
  var process = require('process');
7
7
 
8
8
  /*
@@ -98,4 +98,4 @@ class PersistenceCachePlugin {
98
98
  }
99
99
 
100
100
  exports.PersistenceCachePlugin = PersistenceCachePlugin;
101
- //# sourceMappingURL=PersistenceCachePlugin.js.map
101
+ //# sourceMappingURL=PersistenceCachePlugin.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersistenceCachePlugin.cjs","sources":["../../src/persistence/PersistenceCachePlugin.ts"],"sourcesContent":[null],"names":["CrossPlatformLock","pid"],"mappings":";;;;;;;AAAA;;;AAGG;AAQH;;;;;;;;;;;;AAYG;MACU,sBAAsB,CAAA;IAU/B,WACI,CAAA,WAAyB,EACzB,WAAsC,EAAA;AAEtC,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;AAG/B,QAAA,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,SAAS,EAAE,CAAC;;QAGtC,IAAI,CAAC,YAAY,GAAG,CAAG,EAAA,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAA,SAAA,CAAW,CAAC;AACjE,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAIA,mCAAiB,CAC1C,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,WAAW,CACd,CAAC;;AAGF,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;AAClB,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;KAC5B;AAED;;;;;;;AAOG;IACI,MAAM,iBAAiB,CAC1B,YAA+B,E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C;gBACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAO,IAAA,EAAAC,WAAG,CAAgB,cAAA,CAAA,CAAC,CAAC;AAChD,aAAA;AAAM,iBAAA;gBACH,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,CAAO,IAAA,EAAAA,WAAG,CAAyC,uCAAA,CAAA,CACtD,CAAC;AACL,aAAA;AACJ,SAAA;KACJ;AAED;;AAEG;IACI,MAAM,gBAAgB,CACzB,YAA+B,EAAA;AAE/B,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QACjD,IAAI;YACA,IAAI,YAAY,CAAC,eAAe,EAAE;AAC9B,gBAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,kEAAkE,CACrE,CAAC;gBACF,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;gBACxD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAClD,aAAA;AAAM,iBAAA;AACH,gBAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,oEAAoE,CACvE,CAAC;AACL,aAAA;AACJ,SAAA;AAAS,gBAAA;AACN,YAAA,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;YACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAO,IAAA,EAAAA,WAAG,CAAiC,+BAAA,CAAA,CAAC,CAAC;AACjE,SAAA;KACJ;AACJ;;;;"}
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
- import { CrossPlatformLock } from '../lock/CrossPlatformLock.esm.js';
3
+ import { CrossPlatformLock } from '../lock/CrossPlatformLock.mjs';
4
4
  import { pid } from 'process';
5
5
 
6
6
  /*
@@ -96,4 +96,4 @@ class PersistenceCachePlugin {
96
96
  }
97
97
 
98
98
  export { PersistenceCachePlugin };
99
- //# sourceMappingURL=PersistenceCachePlugin.esm.js.map
99
+ //# sourceMappingURL=PersistenceCachePlugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersistenceCachePlugin.mjs","sources":["../../src/persistence/PersistenceCachePlugin.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAQH;;;;;;;;;;;;AAYG;MACU,sBAAsB,CAAA;IAU/B,WACI,CAAA,WAAyB,EACzB,WAAsC,EAAA;AAEtC,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;AAG/B,QAAA,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,SAAS,EAAE,CAAC;;QAGtC,IAAI,CAAC,YAAY,GAAG,CAAG,EAAA,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAA,SAAA,CAAW,CAAC;AACjE,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAI,iBAAiB,CAC1C,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,WAAW,CACd,CAAC;;AAGF,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;AAClB,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;KAC5B;AAED;;;;;;;AAOG;IACI,MAAM,iBAAiB,CAC1B,YAA+B,EAAA;AAE/B,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;AAClD,QAAA,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAC1D,IAAI,CAAC,QAAQ,CAChB,CAAC;QACF,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,EAAE;YAChD,IAAI,YAAY,CAAC,eAAe,EAAE;AAC9B,gBAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACjD,gBAAA,MA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,CAAC;QACjD,IAAI;YACA,IAAI,YAAY,CAAC,eAAe,EAAE;AAC9B,gBAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,kEAAkE,CACrE,CAAC;gBACF,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;gBACxD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAClD,aAAA;AAAM,iBAAA;AACH,gBAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,oEAAoE,CACvE,CAAC;AACL,aAAA;AACJ,SAAA;AAAS,gBAAA;AACN,YAAA,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;YACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAO,IAAA,EAAA,GAAG,CAAiC,+BAAA,CAAA,CAAC,CAAC;AACjE,SAAA;KACJ;AACJ;;;;"}
@@ -1,14 +1,14 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- var FilePersistenceWithDataProtection = require('./FilePersistenceWithDataProtection.js');
6
- var LibSecretPersistence = require('./LibSecretPersistence.js');
7
- var KeychainPersistence = require('./KeychainPersistence.js');
8
- var DataProtectionScope = require('./DataProtectionScope.js');
9
- var Environment = require('../utils/Environment.js');
10
- var FilePersistence = require('./FilePersistence.js');
11
- var PersistenceError = require('../error/PersistenceError.js');
5
+ var FilePersistenceWithDataProtection = require('./FilePersistenceWithDataProtection.cjs');
6
+ var LibSecretPersistence = require('./LibSecretPersistence.cjs');
7
+ var KeychainPersistence = require('./KeychainPersistence.cjs');
8
+ var DataProtectionScope = require('./DataProtectionScope.cjs');
9
+ var Environment = require('../utils/Environment.cjs');
10
+ var FilePersistence = require('./FilePersistence.cjs');
11
+ var PersistenceError = require('../error/PersistenceError.cjs');
12
12
 
13
13
  /*
14
14
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -26,14 +26,18 @@ class PersistenceCreator {
26
26
  }
27
27
  // On Mac, uses keychain.
28
28
  else if (Environment.Environment.isMacPlatform()) {
29
- if (!config.cachePath || !config.serviceName || !config.accountName) {
29
+ if (!config.cachePath ||
30
+ !config.serviceName ||
31
+ !config.accountName) {
30
32
  throw PersistenceError.PersistenceError.createPersistenceNotValidatedError("Cache path, service name and/or account name not provided for the KeychainPersistence cache plugin");
31
33
  }
32
34
  peristence = await KeychainPersistence.KeychainPersistence.create(config.cachePath, config.serviceName, config.accountName, config.loggerOptions);
33
35
  }
34
36
  // On Linux, uses libsecret to store to secret service. Libsecret has to be installed.
35
37
  else if (Environment.Environment.isLinuxPlatform()) {
36
- if (!config.cachePath || !config.serviceName || !config.accountName) {
38
+ if (!config.cachePath ||
39
+ !config.serviceName ||
40
+ !config.accountName) {
37
41
  throw PersistenceError.PersistenceError.createPersistenceNotValidatedError("Cache path, service name and/or account name not provided for the LibSecretPersistence cache plugin");
38
42
  }
39
43
  peristence = await LibSecretPersistence.LibSecretPersistence.create(config.cachePath, config.serviceName, config.accountName, config.loggerOptions);
@@ -42,7 +46,8 @@ class PersistenceCreator {
42
46
  throw PersistenceError.PersistenceError.createNotSupportedError("The current environment is not supported by msal-node-extensions yet.");
43
47
  }
44
48
  await peristence.verifyPersistence().catch(async (e) => {
45
- if (Environment.Environment.isLinuxPlatform() && config.usePlaintextFileOnLinux) {
49
+ if (Environment.Environment.isLinuxPlatform() &&
50
+ config.usePlaintextFileOnLinux) {
46
51
  if (!config.cachePath) {
47
52
  throw PersistenceError.PersistenceError.createPersistenceNotValidatedError("Cache path not provided for the FilePersistence cache plugin");
48
53
  }
@@ -62,4 +67,4 @@ class PersistenceCreator {
62
67
  }
63
68
 
64
69
  exports.PersistenceCreator = PersistenceCreator;
65
- //# sourceMappingURL=PersistenceCreator.js.map
70
+ //# sourceMappingURL=PersistenceCreator.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersistenceCreator.cjs","sources":["../../src/persistence/PersistenceCreator.ts"],"sourcesContent":[null],"names":["Environment","PersistenceError","FilePersistenceWithDataProtection","DataProtectionScope","KeychainPersistence","LibSecretPersistence","FilePersistence"],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;MAYU,kBAAkB,CAAA;AAC3B,IAAA,aAAa,iBAAiB,CAC1B,MAAiC,EAAA;AAEjC,QAAA,IAAI,UAAwB,CAAC;;AAG7B,QAAA,IAAIA,uBAAW,CAAC,iBAAiB,EAAE,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;AAClD,gBAAA,MAAMC,iCAAgB,CAAC,kCAAkC,CACrD,6GAA6G,CAChH,CAAC;AACL,aAAA;YAED,UAAU,GAAG,MAAMC,mEAAiC,CAAC,MAAM,CACvD,MAAM,CAAC,SAAS,EAChBC,uCAAmB,CAAC,WAAW,EAC/B,SAAS,EACT,MAAM,CAAC,aAAa,CACvB,CAAC;AACL,SAAA;;AAGI,aAAA,IAAIH,uBAAW,CAAC,aAAa,EAAE,EAAE;YAClC,IACI,CAAC,MAAM,CAAC,SAAS;gBACjB,CAAC,MAAM,CAAC,WAAW;gBACnB,CAAC,MAAM,CAAC,WAAW,EACrB;AACE,gBAAA,MAAMC,iCAAgB,CAAC,kCAAkC,CACrD,oGAAoG,CACvG,CAAC;AACL,aAAA;YAED,UAAU,GAAG,MAAMG,uCAAmB,CAAC,MAAM,CACzC,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,aAAa,CACvB,CAAC;AACL,SAAA;;AAGI,aAAA,IAAIJ,uBAAW,CAAC,eAAe,EAAE,EAAE;YACpC,IACI,CAAC,MAAM,CAAC,SAAS;gBACjB,CAAC,MAAM,CAAC,WAAW;gBACnB,CAAC,MAAM,CAAC,WAAW,EACrB;AACE,gBAAA,MAAMC,iCAAgB,CAAC,kCAAkC,CACrD,qGAAqG,CACxG,CAAC;AACL,aAAA;YAED,UAAU,GAAG,MAAMI,yCAAoB,CAAC,MAAM,CAC1C,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,aAAa,CACvB,CAAC;AACL,SAAA;AAAM,aAAA;AACH,YAAA,MAAMJ,iCAAgB,CAAC,uBAAuB,CAC1C,uEAAuE,CAC1E,CAAC;AACL,SAAA;QAED,MAAM,UAAU,CAAC,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAI;YACnD,IACID,uBAAW,CAAC,eAAe,EAAE;gBAC7B,MAAM,CAAC,uBAAuB,EAChC;AACE,gBAAA,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;AACnB,oBAAA,MAAMC,iCAAgB,CAAC,kCAAkC,CACrD,8DAA8D,CACjE,CAAC;AACL,iBAAA;AAED,gBAAA,UAAU,GAAG,MAAMK,+BAAe,CAAC,MAAM,CACrC,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,gBAAA,MAAM,yBAAyB,GAC3B,MAAM,UAAU,CAAC,iBAAiB,EAAE,CAAC;AACzC,gBAAA,IAAI,yBAAyB,EAAE;AAC3B,oBAAA,OAAO,UAAU,CAAC;AACrB,iBAAA;AAED,gBAAA,MAAML,iCAAgB,CAAC,iCAAiC,CACpD,mCAAmC,CACtC,CAAC;AACL,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,CAAC,CAAC;AACX,aAAA;AACL,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,UAAU,CAAC;KACrB;AACJ;;;;"}
@@ -1,12 +1,12 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
- import { FilePersistenceWithDataProtection } from './FilePersistenceWithDataProtection.esm.js';
4
- import { LibSecretPersistence } from './LibSecretPersistence.esm.js';
5
- import { KeychainPersistence } from './KeychainPersistence.esm.js';
6
- import { DataProtectionScope } from './DataProtectionScope.esm.js';
7
- import { Environment } from '../utils/Environment.esm.js';
8
- import { FilePersistence } from './FilePersistence.esm.js';
9
- import { PersistenceError } from '../error/PersistenceError.esm.js';
3
+ import { FilePersistenceWithDataProtection } from './FilePersistenceWithDataProtection.mjs';
4
+ import { LibSecretPersistence } from './LibSecretPersistence.mjs';
5
+ import { KeychainPersistence } from './KeychainPersistence.mjs';
6
+ import { DataProtectionScope } from './DataProtectionScope.mjs';
7
+ import { Environment } from '../utils/Environment.mjs';
8
+ import { FilePersistence } from './FilePersistence.mjs';
9
+ import { PersistenceError } from '../error/PersistenceError.mjs';
10
10
 
11
11
  /*
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24,14 +24,18 @@ class PersistenceCreator {
24
24
  }
25
25
  // On Mac, uses keychain.
26
26
  else if (Environment.isMacPlatform()) {
27
- if (!config.cachePath || !config.serviceName || !config.accountName) {
27
+ if (!config.cachePath ||
28
+ !config.serviceName ||
29
+ !config.accountName) {
28
30
  throw PersistenceError.createPersistenceNotValidatedError("Cache path, service name and/or account name not provided for the KeychainPersistence cache plugin");
29
31
  }
30
32
  peristence = await KeychainPersistence.create(config.cachePath, config.serviceName, config.accountName, config.loggerOptions);
31
33
  }
32
34
  // On Linux, uses libsecret to store to secret service. Libsecret has to be installed.
33
35
  else if (Environment.isLinuxPlatform()) {
34
- if (!config.cachePath || !config.serviceName || !config.accountName) {
36
+ if (!config.cachePath ||
37
+ !config.serviceName ||
38
+ !config.accountName) {
35
39
  throw PersistenceError.createPersistenceNotValidatedError("Cache path, service name and/or account name not provided for the LibSecretPersistence cache plugin");
36
40
  }
37
41
  peristence = await LibSecretPersistence.create(config.cachePath, config.serviceName, config.accountName, config.loggerOptions);
@@ -40,7 +44,8 @@ class PersistenceCreator {
40
44
  throw PersistenceError.createNotSupportedError("The current environment is not supported by msal-node-extensions yet.");
41
45
  }
42
46
  await peristence.verifyPersistence().catch(async (e) => {
43
- if (Environment.isLinuxPlatform() && config.usePlaintextFileOnLinux) {
47
+ if (Environment.isLinuxPlatform() &&
48
+ config.usePlaintextFileOnLinux) {
44
49
  if (!config.cachePath) {
45
50
  throw PersistenceError.createPersistenceNotValidatedError("Cache path not provided for the FilePersistence cache plugin");
46
51
  }
@@ -60,4 +65,4 @@ class PersistenceCreator {
60
65
  }
61
66
 
62
67
  export { PersistenceCreator };
63
- //# sourceMappingURL=PersistenceCreator.esm.js.map
68
+ //# sourceMappingURL=PersistenceCreator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersistenceCreator.mjs","sources":["../../src/persistence/PersistenceCreator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;MAYU,kBAAkB,CAAA;AAC3B,IAAA,aAAa,iBAAiB,CAC1B,MAAiC,EAAA;AAEjC,QAAA,IAAI,UAAwB,CAAC;;AAG7B,QAAA,IAAI,WAAW,CAAC,iBAAiB,EAAE,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;AAClD,gBAAA,MAAM,gBAAgB,CAAC,kCAAkC,CACrD,6GAA6G,CAChH,CAAC;AACL,aAAA;YAED,UAAU,GAAG,MAAM,iCAAiC,CAAC,MAAM,CACvD,MAAM,CAAC,SAAS,EAChB,mBAAmB,CAAC,WAAW,EAC/B,SAAS,EACT,MAAM,CAAC,aAAa,CACvB,CAAC;AACL,SAAA;;AAGI,aAAA,IAAI,WAAW,CAAC,aAAa,EAAE,EAAE;YAClC,IACI,CAAC,MAAM,CAAC,SAAS;gBACjB,CAAC,MAAM,CAAC,WAAW;gBACnB,CAAC,MAAM,CAAC,WAAW,EACrB;AACE,gBAAA,MAAM,gBAAgB,CAAC,kCAAkC,CACrD,oGAAoG,CACvG,CAAC;AACL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pD,mCAAmC,CACtC,CAAC;AACL,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,CAAC,CAAC;AACX,aAAA;AACL,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,UAAU,CAAC;KACrB;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -44,15 +44,15 @@ const Constants = {
44
44
  LNAME: "LNAME",
45
45
  USERNAME: "USERNAME",
46
46
  PLATFORM: "platform",
47
- LOCAL_APPLICATION_DATA: "LOCALAPPDATA"
47
+ LOCAL_APPLICATION_DATA: "LOCALAPPDATA",
48
48
  },
49
49
  // Name of the default cache file
50
- DEFAULT_CACHE_FILE_NAME: "cache.json"
50
+ DEFAULT_CACHE_FILE_NAME: "cache.json",
51
51
  };
52
52
  const Platform = {
53
53
  WINDOWS: "win32",
54
54
  LINUX: "linux",
55
- MACOS: "darwin"
55
+ MACOS: "darwin",
56
56
  };
57
57
  const ErrorCodes = {
58
58
  INTERATION_REQUIRED_ERROR_CODE: "interaction_required",
@@ -63,4 +63,4 @@ const ErrorCodes = {
63
63
  exports.Constants = Constants;
64
64
  exports.ErrorCodes = ErrorCodes;
65
65
  exports.Platform = Platform;
66
- //# sourceMappingURL=Constants.js.map
66
+ //# sourceMappingURL=Constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.esm.js","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEU,MAAA,SAAS,GAAG;AAErB;;AAEG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;;AAIG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;AAGG;AACH,IAAA,WAAW,EAAE,OAAO;AAEpB;;AAEG;AACH,IAAA,oBAAoB,EAAE,sBAAsB;AAE5C;;AAEG;AACH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AAE,UAAU;AACpB,QAAA,sBAAsB,EAAE,cAAc;AACzC,KAAA;;AAGD,IAAA,uBAAuB,EAAE,YAAY;EACvC;AAEW,MAAA,QAAQ,GAAG;AACpB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,QAAQ;EACR;AAGE,MAAA,UAAU,GAAG;AACtB,IAAA,8BAA8B,EAAE,sBAAsB;AACtD,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,OAAO,EAAE,eAAe;;;;;;;"}
@@ -45,10 +45,10 @@ export declare const Platform: {
45
45
  readonly LINUX: "linux";
46
46
  readonly MACOS: "darwin";
47
47
  };
48
- export type Platform = typeof Platform[keyof typeof Platform];
48
+ export type Platform = (typeof Platform)[keyof typeof Platform];
49
49
  export declare const ErrorCodes: {
50
50
  readonly INTERATION_REQUIRED_ERROR_CODE: "interaction_required";
51
51
  readonly SERVER_UNAVAILABLE: "server_unavailable";
52
52
  readonly UNKNOWN: "unknown_error";
53
53
  };
54
- export type ErrorCodes = typeof ErrorCodes[keyof typeof ErrorCodes];
54
+ export type ErrorCodes = (typeof ErrorCodes)[keyof typeof ErrorCodes];
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -42,15 +42,15 @@ const Constants = {
42
42
  LNAME: "LNAME",
43
43
  USERNAME: "USERNAME",
44
44
  PLATFORM: "platform",
45
- LOCAL_APPLICATION_DATA: "LOCALAPPDATA"
45
+ LOCAL_APPLICATION_DATA: "LOCALAPPDATA",
46
46
  },
47
47
  // Name of the default cache file
48
- DEFAULT_CACHE_FILE_NAME: "cache.json"
48
+ DEFAULT_CACHE_FILE_NAME: "cache.json",
49
49
  };
50
50
  const Platform = {
51
51
  WINDOWS: "win32",
52
52
  LINUX: "linux",
53
- MACOS: "darwin"
53
+ MACOS: "darwin",
54
54
  };
55
55
  const ErrorCodes = {
56
56
  INTERATION_REQUIRED_ERROR_CODE: "interaction_required",
@@ -59,4 +59,4 @@ const ErrorCodes = {
59
59
  };
60
60
 
61
61
  export { Constants, ErrorCodes, Platform };
62
- //# sourceMappingURL=Constants.esm.js.map
62
+ //# sourceMappingURL=Constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.js","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAEU,MAAA,SAAS,GAAG;AAErB;;AAEG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;;AAIG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;AAGG;AACH,IAAA,WAAW,EAAE,OAAO;AAEpB;;AAEG;AACH,IAAA,oBAAoB,EAAE,sBAAsB;AAE5C;;AAEG;AACH,IAAA,qBAAqB,EAAE,uDAAuD;AAE9E;;AAEG;AACH,IAAA,oBAAoB,EAAE,CAAC;AAEvB;;AAEG;AACH,IAAA,WAAW,EAAE;AACT,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,sBAAsB,EAAE,cAAc;AACzC,KAAA;;AAGD,IAAA,uBAAuB,EAAE,YAAY;EACvC;AAEW,MAAA,QAAQ,GAAG;AACpB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,QAAQ;EACR;AAGE,MAAA,UAAU,GAAG;AACtB,IAAA,8BAA8B,EAAE,sBAAsB;AACtD,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,OAAO,EAAE,eAAe;;;;;;;"}
1
+ {"version":3,"file":"Constants.mjs","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEU,MAAA,SAAS,GAAG;AACrB;;AAEG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;;AAIG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;AAGG;AACH,IAAA,WAAW,EAAE,OAAO;AAEpB;;AAEG;AACH,IAAA,oBAAoB,EAAE,sBAAsB;AAE5C;;AAEG;AACH,IAAA,qBAAqB,EACjB,uDAAuD;AAE3D;;AAEG;AACH,IAAA,oBAAoB,EAAE,CAAC;AAEvB;;AAEG;AACH,IAAA,WAAW,EAAE;AACT,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,sBAAsB,EAAE,cAAc;AACzC,KAAA;;AAGD,IAAA,uBAAuB,EAAE,YAAY;EACvC;AAEW,MAAA,QAAQ,GAAG;AACpB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,QAAQ;EACR;AAGE,MAAA,UAAU,GAAG;AACtB,IAAA,8BAA8B,EAAE,sBAAsB;AACtD,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,OAAO,EAAE,eAAe;;;;;"}
@@ -1,10 +1,10 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
5
  var path = require('path');
6
- var Constants = require('./Constants.js');
7
- var PersistenceError = require('../error/PersistenceError.js');
6
+ var Constants = require('./Constants.cjs');
7
+ var PersistenceError = require('../error/PersistenceError.cjs');
8
8
 
9
9
  /*
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48,9 +48,9 @@ class Environment {
48
48
  return process.getuid() === Constants.Constants.LINUX_ROOT_USER_GUID;
49
49
  }
50
50
  static getUserRootDirectory() {
51
- return !this.isWindowsPlatform ?
52
- this.getUserHomeDirOnUnix() :
53
- this.getUserHomeDirOnWindows();
51
+ return !this.isWindowsPlatform
52
+ ? this.getUserHomeDirOnUnix()
53
+ : this.getUserHomeDirOnWindows();
54
54
  }
55
55
  static getUserHomeDirOnWindows() {
56
56
  return this.getEnvironmentVariable(Constants.Constants.ENVIRONMENT.LOCAL_APPLICATION_DATA);
@@ -93,4 +93,4 @@ class Environment {
93
93
  }
94
94
 
95
95
  exports.Environment = Environment;
96
- //# sourceMappingURL=Environment.js.map
96
+ //# sourceMappingURL=Environment.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Environment.cjs","sources":["../../src/utils/Environment.ts"],"sourcesContent":[null],"names":["Constants","Platform","PersistenceError"],"mappings":";;;;;;;;AAAA;;;AAGG;MAMU,WAAW,CAAA;AACpB,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAACA,mBAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,aAAa,GAAA;QACpB,OAAO,IAAI,CAAC,sBAAsB,CAACA,mBAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KACrE;AAED,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAACA,mBAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,WAAW,GAAA;QAClB,OAAO,IAAI,CAAC,sBAAsB,CAACA,mBAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACnE;AAED,IAAA,WAAW,cAAc,GAAA;QACrB,OAAO,IAAI,CAAC,sBAAsB,CAACA,mBAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;KAC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UAAU,CAAC;AAC1B,SAAA;QAED,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,IAAI,IAAI,CAAC,aAAa,EAAE;AACpB,YAAA,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC;AACjC,SAAA;aAAM,IAAI,IAAI,CAAC,UAAU,EAAE;AACxB,YAAA,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC;AAC9B,SAAA;aAAM,IAAI,IAAI,CAAC,WAAW,EAAE;AACzB,YAAA,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC;AAC/B,SAAA;aAAM,IAAI,IAAI,CAAC,cAAc,EAAE;AAC5B,YAAA,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC;AAClC,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;AACtB,YAAA,OAAO,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC;AAC1D,SAAA;AAAM,aAAA,IAAI,IAAI,CAAC,eAAe,EAAE,EAAE;AAC/B,YAAA,IAAI,IAAI,CAAC,eAAe,EAAE,EAAE;AACxB,gBAAA,OAAO,OAAO,CAAC;AAClB,aAAA;AAAM,iBAAA;AACH,gBAAA,OAAO,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC;AACzD,aAAA;AACJ,SAAA;AAAM,aAAA;AACH,YAAA,MAAMA,iCAAgB,CAAC,uBAAuB,CAC1C,sEAAsE,CACzE,CAAC;AACL,SAAA;KACJ;AACJ;;;;"}
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-node-extensions v1.0.0-beta.1 2023-07-06 */
1
+ /*! @azure/msal-node-extensions v1.0.1 2023-08-11 */
2
2
  'use strict';
3
3
  import path from 'path';
4
- import { Constants, Platform } from './Constants.esm.js';
5
- import { PersistenceError } from '../error/PersistenceError.esm.js';
4
+ import { Constants, Platform } from './Constants.mjs';
5
+ import { PersistenceError } from '../error/PersistenceError.mjs';
6
6
 
7
7
  /*
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -46,9 +46,9 @@ class Environment {
46
46
  return process.getuid() === Constants.LINUX_ROOT_USER_GUID;
47
47
  }
48
48
  static getUserRootDirectory() {
49
- return !this.isWindowsPlatform ?
50
- this.getUserHomeDirOnUnix() :
51
- this.getUserHomeDirOnWindows();
49
+ return !this.isWindowsPlatform
50
+ ? this.getUserHomeDirOnUnix()
51
+ : this.getUserHomeDirOnWindows();
52
52
  }
53
53
  static getUserHomeDirOnWindows() {
54
54
  return this.getEnvironmentVariable(Constants.ENVIRONMENT.LOCAL_APPLICATION_DATA);
@@ -91,4 +91,4 @@ class Environment {
91
91
  }
92
92
 
93
93
  export { Environment };
94
- //# sourceMappingURL=Environment.esm.js.map
94
+ //# sourceMappingURL=Environment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Environment.mjs","sources":["../../src/utils/Environment.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;MAMU,WAAW,CAAA;AACpB,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,aAAa,GAAA;QACpB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KACrE;AAED,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,WAAW,GAAA;QAClB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACnE;AAED,IAAA,WAAW,cAAc,GAAA;QACrB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW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