@salesforce/packaging 5.0.6 → 5.0.8
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.
- package/lib/package/packageAncestry.js +0 -1
- package/lib/package/packageBundle.js +0 -1
- package/lib/package/packageConvert.js +0 -1
- package/lib/package/packageProfileApi.js +1 -1
- package/lib/package/packageVersion.js +0 -1
- package/lib/package/packageVersionCreate.js +0 -2
- package/lib/package/profileRewriter.js +0 -1
- package/lib/package/subscriberPackageVersion.d.ts +1 -1
- package/lib/utils/packageUtils.js +0 -2
- package/package.json +11 -4
|
@@ -317,7 +317,6 @@ class PackageAncestry extends kit_1.AsyncCreatable {
|
|
|
317
317
|
async buildAncestryTreeFromRoots(roots) {
|
|
318
318
|
while (roots.length > 0) {
|
|
319
319
|
const subscriberPackageVersion = roots.shift();
|
|
320
|
-
// eslint-disable-next-line no-await-in-loop
|
|
321
320
|
if (subscriberPackageVersion) {
|
|
322
321
|
// eslint-disable-next-line no-await-in-loop
|
|
323
322
|
const descendants = await this.addDescendantsFromPackageVersion(subscriberPackageVersion);
|
|
@@ -66,7 +66,6 @@ class PackageBundle {
|
|
|
66
66
|
if (!project) {
|
|
67
67
|
throw new core_1.SfError('Project instance is required when deleting package bundle by alias');
|
|
68
68
|
}
|
|
69
|
-
// eslint-disable-next-line no-param-reassign
|
|
70
69
|
idOrAlias = project.getPackageBundleIdFromAlias(idOrAlias) ?? idOrAlias;
|
|
71
70
|
return connection.tooling.sobject('PackageBundle').delete(idOrAlias);
|
|
72
71
|
}
|
|
@@ -305,7 +305,6 @@ async function pollForStatusWithInterval(id, retries, packageId, branch, project
|
|
|
305
305
|
// for multiple errors, display one per line prefixed with (x)
|
|
306
306
|
if (results[0].Error.length > 1) {
|
|
307
307
|
results[0].Error.forEach((error) => {
|
|
308
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
309
308
|
errors.push(`(${errors.length + 1}) ${error}`);
|
|
310
309
|
});
|
|
311
310
|
errors.unshift(messages.getMessage('versionCreateFailedWithMultipleErrors'));
|
|
@@ -41,7 +41,7 @@ class PackageProfileApi extends kit_1.AsyncCreatable {
|
|
|
41
41
|
this.project = options.project;
|
|
42
42
|
this.includeUserLicenses = options.includeUserLicenses ?? false;
|
|
43
43
|
}
|
|
44
|
-
// eslint-disable-next-line class-methods-use-this
|
|
44
|
+
// eslint-disable-next-line class-methods-use-this
|
|
45
45
|
async init() { }
|
|
46
46
|
/**
|
|
47
47
|
* For any profile present in the project package directories, this function generates a subset of data that only
|
|
@@ -285,7 +285,6 @@ class PackageVersion {
|
|
|
285
285
|
case Package2VersionStatus.success:
|
|
286
286
|
await core_1.Lifecycle.getInstance().emit(interfaces_1.PackageVersionEvents.create.success, report);
|
|
287
287
|
await new PackageVersion({
|
|
288
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
289
288
|
idOrAlias: report.SubscriberPackageVersionId,
|
|
290
289
|
project,
|
|
291
290
|
connection,
|
|
@@ -255,7 +255,6 @@ class PackageVersionCreate {
|
|
|
255
255
|
throw messages.createError('noReleaseVersionFoundForBranch', [packageId, branch, versionNumber.toString()]);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
259
258
|
return `${results.records[0].expr0}`;
|
|
260
259
|
}
|
|
261
260
|
async createRequestObject(preserveFiles, packageVersTmpRoot, packageVersBlobZipFile) {
|
|
@@ -851,7 +850,6 @@ const packageXmlStringToPackageXmlJson = (rawXml) => {
|
|
|
851
850
|
// make sure types and members is always an array
|
|
852
851
|
isArray: (name) => ['types', 'members'].includes(name),
|
|
853
852
|
});
|
|
854
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
855
853
|
return parser.parse(rawXml).Package;
|
|
856
854
|
};
|
|
857
855
|
exports.packageXmlStringToPackageXmlJson = packageXmlStringToPackageXmlJson;
|
|
@@ -83,7 +83,6 @@ const profileStringToProfile = (profileString) => {
|
|
|
83
83
|
},
|
|
84
84
|
isArray: (name) => rewriteProps.includes(name),
|
|
85
85
|
});
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
87
86
|
return parser.parse(profileString).Profile;
|
|
88
87
|
};
|
|
89
88
|
exports.profileStringToProfile = profileStringToProfile;
|
|
@@ -36,7 +36,7 @@ export declare class SubscriberPackageVersion {
|
|
|
36
36
|
* @param installationKey
|
|
37
37
|
* @param options
|
|
38
38
|
*/
|
|
39
|
-
static installStatus(connection: Connection, packageInstallRequestOrId: string | PackagingSObjects.PackageInstallRequest, installationKey?: string |
|
|
39
|
+
static installStatus(connection: Connection, packageInstallRequestOrId: string | PackagingSObjects.PackageInstallRequest, installationKey?: string | Nullable<string>, options?: PackageInstallOptions): Promise<PackagingSObjects.PackageInstallRequest>;
|
|
40
40
|
/**
|
|
41
41
|
* list the packages installed in the org
|
|
42
42
|
*
|
|
@@ -244,7 +244,6 @@ function escapeInstallationKey(key) {
|
|
|
244
244
|
* @param packageIds The list of package IDs
|
|
245
245
|
* @param connection For tooling query
|
|
246
246
|
*/
|
|
247
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
248
247
|
async function getContainerOptions(packageIds, connection) {
|
|
249
248
|
const ids = (0, kit_1.ensureArray)(packageIds).filter(ts_types_1.isString);
|
|
250
249
|
if (ids.length === 0) {
|
|
@@ -264,7 +263,6 @@ async function getContainerOptions(packageIds, connection) {
|
|
|
264
263
|
* @param subscriberPackageVersionIds
|
|
265
264
|
* @param connection For tooling query
|
|
266
265
|
*/
|
|
267
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
268
266
|
async function getPackageVersionStrings(subscriberPackageVersionIds, connection) {
|
|
269
267
|
let results = new Map();
|
|
270
268
|
if (!subscriberPackageVersionIds || subscriberPackageVersionIds.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"description": "Packaging library for the Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@salesforce/kit": "^4.0.0",
|
|
48
48
|
"@salesforce/schemas": "^1.10.3",
|
|
49
49
|
"@salesforce/source-deploy-retrieve": "^13.0.1",
|
|
50
|
-
"@salesforce/ts-types": "^3.0.
|
|
50
|
+
"@salesforce/ts-types": "^3.0.1",
|
|
51
51
|
"@salesforce/types": "^1.8.0",
|
|
52
52
|
"fast-xml-parser": "^5.10.1",
|
|
53
53
|
"globby": "^11",
|
|
@@ -59,10 +59,16 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@salesforce/cli-plugins-testkit": "^5.3.64",
|
|
62
|
-
"@salesforce/dev-scripts": "^
|
|
62
|
+
"@salesforce/dev-scripts": "^13.0.2",
|
|
63
|
+
"@types/chai": "^4.3.17",
|
|
63
64
|
"@types/globby": "^9.1.0",
|
|
64
65
|
"@types/jszip": "^3.4.1",
|
|
65
|
-
"
|
|
66
|
+
"@types/mocha": "^10.0.10",
|
|
67
|
+
"@types/node": "^18",
|
|
68
|
+
"@types/sinon": "^10.0.20",
|
|
69
|
+
"eslint": "^10.4.0",
|
|
70
|
+
"eslint-config-salesforce-typescript": "^6.0.0",
|
|
71
|
+
"eslint-plugin-sf-plugin": "^3.0.0",
|
|
66
72
|
"ts-node": "^10.9.2",
|
|
67
73
|
"typescript": "^5.9.3"
|
|
68
74
|
},
|
|
@@ -110,6 +116,7 @@
|
|
|
110
116
|
"src/**/*.ts",
|
|
111
117
|
"test/**/*.ts",
|
|
112
118
|
"messages/**",
|
|
119
|
+
"**/eslint.config.*",
|
|
113
120
|
"**/.eslint*",
|
|
114
121
|
"**/tsconfig.json"
|
|
115
122
|
],
|