@salesforce/source-deploy-retrieve 13.12.0-compute.6 → 13.12.1
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/src/client/index.d.ts +0 -1
- package/lib/src/client/index.js.map +1 -1
- package/lib/src/client/metadataApiDeploy.d.ts +0 -7
- package/lib/src/client/metadataApiDeploy.js +7 -24
- package/lib/src/client/metadataApiDeploy.js.map +1 -1
- package/lib/src/client/metadataApiRetrieve.d.ts +0 -7
- package/lib/src/client/metadataApiRetrieve.js +6 -23
- package/lib/src/client/metadataApiRetrieve.js.map +1 -1
- package/lib/src/client/metadataTransfer.d.ts +0 -3
- package/lib/src/client/metadataTransfer.js +1 -11
- package/lib/src/client/metadataTransfer.js.map +1 -1
- package/lib/src/client/types.d.ts +0 -8
- package/lib/src/collections/componentSet.d.ts +0 -9
- package/lib/src/collections/componentSet.js +1 -130
- package/lib/src/collections/componentSet.js.map +1 -1
- package/lib/src/convert/convertContext/convertContext.js.map +1 -1
- package/lib/src/convert/transformers/metadataTransformerFactory.js +0 -3
- package/lib/src/convert/transformers/metadataTransformerFactory.js.map +1 -1
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/registry/metadataRegistry.json +0 -15
- package/lib/src/registry/types.d.ts +2 -5
- package/lib/src/registry/types.js +0 -2
- package/lib/src/registry/types.js.map +1 -1
- package/lib/src/resolve/adapters/index.d.ts +0 -1
- package/lib/src/resolve/adapters/index.js +1 -3
- package/lib/src/resolve/adapters/index.js.map +1 -1
- package/lib/src/resolve/adapters/sourceAdapterFactory.js +0 -3
- package/lib/src/resolve/adapters/sourceAdapterFactory.js.map +1 -1
- package/lib/src/resolve/metadataResolver.js +1 -1
- package/lib/src/resolve/metadataResolver.js.map +1 -1
- package/lib/src/utils/filePathGenerator.js +5 -4
- package/lib/src/utils/filePathGenerator.js.map +1 -1
- package/package.json +1 -4
- package/lib/src/client/transports/computeAppTransport.d.ts +0 -12
- package/lib/src/client/transports/computeAppTransport.js +0 -185
- package/lib/src/client/transports/computeAppTransport.js.map +0 -1
- package/lib/src/client/transports/computeSourceBundle.d.ts +0 -10
- package/lib/src/client/transports/computeSourceBundle.js +0 -293
- package/lib/src/client/transports/computeSourceBundle.js.map +0 -1
- package/lib/src/client/transports/index.d.ts +0 -2
- package/lib/src/client/transports/index.js +0 -18
- package/lib/src/client/transports/index.js.map +0 -1
- package/lib/src/client/transports/transportCoordinator.d.ts +0 -20
- package/lib/src/client/transports/transportCoordinator.js +0 -82
- package/lib/src/client/transports/transportCoordinator.js.map +0 -1
- package/lib/src/client/transports/transportPipeline.d.ts +0 -55
- package/lib/src/client/transports/transportPipeline.js +0 -189
- package/lib/src/client/transports/transportPipeline.js.map +0 -1
- package/lib/src/client/transports/types.d.ts +0 -45
- package/lib/src/client/transports/types.js +0 -18
- package/lib/src/client/transports/types.js.map +0 -1
- package/lib/src/convert/transformers/computeAppMetadataTransformer.d.ts +0 -18
- package/lib/src/convert/transformers/computeAppMetadataTransformer.js +0 -67
- package/lib/src/convert/transformers/computeAppMetadataTransformer.js.map +0 -1
- package/lib/src/resolve/adapters/computeAppSourceAdapter.d.ts +0 -28
- package/lib/src/resolve/adapters/computeAppSourceAdapter.js +0 -75
- package/lib/src/resolve/adapters/computeAppSourceAdapter.js.map +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ComputeAppSourceAdapter = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright 2026, 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.
|
|
18
|
-
*/
|
|
19
|
-
const node_path_1 = require("node:path");
|
|
20
|
-
const constants_1 = require("../../common/constants");
|
|
21
|
-
const sourceComponent_1 = require("../sourceComponent");
|
|
22
|
-
const bundleSourceAdapter_1 = require("./bundleSourceAdapter");
|
|
23
|
-
/**
|
|
24
|
-
* Handles ComputeApp. Source format is a bundle folder; metadata format (what the org
|
|
25
|
-
* returns) is a single flat xml file with no folder, because the app source travels
|
|
26
|
-
* through the Elastic Compute transport rather than the Metadata API.
|
|
27
|
-
*
|
|
28
|
-
* __Source Structure__:
|
|
29
|
-
* ```text
|
|
30
|
-
* computeApps/
|
|
31
|
-
* ├── myApp/
|
|
32
|
-
* | ├── myApp.computeApp-meta.xml
|
|
33
|
-
* | ├── package.json
|
|
34
|
-
* | ├── src/...
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* __Metadata Structure__:
|
|
38
|
-
* ```text
|
|
39
|
-
* computeApps/
|
|
40
|
-
* ├── myApp.computeApp
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
class ComputeAppSourceAdapter extends bundleSourceAdapter_1.BundleSourceAdapter {
|
|
44
|
-
// lets the resolver hand us the flat metadata-format file
|
|
45
|
-
metadataWithContent = false;
|
|
46
|
-
getComponent(path, isResolvingSource = true) {
|
|
47
|
-
const suffix = `.${this.type.suffix ?? ''}`;
|
|
48
|
-
if (path.endsWith(suffix) && (0, node_path_1.basename)((0, node_path_1.dirname)(path)) === this.type.directoryName && !this.tree.isDirectory(path)) {
|
|
49
|
-
// app files can contain their own `computeApps/` folder; those belong to the enclosing app
|
|
50
|
-
const bundleDir = this.findEnclosingBundle(path);
|
|
51
|
-
if (bundleDir) {
|
|
52
|
-
return super.getComponent(bundleDir, isResolvingSource);
|
|
53
|
-
}
|
|
54
|
-
const name = (0, node_path_1.basename)(path, suffix);
|
|
55
|
-
// a stray flat file next to the bundle folder; the folder is the real component
|
|
56
|
-
const bundlePath = (0, node_path_1.join)((0, node_path_1.dirname)(path), name);
|
|
57
|
-
// zip trees throw on isDirectory for missing paths
|
|
58
|
-
if (this.tree.exists(bundlePath) && this.tree.isDirectory(bundlePath)) {
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
61
|
-
return new sourceComponent_1.SourceComponent({ name, type: this.type, xml: path }, this.tree, this.forceIgnore);
|
|
62
|
-
}
|
|
63
|
-
return super.getComponent(path, isResolvingSource);
|
|
64
|
-
}
|
|
65
|
-
findEnclosingBundle(path) {
|
|
66
|
-
for (let dir = (0, node_path_1.dirname)((0, node_path_1.dirname)(path)); dir !== (0, node_path_1.dirname)(dir); dir = (0, node_path_1.dirname)(dir)) {
|
|
67
|
-
if ((0, node_path_1.basename)((0, node_path_1.dirname)(dir)) === this.type.directoryName &&
|
|
68
|
-
this.tree.exists((0, node_path_1.join)(dir, `${(0, node_path_1.basename)(dir)}.${this.type.suffix ?? ''}${constants_1.META_XML_SUFFIX}`))) {
|
|
69
|
-
return dir;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.ComputeAppSourceAdapter = ComputeAppSourceAdapter;
|
|
75
|
-
//# sourceMappingURL=computeAppSourceAdapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"computeAppSourceAdapter.js","sourceRoot":"","sources":["../../../../src/resolve/adapters/computeAppSourceAdapter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAAoD;AACpD,sDAAyD;AAEzD,wDAAqD;AACrD,+DAA4D;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,uBAAwB,SAAQ,yCAAmB;IAC9D,0DAA0D;IAChD,mBAAmB,GAAG,KA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