@salesforce/packaging 0.0.43 → 0.0.45
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.
|
@@ -49,6 +49,7 @@ export declare class PackageVersion {
|
|
|
49
49
|
frequency: Duration;
|
|
50
50
|
timeout: Duration;
|
|
51
51
|
}): Promise<PackageVersionCreateRequestResult>;
|
|
52
|
+
static list(connection: Connection, project: SfProject, options: PackageVersionListOptions): Promise<PackageVersionListResult[]>;
|
|
52
53
|
/**
|
|
53
54
|
* Get the package version ID for this PackageVersion.
|
|
54
55
|
*
|
|
@@ -83,7 +84,6 @@ export declare class PackageVersion {
|
|
|
83
84
|
*/
|
|
84
85
|
report(verbose?: boolean): Promise<PackageVersionReportResult>;
|
|
85
86
|
install(): Promise<void>;
|
|
86
|
-
list(options: PackageVersionListOptions): Promise<PackageVersionListResult[]>;
|
|
87
87
|
uninstall(): Promise<void>;
|
|
88
88
|
promote(): Promise<PackageSaveResult>;
|
|
89
89
|
update(options: PackageVersionUpdateOptions): Promise<PackageSaveResult>;
|
|
@@ -183,6 +183,22 @@ class PackageVersion {
|
|
|
183
183
|
throw (0, utils_1.applyErrorAction)(err);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
+
static async list(connection, project, options) {
|
|
187
|
+
// resolve/verify packages
|
|
188
|
+
const packages = options.packages.map((pkg) => {
|
|
189
|
+
const id = (0, utils_1.getPackageIdFromAlias)(pkg, project);
|
|
190
|
+
// validate ID
|
|
191
|
+
if (id.startsWith('0Ho')) {
|
|
192
|
+
(0, utils_1.validateId)(utils_1.BY_LABEL.PACKAGE_ID, id);
|
|
193
|
+
return id;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
throw messages.createError('errorInvalidPackageVersionId', [id]);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
options.packages = packages;
|
|
200
|
+
return (await (0, packageVersionList_1.listPackageVersions)({ ...options, ...{ connection } })).records;
|
|
201
|
+
}
|
|
186
202
|
/**
|
|
187
203
|
* Get the package version ID for this PackageVersion.
|
|
188
204
|
*
|
|
@@ -275,9 +291,6 @@ class PackageVersion {
|
|
|
275
291
|
install() {
|
|
276
292
|
return Promise.resolve(undefined);
|
|
277
293
|
}
|
|
278
|
-
async list(options) {
|
|
279
|
-
return (await (0, packageVersionList_1.listPackageVersions)({ ...options, ...{ connection: this.connection } })).records;
|
|
280
|
-
}
|
|
281
294
|
uninstall() {
|
|
282
295
|
return Promise.resolve(undefined);
|
|
283
296
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45",
|
|
4
4
|
"description": "packing libraries to Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@salesforce/core": "^3.30.0",
|
|
40
40
|
"@salesforce/kit": "^1.6.1",
|
|
41
41
|
"@salesforce/schemas": "^1.2.0",
|
|
42
|
-
"@salesforce/source-deploy-retrieve": "^6.2
|
|
42
|
+
"@salesforce/source-deploy-retrieve": "^6.8.2",
|
|
43
43
|
"@salesforce/ts-types": "^1.5.20",
|
|
44
44
|
"@xmldom/xmldom": "^0.8.2",
|
|
45
45
|
"debug": "^4.3.4",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"xml2js": "^0.4.23"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@salesforce/cli-plugins-testkit": "^2.
|
|
58
|
+
"@salesforce/cli-plugins-testkit": "^2.5.3",
|
|
59
59
|
"@salesforce/dev-config": "^3.0.1",
|
|
60
60
|
"@salesforce/dev-scripts": "^2.0.4",
|
|
61
61
|
"@salesforce/prettier-config": "^0.0.2",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"@types/globby": "^9.1.0",
|
|
65
65
|
"@types/jszip": "^3.4.1",
|
|
66
66
|
"@types/xml2js": "^0.4.11",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
68
|
-
"@typescript-eslint/parser": "5.
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
68
|
+
"@typescript-eslint/parser": "5.38.1",
|
|
69
69
|
"chai": "^4.3.6",
|
|
70
70
|
"commitizen": "^4.2.4",
|
|
71
|
-
"eslint": "^8.
|
|
71
|
+
"eslint": "^8.24.0",
|
|
72
72
|
"eslint-config-prettier": "^8.5.0",
|
|
73
73
|
"eslint-config-salesforce": "^0.1.6",
|
|
74
74
|
"eslint-config-salesforce-license": "^0.1.6",
|