@salesforce/source-deploy-retrieve
Advanced tools
Comparing version
@@ -43,2 +43,4 @@ import { MetadataApiDeploy, MetadataApiDeployOptions } from '../client/metadataApiDeploy'; | ||
private components; | ||
private forDeploy; | ||
private forRetrieve; | ||
private destructiveComponents; | ||
@@ -45,0 +47,0 @@ private manifestComponents; |
@@ -62,2 +62,7 @@ "use strict"; | ||
components = new decodeableMap_1.DecodeableMap(); | ||
// whether this component set is being used for a deploy | ||
// @ts-expect-error this is currently not used but could be used in the future | ||
forDeploy = false; | ||
// whether this component set is being used for a retrieve | ||
forRetrieve = false; | ||
// internal component maps used by this.getObject() when building manifests. | ||
@@ -237,2 +242,3 @@ destructiveComponents = { | ||
} | ||
this.forDeploy = true; | ||
if (typeof options.usernameOrConnection !== 'string' && | ||
@@ -266,2 +272,3 @@ this.apiVersion && | ||
}); | ||
this.forRetrieve = true; | ||
if (typeof options.usernameOrConnection !== 'string' && | ||
@@ -300,4 +307,5 @@ this.apiVersion && | ||
.map((child) => addToTypeMap({ typeMap, type: child.type, fullName: child.fullName, destructiveType })); | ||
// logic: if this is a decomposed type, skip its inclusion in the manifest if the parent is "empty" | ||
if (type.strategies?.transformer === 'decomposed' && | ||
// logic: if this is a decomposed type not being retrieved, skip its inclusion in the manifest if the parent is "empty" | ||
if (!this.forRetrieve && | ||
type.strategies?.transformer === 'decomposed' && | ||
// exclude (ex: CustomObjectTranslation) where there are no addressable children | ||
@@ -304,0 +312,0 @@ Object.values(type.children?.types ?? {}).some((t) => t.unaddressableWithoutParent !== true) && |
{ | ||
"name": "@salesforce/source-deploy-retrieve", | ||
"version": "12.19.7", | ||
"version": "12.19.8", | ||
"description": "JavaScript library to run Salesforce metadata deploys and retrieves", | ||
@@ -28,3 +28,3 @@ "main": "lib/src/index.js", | ||
"dependencies": { | ||
"@salesforce/core": "^8.11.0", | ||
"@salesforce/core": "^8.11.4", | ||
"@salesforce/kit": "^3.2.3", | ||
@@ -31,0 +31,0 @@ "@salesforce/ts-types": "^2.0.12", |
Sorry, the diff of this file is not supported yet
1202260
0.05%17721
0.06%Updated