@angular/fire 17.1.0 → 18.0.0-canary.c866d08
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/README.md +10 -0
- package/compat/proxy.d.ts +2 -2
- package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -2
- package/docs/analytics.md +14 -20
- package/docs/app-check.md +12 -9
- package/docs/auth.md +44 -9
- package/docs/database.md +12 -12
- package/docs/firestore.md +15 -23
- package/docs/functions.md +11 -9
- package/docs/messaging.md +30 -8
- package/docs/performance.md +11 -9
- package/docs/remote-config.md +11 -9
- package/docs/storage.md +11 -10
- package/docs/vertexai.md +53 -0
- package/esm2022/analytics/analytics.module.mjs +5 -5
- package/esm2022/analytics/is-analytics-supported-factory.mjs +1 -1
- package/esm2022/analytics/screen-tracking.service.mjs +4 -4
- package/esm2022/analytics/user-tracking.service.mjs +4 -4
- package/esm2022/app/app.module.mjs +5 -5
- package/esm2022/app-check/app-check.module.mjs +5 -5
- package/esm2022/auth/auth.module.mjs +5 -5
- package/esm2022/auth-guard/auth-guard.mjs +4 -4
- package/esm2022/auth-guard/auth-guard.module.mjs +5 -5
- package/esm2022/compat/analytics/analytics.mjs +4 -4
- package/esm2022/compat/analytics/analytics.module.mjs +5 -5
- package/esm2022/compat/analytics/screen-tracking.service.mjs +4 -4
- package/esm2022/compat/analytics/user-tracking.service.mjs +4 -4
- package/esm2022/compat/auth/auth.mjs +4 -4
- package/esm2022/compat/auth/auth.module.mjs +5 -5
- package/esm2022/compat/auth-guard/auth-guard.mjs +4 -4
- package/esm2022/compat/auth-guard/auth-guard.module.mjs +5 -5
- package/esm2022/compat/cache.mjs +1 -1
- package/esm2022/compat/database/database.mjs +4 -4
- package/esm2022/compat/database/database.module.mjs +5 -5
- package/esm2022/compat/database/list/changes.mjs +1 -1
- package/esm2022/compat/database/list/create-reference.mjs +1 -1
- package/esm2022/compat/database/list/remove.mjs +1 -1
- package/esm2022/compat/database/list/utils.mjs +1 -1
- package/esm2022/compat/database/observable/fromRef.mjs +1 -1
- package/esm2022/compat/database/utils.mjs +1 -1
- package/esm2022/compat/firebase.app.module.mjs +5 -5
- package/esm2022/compat/firestore/collection/changes.mjs +1 -1
- package/esm2022/compat/firestore/collection/collection.mjs +1 -1
- package/esm2022/compat/firestore/collection-group/collection-group.mjs +1 -1
- package/esm2022/compat/firestore/firestore.mjs +4 -4
- package/esm2022/compat/firestore/firestore.module.mjs +5 -5
- package/esm2022/compat/firestore/observable/fromRef.mjs +1 -1
- package/esm2022/compat/functions/functions.mjs +4 -4
- package/esm2022/compat/functions/functions.module.mjs +5 -5
- package/esm2022/compat/messaging/messaging.mjs +4 -4
- package/esm2022/compat/messaging/messaging.module.mjs +5 -5
- package/esm2022/compat/performance/performance.mjs +4 -4
- package/esm2022/compat/performance/performance.module.mjs +5 -5
- package/esm2022/compat/performance/performance.service.mjs +4 -4
- package/esm2022/compat/proxy.mjs +1 -1
- package/esm2022/compat/remote-config/remote-config.mjs +4 -4
- package/esm2022/compat/remote-config/remote-config.module.mjs +5 -5
- package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +10 -12
- package/esm2022/compat/storage/storage.mjs +4 -4
- package/esm2022/compat/storage/storage.module.mjs +5 -5
- package/esm2022/core.mjs +1 -1
- package/esm2022/database/database.module.mjs +5 -5
- package/esm2022/firestore/firestore.module.mjs +5 -5
- package/esm2022/firestore/lite/lite.module.mjs +5 -5
- package/esm2022/functions/functions.module.mjs +5 -5
- package/esm2022/messaging/is-messaging-supported-factory.mjs +1 -1
- package/esm2022/messaging/messaging.module.mjs +5 -5
- package/esm2022/performance/performance.module.mjs +5 -5
- package/esm2022/remote-config/is-remote-config-supported-factory.mjs +1 -1
- package/esm2022/remote-config/remote-config.module.mjs +5 -5
- package/esm2022/storage/storage.module.mjs +5 -5
- package/esm2022/vertexai-preview/vertexai.module.mjs +5 -5
- package/esm2022/zones.mjs +4 -4
- package/fesm2022/angular-fire-analytics.mjs +410 -297
- package/fesm2022/angular-fire-analytics.mjs.map +7 -1
- package/fesm2022/angular-fire-app-check.mjs +162 -91
- package/fesm2022/angular-fire-app-check.mjs.map +7 -1
- package/fesm2022/angular-fire-app.mjs +181 -108
- package/fesm2022/angular-fire-app.mjs.map +7 -1
- package/fesm2022/angular-fire-auth-guard.mjs +83 -73
- package/fesm2022/angular-fire-auth-guard.mjs.map +7 -1
- package/fesm2022/angular-fire-auth.mjs +421 -142
- package/fesm2022/angular-fire-auth.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-analytics.mjs +261 -270
- package/fesm2022/angular-fire-compat-analytics.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-auth-guard.mjs +83 -72
- package/fesm2022/angular-fire-compat-auth-guard.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-auth.mjs +214 -213
- package/fesm2022/angular-fire-compat-auth.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-database.mjs +375 -378
- package/fesm2022/angular-fire-compat-database.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-firestore.mjs +537 -677
- package/fesm2022/angular-fire-compat-firestore.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-functions.mjs +97 -93
- package/fesm2022/angular-fire-compat-functions.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-messaging.mjs +106 -106
- package/fesm2022/angular-fire-compat-messaging.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-performance.mjs +157 -151
- package/fesm2022/angular-fire-compat-performance.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-remote-config.mjs +215 -231
- package/fesm2022/angular-fire-compat-remote-config.mjs.map +7 -1
- package/fesm2022/angular-fire-compat-storage.mjs +226 -233
- package/fesm2022/angular-fire-compat-storage.mjs.map +7 -1
- package/fesm2022/angular-fire-compat.mjs +140 -153
- package/fesm2022/angular-fire-compat.mjs.map +7 -1
- package/fesm2022/angular-fire-database.mjs +376 -136
- package/fesm2022/angular-fire-database.mjs.map +7 -1
- package/fesm2022/angular-fire-firestore-lite.mjs +388 -139
- package/fesm2022/angular-fire-firestore-lite.mjs.map +7 -1
- package/fesm2022/angular-fire-firestore.mjs +526 -167
- package/fesm2022/angular-fire-firestore.mjs.map +7 -1
- package/fesm2022/angular-fire-functions.mjs +166 -93
- package/fesm2022/angular-fire-functions.mjs.map +7 -1
- package/fesm2022/angular-fire-messaging.mjs +196 -118
- package/fesm2022/angular-fire-messaging.mjs.map +7 -1
- package/fesm2022/angular-fire-performance.mjs +178 -104
- package/fesm2022/angular-fire-performance.mjs.map +7 -1
- package/fesm2022/angular-fire-remote-config.mjs +254 -132
- package/fesm2022/angular-fire-remote-config.mjs.map +7 -1
- package/fesm2022/angular-fire-storage.mjs +225 -105
- package/fesm2022/angular-fire-storage.mjs.map +7 -1
- package/fesm2022/angular-fire-vertexai-preview.mjs +146 -85
- package/fesm2022/angular-fire-vertexai-preview.mjs.map +7 -1
- package/fesm2022/angular-fire.mjs +183 -213
- package/fesm2022/angular-fire.mjs.map +7 -1
- package/package.json +7 -7
- package/schematics/deploy/actions.js +2 -2
- package/schematics/setup/prompts.js +1 -1
|
@@ -1,118 +1,192 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from2, except, desc) => {
|
|
10
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from2))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
// angular-fire-performance.mjs
|
|
20
|
+
var angular_fire_performance_exports = {};
|
|
21
|
+
__export(angular_fire_performance_exports, {
|
|
22
|
+
Performance: () => Performance,
|
|
23
|
+
PerformanceInstances: () => PerformanceInstances,
|
|
24
|
+
PerformanceModule: () => PerformanceModule,
|
|
25
|
+
getPerformance: () => getPerformance,
|
|
26
|
+
initializePerformance: () => initializePerformance,
|
|
27
|
+
performanceInstance$: () => performanceInstance$,
|
|
28
|
+
providePerformance: () => providePerformance,
|
|
29
|
+
trace: () => trace,
|
|
30
|
+
traceUntil: () => traceUntil,
|
|
31
|
+
traceUntilComplete: () => traceUntilComplete,
|
|
32
|
+
traceUntilFirst: () => traceUntilFirst,
|
|
33
|
+
traceWhile: () => traceWhile
|
|
34
|
+
});
|
|
25
35
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
// public_api.mjs
|
|
37
|
+
var public_api_exports = {};
|
|
38
|
+
__export(public_api_exports, {
|
|
39
|
+
Performance: () => Performance,
|
|
40
|
+
PerformanceInstances: () => PerformanceInstances,
|
|
41
|
+
PerformanceModule: () => PerformanceModule,
|
|
42
|
+
getPerformance: () => getPerformance,
|
|
43
|
+
initializePerformance: () => initializePerformance,
|
|
44
|
+
performanceInstance$: () => performanceInstance$,
|
|
45
|
+
providePerformance: () => providePerformance,
|
|
46
|
+
trace: () => trace,
|
|
47
|
+
traceUntil: () => traceUntil,
|
|
48
|
+
traceUntilComplete: () => traceUntilComplete,
|
|
49
|
+
traceUntilFirst: () => traceUntilFirst,
|
|
50
|
+
traceWhile: () => traceWhile
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// performance.mjs
|
|
54
|
+
import { ɵgetAllInstancesOf } from "@angular/fire";
|
|
55
|
+
import { from, timer } from "rxjs";
|
|
56
|
+
import { concatMap, distinct } from "rxjs/operators";
|
|
57
|
+
var Performance = class {
|
|
58
|
+
constructor(performance) {
|
|
59
|
+
return performance;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
var PERFORMANCE_PROVIDER_NAME = "performance";
|
|
63
|
+
var PerformanceInstances = class {
|
|
64
|
+
constructor() {
|
|
65
|
+
return ɵgetAllInstancesOf(PERFORMANCE_PROVIDER_NAME);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var performanceInstance$ = timer(0, 300).pipe(concatMap(() => from(ɵgetAllInstancesOf(PERFORMANCE_PROVIDER_NAME))), distinct());
|
|
69
|
+
|
|
70
|
+
// performance.module.mjs
|
|
71
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
72
|
+
import { InjectionToken, Injector, NgModule, NgZone, Optional, PLATFORM_ID, makeEnvironmentProviders } from "@angular/core";
|
|
73
|
+
import { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from "@angular/fire";
|
|
74
|
+
import { FirebaseApp, FirebaseApps } from "@angular/fire/app";
|
|
75
|
+
import { registerVersion } from "firebase/app";
|
|
76
|
+
import * as i0 from "@angular/core";
|
|
77
|
+
var PROVIDED_PERFORMANCE_INSTANCES = new InjectionToken("angularfire2.performance-instances");
|
|
78
|
+
function defaultPerformanceInstanceFactory(provided, defaultApp, platform) {
|
|
79
|
+
if (!isPlatformBrowser(platform)) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
const defaultPerformance = ɵgetDefaultInstanceOf(PERFORMANCE_PROVIDER_NAME, provided, defaultApp);
|
|
83
|
+
return defaultPerformance && new Performance(defaultPerformance);
|
|
35
84
|
}
|
|
36
85
|
function performanceInstanceFactory(fn) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
86
|
+
return (zone, platform, injector) => {
|
|
87
|
+
if (!isPlatformBrowser(platform)) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
const performance = zone.runOutsideAngular(() => fn(injector));
|
|
91
|
+
return new Performance(performance);
|
|
92
|
+
};
|
|
45
93
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
94
|
+
var PERFORMANCE_INSTANCES_PROVIDER = {
|
|
95
|
+
provide: PerformanceInstances,
|
|
96
|
+
deps: [
|
|
97
|
+
[new Optional(), PROVIDED_PERFORMANCE_INSTANCES]
|
|
98
|
+
]
|
|
51
99
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
100
|
+
var DEFAULT_PERFORMANCE_INSTANCE_PROVIDER = {
|
|
101
|
+
provide: Performance,
|
|
102
|
+
useFactory: defaultPerformanceInstanceFactory,
|
|
103
|
+
deps: [
|
|
104
|
+
[new Optional(), PROVIDED_PERFORMANCE_INSTANCES],
|
|
105
|
+
FirebaseApp,
|
|
106
|
+
PLATFORM_ID
|
|
107
|
+
]
|
|
60
108
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
109
|
+
var PerformanceModule = class _PerformanceModule {
|
|
110
|
+
constructor() {
|
|
111
|
+
registerVersion("angularfire", VERSION.full, "perf");
|
|
112
|
+
}
|
|
113
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.3", ngImport: i0, type: _PerformanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
114
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-rc.3", ngImport: i0, type: _PerformanceModule });
|
|
115
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-rc.3", ngImport: i0, type: _PerformanceModule, providers: [
|
|
116
|
+
DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,
|
|
117
|
+
PERFORMANCE_INSTANCES_PROVIDER
|
|
118
|
+
] });
|
|
119
|
+
};
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.3", ngImport: i0, type: PerformanceModule, decorators: [{
|
|
121
|
+
type: NgModule,
|
|
122
|
+
args: [{
|
|
123
|
+
providers: [
|
|
124
|
+
DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,
|
|
125
|
+
PERFORMANCE_INSTANCES_PROVIDER
|
|
126
|
+
]
|
|
127
|
+
}]
|
|
128
|
+
}], ctorParameters: () => [] });
|
|
81
129
|
function providePerformance(fn, ...deps) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
130
|
+
registerVersion("angularfire", VERSION.full, "perf");
|
|
131
|
+
return makeEnvironmentProviders([
|
|
132
|
+
DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,
|
|
133
|
+
PERFORMANCE_INSTANCES_PROVIDER,
|
|
134
|
+
{
|
|
135
|
+
provide: PROVIDED_PERFORMANCE_INSTANCES,
|
|
136
|
+
useFactory: performanceInstanceFactory(fn),
|
|
137
|
+
multi: true,
|
|
138
|
+
deps: [
|
|
139
|
+
NgZone,
|
|
140
|
+
PLATFORM_ID,
|
|
141
|
+
Injector,
|
|
142
|
+
ɵAngularFireSchedulers,
|
|
143
|
+
FirebaseApps,
|
|
144
|
+
...deps
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
]);
|
|
100
148
|
}
|
|
101
149
|
|
|
102
|
-
//
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
150
|
+
// rxfire.mjs
|
|
151
|
+
import { ɵzoneWrap } from "@angular/fire";
|
|
152
|
+
import { traceUntil as _traceUntil, traceWhile as _traceWhile, traceUntilComplete as _traceUntilComplete, traceUntilFirst as _traceUntilFirst } from "rxfire/performance";
|
|
153
|
+
var traceUntil = ɵzoneWrap(_traceUntil, true);
|
|
154
|
+
var traceWhile = ɵzoneWrap(_traceWhile, true);
|
|
155
|
+
var traceUntilComplete = ɵzoneWrap(_traceUntilComplete, true);
|
|
156
|
+
var traceUntilFirst = ɵzoneWrap(_traceUntilFirst, true);
|
|
107
157
|
|
|
108
|
-
//
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
158
|
+
// firebase.mjs
|
|
159
|
+
var firebase_exports = {};
|
|
160
|
+
__export(firebase_exports, {
|
|
161
|
+
getPerformance: () => getPerformance,
|
|
162
|
+
initializePerformance: () => initializePerformance,
|
|
163
|
+
trace: () => trace
|
|
164
|
+
});
|
|
165
|
+
__reExport(firebase_exports, performance_star);
|
|
166
|
+
import * as performance_star from "firebase/performance";
|
|
167
|
+
import { ɵzoneWrap as ɵzoneWrap2 } from "@angular/fire";
|
|
168
|
+
import { getPerformance as _getPerformance, initializePerformance as _initializePerformance, trace as _trace } from "firebase/performance";
|
|
169
|
+
var getPerformance = ɵzoneWrap2(_getPerformance, true);
|
|
170
|
+
var initializePerformance = ɵzoneWrap2(_initializePerformance, true);
|
|
171
|
+
var trace = ɵzoneWrap2(_trace, true);
|
|
112
172
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
*/
|
|
173
|
+
// public_api.mjs
|
|
174
|
+
__reExport(public_api_exports, firebase_exports);
|
|
116
175
|
|
|
117
|
-
|
|
176
|
+
// angular-fire-performance.mjs
|
|
177
|
+
__reExport(angular_fire_performance_exports, public_api_exports);
|
|
178
|
+
export {
|
|
179
|
+
Performance,
|
|
180
|
+
PerformanceInstances,
|
|
181
|
+
PerformanceModule,
|
|
182
|
+
getPerformance,
|
|
183
|
+
initializePerformance,
|
|
184
|
+
performanceInstance$,
|
|
185
|
+
providePerformance,
|
|
186
|
+
trace,
|
|
187
|
+
traceUntil,
|
|
188
|
+
traceUntilComplete,
|
|
189
|
+
traceUntilFirst,
|
|
190
|
+
traceWhile
|
|
191
|
+
};
|
|
118
192
|
//# sourceMappingURL=angular-fire-performance.mjs.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/performance/angular-fire-performance.ts", "../../../src/performance/public_api.ts", "../../../src/performance/performance.ts", "../../../src/performance/performance.module.ts", "../../../src/performance/rxfire.ts", "../../../src/performance/firebase.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n", "export { Performance, PerformanceInstances, performanceInstance$ } from './performance';\nexport { providePerformance, PerformanceModule } from './performance.module';\nexport * from './rxfire';\nexport * from './firebase';\n", "import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { FirebasePerformance } from 'firebase/performance';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface Performance extends FirebasePerformance {}\n\nexport class Performance {\n constructor(performance: FirebasePerformance) {\n return performance;\n }\n}\n\nexport const PERFORMANCE_PROVIDER_NAME = 'performance';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface PerformanceInstances extends Array<FirebasePerformance> {}\n\nexport class PerformanceInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebasePerformance>(PERFORMANCE_PROVIDER_NAME);\n }\n}\n\nexport const performanceInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebasePerformance>(PERFORMANCE_PROVIDER_NAME))),\n distinct(),\n);\n", "import { isPlatformBrowser } from '@angular/common';\nimport {\n EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n PLATFORM_ID,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { registerVersion } from 'firebase/app';\nimport { FirebasePerformance } from 'firebase/performance';\nimport { PERFORMANCE_PROVIDER_NAME, Performance, PerformanceInstances } from './performance';\n\nexport const PROVIDED_PERFORMANCE_INSTANCES = new InjectionToken<Performance[]>('angularfire2.performance-instances');\n\nexport function defaultPerformanceInstanceFactory(\n provided: FirebasePerformance[]|undefined,\n defaultApp: FirebaseApp,\n // eslint-disable-next-line @typescript-eslint/ban-types\n platform: Object\n) {\n if (!isPlatformBrowser(platform)) { return null; }\n const defaultPerformance = ɵgetDefaultInstanceOf<FirebasePerformance>(PERFORMANCE_PROVIDER_NAME, provided, defaultApp);\n return defaultPerformance && new Performance(defaultPerformance);\n}\n\nexport function performanceInstanceFactory(fn: (injector: Injector) => FirebasePerformance) {\n // eslint-disable-next-line @typescript-eslint/ban-types\n return (zone: NgZone, platform: Object, injector: Injector) => {\n if (!isPlatformBrowser(platform)) { return null; }\n const performance = zone.runOutsideAngular(() => fn(injector));\n return new Performance(performance);\n };\n}\n\nconst PERFORMANCE_INSTANCES_PROVIDER = {\n provide: PerformanceInstances,\n deps: [\n [new Optional(), PROVIDED_PERFORMANCE_INSTANCES ],\n ]\n};\n\nconst DEFAULT_PERFORMANCE_INSTANCE_PROVIDER = {\n provide: Performance,\n useFactory: defaultPerformanceInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_PERFORMANCE_INSTANCES ],\n FirebaseApp,\n PLATFORM_ID,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,\n PERFORMANCE_INSTANCES_PROVIDER,\n ]\n})\nexport class PerformanceModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'perf');\n }\n}\n\nexport function providePerformance(\n fn: (injector: Injector) => FirebasePerformance, ...deps: any[]\n): EnvironmentProviders {\n registerVersion('angularfire', VERSION.full, 'perf');\n\n return makeEnvironmentProviders([\n DEFAULT_PERFORMANCE_INSTANCE_PROVIDER,\n PERFORMANCE_INSTANCES_PROVIDER,\n {\n provide: PROVIDED_PERFORMANCE_INSTANCES,\n useFactory: performanceInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n PLATFORM_ID,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n ...deps,\n ]\n }\n ]);\n}\n", "// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n traceUntil as _traceUntil,\n traceWhile as _traceWhile,\n traceUntilComplete as _traceUntilComplete,\n traceUntilFirst as _traceUntilFirst\n} from 'rxfire/performance';\n\nexport const traceUntil = ɵzoneWrap(_traceUntil, true);\nexport const traceWhile = ɵzoneWrap(_traceWhile, true);\nexport const traceUntilComplete = ɵzoneWrap(_traceUntilComplete, true);\nexport const traceUntilFirst = ɵzoneWrap(_traceUntilFirst, true);\n", "// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/performance';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n getPerformance as _getPerformance,\n initializePerformance as _initializePerformance,\n trace as _trace\n} from 'firebase/performance';\n\nexport const getPerformance = ɵzoneWrap(_getPerformance, true);\nexport const initializePerformance = ɵzoneWrap(_initializePerformance, true);\nexport const trace = ɵzoneWrap(_trace, true);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;ACAA,SAAS,0BAA0B;AAEnC,SAAS,MAAM,aAAa;AAC5B,SAAS,WAAW,gBAAgB;AAM9B,IAAO,cAAP,MAAkB;EACtB,YAAY,aAAgC;AAC1C,WAAO;EACT;;AAGK,IAAM,4BAA4B;AAKnC,IAAO,uBAAP,MAA2B;EAC/B,cAAA;AACE,WAAO,mBAAwC,yBAAyB;EAC1E;;AAGK,IAAM,uBAAuB,MAAM,GAAG,GAAG,EAAE,KAChD,UAAU,MAAM,KAAK,mBAAwC,yBAAyB,CAAC,CAAC,GACxF,SAAQ,CAAE;;;AC5BZ,SAAS,yBAAyB;AAClC,SAEE,gBACA,UACA,UACA,QACA,UACA,aACA,gCACK;AACP,SAAS,SAAS,wBAAwB,6BAA6B;AACvE,SAAS,aAAa,oBAAoB;AAC1C,SAAS,uBAAuB;;AAIzB,IAAM,iCAAiC,IAAI,eAA8B,oCAAoC;AAE9G,SAAU,kCACd,UACA,YAEA,UAAgB;AAEhB,MAAI,CAAC,kBAAkB,QAAQ,GAAG;AAAE,WAAO;EAAM;AACjD,QAAM,qBAAqB,sBAA2C,2BAA2B,UAAU,UAAU;AACrH,SAAO,sBAAsB,IAAI,YAAY,kBAAkB;AACjE;AAEM,SAAU,2BAA2B,IAA+C;AAExF,SAAO,CAAC,MAAc,UAAkB,aAAsB;AAC5D,QAAI,CAAC,kBAAkB,QAAQ,GAAG;AAAE,aAAO;IAAM;AACjD,UAAM,cAAc,KAAK,kBAAkB,MAAM,GAAG,QAAQ,CAAC;AAC7D,WAAO,IAAI,YAAY,WAAW;EACpC;AACF;AAEA,IAAM,iCAAiC;EACrC,SAAS;EACT,MAAM;IACJ,CAAC,IAAI,SAAQ,GAAI,8BAA8B;;;AAInD,IAAM,wCAAwC;EAC5C,SAAS;EACT,YAAY;EACZ,MAAM;IACJ,CAAC,IAAI,SAAQ,GAAI,8BAA8B;IAC/C;IACA;;;AAUE,IAAO,oBAAP,MAAO,mBAAiB;EAC5B,cAAA;AACE,oBAAgB,eAAe,QAAQ,MAAM,MAAM;EACrD;0GAHW,oBAAiB,MAAA,CAAA,GAAA,QAAA,mBAAA,SAAA,CAAA;2GAAjB,mBAAiB,CAAA;2GAAjB,oBAAiB,WALjB;IACT;IACA;IACD,CAAA;;gGAEU,mBAAiB,YAAA,CAAA;QAN7B;SAAS;IACR,WAAW;MACT;MACA;;GAEH;;AAOK,SAAU,mBACd,OAAoD,MAAW;AAE/D,kBAAgB,eAAe,QAAQ,MAAM,MAAM;AAEnD,SAAO,yBAAyB;IAC9B;IACA;IACA;MACE,SAAS;MACT,YAAY,2BAA2B,EAAE;MACzC,OAAO;MACP,MAAM;QACJ;QACA;QACA;QACA;QACA;QACA,GAAG;;;GAGR;AACH;;;ACzFA,SAAS,iBAAiB;AAC1B,SACE,cAAc,aACd,cAAc,aACd,sBAAsB,qBACtB,mBAAmB,wBACd;AAEA,IAAM,aAAa,UAAU,aAAa,IAAI;AAC9C,IAAM,aAAa,UAAU,aAAa,IAAI;AAC9C,IAAM,qBAAqB,UAAU,qBAAqB,IAAI;AAC9D,IAAM,kBAAkB,UAAU,kBAAkB,IAAI;;;ACZ/D;;;;;;AACA;kCAAc;AACd,SAAS,aAAAA,kBAAiB;AAC1B,SACE,kBAAkB,iBAClB,yBAAyB,wBACzB,SAAS,cACJ;AAEA,IAAM,iBAAiBA,WAAU,iBAAiB,IAAI;AACtD,IAAM,wBAAwBA,WAAU,wBAAwB,IAAI;AACpE,IAAM,QAAQA,WAAU,QAAQ,IAAI;;;AJR3C,+BAAc;;;ADCd,6CAAc;",
|
|
6
|
+
"names": ["ɵzoneWrap"]
|
|
7
|
+
}
|