@azure/msal-node 2.5.1 → 2.7.0-alpha.0

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 (265) hide show
  1. package/dist/cache/ITokenCache.d.ts +15 -15
  2. package/dist/cache/NodeStorage.cjs +423 -405
  3. package/dist/cache/NodeStorage.cjs.map +1 -1
  4. package/dist/cache/NodeStorage.d.ts +193 -182
  5. package/dist/cache/NodeStorage.d.ts.map +1 -1
  6. package/dist/cache/NodeStorage.mjs +424 -406
  7. package/dist/cache/NodeStorage.mjs.map +1 -1
  8. package/dist/cache/TokenCache.cjs +265 -265
  9. package/dist/cache/TokenCache.cjs.map +1 -1
  10. package/dist/cache/TokenCache.d.ts +90 -90
  11. package/dist/cache/TokenCache.mjs +265 -265
  12. package/dist/cache/TokenCache.mjs.map +1 -1
  13. package/dist/cache/distributed/DistributedCachePlugin.cjs +26 -26
  14. package/dist/cache/distributed/DistributedCachePlugin.cjs.map +1 -1
  15. package/dist/cache/distributed/DistributedCachePlugin.d.ts +10 -10
  16. package/dist/cache/distributed/DistributedCachePlugin.mjs +26 -26
  17. package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
  18. package/dist/cache/distributed/ICacheClient.d.ts +17 -17
  19. package/dist/cache/distributed/IPartitionManager.d.ts +28 -28
  20. package/dist/cache/serializer/Deserializer.cjs +170 -167
  21. package/dist/cache/serializer/Deserializer.cjs.map +1 -1
  22. package/dist/cache/serializer/Deserializer.d.ts +42 -42
  23. package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
  24. package/dist/cache/serializer/Deserializer.mjs +170 -167
  25. package/dist/cache/serializer/Deserializer.mjs.map +1 -1
  26. package/dist/cache/serializer/Serializer.cjs +137 -134
  27. package/dist/cache/serializer/Serializer.cjs.map +1 -1
  28. package/dist/cache/serializer/Serializer.d.ts +39 -39
  29. package/dist/cache/serializer/Serializer.d.ts.map +1 -1
  30. package/dist/cache/serializer/Serializer.mjs +137 -134
  31. package/dist/cache/serializer/Serializer.mjs.map +1 -1
  32. package/dist/cache/serializer/SerializerTypes.d.ts +102 -101
  33. package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
  34. package/dist/client/ClientApplication.cjs +333 -333
  35. package/dist/client/ClientApplication.cjs.map +1 -1
  36. package/dist/client/ClientApplication.d.ts +142 -142
  37. package/dist/client/ClientApplication.d.ts.map +1 -1
  38. package/dist/client/ClientApplication.mjs +333 -333
  39. package/dist/client/ClientApplication.mjs.map +1 -1
  40. package/dist/client/ClientAssertion.cjs +116 -116
  41. package/dist/client/ClientAssertion.cjs.map +1 -1
  42. package/dist/client/ClientAssertion.d.ts +46 -46
  43. package/dist/client/ClientAssertion.mjs +116 -116
  44. package/dist/client/ClientAssertion.mjs.map +1 -1
  45. package/dist/client/ClientCredentialClient.cjs +194 -189
  46. package/dist/client/ClientCredentialClient.cjs.map +1 -1
  47. package/dist/client/ClientCredentialClient.d.ts +33 -33
  48. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  49. package/dist/client/ClientCredentialClient.mjs +195 -190
  50. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  51. package/dist/client/ConfidentialClientApplication.cjs +163 -163
  52. package/dist/client/ConfidentialClientApplication.cjs.map +1 -1
  53. package/dist/client/ConfidentialClientApplication.d.ts +58 -58
  54. package/dist/client/ConfidentialClientApplication.mjs +163 -163
  55. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  56. package/dist/client/DeviceCodeClient.cjs +207 -207
  57. package/dist/client/DeviceCodeClient.cjs.map +1 -1
  58. package/dist/client/DeviceCodeClient.d.ts +53 -53
  59. package/dist/client/DeviceCodeClient.mjs +207 -207
  60. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  61. package/dist/client/IConfidentialClientApplication.d.ts +39 -39
  62. package/dist/client/IPublicClientApplication.d.ts +42 -42
  63. package/dist/client/ManagedIdentityApplication.cjs +96 -0
  64. package/dist/client/ManagedIdentityApplication.cjs.map +1 -0
  65. package/dist/client/ManagedIdentityApplication.d.ts +24 -0
  66. package/dist/client/ManagedIdentityApplication.d.ts.map +1 -0
  67. package/dist/client/ManagedIdentityApplication.mjs +94 -0
  68. package/dist/client/ManagedIdentityApplication.mjs.map +1 -0
  69. package/dist/client/ManagedIdentityClient.cjs +49 -0
  70. package/dist/client/ManagedIdentityClient.cjs.map +1 -0
  71. package/dist/client/ManagedIdentityClient.d.ts +25 -0
  72. package/dist/client/ManagedIdentityClient.d.ts.map +1 -0
  73. package/dist/client/ManagedIdentityClient.mjs +47 -0
  74. package/dist/client/ManagedIdentityClient.mjs.map +1 -0
  75. package/dist/client/ManagedIdentitySources/AppService.cjs +79 -0
  76. package/dist/client/ManagedIdentitySources/AppService.cjs.map +1 -0
  77. package/dist/client/ManagedIdentitySources/AppService.d.ts +17 -0
  78. package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -0
  79. package/dist/client/ManagedIdentitySources/AppService.mjs +77 -0
  80. package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -0
  81. package/dist/client/ManagedIdentitySources/AzureArc.cjs +107 -0
  82. package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +1 -0
  83. package/dist/client/ManagedIdentitySources/AzureArc.d.ts +19 -0
  84. package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -0
  85. package/dist/client/ManagedIdentitySources/AzureArc.mjs +104 -0
  86. package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -0
  87. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +87 -0
  88. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +1 -0
  89. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +19 -0
  90. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -0
  91. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +85 -0
  92. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -0
  93. package/dist/client/ManagedIdentitySources/CloudShell.d.ts +7 -0
  94. package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -0
  95. package/dist/client/ManagedIdentitySources/Imds.cjs +63 -0
  96. package/dist/client/ManagedIdentitySources/Imds.cjs.map +1 -0
  97. package/dist/client/ManagedIdentitySources/Imds.d.ts +13 -0
  98. package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -0
  99. package/dist/client/ManagedIdentitySources/Imds.mjs +61 -0
  100. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -0
  101. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +7 -0
  102. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -0
  103. package/dist/client/OnBehalfOfClient.cjs +202 -202
  104. package/dist/client/OnBehalfOfClient.cjs.map +1 -1
  105. package/dist/client/OnBehalfOfClient.d.ts +47 -47
  106. package/dist/client/OnBehalfOfClient.mjs +202 -202
  107. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  108. package/dist/client/PublicClientApplication.cjs +229 -229
  109. package/dist/client/PublicClientApplication.cjs.map +1 -1
  110. package/dist/client/PublicClientApplication.d.ts +71 -71
  111. package/dist/client/PublicClientApplication.mjs +229 -229
  112. package/dist/client/PublicClientApplication.mjs.map +1 -1
  113. package/dist/client/UsernamePasswordClient.cjs +95 -95
  114. package/dist/client/UsernamePasswordClient.cjs.map +1 -1
  115. package/dist/client/UsernamePasswordClient.d.ts +25 -25
  116. package/dist/client/UsernamePasswordClient.mjs +95 -95
  117. package/dist/client/UsernamePasswordClient.mjs.map +1 -1
  118. package/dist/config/Configuration.cjs +88 -72
  119. package/dist/config/Configuration.cjs.map +1 -1
  120. package/dist/config/Configuration.d.ts +122 -107
  121. package/dist/config/Configuration.d.ts.map +1 -1
  122. package/dist/config/Configuration.mjs +88 -73
  123. package/dist/config/Configuration.mjs.map +1 -1
  124. package/dist/config/ManagedIdentityId.cjs +59 -0
  125. package/dist/config/ManagedIdentityId.cjs.map +1 -0
  126. package/dist/config/ManagedIdentityId.d.ts +12 -0
  127. package/dist/config/ManagedIdentityId.d.ts.map +1 -0
  128. package/dist/config/ManagedIdentityId.mjs +57 -0
  129. package/dist/config/ManagedIdentityId.mjs.map +1 -0
  130. package/dist/config/ManagedIdentityRequestParameters.cjs +38 -0
  131. package/dist/config/ManagedIdentityRequestParameters.cjs.map +1 -0
  132. package/dist/config/ManagedIdentityRequestParameters.d.ts +12 -0
  133. package/dist/config/ManagedIdentityRequestParameters.d.ts.map +1 -0
  134. package/dist/config/ManagedIdentityRequestParameters.mjs +36 -0
  135. package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -0
  136. package/dist/crypto/CryptoProvider.cjs +75 -75
  137. package/dist/crypto/CryptoProvider.cjs.map +1 -1
  138. package/dist/crypto/CryptoProvider.d.ts +52 -52
  139. package/dist/crypto/CryptoProvider.mjs +75 -75
  140. package/dist/crypto/CryptoProvider.mjs.map +1 -1
  141. package/dist/crypto/GuidGenerator.cjs +22 -22
  142. package/dist/crypto/GuidGenerator.cjs.map +1 -1
  143. package/dist/crypto/GuidGenerator.d.ts +14 -14
  144. package/dist/crypto/GuidGenerator.mjs +22 -22
  145. package/dist/crypto/GuidGenerator.mjs.map +1 -1
  146. package/dist/crypto/HashUtils.cjs +13 -13
  147. package/dist/crypto/HashUtils.cjs.map +1 -1
  148. package/dist/crypto/HashUtils.d.ts +8 -8
  149. package/dist/crypto/HashUtils.mjs +13 -13
  150. package/dist/crypto/HashUtils.mjs.map +1 -1
  151. package/dist/crypto/PkceGenerator.cjs +49 -49
  152. package/dist/crypto/PkceGenerator.cjs.map +1 -1
  153. package/dist/crypto/PkceGenerator.d.ts +22 -22
  154. package/dist/crypto/PkceGenerator.mjs +49 -49
  155. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  156. package/dist/error/ManagedIdentityError.cjs +40 -0
  157. package/dist/error/ManagedIdentityError.cjs.map +1 -0
  158. package/dist/error/ManagedIdentityError.d.ts +22 -0
  159. package/dist/error/ManagedIdentityError.d.ts.map +1 -0
  160. package/dist/error/ManagedIdentityError.mjs +36 -0
  161. package/dist/error/ManagedIdentityError.mjs.map +1 -0
  162. package/dist/error/ManagedIdentityErrorCodes.cjs +28 -0
  163. package/dist/error/ManagedIdentityErrorCodes.cjs.map +1 -0
  164. package/dist/error/ManagedIdentityErrorCodes.d.ts +10 -0
  165. package/dist/error/ManagedIdentityErrorCodes.d.ts.map +1 -0
  166. package/dist/error/ManagedIdentityErrorCodes.mjs +18 -0
  167. package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -0
  168. package/dist/error/NodeAuthError.cjs +85 -85
  169. package/dist/error/NodeAuthError.cjs.map +1 -1
  170. package/dist/error/NodeAuthError.d.ts +65 -65
  171. package/dist/error/NodeAuthError.mjs +85 -85
  172. package/dist/error/NodeAuthError.mjs.map +1 -1
  173. package/dist/index.cjs +3 -1
  174. package/dist/index.cjs.map +1 -1
  175. package/dist/index.d.ts +44 -42
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.mjs +2 -1
  178. package/dist/index.mjs.map +1 -1
  179. package/dist/internals.cjs +8 -8
  180. package/dist/internals.cjs.map +1 -1
  181. package/dist/internals.d.ts +6 -6
  182. package/dist/internals.mjs +8 -8
  183. package/dist/internals.mjs.map +1 -1
  184. package/dist/network/HttpClient.cjs +283 -276
  185. package/dist/network/HttpClient.cjs.map +1 -1
  186. package/dist/network/HttpClient.d.ts +26 -25
  187. package/dist/network/HttpClient.d.ts.map +1 -1
  188. package/dist/network/HttpClient.mjs +283 -276
  189. package/dist/network/HttpClient.mjs.map +1 -1
  190. package/dist/network/ILoopbackClient.d.ts +10 -10
  191. package/dist/network/LoopbackClient.cjs +77 -77
  192. package/dist/network/LoopbackClient.cjs.map +1 -1
  193. package/dist/network/LoopbackClient.d.ts +21 -21
  194. package/dist/network/LoopbackClient.mjs +77 -77
  195. package/dist/network/LoopbackClient.mjs.map +1 -1
  196. package/dist/packageMetadata.cjs +4 -4
  197. package/dist/packageMetadata.cjs.map +1 -1
  198. package/dist/packageMetadata.d.ts +2 -2
  199. package/dist/packageMetadata.d.ts.map +1 -1
  200. package/dist/packageMetadata.mjs +4 -4
  201. package/dist/packageMetadata.mjs.map +1 -1
  202. package/dist/request/AuthorizationCodeRequest.d.ts +21 -21
  203. package/dist/request/AuthorizationUrlRequest.d.ts +33 -33
  204. package/dist/request/ClientCredentialRequest.d.ts +14 -14
  205. package/dist/request/DeviceCodeRequest.d.ts +15 -15
  206. package/dist/request/InteractiveRequest.d.ts +22 -22
  207. package/dist/request/ManagedIdentityRequest.d.ts +9 -0
  208. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -0
  209. package/dist/request/ManagedIdentityRequestParams.d.ts +10 -0
  210. package/dist/request/ManagedIdentityRequestParams.d.ts.map +1 -0
  211. package/dist/request/OnBehalfOfRequest.d.ts +14 -14
  212. package/dist/request/RefreshTokenRequest.d.ts +17 -17
  213. package/dist/request/SignOutRequest.d.ts +5 -5
  214. package/dist/request/SilentFlowRequest.d.ts +16 -16
  215. package/dist/request/UsernamePasswordRequest.d.ts +19 -19
  216. package/dist/response/ManagedIdentityTokenResponse.d.ts +25 -0
  217. package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -0
  218. package/dist/utils/Constants.cjs +109 -80
  219. package/dist/utils/Constants.cjs.map +1 -1
  220. package/dist/utils/Constants.d.ts +106 -86
  221. package/dist/utils/Constants.d.ts.map +1 -1
  222. package/dist/utils/Constants.mjs +100 -81
  223. package/dist/utils/Constants.mjs.map +1 -1
  224. package/dist/utils/EncodingUtils.cjs +44 -44
  225. package/dist/utils/EncodingUtils.cjs.map +1 -1
  226. package/dist/utils/EncodingUtils.d.ts +26 -26
  227. package/dist/utils/EncodingUtils.mjs +44 -44
  228. package/dist/utils/EncodingUtils.mjs.map +1 -1
  229. package/dist/utils/NetworkUtils.cjs +38 -38
  230. package/dist/utils/NetworkUtils.cjs.map +1 -1
  231. package/dist/utils/NetworkUtils.d.ts +5 -5
  232. package/dist/utils/NetworkUtils.mjs +38 -38
  233. package/dist/utils/NetworkUtils.mjs.map +1 -1
  234. package/package.json +3 -3
  235. package/src/cache/NodeStorage.ts +24 -7
  236. package/src/cache/TokenCache.ts +1 -1
  237. package/src/cache/serializer/Deserializer.ts +5 -0
  238. package/src/cache/serializer/Serializer.ts +5 -0
  239. package/src/cache/serializer/SerializerTypes.ts +1 -0
  240. package/src/client/ClientApplication.ts +10 -9
  241. package/src/client/ClientCredentialClient.ts +72 -27
  242. package/src/client/ConfidentialClientApplication.ts +2 -2
  243. package/src/client/DeviceCodeClient.ts +1 -1
  244. package/src/client/ManagedIdentityApplication.ts +194 -0
  245. package/src/client/ManagedIdentityClient.ts +111 -0
  246. package/src/client/ManagedIdentitySources/AppService.ts +151 -0
  247. package/src/client/ManagedIdentitySources/AzureArc.ts +208 -0
  248. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +169 -0
  249. package/src/client/ManagedIdentitySources/CloudShell.ts +19 -0
  250. package/src/client/ManagedIdentitySources/Imds.ts +112 -0
  251. package/src/client/ManagedIdentitySources/ServiceFabric.ts +19 -0
  252. package/src/client/OnBehalfOfClient.ts +5 -5
  253. package/src/client/PublicClientApplication.ts +1 -1
  254. package/src/config/Configuration.ts +47 -1
  255. package/src/config/ManagedIdentityId.ts +73 -0
  256. package/src/config/ManagedIdentityRequestParameters.ts +53 -0
  257. package/src/error/ManagedIdentityError.ts +46 -0
  258. package/src/error/ManagedIdentityErrorCodes.ts +15 -0
  259. package/src/index.ts +4 -0
  260. package/src/network/HttpClient.ts +17 -5
  261. package/src/packageMetadata.ts +1 -1
  262. package/src/request/ManagedIdentityRequest.ts +15 -0
  263. package/src/request/ManagedIdentityRequestParams.ts +14 -0
  264. package/src/response/ManagedIdentityTokenResponse.ts +33 -0
  265. package/src/utils/Constants.ts +27 -0
