firebase-admin 13.5.0 → 13.6.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 (218) hide show
  1. package/lib/app/core.d.ts +2 -2
  2. package/lib/app/core.js +2 -2
  3. package/lib/app/credential-factory.d.ts +2 -2
  4. package/lib/app/credential-factory.js +2 -2
  5. package/lib/app/credential-internal.d.ts +2 -2
  6. package/lib/app/credential-internal.js +2 -2
  7. package/lib/app/credential.d.ts +2 -2
  8. package/lib/app/credential.js +2 -2
  9. package/lib/app/firebase-app.d.ts +2 -2
  10. package/lib/app/firebase-app.js +2 -2
  11. package/lib/app/firebase-namespace.d.ts +2 -2
  12. package/lib/app/firebase-namespace.js +2 -2
  13. package/lib/app/index.d.ts +2 -2
  14. package/lib/app/index.js +2 -2
  15. package/lib/app/lifecycle.d.ts +2 -2
  16. package/lib/app/lifecycle.js +2 -2
  17. package/lib/app-check/app-check-api-client-internal.d.ts +2 -2
  18. package/lib/app-check/app-check-api-client-internal.js +2 -2
  19. package/lib/app-check/app-check-api.d.ts +2 -2
  20. package/lib/app-check/app-check-api.js +2 -2
  21. package/lib/app-check/app-check-namespace.d.ts +2 -2
  22. package/lib/app-check/app-check-namespace.js +2 -2
  23. package/lib/app-check/app-check.d.ts +2 -2
  24. package/lib/app-check/app-check.js +2 -2
  25. package/lib/app-check/index.d.ts +2 -2
  26. package/lib/app-check/index.js +2 -2
  27. package/lib/app-check/token-generator.d.ts +2 -2
  28. package/lib/app-check/token-generator.js +2 -2
  29. package/lib/app-check/token-verifier.d.ts +2 -2
  30. package/lib/app-check/token-verifier.js +2 -2
  31. package/lib/auth/action-code-settings-builder.d.ts +2 -2
  32. package/lib/auth/action-code-settings-builder.js +2 -2
  33. package/lib/auth/auth-api-request.d.ts +2 -2
  34. package/lib/auth/auth-api-request.js +2 -2
  35. package/lib/auth/auth-config.d.ts +2 -2
  36. package/lib/auth/auth-config.js +2 -2
  37. package/lib/auth/auth-namespace.d.ts +2 -2
  38. package/lib/auth/auth-namespace.js +2 -2
  39. package/lib/auth/auth.d.ts +2 -2
  40. package/lib/auth/auth.js +2 -2
  41. package/lib/auth/base-auth.d.ts +2 -2
  42. package/lib/auth/base-auth.js +2 -2
  43. package/lib/auth/identifier.d.ts +2 -2
  44. package/lib/auth/identifier.js +2 -2
  45. package/lib/auth/index.d.ts +2 -2
  46. package/lib/auth/index.js +2 -2
  47. package/lib/auth/project-config-manager.d.ts +1 -1
  48. package/lib/auth/project-config-manager.js +1 -1
  49. package/lib/auth/project-config.d.ts +1 -1
  50. package/lib/auth/project-config.js +2 -2
  51. package/lib/auth/tenant-manager.d.ts +2 -2
  52. package/lib/auth/tenant-manager.js +2 -2
  53. package/lib/auth/tenant.d.ts +2 -2
  54. package/lib/auth/tenant.js +2 -2
  55. package/lib/auth/token-generator.d.ts +2 -2
  56. package/lib/auth/token-generator.js +2 -2
  57. package/lib/auth/token-verifier.d.ts +2 -2
  58. package/lib/auth/token-verifier.js +2 -2
  59. package/lib/auth/user-import-builder.d.ts +2 -2
  60. package/lib/auth/user-import-builder.js +2 -2
  61. package/lib/auth/user-record.d.ts +2 -2
  62. package/lib/auth/user-record.js +2 -2
  63. package/lib/credential/index.d.ts +2 -2
  64. package/lib/credential/index.js +2 -2
  65. package/lib/data-connect/data-connect-api-client-internal.d.ts +2 -2
  66. package/lib/data-connect/data-connect-api-client-internal.js +182 -56
  67. package/lib/data-connect/data-connect-api.d.ts +30 -5
  68. package/lib/data-connect/data-connect-api.js +2 -2
  69. package/lib/data-connect/data-connect.d.ts +56 -10
  70. package/lib/data-connect/data-connect.js +22 -9
  71. package/lib/data-connect/index.d.ts +3 -18
  72. package/lib/data-connect/index.js +16 -10
  73. package/lib/data-connect/validate-admin-args.d.ts +18 -0
  74. package/lib/data-connect/validate-admin-args.js +79 -0
  75. package/lib/database/database-namespace.d.ts +2 -2
  76. package/lib/database/database-namespace.js +2 -2
  77. package/lib/database/database.d.ts +2 -2
  78. package/lib/database/database.js +2 -2
  79. package/lib/database/index.d.ts +2 -2
  80. package/lib/database/index.js +2 -2
  81. package/lib/default-namespace.d.ts +2 -2
  82. package/lib/default-namespace.js +2 -2
  83. package/lib/esm/data-connect/index.js +1 -0
  84. package/lib/eventarc/cloudevent.d.ts +2 -2
  85. package/lib/eventarc/cloudevent.js +2 -2
  86. package/lib/eventarc/eventarc-client-internal.d.ts +2 -2
  87. package/lib/eventarc/eventarc-client-internal.js +2 -2
  88. package/lib/eventarc/eventarc-utils.d.ts +2 -2
  89. package/lib/eventarc/eventarc-utils.js +2 -2
  90. package/lib/eventarc/eventarc.d.ts +2 -2
  91. package/lib/eventarc/eventarc.js +2 -2
  92. package/lib/eventarc/index.d.ts +2 -2
  93. package/lib/eventarc/index.js +2 -2
  94. package/lib/extensions/extensions-api-client-internal.d.ts +2 -2
  95. package/lib/extensions/extensions-api-client-internal.js +2 -2
  96. package/lib/extensions/extensions-api.d.ts +2 -2
  97. package/lib/extensions/extensions-api.js +2 -2
  98. package/lib/extensions/extensions.d.ts +2 -2
  99. package/lib/extensions/extensions.js +2 -2
  100. package/lib/extensions/index.d.ts +2 -2
  101. package/lib/extensions/index.js +2 -2
  102. package/lib/firebase-namespace-api.d.ts +2 -2
  103. package/lib/firebase-namespace-api.js +2 -2
  104. package/lib/firestore/firestore-internal.d.ts +2 -2
  105. package/lib/firestore/firestore-internal.js +2 -2
  106. package/lib/firestore/firestore-namespace.d.ts +2 -2
  107. package/lib/firestore/firestore-namespace.js +2 -2
  108. package/lib/firestore/index.d.ts +2 -2
  109. package/lib/firestore/index.js +2 -2
  110. package/lib/functions/functions-api-client-internal.d.ts +2 -2
  111. package/lib/functions/functions-api-client-internal.js +2 -2
  112. package/lib/functions/functions-api.d.ts +2 -2
  113. package/lib/functions/functions-api.js +2 -2
  114. package/lib/functions/functions.d.ts +2 -2
  115. package/lib/functions/functions.js +2 -2
  116. package/lib/functions/index.d.ts +2 -2
  117. package/lib/functions/index.js +2 -2
  118. package/lib/index.d.ts +2 -2
  119. package/lib/index.js +2 -2
  120. package/lib/installations/index.d.ts +2 -2
  121. package/lib/installations/index.js +2 -2
  122. package/lib/installations/installations-namespace.d.ts +2 -2
  123. package/lib/installations/installations-namespace.js +2 -2
  124. package/lib/installations/installations-request-handler.d.ts +2 -2
  125. package/lib/installations/installations-request-handler.js +2 -2
  126. package/lib/installations/installations.d.ts +2 -2
  127. package/lib/installations/installations.js +2 -2
  128. package/lib/instance-id/index.d.ts +2 -2
  129. package/lib/instance-id/index.js +2 -2
  130. package/lib/instance-id/instance-id-namespace.d.ts +1 -1
  131. package/lib/instance-id/instance-id-namespace.js +1 -1
  132. package/lib/instance-id/instance-id.d.ts +2 -2
  133. package/lib/instance-id/instance-id.js +2 -2
  134. package/lib/machine-learning/index.d.ts +2 -2
  135. package/lib/machine-learning/index.js +2 -2
  136. package/lib/machine-learning/machine-learning-api-client.d.ts +2 -2
  137. package/lib/machine-learning/machine-learning-api-client.js +2 -2
  138. package/lib/machine-learning/machine-learning-namespace.d.ts +2 -2
  139. package/lib/machine-learning/machine-learning-namespace.js +2 -2
  140. package/lib/machine-learning/machine-learning-utils.d.ts +2 -2
  141. package/lib/machine-learning/machine-learning-utils.js +2 -2
  142. package/lib/machine-learning/machine-learning.d.ts +2 -2
  143. package/lib/machine-learning/machine-learning.js +2 -2
  144. package/lib/messaging/index.d.ts +2 -2
  145. package/lib/messaging/index.js +2 -2
  146. package/lib/messaging/messaging-api-request-internal.d.ts +2 -2
  147. package/lib/messaging/messaging-api-request-internal.js +2 -2
  148. package/lib/messaging/messaging-api.d.ts +2 -2
  149. package/lib/messaging/messaging-api.js +2 -2
  150. package/lib/messaging/messaging-errors-internal.d.ts +2 -2
  151. package/lib/messaging/messaging-errors-internal.js +2 -2
  152. package/lib/messaging/messaging-internal.d.ts +2 -2
  153. package/lib/messaging/messaging-internal.js +2 -2
  154. package/lib/messaging/messaging-namespace.d.ts +2 -2
  155. package/lib/messaging/messaging-namespace.js +2 -2
  156. package/lib/messaging/messaging.d.ts +2 -2
  157. package/lib/messaging/messaging.js +2 -2
  158. package/lib/project-management/android-app.d.ts +2 -2
  159. package/lib/project-management/android-app.js +2 -2
  160. package/lib/project-management/app-metadata.d.ts +2 -2
  161. package/lib/project-management/app-metadata.js +2 -2
  162. package/lib/project-management/index.d.ts +2 -2
  163. package/lib/project-management/index.js +2 -2
  164. package/lib/project-management/ios-app.d.ts +2 -2
  165. package/lib/project-management/ios-app.js +2 -2
  166. package/lib/project-management/project-management-api-request-internal.d.ts +2 -2
  167. package/lib/project-management/project-management-api-request-internal.js +2 -2
  168. package/lib/project-management/project-management-namespace.d.ts +2 -2
  169. package/lib/project-management/project-management-namespace.js +2 -2
  170. package/lib/project-management/project-management.d.ts +2 -2
  171. package/lib/project-management/project-management.js +2 -2
  172. package/lib/remote-config/condition-evaluator-internal.d.ts +2 -2
  173. package/lib/remote-config/condition-evaluator-internal.js +2 -2
  174. package/lib/remote-config/index.d.ts +2 -2
  175. package/lib/remote-config/index.js +2 -2
  176. package/lib/remote-config/internal/value-impl.d.ts +2 -2
  177. package/lib/remote-config/internal/value-impl.js +2 -2
  178. package/lib/remote-config/remote-config-api-client-internal.d.ts +2 -2
  179. package/lib/remote-config/remote-config-api-client-internal.js +2 -2
  180. package/lib/remote-config/remote-config-api.d.ts +2 -2
  181. package/lib/remote-config/remote-config-api.js +2 -2
  182. package/lib/remote-config/remote-config-namespace.d.ts +2 -2
  183. package/lib/remote-config/remote-config-namespace.js +2 -2
  184. package/lib/remote-config/remote-config.d.ts +2 -2
  185. package/lib/remote-config/remote-config.js +2 -2
  186. package/lib/security-rules/index.d.ts +2 -2
  187. package/lib/security-rules/index.js +2 -2
  188. package/lib/security-rules/security-rules-api-client-internal.d.ts +2 -2
  189. package/lib/security-rules/security-rules-api-client-internal.js +2 -2
  190. package/lib/security-rules/security-rules-internal.d.ts +2 -2
  191. package/lib/security-rules/security-rules-internal.js +2 -2
  192. package/lib/security-rules/security-rules-namespace.d.ts +2 -2
  193. package/lib/security-rules/security-rules-namespace.js +2 -2
  194. package/lib/security-rules/security-rules.d.ts +2 -2
  195. package/lib/security-rules/security-rules.js +2 -2
  196. package/lib/storage/index.d.ts +2 -2
  197. package/lib/storage/index.js +2 -2
  198. package/lib/storage/storage-namespace.d.ts +2 -2
  199. package/lib/storage/storage-namespace.js +2 -2
  200. package/lib/storage/storage.d.ts +2 -2
  201. package/lib/storage/storage.js +2 -2
  202. package/lib/storage/utils.d.ts +1 -1
  203. package/lib/storage/utils.js +1 -1
  204. package/lib/utils/api-request.d.ts +2 -2
  205. package/lib/utils/api-request.js +8 -4
  206. package/lib/utils/crypto-signer.d.ts +2 -2
  207. package/lib/utils/crypto-signer.js +2 -2
  208. package/lib/utils/deep-copy.d.ts +2 -2
  209. package/lib/utils/deep-copy.js +2 -2
  210. package/lib/utils/error.d.ts +2 -2
  211. package/lib/utils/error.js +2 -2
  212. package/lib/utils/index.d.ts +2 -2
  213. package/lib/utils/index.js +2 -2
  214. package/lib/utils/jwt.d.ts +2 -2
  215. package/lib/utils/jwt.js +2 -2
  216. package/lib/utils/validator.d.ts +2 -2
  217. package/lib/utils/validator.js +19 -15
  218. package/package.json +6 -4
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2020 Google Inc.
3
+ * Copyright 2020 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2020 Google Inc.
4
+ * Copyright 2020 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2021 Google Inc.
3
+ * Copyright 2021 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2021 Google Inc.
4
+ * Copyright 2021 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2021 Google Inc.
3
+ * Copyright 2021 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2021 Google Inc.
4
+ * Copyright 2021 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2020 Google Inc.
3
+ * Copyright 2020 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2020 Google Inc.
4
+ * Copyright 2020 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2020 Google Inc.
3
+ * Copyright 2020 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2020 Google Inc.
4
+ * Copyright 2020 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2019 Google Inc.
3
+ * Copyright 2019 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2019 Google Inc.
4
+ * Copyright 2019 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2019 Google Inc.
3
+ * Copyright 2019 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2019 Google Inc.
4
+ * Copyright 2019 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2021 Google Inc.
3
+ * Copyright 2021 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2021 Google Inc.
4
+ * Copyright 2021 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2019 Google Inc.
3
+ * Copyright 2019 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2019 Google Inc.
4
+ * Copyright 2019 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2020 Google Inc.
3
+ * Copyright 2020 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2020 Google Inc.
4
+ * Copyright 2020 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2021 Google Inc.
3
+ * Copyright 2021 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2021 Google Inc.
4
+ * Copyright 2021 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2017 Google Inc.
4
+ * Copyright 2017 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2017 Google Inc.
5
+ * Copyright 2017 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  import { File } from '@google-cloud/storage';
3
3
  export interface FirebaseMetadata {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.getFirebaseMetadata = getFirebaseMetadata;
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2017 Google Inc.
4
+ * Copyright 2017 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2017 Google Inc.
5
+ * Copyright 2017 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -806,7 +806,9 @@ class AuthorizedHttpClient extends HttpClient {
806
806
  if (!requestCopy.httpAgent && this.app.options.httpAgent) {
807
807
  requestCopy.httpAgent = this.app.options.httpAgent;
808
808
  }
809
- requestCopy.headers['X-Goog-Api-Client'] = (0, index_1.getMetricsHeader)();
809
+ if (!requestCopy.headers['X-Goog-Api-Client']) {
810
+ requestCopy.headers['X-Goog-Api-Client'] = (0, index_1.getMetricsHeader)();
811
+ }
810
812
  return super.send(requestCopy);
811
813
  });
