@angular/fire 17.0.0-canary.05e9da2 → 17.0.0-canary.4d322f9
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/package.json +1 -1
- package/schematics/setup/index.js +1 -1
- package/schematics/utils.js +10 -10
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": "17.0.0-canary.
|
|
4
|
+
"version": "17.0.0-canary.4d322f9",
|
|
5
5
|
"description": "Angular + Firebase = ❤️",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"builders": "./schematics/builders.json",
|
|
@@ -46,7 +46,7 @@ const setupProject = (tree, context, features, config) => {
|
|
|
46
46
|
const featuresToImport = features.filter(it => it !== 0);
|
|
47
47
|
if (featuresToImport.length > 0) {
|
|
48
48
|
return (0, schematics_1.chain)([
|
|
49
|
-
(0, utility_1.
|
|
49
|
+
(0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
50
50
|
external('initializeApp', '@angular/fire/app');
|
|
51
51
|
return code `${external('provideFirebaseApp', '@angular/fire/app')}(() => initializeApp(${JSON.stringify(config.sdkConfig)}))`;
|
|
52
52
|
}),
|
package/schematics/utils.js
CHANGED
|
@@ -144,7 +144,7 @@ function featureToRules(features, projectName) {
|
|
|
144
144
|
return features.map(feature => {
|
|
145
145
|
switch (feature) {
|
|
146
146
|
case 3:
|
|
147
|
-
return (0, utility_1.
|
|
147
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
148
148
|
external('initializeAppCheck', '@angular/fire/app-check');
|
|
149
149
|
external('ReCaptchaEnterpriseProvider', '@angular/fire/app-check');
|
|
150
150
|
return code `${external('provideAppCheck', '@angular/fire/app-check')}(() => {
|
|
@@ -155,7 +155,7 @@ function featureToRules(features, projectName) {
|
|
|
155
155
|
});
|
|
156
156
|
case 2:
|
|
157
157
|
return (0, schematics_1.chain)([
|
|
158
|
-
(0, utility_1.
|
|
158
|
+
(0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
159
159
|
external('getAnalytics', '@angular/fire/analytics');
|
|
160
160
|
return code `${external('provideAnalytics', '@angular/fire/analytics')}(() => getAnalytics())`;
|
|
161
161
|
}),
|
|
@@ -169,42 +169,42 @@ function featureToRules(features, projectName) {
|
|
|
169
169
|
] : []),
|
|
170
170
|
]);
|
|
171
171
|
case 1:
|
|
172
|
-
return (0, utility_1.
|
|
172
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
173
173
|
external('getAuth', '@angular/fire/auth');
|
|
174
174
|
return code `${external('provideAuth', '@angular/fire/auth')}(() => getAuth())`;
|
|
175
175
|
});
|
|
176
176
|
case 4:
|
|
177
|
-
return (0, utility_1.
|
|
177
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
178
178
|
external('getDatabase', '@angular/fire/database');
|
|
179
179
|
return code `${external('provideDatabase', '@angular/fire/database')}(() => getDatabase())`;
|
|
180
180
|
});
|
|
181
181
|
case 8:
|
|
182
|
-
return (0, utility_1.
|
|
182
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
183
183
|
external('getFirestore', '@angular/fire/firestore');
|
|
184
184
|
return code `${external('provideFirestore', '@angular/fire/firestore')}(() => getFirestore())`;
|
|
185
185
|
});
|
|
186
186
|
case 5:
|
|
187
|
-
return (0, utility_1.
|
|
187
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
188
188
|
external('getFunctions', '@angular/fire/functions');
|
|
189
189
|
return code `${external('provideFunctions', '@angular/fire/functions')}(() => getFunctions())`;
|
|
190
190
|
});
|
|
191
191
|
case 6:
|
|
192
|
-
return (0, utility_1.
|
|
192
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
193
193
|
external('getMessaging', '@angular/fire/messaging');
|
|
194
194
|
return code `${external('provideMessaging', '@angular/fire/messaging')}(() => getMessaging())`;
|
|
195
195
|
});
|
|
196
196
|
case 7:
|
|
197
|
-
return (0, utility_1.
|
|
197
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
198
198
|
external('getPerformance', '@angular/fire/performance');
|
|
199
199
|
return code `${external('providePerformance', '@angular/fire/performance')}(() => getPerformance())`;
|
|
200
200
|
});
|
|
201
201
|
case 9:
|
|
202
|
-
return (0, utility_1.
|
|
202
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
203
203
|
external('getStorage', '@angular/fire/storage');
|
|
204
204
|
return code `${external('provideStorage', '@angular/fire/storage')}(() => getStorage())`;
|
|
205
205
|
});
|
|
206
206
|
case 10:
|
|
207
|
-
return (0, utility_1.
|
|
207
|
+
return (0, utility_1.addRootImport)(projectName, ({ code, external }) => {
|
|
208
208
|
external('getRemoteConfig', '@angular/fire/remote-config');
|
|
209
209
|
return code `${external('provideRemoteConfig', '@angular/fire/remote-config')}(() => getRemoteConfig())`;
|
|
210
210
|
});
|