firebase-admin 11.2.0 → 11.2.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 +1 -1
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -1
- package/lib/app/credential-factory.js +1 -1
- package/lib/app/credential-internal.d.ts +1 -1
- package/lib/app/credential-internal.js +1 -1
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +1 -1
- package/lib/app/firebase-namespace.d.ts +1 -1
- package/lib/app/firebase-namespace.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +1 -1
- package/lib/app/lifecycle.js +1 -1
- package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
- package/lib/app-check/app-check-api-client-internal.js +1 -1
- package/lib/app-check/app-check-api.d.ts +1 -1
- package/lib/app-check/app-check-api.js +1 -1
- package/lib/app-check/app-check-namespace.d.ts +1 -1
- package/lib/app-check/app-check-namespace.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +1 -1
- package/lib/app-check/index.d.ts +1 -1
- package/lib/app-check/index.js +1 -1
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +1 -1
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +1 -1
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +1 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +1 -1
- package/lib/auth/auth-config.d.ts +1 -1
- package/lib/auth/auth-config.js +1 -1
- package/lib/auth/auth-namespace.d.ts +1 -1
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +1 -1
- package/lib/auth/base-auth.js +1 -1
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +1 -1
- package/lib/auth/index.js +1 -1
- 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 +1 -1
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +1 -1
- package/lib/auth/tenant.js +1 -1
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +1 -1
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +1 -1
- package/lib/auth/user-import-builder.d.ts +1 -1
- package/lib/auth/user-import-builder.js +1 -1
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +1 -1
- package/lib/credential/index.d.ts +1 -1
- package/lib/credential/index.js +1 -1
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +1 -1
- package/lib/default-namespace.d.ts +1 -1
- package/lib/default-namespace.js +1 -1
- package/lib/eventarc/cloudevent.d.ts +1 -1
- package/lib/eventarc/cloudevent.js +1 -1
- package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
- package/lib/eventarc/eventarc-client-internal.js +1 -1
- package/lib/eventarc/eventarc-utils.d.ts +1 -1
- package/lib/eventarc/eventarc-utils.js +1 -1
- package/lib/eventarc/eventarc.d.ts +1 -1
- package/lib/eventarc/eventarc.js +1 -1
- package/lib/eventarc/index.d.ts +1 -1
- package/lib/eventarc/index.js +1 -1
- package/lib/firebase-namespace-api.d.ts +1 -1
- package/lib/firebase-namespace-api.js +1 -1
- package/lib/firestore/firestore-internal.d.ts +4 -4
- package/lib/firestore/firestore-internal.js +12 -6
- package/lib/firestore/firestore-namespace.d.ts +1 -1
- package/lib/firestore/firestore-namespace.js +1 -1
- package/lib/firestore/index.d.ts +17 -4
- package/lib/firestore/index.js +6 -33
- package/lib/functions/functions-api-client-internal.d.ts +1 -1
- package/lib/functions/functions-api-client-internal.js +1 -1
- package/lib/functions/functions-api.d.ts +1 -1
- package/lib/functions/functions-api.js +1 -1
- package/lib/functions/functions.d.ts +1 -1
- package/lib/functions/functions.js +1 -1
- package/lib/functions/index.d.ts +1 -1
- package/lib/functions/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +1 -1
- package/lib/installations/index.js +1 -1
- package/lib/installations/installations-namespace.d.ts +1 -1
- package/lib/installations/installations-namespace.js +1 -1
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +1 -1
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +1 -1
- package/lib/instance-id/index.d.ts +1 -1
- package/lib/instance-id/index.js +1 -1
- 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 +1 -1
- package/lib/instance-id/instance-id.js +1 -1
- package/lib/machine-learning/index.d.ts +1 -1
- package/lib/machine-learning/index.js +1 -1
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +1 -1
- package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +1 -1
- package/lib/messaging/batch-request-internal.d.ts +1 -1
- package/lib/messaging/batch-request-internal.js +1 -1
- package/lib/messaging/index.d.ts +1 -1
- package/lib/messaging/index.js +1 -1
- package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
- package/lib/messaging/messaging-api-request-internal.js +2 -2
- package/lib/messaging/messaging-api.d.ts +1 -1
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +1 -1
- package/lib/messaging/messaging-errors-internal.js +1 -1
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +1 -1
- package/lib/messaging/messaging-namespace.d.ts +1 -1
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +1 -1
- package/lib/messaging/messaging.js +1 -1
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +1 -1
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +1 -1
- package/lib/project-management/index.js +1 -1
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +1 -1
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +1 -1
- package/lib/project-management/project-management-namespace.d.ts +1 -1
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +1 -1
- package/lib/remote-config/index.d.ts +1 -1
- package/lib/remote-config/index.js +1 -1
- package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +1 -1
- package/lib/remote-config/remote-config-api.d.ts +1 -1
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +1 -1
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +1 -1
- package/lib/security-rules/index.d.ts +1 -1
- package/lib/security-rules/index.js +1 -1
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +1 -1
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +1 -1
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +1 -1
- package/lib/storage/storage-namespace.d.ts +1 -1
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +1 -1
- package/lib/utils/api-request.d.ts +1 -1
- package/lib/utils/api-request.js +1 -1
- package/lib/utils/crypto-signer.d.ts +1 -1
- package/lib/utils/crypto-signer.js +1 -1
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/error.js +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/jwt.d.ts +1 -1
- package/lib/utils/jwt.js +1 -1
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.2.
|
|
1
|
+
/*! firebase-admin v11.2.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google Inc.
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
import { Firestore, Settings } from '@google-cloud/firestore';
|
|
19
19
|
import { App } from '../app';
|
|
20
20
|
export declare class FirestoreService {
|
|
21
|
-
private appInternal;
|
|
22
|
-
private
|
|
21
|
+
private readonly appInternal;
|
|
22
|
+
private readonly databases;
|
|
23
23
|
constructor(app: App);
|
|
24
|
+
getDatabase(databaseId: string): Firestore;
|
|
24
25
|
/**
|
|
25
26
|
* Returns the app associated with this Storage instance.
|
|
26
27
|
*
|
|
27
28
|
* @returns The app associated with this Storage instance.
|
|
28
29
|
*/
|
|
29
30
|
get app(): App;
|
|
30
|
-
get client(): Firestore;
|
|
31
31
|
}
|
|
32
32
|
export declare function getFirestoreOptions(app: App): Settings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.2.
|
|
1
|
+
/*! firebase-admin v11.2.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -24,9 +24,17 @@ const validator = require("../utils/validator");
|
|
|
24
24
|
const utils = require("../utils/index");
|
|
25
25
|
class FirestoreService {
|
|
26
26
|
constructor(app) {
|
|
27
|
-
this.
|
|
27
|
+
this.databases = new Map();
|
|
28
28
|
this.appInternal = app;
|
|
29
29
|
}
|
|
30
|
+
getDatabase(databaseId) {
|
|
31
|
+
let database = this.databases.get(databaseId);
|
|
32
|
+
if (database === undefined) {
|
|
33
|
+
database = initFirestore(this.app, databaseId);
|
|
34
|
+
this.databases.set(databaseId, database);
|
|
35
|
+
}
|
|
36
|
+
return database;
|
|
37
|
+
}
|
|
30
38
|
/**
|
|
31
39
|
* Returns the app associated with this Storage instance.
|
|
32
40
|
*
|
|
@@ -35,9 +43,6 @@ class FirestoreService {
|
|
|
35
43
|
get app() {
|
|
36
44
|
return this.appInternal;
|
|
37
45
|
}
|
|
38
|
-
get client() {
|
|
39
|
-
return this.firestoreClient;
|
|
40
|
-
}
|
|
41
46
|
}
|
|
42
47
|
exports.FirestoreService = FirestoreService;
|
|
43
48
|
function getFirestoreOptions(app) {
|
|
@@ -77,8 +82,9 @@ function getFirestoreOptions(app) {
|
|
|
77
82
|
});
|
|
78
83
|
}
|
|
79
84
|
exports.getFirestoreOptions = getFirestoreOptions;
|
|
80
|
-
function initFirestore(app) {
|
|
85
|
+
function initFirestore(app, databaseId) {
|
|
81
86
|
const options = getFirestoreOptions(app);
|
|
87
|
+
options.databaseId = databaseId;
|
|
82
88
|
let firestoreDatabase;
|
|
83
89
|
try {
|
|
84
90
|
// Lazy-load the Firestore implementation here, which in turns loads gRPC.
|
package/lib/firestore/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.2.
|
|
1
|
+
/*! firebase-admin v11.2.1 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google Inc.
|
|
4
4
|
*
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { Firestore } from '@google-cloud/firestore';
|
|
23
23
|
import { App } from '../app';
|
|
24
|
-
export { AddPrefixToKeys, BulkWriter, BulkWriterOptions, BundleBuilder, ChildUpdateFields, CollectionGroup, CollectionReference, DocumentChange, DocumentChangeType, DocumentData, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreDataConverter, GeoPoint, GrpcStatus, NestedUpdateFields, OrderByDirection, PartialWithFieldValue, Precondition, Primitive, Query, QueryDocumentSnapshot, QueryPartition, QuerySnapshot, ReadOptions, ReadOnlyTransactionOptions, Settings, SetOptions, Timestamp, Transaction, UpdateData, UnionToIntersection, WhereFilterOp, WithFieldValue, WriteBatch, WriteResult, v1, setLogFunction, } from '@google-cloud/firestore';
|
|
24
|
+
export { AddPrefixToKeys, BulkWriter, BulkWriterOptions, BundleBuilder, ChildUpdateFields, CollectionGroup, CollectionReference, DocumentChange, DocumentChangeType, DocumentData, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreDataConverter, GeoPoint, GrpcStatus, NestedUpdateFields, OrderByDirection, PartialWithFieldValue, Precondition, Primitive, Query, QueryDocumentSnapshot, QueryPartition, QuerySnapshot, ReadOptions, ReadOnlyTransactionOptions, ReadWriteTransactionOptions, Settings, SetOptions, Timestamp, Transaction, UpdateData, UnionToIntersection, WhereFilterOp, WithFieldValue, WriteBatch, WriteResult, v1, setLogFunction, } from '@google-cloud/firestore';
|
|
25
25
|
/**
|
|
26
26
|
* Gets the {@link https://googleapis.dev/nodejs/firestore/latest/Firestore.html | Firestore}
|
|
27
|
-
* service for the default app
|
|
27
|
+
* service for the default app.
|
|
28
28
|
*
|
|
29
29
|
* `getFirestore()` can be called with no arguments to access the default
|
|
30
30
|
* app's `Firestore` service or as `getFirestore(app)` to access the
|
|
@@ -35,6 +35,19 @@ export { AddPrefixToKeys, BulkWriter, BulkWriterOptions, BundleBuilder, ChildUpd
|
|
|
35
35
|
* // Get the Firestore service for the default app
|
|
36
36
|
* const defaultFirestore = getFirestore();
|
|
37
37
|
* ```
|
|
38
|
+
|
|
39
|
+
* @returns The default {@link https://googleapis.dev/nodejs/firestore/latest/Firestore.html | Firestore}
|
|
40
|
+
* service if no app is provided or the `Firestore` service associated with the
|
|
41
|
+
* provided app.
|
|
42
|
+
*/
|
|
43
|
+
export declare function getFirestore(): Firestore;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the {@link https://googleapis.dev/nodejs/firestore/latest/Firestore.html | Firestore}
|
|
46
|
+
* service for the given app.
|
|
47
|
+
*
|
|
48
|
+
* `getFirestore()` can be called with no arguments to access the default
|
|
49
|
+
* app's `Firestore` service or as `getFirestore(app)` to access the
|
|
50
|
+
* `Firestore` service associated with a specific app.
|
|
38
51
|
*
|
|
39
52
|
* @example
|
|
40
53
|
* ```javascript
|
|
@@ -49,4 +62,4 @@ export { AddPrefixToKeys, BulkWriter, BulkWriterOptions, BundleBuilder, ChildUpd
|
|
|
49
62
|
* service if no app is provided or the `Firestore` service associated with the
|
|
50
63
|
* provided app.
|
|
51
64
|
*/
|
|
52
|
-
export declare function getFirestore(app
|
|
65
|
+
export declare function getFirestore(app: App): Firestore;
|
package/lib/firestore/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.2.
|
|
1
|
+
/*! firebase-admin v11.2.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2020 Google Inc.
|
|
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
exports.getFirestore = exports.setLogFunction = exports.v1 = exports.WriteResult = exports.WriteBatch = exports.Transaction = exports.Timestamp = exports.QuerySnapshot = exports.QueryPartition = exports.QueryDocumentSnapshot = exports.Query = exports.GrpcStatus = exports.GeoPoint = exports.Firestore = exports.FieldValue = exports.FieldPath = exports.DocumentSnapshot = exports.DocumentReference = exports.CollectionReference = exports.CollectionGroup = exports.BundleBuilder = exports.BulkWriter = void 0;
|
|
20
20
|
const app_1 = require("../app");
|
|
21
21
|
const firestore_internal_1 = require("./firestore-internal");
|
|
22
|
+
const path_1 = require("@google-cloud/firestore/build/src/path");
|
|
22
23
|
var firestore_1 = require("@google-cloud/firestore");
|
|
23
24
|
Object.defineProperty(exports, "BulkWriter", { enumerable: true, get: function () { return firestore_1.BulkWriter; } });
|
|
24
25
|
Object.defineProperty(exports, "BundleBuilder", { enumerable: true, get: function () { return firestore_1.BundleBuilder; } });
|
|
@@ -41,39 +42,11 @@ Object.defineProperty(exports, "WriteBatch", { enumerable: true, get: function (
|
|
|
41
42
|
Object.defineProperty(exports, "WriteResult", { enumerable: true, get: function () { return firestore_1.WriteResult; } });
|
|
42
43
|
Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return firestore_1.v1; } });
|
|
43
44
|
Object.defineProperty(exports, "setLogFunction", { enumerable: true, get: function () { return firestore_1.setLogFunction; } });
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* `getFirestore()` can be called with no arguments to access the default
|
|
49
|
-
* app's `Firestore` service or as `getFirestore(app)` to access the
|
|
50
|
-
* `Firestore` service associated with a specific app.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```javascript
|
|
54
|
-
* // Get the Firestore service for the default app
|
|
55
|
-
* const defaultFirestore = getFirestore();
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```javascript
|
|
60
|
-
* // Get the Firestore service for a specific app
|
|
61
|
-
* const otherFirestore = getFirestore(app);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @param App - whose `Firestore` service to
|
|
65
|
-
* return. If not provided, the default `Firestore` service will be returned.
|
|
66
|
-
*
|
|
67
|
-
* @returns The default {@link https://googleapis.dev/nodejs/firestore/latest/Firestore.html | Firestore}
|
|
68
|
-
* service if no app is provided or the `Firestore` service associated with the
|
|
69
|
-
* provided app.
|
|
70
|
-
*/
|
|
71
|
-
function getFirestore(app) {
|
|
72
|
-
if (typeof app === 'undefined') {
|
|
73
|
-
app = (0, app_1.getApp)();
|
|
74
|
-
}
|
|
45
|
+
function getFirestore(appOrDatabaseId, optionalDatabaseId) {
|
|
46
|
+
const app = typeof appOrDatabaseId === 'object' ? appOrDatabaseId : (0, app_1.getApp)();
|
|
47
|
+
const databaseId = (typeof appOrDatabaseId === 'string' ? appOrDatabaseId : optionalDatabaseId) || path_1.DEFAULT_DATABASE_ID;
|
|
75
48
|
const firebaseApp = app;
|
|
76
49
|
const firestoreService = firebaseApp.getOrInitService('firestore', (app) => new firestore_internal_1.FirestoreService(app));
|
|
77
|
-
return firestoreService.
|
|
50
|
+
return firestoreService.getDatabase(databaseId);
|
|
78
51
|
}
|
|
79
52
|
exports.getFirestore = getFirestore;
|
package/lib/functions/index.d.ts
CHANGED
package/lib/functions/index.js
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/instance-id/index.js
CHANGED
package/lib/messaging/index.d.ts
CHANGED
package/lib/messaging/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.2.
|
|
1
|
+
/*! firebase-admin v11.2.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -23,7 +23,7 @@ const messaging_errors_internal_1 = require("./messaging-errors-internal");
|
|
|
23
23
|
const batch_request_internal_1 = require("./batch-request-internal");
|
|
24
24
|
const index_1 = require("../utils/index");
|
|
25
25
|
// FCM backend constants
|
|
26
|
-
const FIREBASE_MESSAGING_TIMEOUT =
|
|
26
|
+
const FIREBASE_MESSAGING_TIMEOUT = 15000;
|
|
27
27
|
const FIREBASE_MESSAGING_BATCH_URL = 'https://fcm.googleapis.com/batch';
|
|
28
28
|
const FIREBASE_MESSAGING_HTTP_METHOD = 'POST';
|
|
29
29
|
const FIREBASE_MESSAGING_HEADERS = {
|