@@ -1,91 +1,91 @@
1
- /*! @azure/msal-node v2.5.1 2023-11-07 */
1
+ /*! @azure/msal-node v2.7.0-alpha.0 2023-12-15 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-common';
4
4
 
5
- /*
6
- * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Licensed under the MIT License.
8
- */
9
- /**
10
- * NodeAuthErrorMessage class containing string constants used by error codes and messages.
11
- */
12
- const NodeAuthErrorMessage = {
13
- invalidLoopbackAddressType: {
14
- code: "invalid_loopback_server_address_type",
15
- desc: "Loopback server address is not type string. This is unexpected.",
16
- },
17
- unableToLoadRedirectUri: {
18
- code: "unable_to_load_redirectUrl",
19
- desc: "Loopback server callback was invoked without a url. This is unexpected.",
20
- },
21
- noAuthCodeInResponse: {
22
- code: "no_auth_code_in_response",
23
- desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
24
- },
25
- noLoopbackServerExists: {
26
- code: "no_loopback_server_exists",
27
- desc: "No loopback server exists yet.",
28
- },
29
- loopbackServerAlreadyExists: {
30
- code: "loopback_server_already_exists",
31
- desc: "Loopback server already exists. Cannot create another.",
32
- },
33
- loopbackServerTimeout: {
34
- code: "loopback_server_timeout",
35
- desc: "Timed out waiting for auth code listener to be registered.",
36
- },
37
- stateNotFoundError: {
38
- code: "state_not_found",
39
- desc: "State not found. Please verify that the request originated from msal.",
40
- },
41
- };
42
- class NodeAuthError extends AuthError {
43
- constructor(errorCode, errorMessage) {
44
- super(errorCode, errorMessage);
45
- this.name = "NodeAuthError";
46
- }
47
- /**
48
- * Creates an error thrown if loopback server address is of type string.
49
- */
50
- static createInvalidLoopbackAddressTypeError() {
51
- return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
52
- }
53
- /**
54
- * Creates an error thrown if the loopback server is unable to get a url.
55
- */
56
- static createUnableToLoadRedirectUrlError() {
57
- return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
58
- }
59
- /**
60
- * Creates an error thrown if the server response does not contain an auth code.
61
- */
62
- static createNoAuthCodeInResponseError() {
63
- return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
64
- }
65
- /**
66
- * Creates an error thrown if the loopback server has not been spun up yet.
67
- */
68
- static createNoLoopbackServerExistsError() {
69
- return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
70
- }
71
- /**
72
- * Creates an error thrown if a loopback server already exists when attempting to create another one.
73
- */
74
- static createLoopbackServerAlreadyExistsError() {
75
- return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
76
- }
77
- /**
78
- * Creates an error thrown if the loopback server times out registering the auth code listener.
79
- */
80
- static createLoopbackServerTimeoutError() {
81
- return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
82
- }
83
- /**
84
- * Creates an error thrown when the state is not present.
85
- */
86
- static createStateNotFoundError() {
87
- return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
88
- }
5
+ /*
6
+ * Copyright (c) Microsoft Corporation. All rights reserved.
7
+ * Licensed under the MIT License.
8
+ */
9
+ /**
10
+ * NodeAuthErrorMessage class containing string constants used by error codes and messages.
11
+ */
12
+ const NodeAuthErrorMessage = {
13
+ invalidLoopbackAddressType: {
14
+ code: "invalid_loopback_server_address_type",
15
+ desc: "Loopback server address is not type string. This is unexpected.",
16
+ },
17
+ unableToLoadRedirectUri: {
18
+ code: "unable_to_load_redirectUrl",
19
+ desc: "Loopback server callback was invoked without a url. This is unexpected.",
20
+ },
21
+ noAuthCodeInResponse: {
22
+ code: "no_auth_code_in_response",
23
+ desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
24
+ },
25
+ noLoopbackServerExists: {
26
+ code: "no_loopback_server_exists",
27
+ desc: "No loopback server exists yet.",
28
+ },
29
+ loopbackServerAlreadyExists: {
30
+ code: "loopback_server_already_exists",
31
+ desc: "Loopback server already exists. Cannot create another.",
32
+ },
33
+ loopbackServerTimeout: {
34
+ code: "loopback_server_timeout",
35
+ desc: "Timed out waiting for auth code listener to be registered.",
36
+ },
37
+ stateNotFoundError: {
38
+ code: "state_not_found",
39
+ desc: "State not found. Please verify that the request originated from msal.",
40
+ },
41
+ };
42
+ class NodeAuthError extends AuthError {
43
+ constructor(errorCode, errorMessage) {
44
+ super(errorCode, errorMessage);
45
+ this.name = "NodeAuthError";
46
+ }
47
+ /**
48
+ * Creates an error thrown if loopback server address is of type string.
49
+ */
50
+ static createInvalidLoopbackAddressTypeError() {
51
+ return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
52
+ }
53
+ /**
54
+ * Creates an error thrown if the loopback server is unable to get a url.
55
+ */
56
+ static createUnableToLoadRedirectUrlError() {
57
+ return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
58
+ }
59
+ /**
60
+ * Creates an error thrown if the server response does not contain an auth code.
61
+ */
62
+ static createNoAuthCodeInResponseError() {
63
+ return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
64
+ }
65
+ /**
66
+ * Creates an error thrown if the loopback server has not been spun up yet.
67
+ */
68
+ static createNoLoopbackServerExistsError() {
69
+ return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
70
+ }
71
+ /**
72
+ * Creates an error thrown if a loopback server already exists when attempting to create another one.
73
+ */
74
+ static createLoopbackServerAlreadyExistsError() {
75
+ return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
76
+ }
77
+ /**
78
+ * Creates an error thrown if the loopback server times out registering the auth code listener.
79
+ */
80
+ static createLoopbackServerTimeoutError() {
81
+ return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
82
+ }
83
+ /**
84
+ * Creates an error thrown when the state is not present.
85
+ */
86
+ static createStateNotFoundError() {
87
+ return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
88
+ }
89
89
  }
90
90
 
91
91
  export { NodeAuthError, NodeAuthErrorMessage };
@@ -1 +1 @@
1
- {"version":3,"file":"NodeAuthError.mjs","sources":["../../src/error/NodeAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;AAEA;;AAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8BD,kBAAA,EAAA;AAEF,QAAa,IAAA,EAAA,iBAAA;AACG,QAAA,IAAA,EAAA,uEAAwC;AAKpD,KAAA;;AAEG,MAAA,aAAA,SAAA,SAAA,CAAA;IACH,WAA4C,CAAA,SAAA,EAAA,YAAA,EAAA;AAO5C,QAAA,KAAA,CAAA,SAAA,EAAA,YAAA,CAAA,CAAA;;AAEG,KAAA;;AAQH;;AAEG,IAAA,OAAA,qCAAA,GAAA;QACG,OAAgC,IAAA,aAAA,CAAA,oBAAiB,CAAA,0BAAA,CAAA,IAAA,EAAA,CAAA,EAAA,oBAAA,CAAA,0BAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA;AAOvD,KAAA;;AAEG;;AAQH,IAAA,OAAA,kCAAA,GAAA;;AAEG,KAAA;;AAQH;;AAEG,IAAA,OAAA,+BAAA,GAAA;QACG,OAAiC,IAAA,aAAA,CAAA,oBAAiB,CAAA,oBAAA,CAAA,IAAA,EAAA,CAAA,EAAA,oBAAA,CAAA,oBAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CA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,kBAAkB,CAAC,IAAI,CAC/C,CAAC;KACL;AACJ;;;;"}
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.5.1 2023-11-07 */
1
+ /*! @azure/msal-node v2.7.0-alpha.0 2023-12-15 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -9,6 +9,7 @@ var ClientApplication = require('./client/ClientApplication.cjs');
9
9
  var ClientCredentialClient = require('./client/ClientCredentialClient.cjs');
10
10
  var DeviceCodeClient = require('./client/DeviceCodeClient.cjs');
11
11
  var OnBehalfOfClient = require('./client/OnBehalfOfClient.cjs');
12
+ var ManagedIdentityApplication = require('./client/ManagedIdentityApplication.cjs');
12
13
  var UsernamePasswordClient = require('./client/UsernamePasswordClient.cjs');
13
14
  var Configuration = require('./config/Configuration.cjs');
14
15
  var ClientAssertion = require('./client/ClientAssertion.cjs');
@@ -28,6 +29,7 @@ exports.ClientApplication = ClientApplication.ClientApplication;
28
29
  exports.ClientCredentialClient = ClientCredentialClient.ClientCredentialClient;
29
30
  exports.DeviceCodeClient = DeviceCodeClient.DeviceCodeClient;
30
31
  exports.OnBehalfOfClient = OnBehalfOfClient.OnBehalfOfClient;
32
+ exports.ManagedIdentityApplication = ManagedIdentityApplication.ManagedIdentityApplication;
31
33
  exports.UsernamePasswordClient = UsernamePasswordClient.UsernamePasswordClient;
32
34
  exports.buildAppConfiguration = Configuration.buildAppConfiguration;
33
35
  exports.ClientAssertion = ClientAssertion.ClientAssertion;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,43 +1,45 @@
1
- /**
2
- * @packageDocumentation
3
- * @module @azure/msal-node
4
- */
5
- /**
6
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
- */
9
- import * as internals from "./internals.js";
10
- export { internals };
11
- export { IPublicClientApplication } from "./client/IPublicClientApplication.js";
12
- export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication.js";
13
- export { ITokenCache } from "./cache/ITokenCache.js";
14
- export { ICacheClient } from "./cache/distributed/ICacheClient.js";
15
- export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
16
- export { ILoopbackClient } from "./network/ILoopbackClient.js";
17
- export { PublicClientApplication } from "./client/PublicClientApplication.js";
18
- export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
19
- export { ClientApplication } from "./client/ClientApplication.js";
20
- export { ClientCredentialClient } from "./client/ClientCredentialClient.js";
21
- export { DeviceCodeClient } from "./client/DeviceCodeClient.js";
22
- export { OnBehalfOfClient } from "./client/OnBehalfOfClient.js";
23
- export { UsernamePasswordClient } from "./client/UsernamePasswordClient.js";
24
- export { Configuration, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, BrokerOptions, NodeTelemetryOptions, CacheOptions, } from "./config/Configuration.js";
25
- export { ClientAssertion } from "./client/ClientAssertion.js";
26
- export { TokenCache } from "./cache/TokenCache.js";
27
- export { NodeStorage } from "./cache/NodeStorage.js";
28
- export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";
29
- export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";
30
- export { CryptoProvider } from "./crypto/CryptoProvider.js";
31
- export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
32
- export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
33
- export type { ClientCredentialRequest } from "./request/ClientCredentialRequest.js";
34
- export type { DeviceCodeRequest } from "./request/DeviceCodeRequest.js";
35
- export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest.js";
36
- export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest.js";
37
- export type { RefreshTokenRequest } from "./request/RefreshTokenRequest.js";
38
- export type { SilentFlowRequest } from "./request/SilentFlowRequest.js";
39
- export type { InteractiveRequest } from "./request/InteractiveRequest.js";
40
- export type { SignOutRequest } from "./request/SignOutRequest.js";
41
- export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, ServerAuthorizationCodeResponse, IdTokenClaims, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, AuthErrorCodes, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, INativeBrokerPlugin, } from "@azure/msal-common";
42
- export { version } from "./packageMetadata.js";
1
+ /**
2
+ * @packageDocumentation
3
+ * @module @azure/msal-node
4
+ */
5
+ /**
6
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
+ */
9
+ import * as internals from "./internals.js";
10
+ export { internals };
11
+ export { IPublicClientApplication } from "./client/IPublicClientApplication.js";
12
+ export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication.js";
13
+ export { ITokenCache } from "./cache/ITokenCache.js";
14
+ export { ICacheClient } from "./cache/distributed/ICacheClient.js";
15
+ export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
16
+ export { ILoopbackClient } from "./network/ILoopbackClient.js";
17
+ export { PublicClientApplication } from "./client/PublicClientApplication.js";
18
+ export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
19
+ export { ClientApplication } from "./client/ClientApplication.js";
20
+ export { ClientCredentialClient } from "./client/ClientCredentialClient.js";
21
+ export { DeviceCodeClient } from "./client/DeviceCodeClient.js";
22
+ export { OnBehalfOfClient } from "./client/OnBehalfOfClient.js";
23
+ export { ManagedIdentityApplication } from "./client/ManagedIdentityApplication.js";
24
+ export { UsernamePasswordClient } from "./client/UsernamePasswordClient.js";
25
+ export { Configuration, ManagedIdentityConfiguration, ManagedIdentityIdParams, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, BrokerOptions, NodeTelemetryOptions, CacheOptions, } from "./config/Configuration.js";
26
+ export { ClientAssertion } from "./client/ClientAssertion.js";
27
+ export { TokenCache } from "./cache/TokenCache.js";
28
+ export { NodeStorage } from "./cache/NodeStorage.js";
29
+ export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";
30
+ export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";
31
+ export { CryptoProvider } from "./crypto/CryptoProvider.js";
32
+ export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
33
+ export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
34
+ export type { ClientCredentialRequest } from "./request/ClientCredentialRequest.js";
35
+ export type { DeviceCodeRequest } from "./request/DeviceCodeRequest.js";
36
+ export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest.js";
37
+ export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest.js";
38
+ export type { RefreshTokenRequest } from "./request/RefreshTokenRequest.js";
39
+ export type { SilentFlowRequest } from "./request/SilentFlowRequest.js";
40
+ export type { InteractiveRequest } from "./request/InteractiveRequest.js";
41
+ export type { SignOutRequest } from "./request/SignOutRequest.js";
42
+ export type { ManagedIdentityRequestParams } from "./request/ManagedIdentityRequestParams.js";
43
+ export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, ServerAuthorizationCodeResponse, IdTokenClaims, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, AuthErrorCodes, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, INativeBrokerPlugin, } from "@azure/msal-common";
44
+ export { version } from "./packageMetadata.js";
43
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,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sCAAsC,CAAC;AACpF,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,YAAY,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAG9F,OAAO,EAEH,WAAW,EACX,YAAY,EACZ,wBAAwB,EAExB,oBAAoB,EACpB,+BAA+B,EAC/B,aAAa,EAEb,WAAW,EACX,cAAc,EAEd,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,WAAW,EAEX,cAAc,EACd,qBAAqB,EACrB,eAAe,EAEf,MAAM,EACN,QAAQ,EAER,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EAEvB,kBAAkB,EAClB,iBAAiB,EAEjB,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.5.1 2023-11-07 */
1
+ /*! @azure/msal-node v2.7.0-alpha.0 2023-12-15 */
2
2
  'use strict';
