@salesforce/packaging 3.2.35 → 3.2.37
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.
|
@@ -107,6 +107,14 @@ export declare function numberToDuration(duration: number | Duration | undefined
|
|
|
107
107
|
*/
|
|
108
108
|
export declare function zipDir(dir: string, zipfile: string): Promise<void>;
|
|
109
109
|
export declare function copyDir(src: string, dest: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Parse and copy properties from both of these arguments into a new object
|
|
112
|
+
*
|
|
113
|
+
* @param packageDescriptorJson
|
|
114
|
+
* @param definitionFileJson
|
|
115
|
+
* @returns the resulting object with specific properties
|
|
116
|
+
* overridden from definition file based on case-insensitive matches.
|
|
117
|
+
*/
|
|
110
118
|
export declare function copyDescriptorProperties(packageDescriptorJson: PackageDescriptorJson, definitionFileJson: ScratchOrgInfo): PackageDescriptorJson;
|
|
111
119
|
export declare function replaceIfEmpty<T>(value: T, replacement: T): T;
|
|
112
120
|
/**
|
|
@@ -398,10 +398,21 @@ function copyDir(src, dest) {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
exports.copyDir = copyDir;
|
|
401
|
+
/**
|
|
402
|
+
* Parse and copy properties from both of these arguments into a new object
|
|
403
|
+
*
|
|
404
|
+
* @param packageDescriptorJson
|
|
405
|
+
* @param definitionFileJson
|
|
406
|
+
* @returns the resulting object with specific properties
|
|
407
|
+
* overridden from definition file based on case-insensitive matches.
|
|
408
|
+
*/
|
|
401
409
|
function copyDescriptorProperties(packageDescriptorJson, definitionFileJson) {
|
|
402
410
|
const packageDescriptorJsonCopy = Object.assign({}, packageDescriptorJson);
|
|
403
411
|
const definitionFileJsonCopy = Object.assign({}, definitionFileJson);
|
|
404
|
-
return Object.assign({}, packageDescriptorJsonCopy, Object.fromEntries(['country', 'edition', 'language', 'features', 'orgPreferences', 'snapshot', 'release', 'sourceOrg'].map((prop) =>
|
|
412
|
+
return Object.assign({}, packageDescriptorJsonCopy, Object.fromEntries(['country', 'edition', 'language', 'features', 'orgPreferences', 'snapshot', 'release', 'sourceOrg'].map((prop) => {
|
|
413
|
+
const matchCase = Object.keys(definitionFileJsonCopy).find((key) => key.toLowerCase() === prop.toLowerCase());
|
|
414
|
+
return [[prop], matchCase ? definitionFileJsonCopy[matchCase] : undefined];
|
|
415
|
+
})));
|
|
405
416
|
}
|
|
406
417
|
exports.copyDescriptorProperties = copyDescriptorProperties;
|
|
407
418
|
function replaceIfEmpty(value, replacement) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.37",
|
|
4
4
|
"description": "Packaging library for the Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@salesforce/core": "^6.7.3",
|
|
46
46
|
"@salesforce/kit": "^3.1.0",
|
|
47
47
|
"@salesforce/schemas": "^1.6.1",
|
|
48
|
-
"@salesforce/source-deploy-retrieve": "^10.
|
|
48
|
+
"@salesforce/source-deploy-retrieve": "^10.7.0",
|
|
49
49
|
"@salesforce/ts-types": "^2.0.9",
|
|
50
50
|
"fast-xml-parser": "^4.3.6",
|
|
51
51
|
"globby": "^11",
|