🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@salesforce/source-deploy-retrieve

Package Overview
Dependencies
Maintainers
48
Versions
517
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/source-deploy-retrieve - npm Package Compare versions

Comparing version

to
12.19.8

2

lib/src/collections/componentSet.d.ts

@@ -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) &&

4

package.json
{
"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