812
814
  }
@@ -835,7 +837,9 @@ class AuthorizedHttp2Client extends Http2Client {
835
837
  if (!requestCopy.headers['x-goog-user-project'] && validator.isNonEmptyString(quotaProjectId)) {
836
838
  requestCopy.headers['x-goog-user-project'] = quotaProjectId;
837
839
  }
838
- requestCopy.headers['X-Goog-Api-Client'] = (0, index_1.getMetricsHeader)();
840
+ if (!requestCopy.headers['X-Goog-Api-Client']) {
841
+ requestCopy.headers['X-Goog-Api-Client'] = (0, index_1.getMetricsHeader)();
842
+ }
839
843
  return super.send(requestCopy);
840
844
  });
841
845
  }
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2021 Google Inc.
4
+ * Copyright 2021 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2021 Google Inc.
5
+ * Copyright 2021 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2017 Google Inc.
4
+ * Copyright 2017 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2017 Google Inc.
5
+ * Copyright 2017 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2017 Google Inc.
4
+ * Copyright 2017 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2017 Google Inc.
5
+ * Copyright 2017 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2017 Google Inc.
4
+ * Copyright 2017 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2017 Google Inc.
5
+ * Copyright 2017 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
- * Copyright 2021 Google Inc.
3
+ * Copyright 2021 Google LLC
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
package/lib/utils/jwt.js CHANGED
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
- * Copyright 2021 Google Inc.
4
+ * Copyright 2021 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  /*!
3
3
  * @license
4
- * Copyright 2017 Google Inc.
4
+ * Copyright 2017 Google LLC
5
5
  *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
- /*! firebase-admin v13.5.0 */
1
+ /*! firebase-admin v13.6.1 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
5
- * Copyright 2017 Google Inc.
5
+ * Copyright 2017 Google LLC
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -36,7 +36,6 @@ exports.isUTCDateString = isUTCDateString;
36
36
  exports.isURL = isURL;
37
37
  exports.isTopic = isTopic;
38
38
  exports.isTaskId = isTaskId;
39
- const url = require("url");
40
39
  /**
41
40
  * Validates that a value is a byte buffer.
42
41
  *
@@ -227,34 +226,39 @@ function isURL(urlStr) {
227
226
  return false;
228
227
  }
229
228
  try {
230
- const uri = url.parse(urlStr);
229
+ const uri = new URL(urlStr);
231
230
  const scheme = uri.protocol;
232
- const slashes = uri.slashes;
233
- const hostname = uri.hostname;
234
- const pathname = uri.pathname;
235
- if ((scheme !== 'http:' && scheme !== 'https:') || !slashes) {
231
+ if (scheme !== 'http:' && scheme !== 'https:') {
236
232
  return false;
237
233
  }
238
- // Validate hostname: Can contain letters, numbers, underscore and dashes separated by a dot.
239
- // Each zone must not start with a hyphen or underscore.
240
- if (!hostname || !/^[a-zA-Z0-9]+[\w-]*([.]?[a-zA-Z0-9]+[\w-]*)*$/.test(hostname)) {
241
- return false;
234
+ const hostname = uri.hostname;
235
+ // Validate hostname strictly to match previous behavior and prevent weak/invalid domains.
236
+ // Must be alphanumeric with optional dashes/underscores, separated by dots.
237
+ // Cannot start/end with dot or dash (mostly).
238
+ // This regex is safe (no nested quantifiers with overlap).
239
+ if (!/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/.test(hostname)) {
240
+ // Check for IPv6 literals which are valid but behave differently.
241
+ // Node 'new URL' keeps brackets for IPv6: [::1] -> [::1]
242
+ // Check for IPv6 address (simple check for brackets)
243
+ if (!/^\[[a-fA-F0-9:.]+\]$/.test(hostname)) {
244
+ return false;
245
+ }
242
246
  }
243
- // Allow for pathnames: (/chars+)*/?
247
+ // Restore strict pathname validation: (/chars+)*/?
244
248
  // Where chars can be a combination of: a-z A-Z 0-9 - _ . ~ ! $ & ' ( ) * + , ; = : @ %