3
3
  import * as internals from './internals.mjs';
4
4
  export { internals };
@@ -8,6 +8,7 @@ export { ClientApplication } from './client/ClientApplication.mjs';
8
8
  export { ClientCredentialClient } from './client/ClientCredentialClient.mjs';
9
9
  export { DeviceCodeClient } from './client/DeviceCodeClient.mjs';
10
10
  export { OnBehalfOfClient } from './client/OnBehalfOfClient.mjs';
11
+ export { ManagedIdentityApplication } from './client/ManagedIdentityApplication.mjs';
11
12
  export { UsernamePasswordClient } from './client/UsernamePasswordClient.mjs';
12
13
  export { buildAppConfiguration } from './config/Configuration.mjs';
13
14
  export { ClientAssertion } from './client/ClientAssertion.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -1,17 +1,17 @@
1
- /*! @azure/msal-node v2.5.1 2023-11-07 */
1
+ /*! @azure/msal-node v2.7.0-alpha.0 2023-12-15 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
5
  var Serializer = require('./cache/serializer/Serializer.cjs');
6
6
  var Deserializer = require('./cache/serializer/Deserializer.cjs');
7
7
 
8
- /*
9
- * Copyright (c) Microsoft Corporation. All rights reserved.
10
- * Licensed under the MIT License.
11
- */
12
- /**
13
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
14
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
+ /*
9
+ * Copyright (c) Microsoft Corporation. All rights reserved.
10
+ * Licensed under the MIT License.
11
+ */
12
+ /**
13
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
14
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
15
15
  */
