@salesforce/packaging 4.13.0 → 4.14.0
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/exported.js +13 -4
- package/lib/interfaces/bundleInterfacesAndType.js +13 -4
- package/lib/interfaces/index.js +13 -4
- package/lib/interfaces/packagingInterfacesAndType.js +13 -4
- package/lib/package/index.js +13 -4
- package/lib/package/packageAncestry.js +13 -4
- package/lib/package/packageBundle.js +13 -4
- package/lib/package/packageBundleCreate.js +13 -4
- package/lib/package/packageBundleInstall.js +13 -4
- package/lib/package/packageBundleVersion.js +13 -4
- package/lib/package/packageBundleVersionCreate.js +13 -4
- package/lib/package/packageConvert.js +13 -4
- package/lib/package/packageCreate.js +13 -4
- package/lib/package/packageDelete.js +13 -4
- package/lib/package/packageInstall.js +13 -4
- package/lib/package/packageProfileApi.js +13 -4
- package/lib/package/packagePushUpgrade.js +13 -4
- package/lib/package/packageUninstall.js +13 -4
- package/lib/package/packageVersion.js +13 -4
- package/lib/package/packageVersionCreate.js +13 -4
- package/lib/package/packageVersionCreateRequest.js +13 -4
- package/lib/package/packageVersionCreateRequestReport.js +13 -4
- package/lib/package/packageVersionDependency.d.ts +6 -6
- package/lib/package/packageVersionDependency.js +67 -33
- package/lib/package/packageVersionList.js +13 -4
- package/lib/package/packageVersionReport.js +13 -4
- package/lib/package/packageVersionRetrieve.js +13 -4
- package/lib/package/subscriberPackageVersion.js +13 -4
- package/lib/package/versionNumber.js +13 -4
- package/lib/package1/index.js +13 -4
- package/lib/package1/package1Version.js +13 -4
- package/lib/utils/bundleUtils.js +13 -4
- package/lib/utils/index.js +13 -4
- package/lib/utils/packageUtils.js +13 -4
- package/messages/package_version_dependency.md +4 -4
- package/package.json +5 -4
- package/LICENSE +0 -25
package/lib/exported.js
CHANGED
|
@@ -15,10 +15,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright
|
|
19
|
-
*
|
|
20
|
-
* Licensed under the
|
|
21
|
-
*
|
|
18
|
+
* Copyright 2025, Salesforce, Inc.
|
|
19
|
+
*
|
|
20
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License.
|
|
22
|
+
* You may obtain a copy of the License at
|
|
23
|
+
*
|
|
24
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
*
|
|
26
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
|
+
* See the License for the specific language governing permissions and
|
|
30
|
+
* limitations under the License.
|
|
22
31
|
*/
|
|
23
32
|
__exportStar(require("./interfaces"), exports);
|
|
24
33
|
__exportStar(require("./package"), exports);
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
//# sourceMappingURL=bundleInterfacesAndType.js.map
|
package/lib/interfaces/index.js
CHANGED
|
@@ -15,10 +15,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright
|
|
19
|
-
*
|
|
20
|
-
* Licensed under the
|
|
21
|
-
*
|
|
18
|
+
* Copyright 2025, Salesforce, Inc.
|
|
19
|
+
*
|
|
20
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License.
|
|
22
|
+
* You may obtain a copy of the License at
|
|
23
|
+
*
|
|
24
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
*
|
|
26
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
|
+
* See the License for the specific language governing permissions and
|
|
30
|
+
* limitations under the License.
|
|
22
31
|
*/
|
|
23
32
|
__exportStar(require("./packagingInterfacesAndType"), exports);
|
|
24
33
|
__exportStar(require("./packagingSObjects"), exports);
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.Package1VersionEvents = exports.PackageVersionEvents = exports.PackageEvents = exports.PackageVersionCreateRequestResultInProgressStatuses = void 0;
|
package/lib/package/index.js
CHANGED
|
@@ -16,10 +16,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.VersionNumber = void 0;
|
|
18
18
|
/*
|
|
19
|
-
* Copyright
|
|
20
|
-
*
|
|
21
|
-
* Licensed under the
|
|
22
|
-
*
|
|
19
|
+
* Copyright 2025, Salesforce, Inc.
|
|
20
|
+
*
|
|
21
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
22
|
+
* you may not use this file except in compliance with the License.
|
|
23
|
+
* You may obtain a copy of the License at
|
|
24
|
+
*
|
|
25
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
26
|
+
*
|
|
27
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
28
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
29
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
30
|
+
* See the License for the specific language governing permissions and
|
|
31
|
+
* limitations under the License.
|
|
23
32
|
*/
|
|
24
33
|
__exportStar(require("./package"), exports);
|
|
25
34
|
__exportStar(require("./packageVersion"), exports);
|
|
@@ -38,10 +38,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.PackageAncestryNode = exports.AncestryDotProducer = exports.AncestryJsonProducer = exports.AncestryTreeProducer = exports.PackageAncestry = void 0;
|
|
40
40
|
/*
|
|
41
|
-
* Copyright
|
|
42
|
-
*
|
|
43
|
-
* Licensed under the
|
|
44
|
-
*
|
|
41
|
+
* Copyright 2025, Salesforce, Inc.
|
|
42
|
+
*
|
|
43
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
44
|
+
* you may not use this file except in compliance with the License.
|
|
45
|
+
* You may obtain a copy of the License at
|
|
46
|
+
*
|
|
47
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
48
|
+
*
|
|
49
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
50
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
51
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
52
|
+
* See the License for the specific language governing permissions and
|
|
53
|
+
* limitations under the License.
|
|
45
54
|
*/
|
|
46
55
|
const node_os_1 = require("node:os");
|
|
47
56
|
const core_1 = require("@salesforce/core");
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.PackageBundle = void 0;
|
|
@@ -3,10 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createPackageDirEntry = createPackageDirEntry;
|
|
4
4
|
exports.createBundle = createBundle;
|
|
5
5
|
/*
|
|
6
|
-
* Copyright
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the
|
|
9
|
-
*
|
|
6
|
+
* Copyright 2025, Salesforce, Inc.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
10
19
|
*/
|
|
11
20
|
const core_1 = require("@salesforce/core");
|
|
12
21
|
const bundleUtils_1 = require("../utils/bundleUtils");
|
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PackageBundleInstall = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the
|
|
8
|
-
*
|
|
5
|
+
* Copyright 2025, Salesforce, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
9
18
|
*/
|
|
10
19
|
const core_1 = require("@salesforce/core");
|
|
11
20
|
const interfaces_1 = require("../interfaces");
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.PackageBundleVersion = void 0;
|
|
@@ -35,10 +35,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.PackageBundleVersionCreate = void 0;
|
|
37
37
|
/*
|
|
38
|
-
* Copyright
|
|
39
|
-
*
|
|
40
|
-
* Licensed under the
|
|
41
|
-
*
|
|
38
|
+
* Copyright 2025, Salesforce, Inc.
|
|
39
|
+
*
|
|
40
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
|
+
* you may not use this file except in compliance with the License.
|
|
42
|
+
* You may obtain a copy of the License at
|
|
43
|
+
*
|
|
44
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
45
|
+
*
|
|
46
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
47
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
48
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
49
|
+
* See the License for the specific language governing permissions and
|
|
50
|
+
* limitations under the License.
|
|
42
51
|
*/
|
|
43
52
|
const fs = __importStar(require("node:fs"));
|
|
44
53
|
const core_1 = require("@salesforce/core");
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
18
|
if (k2 === undefined) k2 = k;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
18
|
if (k2 === undefined) k2 = k;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.deletePackage = deletePackage;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.createPackageInstallRequest = createPackageInstallRequest;
|
|
@@ -5,10 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PackageProfileApi = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the
|
|
11
|
-
*
|
|
8
|
+
* Copyright 2025, Salesforce, Inc.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
12
21
|
*/
|
|
13
22
|
const node_path_1 = __importDefault(require("node:path"));
|
|
14
23
|
const node_os_1 = __importDefault(require("node:os"));
|
|
@@ -5,10 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PackagePushUpgrade = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the
|
|
11
|
-
*
|
|
8
|
+
* Copyright 2025, Salesforce, Inc.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
12
21
|
*/
|
|
13
22
|
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
14
23
|
const node_path_1 = __importDefault(require("node:path"));
|
|
@@ -7,10 +7,19 @@ exports.getUninstallErrors = getUninstallErrors;
|
|
|
7
7
|
exports.pollUninstall = pollUninstall;
|
|
8
8
|
exports.uninstallPackage = uninstallPackage;
|
|
9
9
|
/*
|
|
10
|
-
* Copyright
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the
|
|
13
|
-
*
|
|
10
|
+
* Copyright 2025, Salesforce, Inc.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
14
23
|
*/
|
|
15
24
|
const node_os_1 = __importDefault(require("node:os"));
|
|
16
25
|
const core_1 = require("@salesforce/core");
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.PackageVersion = exports.Package2VersionFields = void 0;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
18
|
if (k2 === undefined) k2 = k;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
18
|
if (k2 === undefined) k2 = k;
|
|
@@ -10,13 +10,16 @@ export declare class PackageVersionDependency extends AsyncCreatable<PackageVers
|
|
|
10
10
|
private userPackageVersionId;
|
|
11
11
|
private verbose;
|
|
12
12
|
private edgeDirection;
|
|
13
|
-
private
|
|
13
|
+
private resolvedPackageVersionCreateRequestId;
|
|
14
|
+
private allPackageVersionId;
|
|
14
15
|
constructor(options: PackageVersionDependencyOptions);
|
|
15
16
|
init(): Promise<void>;
|
|
16
17
|
/**
|
|
17
18
|
* Returns a DependencyDotProducer that can be used to produce a DOT code representation of the package dependency graph.
|
|
18
19
|
*/
|
|
19
20
|
getDependencyDotProducer(): Promise<DependencyDotProducer>;
|
|
21
|
+
private getTransitiveDependencyGraph;
|
|
22
|
+
private createFlatDependencyGraph;
|
|
20
23
|
/**
|
|
21
24
|
* Resolves id input to a 08c. User can input a 08c or 04t.
|
|
22
25
|
* Currently a 04t is not supported in filtering the Package2VersionCreateRequest. So a user's input of 04t will be resolved to a 05i and then a 08c.
|
|
@@ -24,12 +27,9 @@ export declare class PackageVersionDependency extends AsyncCreatable<PackageVers
|
|
|
24
27
|
private resolvePackageCreateRequestId;
|
|
25
28
|
private query05iFrom04t;
|
|
26
29
|
private query08cFrom05i;
|
|
27
|
-
|
|
28
|
-
* Checks that the given Package2VersionCreateRequest ID (08c) contains a valid DependencyGraphJson to generate DOT code
|
|
29
|
-
*/
|
|
30
|
-
private validatePackageVersion;
|
|
30
|
+
private isValidPackageVersion;
|
|
31
31
|
private verifyCreateRequesIdExistsOnDevHub;
|
|
32
|
-
private
|
|
32
|
+
private isTransitiveDependenciesCalculated;
|
|
33
33
|
}
|
|
34
34
|
export declare class DependencyDotProducer {
|
|
35
35
|
private dependencyGraphString;
|
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PackageDependencyNode = exports.DependencyDotProducer = exports.PackageVersionDependency = exports.VERSION_BEING_BUILT = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the
|
|
8
|
-
*
|
|
5
|
+
* Copyright 2025, Salesforce, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
9
18
|
*/
|
|
10
19
|
const node_os_1 = require("node:os");
|
|
11
20
|
const core_1 = require("@salesforce/core");
|
|
@@ -22,7 +31,8 @@ class PackageVersionDependency extends kit_1.AsyncCreatable {
|
|
|
22
31
|
userPackageVersionId;
|
|
23
32
|
verbose;
|
|
24
33
|
edgeDirection;
|
|
25
|
-
|
|
34
|
+
resolvedPackageVersionCreateRequestId;
|
|
35
|
+
allPackageVersionId;
|
|
26
36
|
constructor(options) {
|
|
27
37
|
super(options);
|
|
28
38
|
this.options = options;
|
|
@@ -31,7 +41,8 @@ class PackageVersionDependency extends kit_1.AsyncCreatable {
|
|
|
31
41
|
this.userPackageVersionId = options.packageVersionId;
|
|
32
42
|
this.verbose = options.verbose ?? false;
|
|
33
43
|
this.edgeDirection = options.edgeDirection ?? 'root-first';
|
|
34
|
-
this.
|
|
44
|
+
this.resolvedPackageVersionCreateRequestId = '';
|
|
45
|
+
this.allPackageVersionId = '';
|
|
35
46
|
}
|
|
36
47
|
async init() {
|
|
37
48
|
await this.resolvePackageCreateRequestId();
|
|
@@ -40,21 +51,51 @@ class PackageVersionDependency extends kit_1.AsyncCreatable {
|
|
|
40
51
|
* Returns a DependencyDotProducer that can be used to produce a DOT code representation of the package dependency graph.
|
|
41
52
|
*/
|
|
42
53
|
async getDependencyDotProducer() {
|
|
43
|
-
|
|
44
|
-
if (!isValid) {
|
|
54
|
+
if (!this.isValidPackageVersion()) {
|
|
45
55
|
throw messages.createError('invalidPackageVersionIdError', [this.userPackageVersionId]);
|
|
46
56
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
let dependencyGraphJson;
|
|
58
|
+
if (await this.isTransitiveDependenciesCalculated()) {
|
|
59
|
+
dependencyGraphJson = await this.getTransitiveDependencyGraph();
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
dependencyGraphJson = await this.createFlatDependencyGraph();
|
|
53
63
|
}
|
|
54
|
-
const producer = new DependencyDotProducer(this.connection, dependencyGraphJson, this.verbose, this.edgeDirection, this.
|
|
64
|
+
const producer = new DependencyDotProducer(this.connection, dependencyGraphJson, this.verbose, this.edgeDirection, this.resolvedPackageVersionCreateRequestId);
|
|
55
65
|
await producer.init();
|
|
56
66
|
return producer;
|
|
57
67
|
}
|
|
68
|
+
async getTransitiveDependencyGraph() {
|
|
69
|
+
const query = `${SELECT_PACKAGE_VERSION_DEPENDENCY} WHERE Id = '${this.resolvedPackageVersionCreateRequestId}'`;
|
|
70
|
+
const result = await this.connection.tooling.query(query);
|
|
71
|
+
if (result.records[0].DependencyGraphJson == null) {
|
|
72
|
+
return '';
|
|
73
|
+
}
|
|
74
|
+
return result.records[0].DependencyGraphJson;
|
|
75
|
+
}
|
|
76
|
+
async createFlatDependencyGraph() {
|
|
77
|
+
if (!this.allPackageVersionId) {
|
|
78
|
+
throw messages.createError('noDependencyGraphJsonMustProvideVersion');
|
|
79
|
+
}
|
|
80
|
+
const query = `SELECT Dependencies FROM SubscriberPackageVersion WHERE Id = '${this.allPackageVersionId}'`;
|
|
81
|
+
const result = await this.connection.tooling.query(query);
|
|
82
|
+
if (result?.records?.length !== 1) {
|
|
83
|
+
throw messages.createError('invalidPackageVersionIdError', [this.userPackageVersionId]);
|
|
84
|
+
}
|
|
85
|
+
const flatDependencyGraph = {
|
|
86
|
+
nodes: [],
|
|
87
|
+
edges: [],
|
|
88
|
+
};
|
|
89
|
+
flatDependencyGraph.nodes.push({ id: this.allPackageVersionId });
|
|
90
|
+
result.records[0].Dependencies?.ids.forEach((dependency) => {
|
|
91
|
+
flatDependencyGraph.nodes.push({ id: dependency.subscriberPackageVersionId });
|
|
92
|
+
flatDependencyGraph.edges.push({
|
|
93
|
+
source: dependency.subscriberPackageVersionId,
|
|
94
|
+
target: this.allPackageVersionId,
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
return JSON.stringify(flatDependencyGraph);
|
|
98
|
+
}
|
|
58
99
|
/**
|
|
59
100
|
* Resolves id input to a 08c. User can input a 08c or 04t.
|
|
60
101
|
* Currently a 04t is not supported in filtering the Package2VersionCreateRequest. So a user's input of 04t will be resolved to a 05i and then a 08c.
|
|
@@ -63,12 +104,14 @@ class PackageVersionDependency extends kit_1.AsyncCreatable {
|
|
|
63
104
|
const versionId = this.project?.getPackageIdFromAlias(this.userPackageVersionId) ?? this.userPackageVersionId;
|
|
64
105
|
// User provided a Package2VersionCreateRequest ID (08c) and doesn't need to be resolved
|
|
65
106
|
if (versionId.startsWith('08c')) {
|
|
66
|
-
this.
|
|
107
|
+
this.resolvedPackageVersionCreateRequestId = versionId;
|
|
67
108
|
}
|
|
68
|
-
// User provided a SubscriberPackageVersionId (04t) and needs to be resolved to a Package2VersionCreateRequest ID (08c)
|
|
69
109
|
else if (versionId.startsWith('04t')) {
|
|
110
|
+
// User provided a SubscriberPackageVersionId (04t) and needs to be resolved to a Package2VersionCreateRequest ID (08c)
|
|
111
|
+
this.allPackageVersionId = versionId;
|
|
112
|
+
// TODO: Make this one query when W-18944974 is fixed.
|
|
70
113
|
const package2VersionId = await this.query05iFrom04t(versionId);
|
|
71
|
-
this.
|
|
114
|
+
this.resolvedPackageVersionCreateRequestId = await this.query08cFrom05i(package2VersionId);
|
|
72
115
|
}
|
|
73
116
|
else {
|
|
74
117
|
throw messages.createError('invalidPackageVersionIdError', [this.userPackageVersionId]);
|
|
@@ -90,29 +133,23 @@ class PackageVersionDependency extends kit_1.AsyncCreatable {
|
|
|
90
133
|
}
|
|
91
134
|
return result08c.records[0].Id;
|
|
92
135
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*/
|
|
96
|
-
async validatePackageVersion() {
|
|
97
|
-
if (!this.resolvedPackageVersionId) {
|
|
136
|
+
isValidPackageVersion() {
|
|
137
|
+
if (!this.resolvedPackageVersionCreateRequestId && !this.allPackageVersionId) {
|
|
98
138
|
throw messages.createError('invalidPackageVersionIdError', [this.userPackageVersionId]);
|
|
99
139
|
}
|
|
100
|
-
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
return false;
|
|
140
|
+
return true;
|
|
104
141
|
}
|
|
105
142
|
async verifyCreateRequesIdExistsOnDevHub() {
|
|
106
|
-
const query = `${SELECT_PACKAGE_VERSION_DEPENDENCY} WHERE Id = '${this.
|
|
143
|
+
const query = `${SELECT_PACKAGE_VERSION_DEPENDENCY} WHERE Id = '${this.resolvedPackageVersionCreateRequestId}'`;
|
|
107
144
|
const result = await this.connection.tooling.query(query);
|
|
108
145
|
if (result.records?.length === 0) {
|
|
109
146
|
throw messages.createError('invalidPackageVersionIdError', [this.userPackageVersionId]);
|
|
110
147
|
}
|
|
111
148
|
return true;
|
|
112
149
|
}
|
|
113
|
-
async
|
|
150
|
+
async isTransitiveDependenciesCalculated() {
|
|
114
151
|
if (await this.verifyCreateRequesIdExistsOnDevHub()) {
|
|
115
|
-
const query = `${SELECT_PACKAGE_VERSION_DEPENDENCY} WHERE Id = '${this.
|
|
152
|
+
const query = `${SELECT_PACKAGE_VERSION_DEPENDENCY} WHERE Id = '${this.resolvedPackageVersionCreateRequestId}'`;
|
|
116
153
|
const result = await this.connection.tooling.query(query);
|
|
117
154
|
if (result.records?.length === 1) {
|
|
118
155
|
const record = result.records[0];
|
|
@@ -124,9 +161,6 @@ class PackageVersionDependency extends kit_1.AsyncCreatable {
|
|
|
124
161
|
throw messages.createError('invalidDependencyGraphError');
|
|
125
162
|
}
|
|
126
163
|
}
|
|
127
|
-
else {
|
|
128
|
-
throw messages.createError('transitiveDependenciesRequiredError');
|
|
129
|
-
}
|
|
130
164
|
}
|
|
131
165
|
}
|
|
132
166
|
return false;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.DEFAULT_ORDER_BY_FIELDS = void 0;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
18
|
if (k2 === undefined) k2 = k;
|
|
@@ -5,10 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.retrievePackageVersionMetadata = retrievePackageVersionMetadata;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the
|
|
11
|
-
*
|
|
8
|
+
* Copyright 2025, Salesforce, Inc.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
12
21
|
*/
|
|
13
22
|
const node_path_1 = __importDefault(require("node:path"));
|
|
14
23
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.SubscriberPackageVersion = exports.SubscriberPackageVersionFields = void 0;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.VersionNumber = exports.BuildNumberToken = void 0;
|
package/lib/package1/index.js
CHANGED
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Package1Version = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the
|
|
8
|
-
*
|
|
5
|
+
* Copyright 2025, Salesforce, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
9
18
|
*/
|
|
10
19
|
var package1Version_1 = require("./package1Version");
|
|
11
20
|
Object.defineProperty(exports, "Package1Version", { enumerable: true, get: function () { return package1Version_1.Package1Version; } });
|
|
@@ -5,10 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Package1Version = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the
|
|
11
|
-
*
|
|
8
|
+
* Copyright 2025, Salesforce, Inc.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
12
21
|
*/
|
|
13
22
|
const node_os_1 = __importDefault(require("node:os"));
|
|
14
23
|
const core_1 = require("@salesforce/core");
|
package/lib/utils/bundleUtils.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the
|
|
6
|
-
*
|
|
3
|
+
* Copyright 2025, Salesforce, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
7
16
|
*/
|
|
8
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
18
|
exports.massageErrorMessage = massageErrorMessage;
|
package/lib/utils/index.js
CHANGED
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.massageErrorMessage = exports.getPackageVersionNumber = exports.getPackageVersionStrings = exports.getContainerOptions = exports.INSTALL_URL_BASE = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the
|
|
8
|
-
*
|
|
5
|
+
* Copyright 2025, Salesforce, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
9
18
|
*/
|
|
10
19
|
var packageUtils_1 = require("./packageUtils");
|
|
11
20
|
Object.defineProperty(exports, "INSTALL_URL_BASE", { enumerable: true, get: function () { return packageUtils_1.INSTALL_URL_BASE; } });
|
|
@@ -56,10 +56,19 @@ exports.copyDir = copyDir;
|
|
|
56
56
|
exports.copyDescriptorProperties = copyDescriptorProperties;
|
|
57
57
|
exports.isPackageDirectoryEffectivelyEmpty = isPackageDirectoryEffectivelyEmpty;
|
|
58
58
|
/*
|
|
59
|
-
* Copyright
|
|
60
|
-
*
|
|
61
|
-
* Licensed under the
|
|
62
|
-
*
|
|
59
|
+
* Copyright 2025, Salesforce, Inc.
|
|
60
|
+
*
|
|
61
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
62
|
+
* you may not use this file except in compliance with the License.
|
|
63
|
+
* You may obtain a copy of the License at
|
|
64
|
+
*
|
|
65
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
66
|
+
*
|
|
67
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
68
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
69
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
70
|
+
* See the License for the specific language governing permissions and
|
|
71
|
+
* limitations under the License.
|
|
63
72
|
*/
|
|
64
73
|
const node_os_1 = __importDefault(require("node:os"));
|
|
65
74
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Can't display package dependencies. The package version ID %s you specified is invalid. Review the package version ID and then retry this command.
|
|
4
4
|
|
|
5
|
-
# transitiveDependenciesRequiredError
|
|
6
|
-
|
|
7
|
-
Can't display package dependencies. To display package dependencies, you must first add the calculateTransitiveDependencies parameter to the sfdx-project.json file, and set the value to "true". Next, create a new package version and then run this command using the 04t ID for the new package version.
|
|
8
|
-
|
|
9
5
|
# invalidDependencyGraphError
|
|
10
6
|
|
|
11
7
|
Can't display package dependencies. There's an issue generating the dependency graph. Before retrying this command, make sure you added the calculateTransitiveDependencies parameter to the sfdx-project.json file and set the value to "true". After setting the attribute and before retrying this command, you must create a new package version.
|
|
8
|
+
|
|
9
|
+
# noDependencyGraphJsonMustProvideVersion
|
|
10
|
+
|
|
11
|
+
Can't display package dependencies. This Package2VersionCreateRequest does not have CalcTransitiveDependencies set to true. To display package dependencies, either specify a package version id (starts with 04t or 05i) or create a new package version with the calculateTransitiveDependencies parameter in the sfdx-project.json file to "true".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "Packaging library for the Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"object-treeify": "^2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
62
|
-
"@salesforce/dev-scripts": "^11.0.
|
|
61
|
+
"@salesforce/cli-plugins-testkit": "^5.3.41",
|
|
62
|
+
"@salesforce/dev-scripts": "^11.0.4",
|
|
63
63
|
"@types/globby": "^9.1.0",
|
|
64
64
|
"@types/jszip": "^3.4.1",
|
|
65
65
|
"eslint-plugin-sf-plugin": "^1.20.8",
|
|
@@ -68,7 +68,8 @@
|
|
|
68
68
|
"typescript": "^5.5.4"
|
|
69
69
|
},
|
|
70
70
|
"resolutions": {
|
|
71
|
-
"@jsforce/jsforce-node/node-fetch/whatwg-url": "^14.0.0"
|
|
71
|
+
"@jsforce/jsforce-node/node-fetch/whatwg-url": "^14.0.0",
|
|
72
|
+
"string-width": "^4.2.3"
|
|
72
73
|
},
|
|
73
74
|
"publishConfig": {
|
|
74
75
|
"access": "public"
|
package/LICENSE
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
BSD 2-Clause License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022, Salesforce Platform
|
|
4
|
-
All rights reserved.
|
|
5
|
-
|
|
6
|
-
Redistribution and use in source and binary forms, with or without
|
|
7
|
-
modification, are permitted provided that the following conditions are met:
|
|
8
|
-
|
|
9
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
-
list of conditions and the following disclaimer.
|
|
11
|
-
|
|
12
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
-
this list of conditions and the following disclaimer in the documentation
|
|
14
|
-
and/or other materials provided with the distribution.
|
|
15
|
-
|
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
17
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
19
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
20
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
22
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
23
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
24
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
25
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|