245
249
  const pathnameRe = /^(\/[\w\-.~!$'()*+,;=:@%]+)*\/?$/;
246
250
  // Validate pathname.
251
+ const pathname = uri.pathname;
247
252
  if (pathname &&
248
253
  pathname !== '/' &&
249
254
  !pathnameRe.test(pathname)) {
250
255
  return false;
251
256
  }
252
- // Allow any query string and hash as long as no invalid character is used.
257
+ return true;
253
258
  }
254
259
  catch (e) {
255
260
  return false;
256
261
  }
257
- return true;
258
262
  }
259
263
  /**
260
264
  * Validates that the provided topic is a valid FCM topic name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-admin",
3
- "version": "13.5.0",
3
+ "version": "13.6.1",
4
4
  "description": "Firebase admin SDK for Node.js",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "license": "Apache-2.0",
@@ -19,7 +19,9 @@
19
19
  "test:integration": "mocha test/integration/*.ts --slow 5000 --timeout 20000 --require ts-node/register",
20
20
  "test:coverage": "nyc npm run test:unit",
21
21
  "lint:src": "eslint src/ --ext .ts",
22
+ "lint:src:fix": "eslint src/ --ext .ts --fix",
22
23
  "lint:test": "eslint test/ --ext .ts",
24
+ "lint:test:fix": "eslint test/ --ext .ts --fix",
23
25
  "apidocs": "run-s api-extractor:local api-documenter",
24
26
  "api-extractor": "node generate-reports.js",
25
27
  "api-extractor:local": "npm run build && node generate-reports.js --local",
@@ -221,12 +223,12 @@
221
223
  "@google-cloud/storage": "^7.14.0"
222
224
  },
223
225
  "devDependencies": {
224
- "@firebase/api-documenter": "^0.4.0",
226
+ "@firebase/api-documenter": "^0.5.0",
225
227
  "@firebase/app-compat": "^0.2.1",
226
228
  "@firebase/auth-compat": "^0.6.0",
227
229
  "@firebase/auth-types": "^0.13.0",
228
230
  "@microsoft/api-extractor": "^7.11.2",
229
- "@types/bcrypt": "^5.0.0",
231
+ "@types/bcrypt": "^6.0.0",
230
232
  "@types/chai": "^4.0.0",
231
233
  "@types/chai-as-promised": "^7.1.0",
232
234
  "@types/firebase-token-generator": "^2.0.28",
@@ -242,7 +244,7 @@
242
244
  "@types/uuid": "^10.0.0",
243
245
  "@typescript-eslint/eslint-plugin": "^7.16.1",
244
246
  "@typescript-eslint/parser": "^7.16.1",
245
- "bcrypt": "^5.0.0",
247
+ "bcrypt": "^6.0.0",
246
248
  "chai": "^4.2.0",
247
249
  "chai-as-promised": "^7.0.0",
248
250
  "chai-exclude": "^2.1.0",