16
16
 
17
17
  exports.Serializer = Serializer.Serializer;
@@ -1 +1 @@
1
- {"version":3,"file":"internals.cjs","sources":["../src/internals.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAKA;;;AAGG;AAEH;AACA;;;;;;;"}
1
+ {"version":3,"file":"internals.cjs","sources":["../src/internals.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAEH;;;AAGG;;;;;"}
@@ -1,7 +1,7 @@
1
- /**
2
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
3
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
4
- */
5
- export { Serializer } from "./cache/serializer/Serializer.js";
6
- export { Deserializer } from "./cache/serializer/Deserializer.js";
1
+ /**
2
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
3
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
4
+ */
5
+ export { Serializer } from "./cache/serializer/Serializer.js";
6
+ export { Deserializer } from "./cache/serializer/Deserializer.js";
7
7
  //# sourceMappingURL=internals.d.ts.map
@@ -1,14 +1,14 @@
1
- /*! @azure/msal-node v2.5.1 2023-11-07 */
1
+ /*! @azure/msal-node v2.7.0-alpha.0 2023-12-15 */
2
2
  'use strict';
3
3
  export { Serializer } from './cache/serializer/Serializer.mjs';
4
4
  export { Deserializer } from './cache/serializer/Deserializer.mjs';
5
5
 
6
- /*
7
- * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Licensed under the MIT License.
9
- */
10
- /**
11
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
12
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
6
+ /*
7
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8
+ * Licensed under the MIT License.
9
+ */
10
+ /**
11
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
12
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
13
13
  */
14
14
  //# sourceMappingURL=internals.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"internals.mjs","sources":["../src/internals.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAKA;;;AAGG;AAEH;AACA;;"}
1
+ {"version":3,"file":"internals.mjs","sources":["../src/internals.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAEH;;;AAGG"}