@salesforce/source-deploy-retrieve
Advanced tools
Comparing version
@@ -63,3 +63,3 @@ "use strict"; | ||
// Aggregate array of metadata records in the org | ||
const Aggregator = []; | ||
let aggregator = []; | ||
// Folder component type names. Each array value has the form [type::folder] | ||
@@ -96,3 +96,3 @@ const folderComponentTypes = []; | ||
} | ||
Aggregator.push(component); | ||
aggregator.push(component); | ||
if (componentType.folderContentType) { | ||
@@ -109,6 +109,8 @@ const type = this.registry.getTypeByName(componentType.folderContentType).name; | ||
if (folderComponentTypes.length) { | ||
Aggregator.push(...(await this.sendBatchedRequests(folderComponentTypes))); | ||
const folderFileProps = await this.sendBatchedRequests(folderComponentTypes); | ||
aggregator = aggregator.concat(folderFileProps); | ||
} | ||
if (childComponentTypes.size > 0) { | ||
Aggregator.push(...(await this.sendBatchedRequests(Array.from(childComponentTypes)))); | ||
const childComponentFileProps = await this.sendBatchedRequests(Array.from(childComponentTypes)); | ||
aggregator = aggregator.concat(childComponentFileProps); | ||
} | ||
@@ -118,7 +120,8 @@ // If we need to query the list of StandardValueSets (i.e., it's included in this.mdTypeNames) | ||
if (shouldQueryStandardValueSets) { | ||
Aggregator.push(...(await this.sendBatchedQueries())); | ||
const svsFileProps = await this.sendBatchedQueries(); | ||
aggregator = aggregator.concat(svsFileProps); | ||
} | ||
getLogger().debug(`https request count = ${requestCount}`); | ||
return { | ||
components: Aggregator.filter(componentFilter).map((component) => ({ | ||
components: aggregator.filter(componentFilter).map((component) => ({ | ||
fullName: (0, ts_types_1.ensureString)(component.fullName, `Component fullName was not set for ${component.fileName ?? '<missing filename>'}`), | ||
@@ -125,0 +128,0 @@ type: this.registry.getTypeByName((0, ts_types_1.ensureString)(component.type, `Component type was not set for ${component.fullName ?? '<missing fullname>'} (${component.fileName ?? '<missing filename>'})`)), |
{ | ||
"name": "@salesforce/source-deploy-retrieve", | ||
"version": "12.16.7", | ||
"version": "12.16.8", | ||
"description": "JavaScript library to run Salesforce metadata deploys and retrieves", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
Sorry, the diff of this file is not supported yet
1189628
0.02%17547
0.02%