@angular/fire 7.6.0 → 16.0.0-canary.596e208
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/analytics/is-analytics-supported-factory.d.ts +4 -0
- package/app-check/app-check.d.ts +0 -6
- package/app-check/app-check.module.d.ts +0 -1
- package/app-check/public_api.d.ts +2 -1
- package/auth-guard/auth-guard.d.ts +4 -4
- package/compat/auth/auth.d.ts +1 -1
- package/compat/auth-guard/auth-guard.d.ts +6 -4
- package/compat/database/interfaces.d.ts +12 -12
- package/compat/firestore/interfaces.d.ts +17 -17
- package/compat/proxy.d.ts +8 -8
- package/compat/remote-config/interfaces.d.ts +1 -1
- package/compat/storage/interfaces.d.ts +8 -8
- package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -1
- package/core.d.ts +8 -12
- package/esm2022/analytics/analytics.module.mjs +94 -0
- package/esm2022/analytics/is-analytics-supported-factory.mjs +16 -0
- package/esm2022/analytics/overrides.mjs +3 -0
- package/esm2022/analytics/screen-tracking.service.mjs +147 -0
- package/esm2022/analytics/user-tracking.service.mjs +44 -0
- package/esm2022/app/app.module.mjs +84 -0
- package/esm2022/app-check/app-check.mjs +10 -0
- package/esm2022/app-check/app-check.module.mjs +79 -0
- package/esm2022/app-check/public_api.mjs +5 -0
- package/esm2022/auth/auth.module.mjs +71 -0
- package/esm2022/auth-guard/auth-guard.mjs +51 -0
- package/{esm2015/auth-guard/auth-guard.module.js → esm2022/auth-guard/auth-guard.module.mjs} +5 -5
- package/esm2022/compat/analytics/analytics.mjs +161 -0
- package/{esm2015/compat/analytics/analytics.module.js → esm2022/compat/analytics/analytics.module.mjs} +5 -5
- package/esm2022/compat/analytics/screen-tracking.service.mjs +49 -0
- package/esm2022/compat/analytics/user-tracking.service.mjs +53 -0
- package/esm2022/compat/auth/auth.mjs +161 -0
- package/{esm2015/compat/auth/auth.module.js → esm2022/compat/auth/auth.module.mjs} +5 -5
- package/{esm2015/compat/auth/public_api.js → esm2022/compat/auth/public_api.mjs} +1 -1
- package/esm2022/compat/auth-guard/auth-guard.mjs +51 -0
- package/{esm2015/compat/auth-guard/auth-guard.module.js → esm2022/compat/auth-guard/auth-guard.module.mjs} +5 -5
- package/{esm2015/compat/cache.js → esm2022/compat/cache.mjs} +3 -3
- package/esm2022/compat/database/database.mjs +119 -0
- package/{esm2015/compat/database/database.module.js → esm2022/compat/database/database.module.mjs} +5 -5
- package/esm2022/compat/database/list/create-reference.mjs +44 -0
- package/{esm2015/compat/firebase.app.module.js → esm2022/compat/firebase.app.module.mjs} +11 -11
- package/esm2022/compat/firestore/collection/changes.mjs +108 -0
- package/esm2022/compat/firestore/collection/collection.mjs +123 -0
- package/esm2022/compat/firestore/collection-group/collection-group.mjs +86 -0
- package/esm2022/compat/firestore/document/document.mjs +87 -0
- package/esm2022/compat/firestore/firestore.mjs +257 -0
- package/{esm2015/compat/firestore/firestore.module.js → esm2022/compat/firestore/firestore.module.mjs} +5 -5
- package/esm2022/compat/firestore/interfaces.mjs +2 -0
- package/esm2022/compat/firestore/observable/fromRef.mjs +40 -0
- package/esm2022/compat/functions/functions.mjs +69 -0
- package/{esm2015/compat/functions/functions.module.js → esm2022/compat/functions/functions.module.mjs} +5 -5
- package/{esm2015/compat/functions/public_api.js → esm2022/compat/functions/public_api.mjs} +1 -1
- package/esm2022/compat/messaging/messaging.mjs +80 -0
- package/{esm2015/compat/messaging/messaging.module.js → esm2022/compat/messaging/messaging.module.mjs} +5 -5
- package/{esm2015/compat/performance/performance.js → esm2022/compat/performance/performance.mjs} +7 -6
- package/{esm2015/compat/performance/performance.module.js → esm2022/compat/performance/performance.module.mjs} +5 -5
- package/esm2022/compat/performance/performance.service.mjs +27 -0
- package/esm2022/compat/proxy.mjs +59 -0
- package/esm2022/compat/remote-config/remote-config.mjs +207 -0
- package/{esm2015/compat/remote-config/remote-config.module.js → esm2022/compat/remote-config/remote-config.module.mjs} +5 -5
- package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +58 -0
- package/esm2022/compat/storage/storage.mjs +95 -0
- package/{esm2015/compat/storage/storage.module.js → esm2022/compat/storage/storage.module.mjs} +5 -5
- package/esm2022/core.mjs +45 -0
- package/esm2022/database/database.module.mjs +74 -0
- package/esm2022/firestore/firestore.module.mjs +74 -0
- package/esm2022/firestore/lite/lite.module.mjs +73 -0
- package/esm2022/firestore/rxfire.mjs +15 -0
- package/esm2022/functions/functions.module.mjs +74 -0
- package/esm2022/messaging/is-messaging-supported-factory.mjs +16 -0
- package/esm2022/messaging/messaging.module.mjs +86 -0
- package/esm2022/messaging/overrides.mjs +3 -0
- package/{esm2015/performance/performance.module.js → esm2022/performance/performance.module.mjs} +8 -8
- package/esm2022/remote-config/is-remote-config-supported-factory.mjs +16 -0
- package/esm2022/remote-config/overrides.mjs +3 -0
- package/esm2022/remote-config/remote-config.module.mjs +86 -0
- package/esm2022/storage/storage.module.mjs +74 -0
- package/esm2022/zones.mjs +196 -0
- package/{fesm2015/angular-fire-analytics.js → fesm2022/angular-fire-analytics.mjs} +61 -38
- package/fesm2022/angular-fire-analytics.mjs.map +1 -0
- package/{fesm2015/angular-fire-app-check.js → fesm2022/angular-fire-app-check.mjs} +15 -22
- package/fesm2022/angular-fire-app-check.mjs.map +1 -0
- package/{fesm2015/angular-fire-app.js → fesm2022/angular-fire-app.mjs} +8 -8
- package/fesm2022/angular-fire-app.mjs.map +1 -0
- package/{fesm2015/angular-fire-auth-guard.js → fesm2022/angular-fire-auth-guard.mjs} +25 -23
- package/fesm2022/angular-fire-auth-guard.mjs.map +1 -0
- package/{fesm2015/angular-fire-auth.js → fesm2022/angular-fire-auth.mjs} +10 -11
- package/fesm2022/angular-fire-auth.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-analytics.js → fesm2022/angular-fire-compat-analytics.mjs} +28 -28
- package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-auth-guard.js → fesm2022/angular-fire-compat-auth-guard.mjs} +25 -23
- package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-auth.js → fesm2022/angular-fire-compat-auth.mjs} +32 -10
- package/fesm2022/angular-fire-compat-auth.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-database.js → fesm2022/angular-fire-compat-database.mjs} +17 -12
- package/fesm2022/angular-fire-compat-database.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-firestore.js → fesm2022/angular-fire-compat-firestore.mjs} +37 -16
- package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-functions.js → fesm2022/angular-fire-compat-functions.mjs} +10 -9
- package/fesm2022/angular-fire-compat-functions.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-messaging.js → fesm2022/angular-fire-compat-messaging.mjs} +20 -15
- package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-performance.js → fesm2022/angular-fire-compat-performance.mjs} +16 -15
- package/fesm2022/angular-fire-compat-performance.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-remote-config.js → fesm2022/angular-fire-compat-remote-config.mjs} +33 -19
- package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat-storage.js → fesm2022/angular-fire-compat-storage.mjs} +23 -18
- package/fesm2022/angular-fire-compat-storage.mjs.map +1 -0
- package/{fesm2015/angular-fire-compat.js → fesm2022/angular-fire-compat.mjs} +15 -17
- package/fesm2022/angular-fire-compat.mjs.map +1 -0
- package/{fesm2015/angular-fire-database.js → fesm2022/angular-fire-database.mjs} +10 -11
- package/fesm2022/angular-fire-database.mjs.map +1 -0
- package/{fesm2015/angular-fire-firestore-lite.js → fesm2022/angular-fire-firestore-lite.mjs} +10 -11
- package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -0
- package/{fesm2015/angular-fire-firestore.js → fesm2022/angular-fire-firestore.mjs} +14 -13
- package/fesm2022/angular-fire-firestore.mjs.map +1 -0
- package/{fesm2015/angular-fire-functions.js → fesm2022/angular-fire-functions.mjs} +10 -11
- package/fesm2022/angular-fire-functions.mjs.map +1 -0
- package/{fesm2015/angular-fire-messaging.js → fesm2022/angular-fire-messaging.mjs} +33 -19
- package/fesm2022/angular-fire-messaging.mjs.map +1 -0
- package/{fesm2015/angular-fire-performance.js → fesm2022/angular-fire-performance.mjs} +8 -8
- package/fesm2022/angular-fire-performance.mjs.map +1 -0
- package/{fesm2015/angular-fire-remote-config.js → fesm2022/angular-fire-remote-config.mjs} +34 -20
- package/fesm2022/angular-fire-remote-config.mjs.map +1 -0
- package/{fesm2015/angular-fire-storage.js → fesm2022/angular-fire-storage.mjs} +10 -11
- package/fesm2022/angular-fire-storage.mjs.map +1 -0
- package/{fesm2015/angular-fire.js → fesm2022/angular-fire.mjs} +31 -52
- package/fesm2022/angular-fire.mjs.map +1 -0
- package/firestore/rxfire.d.ts +3 -1
- package/messaging/is-messaging-supported-factory.d.ts +4 -0
- package/package.json +159 -9
- package/publish.sh +1 -0
- package/remote-config/is-remote-config-supported-factory.d.ts +4 -0
- package/schematics/add/index.js +1 -1
- package/schematics/common.js +8 -4
- package/schematics/deploy/actions.js +59 -59
- package/schematics/deploy/builder.js +5 -5
- package/schematics/firebaseTools.js +9 -5
- package/schematics/setup/index.js +24 -23
- package/schematics/setup/prompts.js +20 -15
- package/schematics/update/v7/index.js +5 -5
- package/schematics/utils.js +30 -30
- package/README.md +0 -216
- package/analytics/package.json +0 -11
- package/app/package.json +0 -11
- package/app-check/package.json +0 -11
- package/auth/package.json +0 -11
- package/auth-guard/package.json +0 -11
- package/bundles/angular-fire-analytics.umd.js +0 -673
- package/bundles/angular-fire-analytics.umd.js.map +0 -1
- package/bundles/angular-fire-app-check.umd.js +0 -465
- package/bundles/angular-fire-app-check.umd.js.map +0 -1
- package/bundles/angular-fire-app.umd.js +0 -477
- package/bundles/angular-fire-app.umd.js.map +0 -1
- package/bundles/angular-fire-auth-guard.umd.js +0 -109
- package/bundles/angular-fire-auth-guard.umd.js.map +0 -1
- package/bundles/angular-fire-auth.umd.js +0 -557
- package/bundles/angular-fire-auth.umd.js.map +0 -1
- package/bundles/angular-fire-compat-analytics.umd.js +0 -672
- package/bundles/angular-fire-compat-analytics.umd.js.map +0 -1
- package/bundles/angular-fire-compat-auth-guard.umd.js +0 -112
- package/bundles/angular-fire-compat-auth-guard.umd.js.map +0 -1
- package/bundles/angular-fire-compat-auth.umd.js +0 -559
- package/bundles/angular-fire-compat-auth.umd.js.map +0 -1
- package/bundles/angular-fire-compat-database.umd.js +0 -799
- package/bundles/angular-fire-compat-database.umd.js.map +0 -1
- package/bundles/angular-fire-compat-firestore.umd.js +0 -1073
- package/bundles/angular-fire-compat-firestore.umd.js.map +0 -1
- package/bundles/angular-fire-compat-functions.umd.js +0 -443
- package/bundles/angular-fire-compat-functions.umd.js.map +0 -1
- package/bundles/angular-fire-compat-messaging.umd.js +0 -465
- package/bundles/angular-fire-compat-messaging.umd.js.map +0 -1
- package/bundles/angular-fire-compat-performance.umd.js +0 -212
- package/bundles/angular-fire-compat-performance.umd.js.map +0 -1
- package/bundles/angular-fire-compat-remote-config.umd.js +0 -605
- package/bundles/angular-fire-compat-remote-config.umd.js.map +0 -1
- package/bundles/angular-fire-compat-storage.umd.js +0 -598
- package/bundles/angular-fire-compat-storage.umd.js.map +0 -1
- package/bundles/angular-fire-compat.umd.js +0 -535
- package/bundles/angular-fire-compat.umd.js.map +0 -1
- package/bundles/angular-fire-database.umd.js +0 -557
- package/bundles/angular-fire-database.umd.js.map +0 -1
- package/bundles/angular-fire-firestore-lite.umd.js +0 -531
- package/bundles/angular-fire-firestore-lite.umd.js.map +0 -1
- package/bundles/angular-fire-firestore.umd.js +0 -565
- package/bundles/angular-fire-firestore.umd.js.map +0 -1
- package/bundles/angular-fire-functions.umd.js +0 -461
- package/bundles/angular-fire-functions.umd.js.map +0 -1
- package/bundles/angular-fire-messaging.umd.js +0 -473
- package/bundles/angular-fire-messaging.umd.js.map +0 -1
- package/bundles/angular-fire-performance.umd.js +0 -473
- package/bundles/angular-fire-performance.umd.js.map +0 -1
- package/bundles/angular-fire-remote-config.umd.js +0 -499
- package/bundles/angular-fire-remote-config.umd.js.map +0 -1
- package/bundles/angular-fire-storage.umd.js +0 -485
- package/bundles/angular-fire-storage.umd.js.map +0 -1
- package/bundles/angular-fire.umd.js +0 -308
- package/bundles/angular-fire.umd.js.map +0 -1
- package/compat/analytics/package.json +0 -11
- package/compat/auth/package.json +0 -11
- package/compat/auth-guard/package.json +0 -11
- package/compat/database/package.json +0 -11
- package/compat/firestore/package.json +0 -11
- package/compat/functions/package.json +0 -11
- package/compat/messaging/package.json +0 -11
- package/compat/package.json +0 -11
- package/compat/performance/package.json +0 -11
- package/compat/remote-config/package.json +0 -11
- package/compat/storage/package.json +0 -11
- package/database/package.json +0 -11
- package/docs/analytics.md +0 -67
- package/docs/app-check.md +0 -53
- package/docs/auth.md +0 -165
- package/docs/compat/analytics/getting-started.md +0 -137
- package/docs/compat/auth/getting-started.md +0 -162
- package/docs/compat/auth/router-guards.md +0 -104
- package/docs/compat/emulators/emulators.md +0 -134
- package/docs/compat/firestore/collections.md +0 -326
- package/docs/compat/firestore/documents.md +0 -115
- package/docs/compat/firestore/offline-data.md +0 -39
- package/docs/compat/firestore/querying-collections.md +0 -204
- package/docs/compat/functions/functions.md +0 -166
- package/docs/compat/messaging/messaging.md +0 -232
- package/docs/compat/performance/getting-started.md +0 -132
- package/docs/compat/remote-config/getting-started.md +0 -134
- package/docs/compat/rtdb/lists.md +0 -257
- package/docs/compat/rtdb/objects.md +0 -182
- package/docs/compat/rtdb/querying-lists.md +0 -155
- package/docs/compat/storage/storage.md +0 -257
- package/docs/compat.md +0 -70
- package/docs/database.md +0 -175
- package/docs/deploy/getting-started.md +0 -204
- package/docs/firebase.json +0 -16
- package/docs/firestore.md +0 -148
- package/docs/functions.md +0 -52
- package/docs/images/analytics-illo_1x.png +0 -0
- package/docs/images/auth-illo_1x.png +0 -0
- package/docs/images/cloud-messaging-illo_1x.png +0 -0
- package/docs/images/database-illo_1x.png +0 -0
- package/docs/images/firestore-illo_1x.png +0 -0
- package/docs/images/functions-illo_1x.png +0 -0
- package/docs/images/hosting-illo_1x.png +0 -0
- package/docs/images/performance-illo_1x.png +0 -0
- package/docs/images/reCAPTCHA-logo@1x.png +0 -0
- package/docs/images/remote-config-illo_1x.png +0 -0
- package/docs/images/storage-illo_1x.png +0 -0
- package/docs/install-and-setup.md +0 -114
- package/docs/install-angular-cli-windows10.md +0 -82
- package/docs/messaging.md +0 -25
- package/docs/performance.md +0 -57
- package/docs/remote-config.md +0 -53
- package/docs/storage.md +0 -90
- package/docs/universal/cloud-functions.md +0 -75
- package/docs/universal/getting-started.md +0 -153
- package/docs/universal/prerendering.md +0 -72
- package/docs/version-4-upgrade.md +0 -119
- package/docs/version-5-upgrade.md +0 -82
- package/docs/version-6-upgrade.md +0 -16
- package/docs/version-7-upgrade.md +0 -298
- package/esm2015/analytics/analytics.module.js +0 -93
- package/esm2015/analytics/overrides.js +0 -3
- package/esm2015/analytics/screen-tracking.service.js +0 -139
- package/esm2015/analytics/user-tracking.service.js +0 -43
- package/esm2015/app/app.module.js +0 -84
- package/esm2015/app-check/app-check.js +0 -16
- package/esm2015/app-check/app-check.module.js +0 -81
- package/esm2015/app-check/public_api.js +0 -4
- package/esm2015/auth/auth.module.js +0 -71
- package/esm2015/auth-guard/auth-guard.js +0 -49
- package/esm2015/compat/analytics/analytics.js +0 -163
- package/esm2015/compat/analytics/screen-tracking.service.js +0 -49
- package/esm2015/compat/analytics/user-tracking.service.js +0 -52
- package/esm2015/compat/auth/auth.js +0 -139
- package/esm2015/compat/auth-guard/auth-guard.js +0 -49
- package/esm2015/compat/database/database.js +0 -117
- package/esm2015/compat/database/list/create-reference.js +0 -41
- package/esm2015/compat/firestore/collection/changes.js +0 -107
- package/esm2015/compat/firestore/collection/collection.js +0 -117
- package/esm2015/compat/firestore/collection-group/collection-group.js +0 -81
- package/esm2015/compat/firestore/document/document.js +0 -82
- package/esm2015/compat/firestore/firestore.js +0 -254
- package/esm2015/compat/firestore/interfaces.js +0 -2
- package/esm2015/compat/firestore/observable/fromRef.js +0 -39
- package/esm2015/compat/functions/functions.js +0 -68
- package/esm2015/compat/messaging/messaging.js +0 -75
- package/esm2015/compat/performance/performance.service.js +0 -27
- package/esm2015/compat/proxy.js +0 -61
- package/esm2015/compat/remote-config/remote-config.js +0 -193
- package/esm2015/compat/storage/pipes/storageUrl.pipe.js +0 -54
- package/esm2015/compat/storage/storage.js +0 -94
- package/esm2015/core.js +0 -79
- package/esm2015/database/database.module.js +0 -74
- package/esm2015/firestore/firestore.module.js +0 -74
- package/esm2015/firestore/lite/lite.module.js +0 -74
- package/esm2015/firestore/rxfire.js +0 -13
- package/esm2015/functions/functions.module.js +0 -74
- package/esm2015/messaging/messaging.module.js +0 -85
- package/esm2015/messaging/overrides.js +0 -3
- package/esm2015/remote-config/overrides.js +0 -3
- package/esm2015/remote-config/remote-config.module.js +0 -85
- package/esm2015/storage/storage.module.js +0 -74
- package/esm2015/zones.js +0 -183
- package/fesm2015/angular-fire-analytics.js.map +0 -1
- package/fesm2015/angular-fire-app-check.js.map +0 -1
- package/fesm2015/angular-fire-app.js.map +0 -1
- package/fesm2015/angular-fire-auth-guard.js.map +0 -1
- package/fesm2015/angular-fire-auth.js.map +0 -1
- package/fesm2015/angular-fire-compat-analytics.js.map +0 -1
- package/fesm2015/angular-fire-compat-auth-guard.js.map +0 -1
- package/fesm2015/angular-fire-compat-auth.js.map +0 -1
- package/fesm2015/angular-fire-compat-database.js.map +0 -1
- package/fesm2015/angular-fire-compat-firestore.js.map +0 -1
- package/fesm2015/angular-fire-compat-functions.js.map +0 -1
- package/fesm2015/angular-fire-compat-messaging.js.map +0 -1
- package/fesm2015/angular-fire-compat-performance.js.map +0 -1
- package/fesm2015/angular-fire-compat-remote-config.js.map +0 -1
- package/fesm2015/angular-fire-compat-storage.js.map +0 -1
- package/fesm2015/angular-fire-compat.js.map +0 -1
- package/fesm2015/angular-fire-database.js.map +0 -1
- package/fesm2015/angular-fire-firestore-lite.js.map +0 -1
- package/fesm2015/angular-fire-firestore.js.map +0 -1
- package/fesm2015/angular-fire-functions.js.map +0 -1
- package/fesm2015/angular-fire-messaging.js.map +0 -1
- package/fesm2015/angular-fire-performance.js.map +0 -1
- package/fesm2015/angular-fire-remote-config.js.map +0 -1
- package/fesm2015/angular-fire-storage.js.map +0 -1
- package/fesm2015/angular-fire.js.map +0 -1
- package/firestore/lite/package.json +0 -11
- package/firestore/package.json +0 -11
- package/firestore-protos.js +0 -4
- package/functions/package.json +0 -11
- package/messaging/package.json +0 -11
- package/performance/package.json +0 -11
- package/remote-config/package.json +0 -11
- package/schematics/add/schema.json +0 -16
- package/schematics/builders.json +0 -10
- package/schematics/collection.json +0 -15
- package/schematics/deploy/schema.json +0 -119
- package/schematics/migration.json +0 -15
- package/schematics/setup/schema.json +0 -16
- package/storage/package.json +0 -11
- /package/analytics/{angular-fire-analytics.d.ts → index.d.ts} +0 -0
- /package/app/{angular-fire-app.d.ts → index.d.ts} +0 -0
- /package/app-check/{angular-fire-app-check.d.ts → index.d.ts} +0 -0
- /package/auth/{angular-fire-auth.d.ts → index.d.ts} +0 -0
- /package/auth-guard/{angular-fire-auth-guard.d.ts → index.d.ts} +0 -0
- /package/compat/analytics/{angular-fire-compat-analytics.d.ts → index.d.ts} +0 -0
- /package/compat/auth/{angular-fire-compat-auth.d.ts → index.d.ts} +0 -0
- /package/compat/auth-guard/{angular-fire-compat-auth-guard.d.ts → index.d.ts} +0 -0
- /package/compat/database/{angular-fire-compat-database.d.ts → index.d.ts} +0 -0
- /package/compat/firestore/{angular-fire-compat-firestore.d.ts → index.d.ts} +0 -0
- /package/compat/functions/{angular-fire-compat-functions.d.ts → index.d.ts} +0 -0
- /package/compat/{angular-fire-compat.d.ts → index.d.ts} +0 -0
- /package/compat/messaging/{angular-fire-compat-messaging.d.ts → index.d.ts} +0 -0
- /package/compat/performance/{angular-fire-compat-performance.d.ts → index.d.ts} +0 -0
- /package/compat/remote-config/{angular-fire-compat-remote-config.d.ts → index.d.ts} +0 -0
- /package/compat/storage/{angular-fire-compat-storage.d.ts → index.d.ts} +0 -0
- /package/database/{angular-fire-database.d.ts → index.d.ts} +0 -0
- /package/{esm2015/analytics/analytics.js → esm2022/analytics/analytics.mjs} +0 -0
- /package/{esm2015/analytics/angular-fire-analytics.js → esm2022/analytics/angular-fire-analytics.mjs} +0 -0
- /package/{esm2015/analytics/firebase.js → esm2022/analytics/firebase.mjs} +0 -0
- /package/{esm2015/analytics/public_api.js → esm2022/analytics/public_api.mjs} +0 -0
- /package/{esm2015/angular-fire.js → esm2022/angular-fire.mjs} +0 -0
- /package/{esm2015/app/angular-fire-app.js → esm2022/app/angular-fire-app.mjs} +0 -0
- /package/{esm2015/app/app.js → esm2022/app/app.mjs} +0 -0
- /package/{esm2015/app/firebase.js → esm2022/app/firebase.mjs} +0 -0
- /package/{esm2015/app/public_api.js → esm2022/app/public_api.mjs} +0 -0
- /package/{esm2015/app-check/angular-fire-app-check.js → esm2022/app-check/angular-fire-app-check.mjs} +0 -0
- /package/{esm2015/app-check/firebase.js → esm2022/app-check/firebase.mjs} +0 -0
- /package/{esm2015/auth/angular-fire-auth.js → esm2022/auth/angular-fire-auth.mjs} +0 -0
- /package/{esm2015/auth/auth.js → esm2022/auth/auth.mjs} +0 -0
- /package/{esm2015/auth/firebase.js → esm2022/auth/firebase.mjs} +0 -0
- /package/{esm2015/auth/public_api.js → esm2022/auth/public_api.mjs} +0 -0
- /package/{esm2015/auth/rxfire.js → esm2022/auth/rxfire.mjs} +0 -0
- /package/{esm2015/auth-guard/angular-fire-auth-guard.js → esm2022/auth-guard/angular-fire-auth-guard.mjs} +0 -0
- /package/{esm2015/auth-guard/public_api.js → esm2022/auth-guard/public_api.mjs} +0 -0
- /package/{esm2015/compat/analytics/angular-fire-compat-analytics.js → esm2022/compat/analytics/angular-fire-compat-analytics.mjs} +0 -0
- /package/{esm2015/compat/analytics/base.js → esm2022/compat/analytics/base.mjs} +0 -0
- /package/{esm2015/compat/analytics/public_api.js → esm2022/compat/analytics/public_api.mjs} +0 -0
- /package/{esm2015/compat/angular-fire-compat.js → esm2022/compat/angular-fire-compat.mjs} +0 -0
- /package/{esm2015/compat/auth/angular-fire-compat-auth.js → esm2022/compat/auth/angular-fire-compat-auth.mjs} +0 -0
- /package/{esm2015/compat/auth/base.js → esm2022/compat/auth/base.mjs} +0 -0
- /package/{esm2015/compat/auth-guard/angular-fire-compat-auth-guard.js → esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs} +0 -0
- /package/{esm2015/compat/auth-guard/public_api.js → esm2022/compat/auth-guard/public_api.mjs} +0 -0
- /package/{esm2015/compat/database/angular-fire-compat-database.js → esm2022/compat/database/angular-fire-compat-database.mjs} +0 -0
- /package/{esm2015/compat/database/interfaces.js → esm2022/compat/database/interfaces.mjs} +0 -0
- /package/{esm2015/compat/database/list/audit-trail.js → esm2022/compat/database/list/audit-trail.mjs} +0 -0
- /package/{esm2015/compat/database/list/changes.js → esm2022/compat/database/list/changes.mjs} +0 -0
- /package/{esm2015/compat/database/list/data-operation.js → esm2022/compat/database/list/data-operation.mjs} +0 -0
- /package/{esm2015/compat/database/list/remove.js → esm2022/compat/database/list/remove.mjs} +0 -0
- /package/{esm2015/compat/database/list/snapshot-changes.js → esm2022/compat/database/list/snapshot-changes.mjs} +0 -0
- /package/{esm2015/compat/database/list/state-changes.js → esm2022/compat/database/list/state-changes.mjs} +0 -0
- /package/{esm2015/compat/database/list/utils.js → esm2022/compat/database/list/utils.mjs} +0 -0
- /package/{esm2015/compat/database/object/create-reference.js → esm2022/compat/database/object/create-reference.mjs} +0 -0
- /package/{esm2015/compat/database/object/snapshot-changes.js → esm2022/compat/database/object/snapshot-changes.mjs} +0 -0
- /package/{esm2015/compat/database/observable/fromRef.js → esm2022/compat/database/observable/fromRef.mjs} +0 -0
- /package/{esm2015/compat/database/public_api.js → esm2022/compat/database/public_api.mjs} +0 -0
- /package/{esm2015/compat/database/utils.js → esm2022/compat/database/utils.mjs} +0 -0
- /package/{esm2015/compat/firebase.app.js → esm2022/compat/firebase.app.mjs} +0 -0
- /package/{esm2015/compat/firestore/angular-fire-compat-firestore.js → esm2022/compat/firestore/angular-fire-compat-firestore.mjs} +0 -0
- /package/{esm2015/compat/firestore/public_api.js → esm2022/compat/firestore/public_api.mjs} +0 -0
- /package/{esm2015/compat/functions/angular-fire-compat-functions.js → esm2022/compat/functions/angular-fire-compat-functions.mjs} +0 -0
- /package/{esm2015/compat/functions/base.js → esm2022/compat/functions/base.mjs} +0 -0
- /package/{esm2015/compat/messaging/angular-fire-compat-messaging.js → esm2022/compat/messaging/angular-fire-compat-messaging.mjs} +0 -0
- /package/{esm2015/compat/messaging/base.js → esm2022/compat/messaging/base.mjs} +0 -0
- /package/{esm2015/compat/messaging/public_api.js → esm2022/compat/messaging/public_api.mjs} +0 -0
- /package/{esm2015/compat/performance/angular-fire-compat-performance.js → esm2022/compat/performance/angular-fire-compat-performance.mjs} +0 -0
- /package/{esm2015/compat/performance/base.js → esm2022/compat/performance/base.mjs} +0 -0
- /package/{esm2015/compat/performance/public_api.js → esm2022/compat/performance/public_api.mjs} +0 -0
- /package/{esm2015/compat/public_api.js → esm2022/compat/public_api.mjs} +0 -0
- /package/{esm2015/compat/remote-config/angular-fire-compat-remote-config.js → esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs} +0 -0
- /package/{esm2015/compat/remote-config/base.js → esm2022/compat/remote-config/base.mjs} +0 -0
- /package/{esm2015/compat/remote-config/interfaces.js → esm2022/compat/remote-config/interfaces.mjs} +0 -0
- /package/{esm2015/compat/remote-config/public_api.js → esm2022/compat/remote-config/public_api.mjs} +0 -0
- /package/{esm2015/compat/storage/angular-fire-compat-storage.js → esm2022/compat/storage/angular-fire-compat-storage.mjs} +0 -0
- /package/{esm2015/compat/storage/interfaces.js → esm2022/compat/storage/interfaces.mjs} +0 -0
- /package/{esm2015/compat/storage/observable/fromTask.js → esm2022/compat/storage/observable/fromTask.mjs} +0 -0
- /package/{esm2015/compat/storage/public_api.js → esm2022/compat/storage/public_api.mjs} +0 -0
- /package/{esm2015/compat/storage/ref.js → esm2022/compat/storage/ref.mjs} +0 -0
- /package/{esm2015/compat/storage/task.js → esm2022/compat/storage/task.mjs} +0 -0
- /package/{esm2015/database/angular-fire-database.js → esm2022/database/angular-fire-database.mjs} +0 -0
- /package/{esm2015/database/database.js → esm2022/database/database.mjs} +0 -0
- /package/{esm2015/database/firebase.js → esm2022/database/firebase.mjs} +0 -0
- /package/{esm2015/database/public_api.js → esm2022/database/public_api.mjs} +0 -0
- /package/{esm2015/database/rxfire.js → esm2022/database/rxfire.mjs} +0 -0
- /package/{esm2015/firestore/angular-fire-firestore.js → esm2022/firestore/angular-fire-firestore.mjs} +0 -0
- /package/{esm2015/firestore/firebase.js → esm2022/firestore/firebase.mjs} +0 -0
- /package/{esm2015/firestore/firestore.js → esm2022/firestore/firestore.mjs} +0 -0
- /package/{esm2015/firestore/lite/angular-fire-firestore-lite.js → esm2022/firestore/lite/angular-fire-firestore-lite.mjs} +0 -0
- /package/{esm2015/firestore/lite/firebase.js → esm2022/firestore/lite/firebase.mjs} +0 -0
- /package/{esm2015/firestore/lite/lite.js → esm2022/firestore/lite/lite.mjs} +0 -0
- /package/{esm2015/firestore/lite/public_api.js → esm2022/firestore/lite/public_api.mjs} +0 -0
- /package/{esm2015/firestore/lite/rxfire.js → esm2022/firestore/lite/rxfire.mjs} +0 -0
- /package/{esm2015/firestore/public_api.js → esm2022/firestore/public_api.mjs} +0 -0
- /package/{esm2015/functions/angular-fire-functions.js → esm2022/functions/angular-fire-functions.mjs} +0 -0
- /package/{esm2015/functions/firebase.js → esm2022/functions/firebase.mjs} +0 -0
- /package/{esm2015/functions/functions.js → esm2022/functions/functions.mjs} +0 -0
- /package/{esm2015/functions/public_api.js → esm2022/functions/public_api.mjs} +0 -0
- /package/{esm2015/functions/rxfire.js → esm2022/functions/rxfire.mjs} +0 -0
- /package/{esm2015/messaging/angular-fire-messaging.js → esm2022/messaging/angular-fire-messaging.mjs} +0 -0
- /package/{esm2015/messaging/firebase.js → esm2022/messaging/firebase.mjs} +0 -0
- /package/{esm2015/messaging/messaging.js → esm2022/messaging/messaging.mjs} +0 -0
- /package/{esm2015/messaging/public_api.js → esm2022/messaging/public_api.mjs} +0 -0
- /package/{esm2015/performance/angular-fire-performance.js → esm2022/performance/angular-fire-performance.mjs} +0 -0
- /package/{esm2015/performance/firebase.js → esm2022/performance/firebase.mjs} +0 -0
- /package/{esm2015/performance/performance.js → esm2022/performance/performance.mjs} +0 -0
- /package/{esm2015/performance/public_api.js → esm2022/performance/public_api.mjs} +0 -0
- /package/{esm2015/performance/rxfire.js → esm2022/performance/rxfire.mjs} +0 -0
- /package/{esm2015/public_api.js → esm2022/public_api.mjs} +0 -0
- /package/{esm2015/remote-config/angular-fire-remote-config.js → esm2022/remote-config/angular-fire-remote-config.mjs} +0 -0
- /package/{esm2015/remote-config/firebase.js → esm2022/remote-config/firebase.mjs} +0 -0
- /package/{esm2015/remote-config/public_api.js → esm2022/remote-config/public_api.mjs} +0 -0
- /package/{esm2015/remote-config/remote-config.js → esm2022/remote-config/remote-config.mjs} +0 -0
- /package/{esm2015/remote-config/rxfire.js → esm2022/remote-config/rxfire.mjs} +0 -0
- /package/{esm2015/storage/angular-fire-storage.js → esm2022/storage/angular-fire-storage.mjs} +0 -0
- /package/{esm2015/storage/firebase.js → esm2022/storage/firebase.mjs} +0 -0
- /package/{esm2015/storage/public_api.js → esm2022/storage/public_api.mjs} +0 -0
- /package/{esm2015/storage/rxfire.js → esm2022/storage/rxfire.mjs} +0 -0
- /package/{esm2015/storage/storage.js → esm2022/storage/storage.mjs} +0 -0
- /package/firestore/{angular-fire-firestore.d.ts → index.d.ts} +0 -0
- /package/firestore/lite/{angular-fire-firestore-lite.d.ts → index.d.ts} +0 -0
- /package/functions/{angular-fire-functions.d.ts → index.d.ts} +0 -0
- /package/{angular-fire.d.ts → index.d.ts} +0 -0
- /package/messaging/{angular-fire-messaging.d.ts → index.d.ts} +0 -0
- /package/performance/{angular-fire-performance.d.ts → index.d.ts} +0 -0
- /package/remote-config/{angular-fire-remote-config.d.ts → index.d.ts} +0 -0
- /package/storage/{angular-fire-storage.d.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/ng-packagr/package.schema.json",
|
|
3
3
|
"name": "@angular/fire",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "16.0.0-canary.596e208",
|
|
5
5
|
"description": "The official Angular library for Firebase.",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"builders": "./schematics/builders.json",
|
|
@@ -51,17 +51,167 @@
|
|
|
51
51
|
"node-fetch": "^2.6.1",
|
|
52
52
|
"semver": "^7.1.3",
|
|
53
53
|
"inquirer": "^8.1.1",
|
|
54
|
-
"fs-extra": "^8.0.1"
|
|
55
|
-
"file-loader": "^6.2.0"
|
|
54
|
+
"fs-extra": "^8.0.1"
|
|
56
55
|
},
|
|
57
56
|
"ng-update": {
|
|
58
57
|
"migrations": "./schematics/migration.json"
|
|
59
58
|
},
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
"module": "fesm2022/angular-fire.mjs",
|
|
60
|
+
"typings": "index.d.ts",
|
|
61
|
+
"exports": {
|
|
62
|
+
"./package.json": {
|
|
63
|
+
"default": "./package.json"
|
|
64
|
+
},
|
|
65
|
+
".": {
|
|
66
|
+
"types": "./index.d.ts",
|
|
67
|
+
"esm2022": "./esm2022/angular-fire.mjs",
|
|
68
|
+
"esm": "./esm2022/angular-fire.mjs",
|
|
69
|
+
"default": "./fesm2022/angular-fire.mjs"
|
|
70
|
+
},
|
|
71
|
+
"./analytics": {
|
|
72
|
+
"types": "./analytics/index.d.ts",
|
|
73
|
+
"esm2022": "./esm2022/analytics/angular-fire-analytics.mjs",
|
|
74
|
+
"esm": "./esm2022/analytics/angular-fire-analytics.mjs",
|
|
75
|
+
"default": "./fesm2022/angular-fire-analytics.mjs"
|
|
76
|
+
},
|
|
77
|
+
"./app": {
|
|
78
|
+
"types": "./app/index.d.ts",
|
|
79
|
+
"esm2022": "./esm2022/app/angular-fire-app.mjs",
|
|
80
|
+
"esm": "./esm2022/app/angular-fire-app.mjs",
|
|
81
|
+
"default": "./fesm2022/angular-fire-app.mjs"
|
|
82
|
+
},
|
|
83
|
+
"./app-check": {
|
|
84
|
+
"types": "./app-check/index.d.ts",
|
|
85
|
+
"esm2022": "./esm2022/app-check/angular-fire-app-check.mjs",
|
|
86
|
+
"esm": "./esm2022/app-check/angular-fire-app-check.mjs",
|
|
87
|
+
"default": "./fesm2022/angular-fire-app-check.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./auth": {
|
|
90
|
+
"types": "./auth/index.d.ts",
|
|
91
|
+
"esm2022": "./esm2022/auth/angular-fire-auth.mjs",
|
|
92
|
+
"esm": "./esm2022/auth/angular-fire-auth.mjs",
|
|
93
|
+
"default": "./fesm2022/angular-fire-auth.mjs"
|
|
94
|
+
},
|
|
95
|
+
"./auth-guard": {
|
|
96
|
+
"types": "./auth-guard/index.d.ts",
|
|
97
|
+
"esm2022": "./esm2022/auth-guard/angular-fire-auth-guard.mjs",
|
|
98
|
+
"esm": "./esm2022/auth-guard/angular-fire-auth-guard.mjs",
|
|
99
|
+
"default": "./fesm2022/angular-fire-auth-guard.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./compat": {
|
|
102
|
+
"types": "./compat/index.d.ts",
|
|
103
|
+
"esm2022": "./esm2022/compat/angular-fire-compat.mjs",
|
|
104
|
+
"esm": "./esm2022/compat/angular-fire-compat.mjs",
|
|
105
|
+
"default": "./fesm2022/angular-fire-compat.mjs"
|
|
106
|
+
},
|
|
107
|
+
"./database": {
|
|
108
|
+
"types": "./database/index.d.ts",
|
|
109
|
+
"esm2022": "./esm2022/database/angular-fire-database.mjs",
|
|
110
|
+
"esm": "./esm2022/database/angular-fire-database.mjs",
|
|
111
|
+
"default": "./fesm2022/angular-fire-database.mjs"
|
|
112
|
+
},
|
|
113
|
+
"./firestore": {
|
|
114
|
+
"types": "./firestore/index.d.ts",
|
|
115
|
+
"esm2022": "./esm2022/firestore/angular-fire-firestore.mjs",
|
|
116
|
+
"esm": "./esm2022/firestore/angular-fire-firestore.mjs",
|
|
117
|
+
"default": "./fesm2022/angular-fire-firestore.mjs"
|
|
118
|
+
},
|
|
119
|
+
"./functions": {
|
|
120
|
+
"types": "./functions/index.d.ts",
|
|
121
|
+
"esm2022": "./esm2022/functions/angular-fire-functions.mjs",
|
|
122
|
+
"esm": "./esm2022/functions/angular-fire-functions.mjs",
|
|
123
|
+
"default": "./fesm2022/angular-fire-functions.mjs"
|
|
124
|
+
},
|
|
125
|
+
"./messaging": {
|
|
126
|
+
"types": "./messaging/index.d.ts",
|
|
127
|
+
"esm2022": "./esm2022/messaging/angular-fire-messaging.mjs",
|
|
128
|
+
"esm": "./esm2022/messaging/angular-fire-messaging.mjs",
|
|
129
|
+
"default": "./fesm2022/angular-fire-messaging.mjs"
|
|
130
|
+
},
|
|
131
|
+
"./performance": {
|
|
132
|
+
"types": "./performance/index.d.ts",
|
|
133
|
+
"esm2022": "./esm2022/performance/angular-fire-performance.mjs",
|
|
134
|
+
"esm": "./esm2022/performance/angular-fire-performance.mjs",
|
|
135
|
+
"default": "./fesm2022/angular-fire-performance.mjs"
|
|
136
|
+
},
|
|
137
|
+
"./remote-config": {
|
|
138
|
+
"types": "./remote-config/index.d.ts",
|
|
139
|
+
"esm2022": "./esm2022/remote-config/angular-fire-remote-config.mjs",
|
|
140
|
+
"esm": "./esm2022/remote-config/angular-fire-remote-config.mjs",
|
|
141
|
+
"default": "./fesm2022/angular-fire-remote-config.mjs"
|
|
142
|
+
},
|
|
143
|
+
"./storage": {
|
|
144
|
+
"types": "./storage/index.d.ts",
|
|
145
|
+
"esm2022": "./esm2022/storage/angular-fire-storage.mjs",
|
|
146
|
+
"esm": "./esm2022/storage/angular-fire-storage.mjs",
|
|
147
|
+
"default": "./fesm2022/angular-fire-storage.mjs"
|
|
148
|
+
},
|
|
149
|
+
"./compat/analytics": {
|
|
150
|
+
"types": "./compat/analytics/index.d.ts",
|
|
151
|
+
"esm2022": "./esm2022/compat/analytics/angular-fire-compat-analytics.mjs",
|
|
152
|
+
"esm": "./esm2022/compat/analytics/angular-fire-compat-analytics.mjs",
|
|
153
|
+
"default": "./fesm2022/angular-fire-compat-analytics.mjs"
|
|
154
|
+
},
|
|
155
|
+
"./compat/auth": {
|
|
156
|
+
"types": "./compat/auth/index.d.ts",
|
|
157
|
+
"esm2022": "./esm2022/compat/auth/angular-fire-compat-auth.mjs",
|
|
158
|
+
"esm": "./esm2022/compat/auth/angular-fire-compat-auth.mjs",
|
|
159
|
+
"default": "./fesm2022/angular-fire-compat-auth.mjs"
|
|
160
|
+
},
|
|
161
|
+
"./compat/auth-guard": {
|
|
162
|
+
"types": "./compat/auth-guard/index.d.ts",
|
|
163
|
+
"esm2022": "./esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs",
|
|
164
|
+
"esm": "./esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs",
|
|
165
|
+
"default": "./fesm2022/angular-fire-compat-auth-guard.mjs"
|
|
166
|
+
},
|
|
167
|
+
"./compat/database": {
|
|
168
|
+
"types": "./compat/database/index.d.ts",
|
|
169
|
+
"esm2022": "./esm2022/compat/database/angular-fire-compat-database.mjs",
|
|
170
|
+
"esm": "./esm2022/compat/database/angular-fire-compat-database.mjs",
|
|
171
|
+
"default": "./fesm2022/angular-fire-compat-database.mjs"
|
|
172
|
+
},
|
|
173
|
+
"./compat/firestore": {
|
|
174
|
+
"types": "./compat/firestore/index.d.ts",
|
|
175
|
+
"esm2022": "./esm2022/compat/firestore/angular-fire-compat-firestore.mjs",
|
|
176
|
+
"esm": "./esm2022/compat/firestore/angular-fire-compat-firestore.mjs",
|
|
177
|
+
"default": "./fesm2022/angular-fire-compat-firestore.mjs"
|
|
178
|
+
},
|
|
179
|
+
"./compat/functions": {
|
|
180
|
+
"types": "./compat/functions/index.d.ts",
|
|
181
|
+
"esm2022": "./esm2022/compat/functions/angular-fire-compat-functions.mjs",
|
|
182
|
+
"esm": "./esm2022/compat/functions/angular-fire-compat-functions.mjs",
|
|
183
|
+
"default": "./fesm2022/angular-fire-compat-functions.mjs"
|
|
184
|
+
},
|
|
185
|
+
"./compat/messaging": {
|
|
186
|
+
"types": "./compat/messaging/index.d.ts",
|
|
187
|
+
"esm2022": "./esm2022/compat/messaging/angular-fire-compat-messaging.mjs",
|
|
188
|
+
"esm": "./esm2022/compat/messaging/angular-fire-compat-messaging.mjs",
|
|
189
|
+
"default": "./fesm2022/angular-fire-compat-messaging.mjs"
|
|
190
|
+
},
|
|
191
|
+
"./compat/performance": {
|
|
192
|
+
"types": "./compat/performance/index.d.ts",
|
|
193
|
+
"esm2022": "./esm2022/compat/performance/angular-fire-compat-performance.mjs",
|
|
194
|
+
"esm": "./esm2022/compat/performance/angular-fire-compat-performance.mjs",
|
|
195
|
+
"default": "./fesm2022/angular-fire-compat-performance.mjs"
|
|
196
|
+
},
|
|
197
|
+
"./compat/remote-config": {
|
|
198
|
+
"types": "./compat/remote-config/index.d.ts",
|
|
199
|
+
"esm2022": "./esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs",
|
|
200
|
+
"esm": "./esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs",
|
|
201
|
+
"default": "./fesm2022/angular-fire-compat-remote-config.mjs"
|
|
202
|
+
},
|
|
203
|
+
"./compat/storage": {
|
|
204
|
+
"types": "./compat/storage/index.d.ts",
|
|
205
|
+
"esm2022": "./esm2022/compat/storage/angular-fire-compat-storage.mjs",
|
|
206
|
+
"esm": "./esm2022/compat/storage/angular-fire-compat-storage.mjs",
|
|
207
|
+
"default": "./fesm2022/angular-fire-compat-storage.mjs"
|
|
208
|
+
},
|
|
209
|
+
"./firestore/lite": {
|
|
210
|
+
"types": "./firestore/lite/index.d.ts",
|
|
211
|
+
"esm2022": "./esm2022/firestore/lite/angular-fire-firestore-lite.mjs",
|
|
212
|
+
"esm": "./esm2022/firestore/lite/angular-fire-firestore-lite.mjs",
|
|
213
|
+
"default": "./fesm2022/angular-fire-firestore-lite.mjs"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
66
216
|
"sideEffects": false
|
|
67
217
|
}
|
package/publish.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm publish . --tag canary
|
package/schematics/add/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const common_1 = require("../common");
|
|
|
5
5
|
const versions_json_1 = require("../versions.json");
|
|
6
6
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
7
7
|
const ngAdd = (options) => (tree, context) => {
|
|
8
|
-
common_1.addDependencies(tree, versions_json_1.peerDependencies, context);
|
|
8
|
+
(0, common_1.addDependencies)(tree, versions_json_1.peerDependencies, context);
|
|
9
9
|
const npmInstallTaskId = context.addTask(new tasks_1.NodePackageInstallTask());
|
|
10
10
|
context.addTask(new tasks_1.RunSchematicTask('ng-add-setup-project', options), [npmInstallTaskId]);
|
|
11
11
|
return tree;
|
package/schematics/common.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -45,7 +49,7 @@ function generateFirebaseRcTarget(firebaseProject, firebaseHostingSite, project)
|
|
|
45
49
|
return {
|
|
46
50
|
hosting: {
|
|
47
51
|
[project]: [
|
|
48
|
-
(_a = exports.shortSiteName(firebaseHostingSite)) !== null && _a !== void 0 ? _a : firebaseProject
|
|
52
|
+
(_a = (0, exports.shortSiteName)(firebaseHostingSite)) !== null && _a !== void 0 ? _a : firebaseProject
|
|
49
53
|
]
|
|
50
54
|
}
|
|
51
55
|
};
|
|
@@ -57,7 +61,7 @@ function generateFirebaseRc(tree, path, firebaseProject, firebaseHostingSite, pr
|
|
|
57
61
|
firebaseRc.targets = firebaseRc.targets || {};
|
|
58
62
|
firebaseRc.targets[firebaseProject] = generateFirebaseRcTarget(firebaseProject, firebaseHostingSite, project);
|
|
59
63
|
firebaseRc.projects = { default: firebaseProject };
|
|
60
|
-
exports.overwriteIfExists(tree, path, exports.stringifyFormatted(firebaseRc));
|
|
64
|
+
(0, exports.overwriteIfExists)(tree, path, (0, exports.stringifyFormatted)(firebaseRc));
|
|
61
65
|
}
|
|
62
66
|
exports.generateFirebaseRc = generateFirebaseRc;
|
|
63
67
|
function safeReadJSON(path, tree) {
|
|
@@ -97,6 +101,6 @@ const addDependencies = (host, deps, context) => {
|
|
|
97
101
|
existingDeps[depName] = dep.version;
|
|
98
102
|
}
|
|
99
103
|
});
|
|
100
|
-
exports.overwriteIfExists(host, 'package.json', exports.stringifyFormatted(packageJson));
|
|
104
|
+
(0, exports.overwriteIfExists)(host, 'package.json', (0, exports.stringifyFormatted)(packageJson));
|
|
101
105
|
};
|
|
102
106
|
exports.addDependencies = addDependencies;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -58,7 +62,7 @@ const DEFAULT_CLOUD_RUN_OPTIONS = {
|
|
|
58
62
|
const spawnAsync = (command, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
63
|
return new Promise((resolve, reject) => {
|
|
60
64
|
const [spawnCommand, ...args] = command.split(/\s+/);
|
|
61
|
-
const spawnProcess = child_process_1.spawn(spawnCommand, args, options);
|
|
65
|
+
const spawnProcess = (0, child_process_1.spawn)(spawnCommand, args, options);
|
|
62
66
|
const chunks = [];
|
|
63
67
|
const errorChunks = [];
|
|
64
68
|
spawnProcess.stdout.on('data', (data) => {
|
|
@@ -83,8 +87,8 @@ const spawnAsync = (command, options) => __awaiter(void 0, void 0, void 0, funct
|
|
|
83
87
|
});
|
|
84
88
|
const escapeRegExp = (str) => str.replace(/[\-\[\]\/{}()*+?.\\^$|]/g, '\\$&');
|
|
85
89
|
const moveSync = (src, dest) => {
|
|
86
|
-
fs_extra_1.copySync(src, dest);
|
|
87
|
-
fs_extra_1.removeSync(src);
|
|
90
|
+
(0, fs_extra_1.copySync)(src, dest);
|
|
91
|
+
(0, fs_extra_1.removeSync)(src);
|
|
88
92
|
};
|
|
89
93
|
const deployToHosting = (firebaseTools, context, workspaceRoot, options, firebaseToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
90
94
|
var _a;
|
|
@@ -124,7 +128,7 @@ const defaultFsHost = {
|
|
|
124
128
|
existsSync: fs_1.existsSync,
|
|
125
129
|
};
|
|
126
130
|
const findPackageVersion = (packageManager, name) => {
|
|
127
|
-
const match = child_process_1.execSync(`${packageManager} list ${name}`).toString().match(`[^|\s]${escapeRegExp(name)}[@| ][^\s]+(\s.+)?$`);
|
|
131
|
+
const match = (0, child_process_1.execSync)(`${packageManager} list ${name}`).toString().match(`[^|\s]${escapeRegExp(name)}[@| ][^\s]+(\s.+)?$`);
|
|
128
132
|
return match ? match[0].split(new RegExp(`${escapeRegExp(name)}[@| ]`))[1].split(/\s/)[0] : null;
|
|
129
133
|
};
|
|
130
134
|
const getPackageJson = (context, workspaceRoot, options, main) => {
|
|
@@ -137,8 +141,8 @@ const getPackageJson = (context, workspaceRoot, options, main) => {
|
|
|
137
141
|
(dev ? devDependencies : dependencies)[name] = version;
|
|
138
142
|
});
|
|
139
143
|
}
|
|
140
|
-
if (fs_1.existsSync(path_1.join(workspaceRoot, 'angular.json'))) {
|
|
141
|
-
const angularJson = JSON.parse(fs_1.readFileSync(path_1.join(workspaceRoot, 'angular.json')).toString());
|
|
144
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(workspaceRoot, 'angular.json'))) {
|
|
145
|
+
const angularJson = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(workspaceRoot, 'angular.json')).toString());
|
|
142
146
|
const packageManager = (_b = (_a = angularJson.cli) === null || _a === void 0 ? void 0 : _a.packageManager) !== null && _b !== void 0 ? _b : 'npm';
|
|
143
147
|
const server = angularJson.projects[context.target.project].architect.server;
|
|
144
148
|
const externalDependencies = ((_c = server === null || server === void 0 ? void 0 : server.options) === null || _c === void 0 ? void 0 : _c.externalDependencies) || [];
|
|
@@ -152,32 +156,32 @@ const getPackageJson = (context, workspaceRoot, options, main) => {
|
|
|
152
156
|
});
|
|
153
157
|
}
|
|
154
158
|
else {
|
|
155
|
-
if (fs_1.existsSync(path_1.join(workspaceRoot, 'package.json'))) {
|
|
156
|
-
const packageJson = JSON.parse(fs_1.readFileSync(path_1.join(workspaceRoot, 'package.json')).toString());
|
|
159
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(workspaceRoot, 'package.json'))) {
|
|
160
|
+
const packageJson = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(workspaceRoot, 'package.json')).toString());
|
|
157
161
|
Object.keys(packageJson.dependencies).forEach((dependency) => {
|
|
158
162
|
dependencies[dependency] = packageJson.dependencies[dependency];
|
|
159
163
|
});
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
166
|
}
|
|
163
|
-
return functions_templates_1.defaultPackage(dependencies, devDependencies, options, main);
|
|
167
|
+
return (0, functions_templates_1.defaultPackage)(dependencies, devDependencies, options, main);
|
|
164
168
|
};
|
|
165
169
|
const deployToFunction = (firebaseTools, context, workspaceRoot, staticBuildTarget, serverBuildTarget, options, firebaseToken, fsHost = defaultFsHost) => __awaiter(void 0, void 0, void 0, function* () {
|
|
166
170
|
var _b;
|
|
167
|
-
const staticBuildOptions = yield context.getTargetOptions(architect_1.targetFromTargetString(staticBuildTarget.name));
|
|
171
|
+
const staticBuildOptions = yield context.getTargetOptions((0, architect_1.targetFromTargetString)(staticBuildTarget.name));
|
|
168
172
|
if (!staticBuildOptions.outputPath || typeof staticBuildOptions.outputPath !== 'string') {
|
|
169
173
|
throw new Error(`Cannot read the output path option of the Angular project '${staticBuildTarget.name}' in angular.json`);
|
|
170
174
|
}
|
|
171
|
-
const serverBuildOptions = yield context.getTargetOptions(architect_1.targetFromTargetString(serverBuildTarget.name));
|
|
175
|
+
const serverBuildOptions = yield context.getTargetOptions((0, architect_1.targetFromTargetString)(serverBuildTarget.name));
|
|
172
176
|
if (!serverBuildOptions.outputPath || typeof serverBuildOptions.outputPath !== 'string') {
|
|
173
177
|
throw new Error(`Cannot read the output path option of the Angular project '${serverBuildTarget.name}' in angular.json`);
|
|
174
178
|
}
|
|
175
|
-
const staticOut = path_1.join(workspaceRoot, staticBuildOptions.outputPath);
|
|
176
|
-
const serverOut = path_1.join(workspaceRoot, serverBuildOptions.outputPath);
|
|
177
|
-
const functionsOut = options.outputPath ? path_1.join(workspaceRoot, options.outputPath) : path_1.dirname(serverOut);
|
|
179
|
+
const staticOut = (0, path_1.join)(workspaceRoot, staticBuildOptions.outputPath);
|
|
180
|
+
const serverOut = (0, path_1.join)(workspaceRoot, serverBuildOptions.outputPath);
|
|
181
|
+
const functionsOut = options.outputPath ? (0, path_1.join)(workspaceRoot, options.outputPath) : (0, path_1.dirname)(serverOut);
|
|
178
182
|
const functionName = options.functionName || functions_templates_1.DEFAULT_FUNCTION_NAME;
|
|
179
|
-
const newStaticOut = path_1.join(functionsOut, staticBuildOptions.outputPath);
|
|
180
|
-
const newServerOut = path_1.join(functionsOut, serverBuildOptions.outputPath);
|
|
183
|
+
const newStaticOut = (0, path_1.join)(functionsOut, staticBuildOptions.outputPath);
|
|
184
|
+
const newServerOut = (0, path_1.join)(functionsOut, serverBuildOptions.outputPath);
|
|
181
185
|
if (options.outputPath) {
|
|
182
186
|
fsHost.removeSync(functionsOut);
|
|
183
187
|
fsHost.copySync(staticOut, newStaticOut);
|
|
@@ -189,26 +193,26 @@ const deployToFunction = (firebaseTools, context, workspaceRoot, staticBuildTarg
|
|
|
189
193
|
}
|
|
190
194
|
const packageJson = getPackageJson(context, workspaceRoot, options);
|
|
191
195
|
const nodeVersion = packageJson.engines.node;
|
|
192
|
-
if (!semver_1.satisfies(process.versions.node, nodeVersion.toString())) {
|
|
196
|
+
if (!(0, semver_1.satisfies)(process.versions.node, nodeVersion.toString())) {
|
|
193
197
|
context.logger.warn(`⚠️ Your Node.js version (${process.versions.node}) does not match the Firebase Functions runtime (${nodeVersion}).`);
|
|
194
198
|
}
|
|
195
|
-
const functionsPackageJsonPath = path_1.join(functionsOut, 'package.json');
|
|
199
|
+
const functionsPackageJsonPath = (0, path_1.join)(functionsOut, 'package.json');
|
|
196
200
|
fsHost.writeFileSync(functionsPackageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
197
201
|
if (options.CF3v2) {
|
|
198
|
-
fsHost.writeFileSync(path_1.join(functionsOut, 'index.js'), functions_templates_1.functionGen2(serverBuildOptions.outputPath, options, functionName));
|
|
202
|
+
fsHost.writeFileSync((0, path_1.join)(functionsOut, 'index.js'), (0, functions_templates_1.functionGen2)(serverBuildOptions.outputPath, options, functionName));
|
|
199
203
|
}
|
|
200
204
|
else {
|
|
201
|
-
fsHost.writeFileSync(path_1.join(functionsOut, 'index.js'), functions_templates_1.defaultFunction(serverBuildOptions.outputPath, options, functionName));
|
|
205
|
+
fsHost.writeFileSync((0, path_1.join)(functionsOut, 'index.js'), (0, functions_templates_1.defaultFunction)(serverBuildOptions.outputPath, options, functionName));
|
|
202
206
|
}
|
|
203
207
|
if (!options.prerender) {
|
|
204
208
|
try {
|
|
205
|
-
fsHost.renameSync(path_1.join(newStaticOut, 'index.html'), path_1.join(newStaticOut, 'index.original.html'));
|
|
209
|
+
fsHost.renameSync((0, path_1.join)(newStaticOut, 'index.html'), (0, path_1.join)(newStaticOut, 'index.original.html'));
|
|
206
210
|
}
|
|
207
211
|
catch (e) { }
|
|
208
212
|
}
|
|
209
213
|
const siteTarget = (_b = options.target) !== null && _b !== void 0 ? _b : context.target.project;
|
|
210
214
|
if (fsHost.existsSync(functionsPackageJsonPath)) {
|
|
211
|
-
child_process_1.execSync(`npm --prefix ${functionsOut} install`);
|
|
215
|
+
(0, child_process_1.execSync)(`npm --prefix ${functionsOut} install`);
|
|
212
216
|
}
|
|
213
217
|
else {
|
|
214
218
|
console.error(`No package.json exists at ${functionsOut}`);
|
|
@@ -241,33 +245,33 @@ const deployToFunction = (firebaseTools, context, workspaceRoot, staticBuildTarg
|
|
|
241
245
|
exports.deployToFunction = deployToFunction;
|
|
242
246
|
const deployToCloudRun = (firebaseTools, context, workspaceRoot, staticBuildTarget, serverBuildTarget, options, firebaseToken, fsHost = defaultFsHost) => __awaiter(void 0, void 0, void 0, function* () {
|
|
243
247
|
var _c;
|
|
244
|
-
const staticBuildOptions = yield context.getTargetOptions(architect_1.targetFromTargetString(staticBuildTarget.name));
|
|
248
|
+
const staticBuildOptions = yield context.getTargetOptions((0, architect_1.targetFromTargetString)(staticBuildTarget.name));
|
|
245
249
|
if (!staticBuildOptions.outputPath || typeof staticBuildOptions.outputPath !== 'string') {
|
|
246
250
|
throw new Error(`Cannot read the output path option of the Angular project '${staticBuildTarget.name}' in angular.json`);
|
|
247
251
|
}
|
|
248
|
-
const serverBuildOptions = yield context.getTargetOptions(architect_1.targetFromTargetString(serverBuildTarget.name));
|
|
252
|
+
const serverBuildOptions = yield context.getTargetOptions((0, architect_1.targetFromTargetString)(serverBuildTarget.name));
|
|
249
253
|
if (!serverBuildOptions.outputPath || typeof serverBuildOptions.outputPath !== 'string') {
|
|
250
254
|
throw new Error(`Cannot read the output path option of the Angular project '${serverBuildTarget.name}' in angular.json`);
|
|
251
255
|
}
|
|
252
|
-
const staticOut = path_1.join(workspaceRoot, staticBuildOptions.outputPath);
|
|
253
|
-
const serverOut = path_1.join(workspaceRoot, serverBuildOptions.outputPath);
|
|
254
|
-
const cloudRunOut = options.outputPath ? path_1.join(workspaceRoot, options.outputPath) : path_1.join(path_1.dirname(serverOut), 'run');
|
|
256
|
+
const staticOut = (0, path_1.join)(workspaceRoot, staticBuildOptions.outputPath);
|
|
257
|
+
const serverOut = (0, path_1.join)(workspaceRoot, serverBuildOptions.outputPath);
|
|
258
|
+
const cloudRunOut = options.outputPath ? (0, path_1.join)(workspaceRoot, options.outputPath) : (0, path_1.join)((0, path_1.dirname)(serverOut), 'run');
|
|
255
259
|
const serviceId = options.functionName || functions_templates_1.DEFAULT_FUNCTION_NAME;
|
|
256
|
-
const newStaticOut = path_1.join(cloudRunOut, staticBuildOptions.outputPath);
|
|
257
|
-
const newServerOut = path_1.join(cloudRunOut, serverBuildOptions.outputPath);
|
|
260
|
+
const newStaticOut = (0, path_1.join)(cloudRunOut, staticBuildOptions.outputPath);
|
|
261
|
+
const newServerOut = (0, path_1.join)(cloudRunOut, serverBuildOptions.outputPath);
|
|
258
262
|
fsHost.removeSync(cloudRunOut);
|
|
259
263
|
fsHost.copySync(staticOut, newStaticOut);
|
|
260
264
|
fsHost.copySync(serverOut, newServerOut);
|
|
261
|
-
const packageJson = getPackageJson(context, workspaceRoot, options, path_1.join(serverBuildOptions.outputPath, 'main.js'));
|
|
265
|
+
const packageJson = getPackageJson(context, workspaceRoot, options, (0, path_1.join)(serverBuildOptions.outputPath, 'main.js'));
|
|
262
266
|
const nodeVersion = packageJson.engines.node;
|
|
263
|
-
if (!semver_1.satisfies(process.versions.node, nodeVersion.toString())) {
|
|
267
|
+
if (!(0, semver_1.satisfies)(process.versions.node, nodeVersion.toString())) {
|
|
264
268
|
context.logger.warn(`⚠️ Your Node.js version (${process.versions.node}) does not match the Cloud Run runtime (${nodeVersion}).`);
|
|
265
269
|
}
|
|
266
|
-
fsHost.writeFileSync(path_1.join(cloudRunOut, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
267
|
-
fsHost.writeFileSync(path_1.join(cloudRunOut, 'Dockerfile'), functions_templates_1.dockerfile(options));
|
|
270
|
+
fsHost.writeFileSync((0, path_1.join)(cloudRunOut, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
271
|
+
fsHost.writeFileSync((0, path_1.join)(cloudRunOut, 'Dockerfile'), (0, functions_templates_1.dockerfile)(options));
|
|
268
272
|
if (!options.prerender) {
|
|
269
273
|
try {
|
|
270
|
-
fsHost.renameSync(path_1.join(newStaticOut, 'index.html'), path_1.join(newStaticOut, 'index.original.html'));
|
|
274
|
+
fsHost.renameSync((0, path_1.join)(newStaticOut, 'index.html'), (0, path_1.join)(newStaticOut, 'index.original.html'));
|
|
271
275
|
}
|
|
272
276
|
catch (e) { }
|
|
273
277
|
}
|
|
@@ -315,35 +319,31 @@ const deployToCloudRun = (firebaseTools, context, workspaceRoot, staticBuildTarg
|
|
|
315
319
|
exports.deployToCloudRun = deployToCloudRun;
|
|
316
320
|
function deploy(firebaseTools, context, staticBuildTarget, serverBuildTarget, prerenderBuildTarget, firebaseProject, options, firebaseToken) {
|
|
317
321
|
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
-
if (!firebaseToken) {
|
|
322
|
+
if (!firebaseToken && !process.env.GOOGLE_APPLICATION_CREDENTIALS) {
|
|
319
323
|
yield firebaseTools.login();
|
|
320
324
|
const user = yield firebaseTools.login({ projectRoot: context.workspaceRoot });
|
|
321
325
|
console.log(`Logged into Firebase as ${user.email}.`);
|
|
322
326
|
}
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
327
|
+
if (!firebaseToken && process.env.GOOGLE_APPLICATION_CREDENTIALS) {
|
|
328
|
+
yield spawnAsync(`gcloud auth activate-service-account --key-file ${process.env.GOOGLE_APPLICATION_CREDENTIALS}`);
|
|
329
|
+
console.log(`Using Google Application Credentials.`);
|
|
330
|
+
}
|
|
331
|
+
if (prerenderBuildTarget) {
|
|
332
|
+
const run = yield context.scheduleTarget((0, architect_1.targetFromTargetString)(prerenderBuildTarget.name), prerenderBuildTarget.options);
|
|
333
|
+
yield run.result;
|
|
328
334
|
}
|
|
329
335
|
else {
|
|
330
|
-
if (
|
|
331
|
-
|
|
332
|
-
yield run.result;
|
|
336
|
+
if (!context.target) {
|
|
337
|
+
throw new Error('Cannot execute the build target');
|
|
333
338
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
context.scheduleTarget(architect_1.targetFromTargetString(staticBuildTarget.name), staticBuildTarget.options).then(run => run.result)
|
|
341
|
-
];
|
|
342
|
-
if (serverBuildTarget) {
|
|
343
|
-
builders.push(context.scheduleTarget(architect_1.targetFromTargetString(serverBuildTarget.name), serverBuildTarget.options).then(run => run.result));
|
|
344
|
-
}
|
|
345
|
-
yield Promise.all(builders);
|
|
339
|
+
context.logger.info(`📦 Building "${context.target.project}"`);
|
|
340
|
+
const builders = [
|
|
341
|
+
context.scheduleTarget((0, architect_1.targetFromTargetString)(staticBuildTarget.name), staticBuildTarget.options).then(run => run.result)
|
|
342
|
+
];
|
|
343
|
+
if (serverBuildTarget) {
|
|
344
|
+
builders.push(context.scheduleTarget((0, architect_1.targetFromTargetString)(serverBuildTarget.name), serverBuildTarget.options).then(run => run.result));
|
|
346
345
|
}
|
|
346
|
+
yield Promise.all(builders);
|
|
347
347
|
}
|
|
348
348
|
try {
|
|
349
349
|
yield firebaseTools.use(firebaseProject, {
|
|
@@ -364,7 +364,7 @@ function deploy(firebaseTools, context, staticBuildTarget, serverBuildTarget, pr
|
|
|
364
364
|
if (text === null || text === void 0 ? void 0 : text.replace) {
|
|
365
365
|
const plainText = text.replace(/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]/g, '');
|
|
366
366
|
if ((emulator === null || emulator === void 0 ? void 0 : emulator.name) === 'hosting' && plainText.startsWith('Local server: ')) {
|
|
367
|
-
open_1.default(plainText.split(': ')[1]);
|
|
367
|
+
(0, open_1.default)(plainText.split(': ')[1]);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
return [info.message, ...(info[triple_beam_1.default.SPLAT] || [])]
|
|
@@ -375,10 +375,10 @@ function deploy(firebaseTools, context, staticBuildTarget, serverBuildTarget, pr
|
|
|
375
375
|
firebaseTools.logger.logger.add(logger);
|
|
376
376
|
if ((!options.version || options.version < 2) && serverBuildTarget) {
|
|
377
377
|
if (options.ssr === 'cloud-run') {
|
|
378
|
-
yield exports.deployToCloudRun(firebaseTools, context, context.workspaceRoot, staticBuildTarget, serverBuildTarget, options, firebaseToken);
|
|
378
|
+
yield (0, exports.deployToCloudRun)(firebaseTools, context, context.workspaceRoot, staticBuildTarget, serverBuildTarget, options, firebaseToken);
|
|
379
379
|
}
|
|
380
380
|
else {
|
|
381
|
-
yield exports.deployToFunction(firebaseTools, context, context.workspaceRoot, staticBuildTarget, serverBuildTarget, options, firebaseToken);
|
|
381
|
+
yield (0, exports.deployToFunction)(firebaseTools, context, context.workspaceRoot, staticBuildTarget, serverBuildTarget, options, firebaseToken);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
else {
|
|
@@ -16,21 +16,21 @@ const architect_1 = require("@angular-devkit/architect");
|
|
|
16
16
|
const actions_1 = __importDefault(require("./actions"));
|
|
17
17
|
const utils_1 = require("../utils");
|
|
18
18
|
const firebaseTools_1 = require("../firebaseTools");
|
|
19
|
-
exports.default = architect_1.createBuilder((options, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
exports.default = (0, architect_1.createBuilder)((options, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
20
|
if (!context.target) {
|
|
21
21
|
throw new Error('Cannot deploy the application without a target');
|
|
22
22
|
}
|
|
23
|
-
const [defaultFirebaseProject, defulatFirebaseHostingSite] = utils_1.getFirebaseProjectNameFromFs(context.workspaceRoot, context.target.project);
|
|
23
|
+
const [defaultFirebaseProject, defulatFirebaseHostingSite] = (0, utils_1.getFirebaseProjectNameFromFs)(context.workspaceRoot, context.target.project);
|
|
24
24
|
const firebaseProject = options.firebaseProject || defaultFirebaseProject;
|
|
25
25
|
if (!firebaseProject) {
|
|
26
|
-
throw new Error('Cannot
|
|
26
|
+
throw new Error('Cannot determine the Firebase Project from your angular.json or .firebaserc');
|
|
27
27
|
}
|
|
28
28
|
if (firebaseProject !== defaultFirebaseProject) {
|
|
29
29
|
throw new Error('The Firebase Project specified by your angular.json or .firebaserc is in conflict');
|
|
30
30
|
}
|
|
31
31
|
const firebaseHostingSite = options.firebaseHostingSite || defulatFirebaseHostingSite;
|
|
32
32
|
if (!firebaseHostingSite) {
|
|
33
|
-
throw new Error(`Cannot
|
|
33
|
+
throw new Error(`Cannot determine the Firebase Hosting Site from your angular.json or .firebaserc`);
|
|
34
34
|
}
|
|
35
35
|
if (firebaseHostingSite !== defulatFirebaseHostingSite) {
|
|
36
36
|
throw new Error('The Firebase Hosting Site specified by your angular.json or .firebaserc is in conflict');
|
|
@@ -50,7 +50,7 @@ exports.default = architect_1.createBuilder((options, context) => __awaiter(void
|
|
|
50
50
|
}
|
|
51
51
|
try {
|
|
52
52
|
process.env.FIREBASE_DEPLOY_AGENT = 'angularfire';
|
|
53
|
-
yield actions_1.default((yield firebaseTools_1.getFirebaseTools()), context, staticBuildTarget, serverBuildTarget, prerenderBuildTarget, firebaseProject, options, process.env.FIREBASE_TOKEN);
|
|
53
|
+
yield (0, actions_1.default)((yield (0, firebaseTools_1.getFirebaseTools)()), context, staticBuildTarget, serverBuildTarget, prerenderBuildTarget, firebaseProject, options, process.env.FIREBASE_TOKEN);
|
|
54
54
|
}
|
|
55
55
|
catch (e) {
|
|
56
56
|
console.error('Error when trying to deploy: ');
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -36,22 +40,22 @@ const getFirebaseTools = () => globalThis.firebaseTools ?
|
|
|
36
40
|
}
|
|
37
41
|
catch (e) {
|
|
38
42
|
try {
|
|
39
|
-
const root = child_process_1.execSync('npm root --location=global').toString().trim();
|
|
43
|
+
const root = (0, child_process_1.execSync)('npm root --location=global').toString().trim();
|
|
40
44
|
resolve(require(`${root}/firebase-tools`));
|
|
41
45
|
}
|
|
42
46
|
catch (e) {
|
|
43
|
-
const spinner = ora_1.default({
|
|
47
|
+
const spinner = (0, ora_1.default)({
|
|
44
48
|
text: `Installing firebase-tools...`,
|
|
45
49
|
discardStdin: process.platform !== 'win32',
|
|
46
50
|
}).start();
|
|
47
|
-
child_process_1.spawn('npm', ['i', '--location=global', 'firebase-tools'], {
|
|
51
|
+
(0, child_process_1.spawn)('npm', ['i', '--location=global', 'firebase-tools'], {
|
|
48
52
|
stdio: 'pipe',
|
|
49
53
|
shell: true,
|
|
50
54
|
}).on('close', (code) => {
|
|
51
55
|
if (code === 0) {
|
|
52
56
|
spinner.succeed('firebase-tools installed globally.');
|
|
53
57
|
spinner.stop();
|
|
54
|
-
const root = child_process_1.execSync('npm root -g').toString().trim();
|
|
58
|
+
const root = (0, child_process_1.execSync)('npm root -g').toString().trim();
|
|
55
59
|
resolve(require(`${root}/firebase-tools`));
|
|
56
60
|
}
|
|
57
61
|
else {
|