@salesforce/source-deploy-retrieve 12.1.3 → 12.1.4
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/index.d.ts +1 -0
- package/lib/src/index.js +3 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/registry/presets/presetMap.d.ts +2 -0
- package/lib/src/registry/presets/presetMap.js +38 -0
- package/lib/src/registry/presets/presetMap.js.map +1 -0
- package/lib/src/registry/variants.js +12 -9
- package/lib/src/registry/variants.js.map +1 -1
- package/package.json +1 -1
package/lib/src/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { MetadataResolver, ManifestResolver, ConnectionResolver, TreeContainer,
|
|
|
4
4
|
export { SourcePath, TreeOptions, OptionalTreeRegistryOptions, RegistryOptions } from './common';
|
|
5
5
|
export { LazyCollection, ComponentSet, ComponentSetBuilder, ComponentSetOptions, DeploySetOptions, RetrieveSetOptions, PackageTypeMembers, PackageManifestObject, DestructiveChangesType, FromSourceOptions, FromManifestOptions, } from './collections';
|
|
6
6
|
export { RegistryAccess, registry, getCurrentApiVersion, MetadataRegistry, MetadataType, DecompositionStrategy, RecompositionStrategy, TransformerStrategy, } from './registry';
|
|
7
|
+
export { presetMap } from './registry/presets/presetMap';
|
package/lib/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCurrentApiVersion = exports.registry = exports.RegistryAccess = exports.DestructiveChangesType = exports.ComponentSetBuilder = exports.ComponentSet = exports.LazyCollection = exports.ForceIgnore = exports.SourceComponent = exports.ZipTreeContainer = exports.VirtualTreeContainer = exports.NodeFSTreeContainer = exports.TreeContainer = exports.ConnectionResolver = exports.ManifestResolver = exports.MetadataResolver = exports.MetadataConverter = exports.ComponentStatus = exports.RequestStatus = exports.RetrieveResult = exports.MetadataApiRetrieve = exports.DeployResult = exports.MetadataApiDeploy = void 0;
|
|
3
|
+
exports.presetMap = exports.getCurrentApiVersion = exports.registry = exports.RegistryAccess = exports.DestructiveChangesType = exports.ComponentSetBuilder = exports.ComponentSet = exports.LazyCollection = exports.ForceIgnore = exports.SourceComponent = exports.ZipTreeContainer = exports.VirtualTreeContainer = exports.NodeFSTreeContainer = exports.TreeContainer = exports.ConnectionResolver = exports.ManifestResolver = exports.MetadataResolver = exports.MetadataConverter = exports.ComponentStatus = exports.RequestStatus = exports.RetrieveResult = exports.MetadataApiRetrieve = exports.DeployResult = exports.MetadataApiDeploy = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -35,4 +35,6 @@ var registry_1 = require("./registry");
|
|
|
35
35
|
Object.defineProperty(exports, "RegistryAccess", { enumerable: true, get: function () { return registry_1.RegistryAccess; } });
|
|
36
36
|
Object.defineProperty(exports, "registry", { enumerable: true, get: function () { return registry_1.registry; } });
|
|
37
37
|
Object.defineProperty(exports, "getCurrentApiVersion", { enumerable: true, get: function () { return registry_1.getCurrentApiVersion; } });
|
|
38
|
+
var presetMap_1 = require("./registry/presets/presetMap");
|
|
39
|
+
Object.defineProperty(exports, "presetMap", { enumerable: true, get: function () { return presetMap_1.presetMap; } });
|
|
38
40
|
//# sourceMappingURL=index.js.map
|
package/lib/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mCAyCkB;AAxChB,2GAAA,iBAAiB,OAAA;AAEjB,sGAAA,YAAY,OAAA;AAKZ,6GAAA,mBAAmB,OAAA;AAEnB,wGAAA,cAAc,OAAA;AAQd,uGAAA,aAAa,OAAA;AAgBb,yGAAA,eAAe,OAAA;AAQjB,qCAWmB;AAVjB,4GAAA,iBAAiB,OAAA;AAWnB,qCAiBmB;AAhBjB,2GAAA,gBAAgB,OA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AAhD,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.presetMap = void 0;
|
|
27
|
+
// we have to import all presets explicitly for VSCE's esbuild bundling process
|
|
28
|
+
const decomposeCustomLabelsBeta = __importStar(require("./decomposeCustomLabelsBeta.json"));
|
|
29
|
+
const decomposePermissionSetBeta = __importStar(require("./decomposePermissionSetBeta.json"));
|
|
30
|
+
const decomposeSharingRulesBeta = __importStar(require("./decomposeSharingRulesBeta.json"));
|
|
31
|
+
const decomposeWorkflowBeta = __importStar(require("./decomposeWorkflowBeta.json"));
|
|
32
|
+
exports.presetMap = new Map([
|
|
33
|
+
['decomposeCustomLabelsBeta', decomposeCustomLabelsBeta],
|
|
34
|
+
['decomposePermissionSetBeta', decomposePermissionSetBeta],
|
|
35
|
+
['decomposeSharingRulesBeta', decomposeSharingRulesBeta],
|
|
36
|
+
['decomposeWorkflowBeta', decomposeWorkflowBeta],
|
|
37
|
+
]);
|
|
38
|
+
//# sourceMappingURL=presetMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presetMap.js","sourceRoot":"","sources":["../../../../src/registry/presets/presetMap.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,+EAA+E;AAC/E,4FAA8E;AAC9E,8FAAgF;AAChF,4FAA8E;AAC9E,oFAAsE;AAEzD,QAAA,SAAS,GAAG,IAAI,GAAG,CAA2B;IACzD,CAAC,2BAA2B,EAAE,yBAA6C,CAAC;IAC5E,CAAC,4BAA4B,EAAE,0BAA8C,CAAC;IAC9E,CAAC,2BAA2B,EAAE,yBAA6C,CAAC;IAC5E,CAAC,uBAAuB,EAAE,qBAAyC,CAAC;CACrE,CAAC,CAAC"}
|
|
@@ -30,11 +30,10 @@ exports.firstLevelMerge = exports.getEffectiveRegistry = void 0;
|
|
|
30
30
|
* Licensed under the BSD 3-Clause license.
|
|
31
31
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
const fs = __importStar(require("node:fs"));
|
|
34
|
-
const path = __importStar(require("node:path"));
|
|
35
33
|
const core_1 = require("@salesforce/core");
|
|
36
34
|
const collections_1 = require("../utils/collections");
|
|
37
35
|
const registryData = __importStar(require("./metadataRegistry.json"));
|
|
36
|
+
const presetMap_1 = require("./presets/presetMap");
|
|
38
37
|
/** combine the standard registration with any overrides specific in the sfdx-project.json */
|
|
39
38
|
const getEffectiveRegistry = (input) => (0, collections_1.deepFreeze)((0, exports.firstLevelMerge)(registryData, loadVariants(input)));
|
|
40
39
|
exports.getEffectiveRegistry = getEffectiveRegistry;
|
|
@@ -84,14 +83,18 @@ const maybeGetProject = (projectDir) => {
|
|
|
84
83
|
}
|
|
85
84
|
};
|
|
86
85
|
const loadPreset = (preset) => {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return JSON.parse(rawPreset);
|
|
91
|
-
}
|
|
92
|
-
catch (e) {
|
|
93
|
-
throw new Error(`Failed to load preset ${preset} in ${pathToCheck}`);
|
|
86
|
+
const matchedPreset = presetMap_1.presetMap.get(preset);
|
|
87
|
+
if (matchedPreset) {
|
|
88
|
+
return matchedPreset;
|
|
94
89
|
}
|
|
90
|
+
throw core_1.SfError.create({
|
|
91
|
+
message: `Failed to load preset "${preset}"`,
|
|
92
|
+
name: 'InvalidPreset',
|
|
93
|
+
actions: [
|
|
94
|
+
`Use a valid preset. Currently available presets are: [${[...presetMap_1.presetMap.keys()].join(', ')}]`,
|
|
95
|
+
'Updating your CLI may be required to get newer presets',
|
|
96
|
+
],
|
|
97
|
+
});
|
|
95
98
|
};
|
|
96
99
|
const emptyRegistry = {
|
|
97
100
|
types: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../src/registry/variants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../src/registry/variants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,2CAAwF;AACxF,sDAAkD;AAElD,sEAAwD;AACxD,mDAAgD;AAUhD,6FAA6F;AACtF,MAAM,oBAAoB,GAAG,CAAC,KAAyB,EAAoB,EAAE,CAClF,IAAA,wBAAU,EAAC,IAAA,uBAAe,EAAC,YAAgC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AADxE,QAAA,oBAAoB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