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.
- package/lib/app/core.d.ts +2 -2
- package/lib/app/core.js +2 -2
- package/lib/app/credential-factory.d.ts +2 -2
- package/lib/app/credential-factory.js +2 -2
- package/lib/app/credential-internal.d.ts +2 -2
- package/lib/app/credential-internal.js +2 -2
- package/lib/app/credential.d.ts +2 -2
- package/lib/app/credential.js +2 -2
- package/lib/app/firebase-app.d.ts +2 -2
- package/lib/app/firebase-app.js +2 -2
- package/lib/app/firebase-namespace.d.ts +2 -2
- package/lib/app/firebase-namespace.js +2 -2
- package/lib/app/index.d.ts +2 -2
- package/lib/app/index.js +2 -2
- package/lib/app/lifecycle.d.ts +2 -2
- package/lib/app/lifecycle.js +2 -2
- package/lib/app-check/app-check-api-client-internal.d.ts +2 -2
- package/lib/app-check/app-check-api-client-internal.js +2 -2
- package/lib/app-check/app-check-api.d.ts +2 -2
- package/lib/app-check/app-check-api.js +2 -2
- package/lib/app-check/app-check-namespace.d.ts +2 -2
- package/lib/app-check/app-check-namespace.js +2 -2
- package/lib/app-check/app-check.d.ts +2 -2
- package/lib/app-check/app-check.js +2 -2
- package/lib/app-check/index.d.ts +2 -2
- package/lib/app-check/index.js +2 -2
- package/lib/app-check/token-generator.d.ts +2 -2
- package/lib/app-check/token-generator.js +2 -2
- package/lib/app-check/token-verifier.d.ts +2 -2
- package/lib/app-check/token-verifier.js +2 -2
- package/lib/auth/action-code-settings-builder.d.ts +2 -2
- package/lib/auth/action-code-settings-builder.js +2 -2
- package/lib/auth/auth-api-request.d.ts +2 -2
- package/lib/auth/auth-api-request.js +2 -2
- package/lib/auth/auth-config.d.ts +2 -2
- package/lib/auth/auth-config.js +2 -2
- package/lib/auth/auth-namespace.d.ts +2 -2
- package/lib/auth/auth-namespace.js +2 -2
- package/lib/auth/auth.d.ts +2 -2
- package/lib/auth/auth.js +2 -2
- package/lib/auth/base-auth.d.ts +2 -2
- package/lib/auth/base-auth.js +2 -2
- package/lib/auth/identifier.d.ts +2 -2
- package/lib/auth/identifier.js +2 -2
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +2 -2
- package/lib/auth/project-config-manager.d.ts +1 -1
- package/lib/auth/project-config-manager.js +1 -1
- package/lib/auth/project-config.d.ts +1 -1
- package/lib/auth/project-config.js +2 -2
- package/lib/auth/tenant-manager.d.ts +2 -2
- package/lib/auth/tenant-manager.js +2 -2
- package/lib/auth/tenant.d.ts +2 -2
- package/lib/auth/tenant.js +2 -2
- package/lib/auth/token-generator.d.ts +2 -2
- package/lib/auth/token-generator.js +2 -2
- package/lib/auth/token-verifier.d.ts +2 -2
- package/lib/auth/token-verifier.js +2 -2
- package/lib/auth/user-import-builder.d.ts +2 -2
- package/lib/auth/user-import-builder.js +2 -2
- package/lib/auth/user-record.d.ts +2 -2
- package/lib/auth/user-record.js +2 -2
- package/lib/credential/index.d.ts +2 -2
- package/lib/credential/index.js +2 -2
- package/lib/data-connect/data-connect-api-client-internal.d.ts +2 -2
- package/lib/data-connect/data-connect-api-client-internal.js +182 -56
- package/lib/data-connect/data-connect-api.d.ts +30 -5
- package/lib/data-connect/data-connect-api.js +2 -2
- package/lib/data-connect/data-connect.d.ts +56 -10
- package/lib/data-connect/data-connect.js +22 -9
- package/lib/data-connect/index.d.ts +3 -18
- package/lib/data-connect/index.js +16 -10
- package/lib/data-connect/validate-admin-args.d.ts +18 -0
- package/lib/data-connect/validate-admin-args.js +79 -0
- package/lib/database/database-namespace.d.ts +2 -2
- package/lib/database/database-namespace.js +2 -2
- package/lib/database/database.d.ts +2 -2
- package/lib/database/database.js +2 -2
- package/lib/database/index.d.ts +2 -2
- package/lib/database/index.js +2 -2
- package/lib/default-namespace.d.ts +2 -2
- package/lib/default-namespace.js +2 -2
- package/lib/esm/data-connect/index.js +1 -0
- package/lib/eventarc/cloudevent.d.ts +2 -2
- package/lib/eventarc/cloudevent.js +2 -2
- package/lib/eventarc/eventarc-client-internal.d.ts +2 -2
- package/lib/eventarc/eventarc-client-internal.js +2 -2
- package/lib/eventarc/eventarc-utils.d.ts +2 -2
- package/lib/eventarc/eventarc-utils.js +2 -2
- package/lib/eventarc/eventarc.d.ts +2 -2
- package/lib/eventarc/eventarc.js +2 -2
- package/lib/eventarc/index.d.ts +2 -2
- package/lib/eventarc/index.js +2 -2
- package/lib/extensions/extensions-api-client-internal.d.ts +2 -2
- package/lib/extensions/extensions-api-client-internal.js +2 -2
- package/lib/extensions/extensions-api.d.ts +2 -2
- package/lib/extensions/extensions-api.js +2 -2
- package/lib/extensions/extensions.d.ts +2 -2
- package/lib/extensions/extensions.js +2 -2
- package/lib/extensions/index.d.ts +2 -2
- package/lib/extensions/index.js +2 -2
- package/lib/firebase-namespace-api.d.ts +2 -2
- package/lib/firebase-namespace-api.js +2 -2
- package/lib/firestore/firestore-internal.d.ts +2 -2
- package/lib/firestore/firestore-internal.js +2 -2
- package/lib/firestore/firestore-namespace.d.ts +2 -2
- package/lib/firestore/firestore-namespace.js +2 -2
- package/lib/firestore/index.d.ts +2 -2
- package/lib/firestore/index.js +2 -2
- package/lib/functions/functions-api-client-internal.d.ts +2 -2
- package/lib/functions/functions-api-client-internal.js +2 -2
- package/lib/functions/functions-api.d.ts +2 -2
- package/lib/functions/functions-api.js +2 -2
- package/lib/functions/functions.d.ts +2 -2
- package/lib/functions/functions.js +2 -2
- package/lib/functions/index.d.ts +2 -2
- package/lib/functions/index.js +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/installations/index.d.ts +2 -2
- package/lib/installations/index.js +2 -2
- package/lib/installations/installations-namespace.d.ts +2 -2
- package/lib/installations/installations-namespace.js +2 -2
- package/lib/installations/installations-request-handler.d.ts +2 -2
- package/lib/installations/installations-request-handler.js +2 -2
- package/lib/installations/installations.d.ts +2 -2
- package/lib/installations/installations.js +2 -2
- package/lib/instance-id/index.d.ts +2 -2
- package/lib/instance-id/index.js +2 -2
- package/lib/instance-id/instance-id-namespace.d.ts +1 -1
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +2 -2
- package/lib/instance-id/instance-id.js +2 -2
- package/lib/machine-learning/index.d.ts +2 -2
- package/lib/machine-learning/index.js +2 -2
- package/lib/machine-learning/machine-learning-api-client.d.ts +2 -2
- package/lib/machine-learning/machine-learning-api-client.js +2 -2
- package/lib/machine-learning/machine-learning-namespace.d.ts +2 -2
- package/lib/machine-learning/machine-learning-namespace.js +2 -2
- package/lib/machine-learning/machine-learning-utils.d.ts +2 -2
- package/lib/machine-learning/machine-learning-utils.js +2 -2
- package/lib/machine-learning/machine-learning.d.ts +2 -2
- package/lib/machine-learning/machine-learning.js +2 -2
- package/lib/messaging/index.d.ts +2 -2
- package/lib/messaging/index.js +2 -2
- package/lib/messaging/messaging-api-request-internal.d.ts +2 -2
- package/lib/messaging/messaging-api-request-internal.js +2 -2
- package/lib/messaging/messaging-api.d.ts +2 -2
- package/lib/messaging/messaging-api.js +2 -2
- package/lib/messaging/messaging-errors-internal.d.ts +2 -2
- package/lib/messaging/messaging-errors-internal.js +2 -2
- package/lib/messaging/messaging-internal.d.ts +2 -2
- package/lib/messaging/messaging-internal.js +2 -2
- package/lib/messaging/messaging-namespace.d.ts +2 -2
- package/lib/messaging/messaging-namespace.js +2 -2
- package/lib/messaging/messaging.d.ts +2 -2
- package/lib/messaging/messaging.js +2 -2
- package/lib/project-management/android-app.d.ts +2 -2
- package/lib/project-management/android-app.js +2 -2
- package/lib/project-management/app-metadata.d.ts +2 -2
- package/lib/project-management/app-metadata.js +2 -2
- package/lib/project-management/index.d.ts +2 -2
- package/lib/project-management/index.js +2 -2
- package/lib/project-management/ios-app.d.ts +2 -2
- package/lib/project-management/ios-app.js +2 -2
- package/lib/project-management/project-management-api-request-internal.d.ts +2 -2
- package/lib/project-management/project-management-api-request-internal.js +2 -2
- package/lib/project-management/project-management-namespace.d.ts +2 -2
- package/lib/project-management/project-management-namespace.js +2 -2
- package/lib/project-management/project-management.d.ts +2 -2
- package/lib/project-management/project-management.js +2 -2
- package/lib/remote-config/condition-evaluator-internal.d.ts +2 -2
- package/lib/remote-config/condition-evaluator-internal.js +2 -2
- package/lib/remote-config/index.d.ts +2 -2
- package/lib/remote-config/index.js +2 -2
- package/lib/remote-config/internal/value-impl.d.ts +2 -2
- package/lib/remote-config/internal/value-impl.js +2 -2
- package/lib/remote-config/remote-config-api-client-internal.d.ts +2 -2
- package/lib/remote-config/remote-config-api-client-internal.js +2 -2
- package/lib/remote-config/remote-config-api.d.ts +2 -2
- package/lib/remote-config/remote-config-api.js +2 -2
- package/lib/remote-config/remote-config-namespace.d.ts +2 -2
- package/lib/remote-config/remote-config-namespace.js +2 -2
- package/lib/remote-config/remote-config.d.ts +2 -2
- package/lib/remote-config/remote-config.js +2 -2
- package/lib/security-rules/index.d.ts +2 -2
- package/lib/security-rules/index.js +2 -2
- package/lib/security-rules/security-rules-api-client-internal.d.ts +2 -2
- package/lib/security-rules/security-rules-api-client-internal.js +2 -2
- package/lib/security-rules/security-rules-internal.d.ts +2 -2
- package/lib/security-rules/security-rules-internal.js +2 -2
- package/lib/security-rules/security-rules-namespace.d.ts +2 -2
- package/lib/security-rules/security-rules-namespace.js +2 -2
- package/lib/security-rules/security-rules.d.ts +2 -2
- package/lib/security-rules/security-rules.js +2 -2
- package/lib/storage/index.d.ts +2 -2
- package/lib/storage/index.js +2 -2
- package/lib/storage/storage-namespace.d.ts +2 -2
- package/lib/storage/storage-namespace.js +2 -2
- package/lib/storage/storage.d.ts +2 -2
- package/lib/storage/storage.js +2 -2
- package/lib/storage/utils.d.ts +1 -1
- package/lib/storage/utils.js +1 -1
- package/lib/utils/api-request.d.ts +2 -2
- package/lib/utils/api-request.js +8 -4
- package/lib/utils/crypto-signer.d.ts +2 -2
- package/lib/utils/crypto-signer.js +2 -2
- package/lib/utils/deep-copy.d.ts +2 -2
- package/lib/utils/deep-copy.js +2 -2
- package/lib/utils/error.d.ts +2 -2
- package/lib/utils/error.js +2 -2
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +2 -2
- package/lib/utils/jwt.d.ts +2 -2
- package/lib/utils/jwt.js +2 -2
- package/lib/utils/validator.d.ts +2 -2
- package/lib/utils/validator.js +19 -15
- package/package.json +6 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2019 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2019 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2019 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2019 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2019 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2019 Google
|
|
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.
|
package/lib/storage/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
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.
|
package/lib/storage/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
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.
|
package/lib/storage/storage.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/storage/storage.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/storage/utils.d.ts
CHANGED
package/lib/storage/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/api-request.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
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']
|
|
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']
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2021 Google
|
|
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.
|
package/lib/utils/deep-copy.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/deep-copy.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/error.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/error.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/jwt.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
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.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
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.
|
package/lib/utils/validator.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
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.
|
package/lib/utils/validator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
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 =
|
|
229
|
+
const uri = new URL(urlStr);
|
|
231
230
|
const scheme = uri.protocol;
|
|
232
|
-
|
|
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
|
-
|
|
239
|
-
//
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
//
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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": "^
|
|
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": "^
|
|
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",
|