firebase-tools 13.15.3 → 13.15.4
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.
|
@@ -73,6 +73,9 @@ exports.have = have;
|
|
|
73
73
|
async function wantDynamic(args) {
|
|
74
74
|
const instanceSpecs = [];
|
|
75
75
|
const errors = [];
|
|
76
|
+
if (!args.extensions) {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
76
79
|
for (const [instanceId, ext] of Object.entries(args.extensions)) {
|
|
77
80
|
const autoPopulatedParams = await (0, extensionsHelper_1.getFirebaseProjectParams)(args.projectId, args.emulatorMode);
|
|
78
81
|
const subbedParams = (0, extensionsHelper_1.substituteParams)(ext.params, autoPopulatedParams);
|
|
@@ -117,6 +120,9 @@ exports.wantDynamic = wantDynamic;
|
|
|
117
120
|
async function want(args) {
|
|
118
121
|
const instanceSpecs = [];
|
|
119
122
|
const errors = [];
|
|
123
|
+
if (!args.extensions) {
|
|
124
|
+
return [];
|
|
125
|
+
}
|
|
120
126
|
for (const e of Object.entries(args.extensions)) {
|
|
121
127
|
try {
|
|
122
128
|
const instanceId = e[0];
|
|
@@ -124,7 +124,7 @@ async function prepareDynamicExtensions(context, options, payload, builds) {
|
|
|
124
124
|
projectNumber,
|
|
125
125
|
aliases,
|
|
126
126
|
projectDir,
|
|
127
|
-
extensions: options.config.get("extensions"),
|
|
127
|
+
extensions: options.config.get("extensions", {}),
|
|
128
128
|
});
|
|
129
129
|
noDeleteExtensions = noDeleteExtensions.concat(firebaseJsonWant);
|
|
130
130
|
if (hasNonDeployingCodebases(options)) {
|
|
@@ -164,7 +164,7 @@ async function prepare(context, options, payload) {
|
|
|
164
164
|
projectNumber,
|
|
165
165
|
aliases,
|
|
166
166
|
projectDir,
|
|
167
|
-
extensions: options.config.get("extensions"),
|
|
167
|
+
extensions: options.config.get("extensions", {}),
|
|
168
168
|
});
|
|
169
169
|
const dynamicWant = await planner.wantDynamic({
|
|
170
170
|
projectId,
|