@salesforce/source-deploy-retrieve 10.2.11 → 10.2.13
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.
|
@@ -10,6 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.getCoverage = exports.getCurrentApiVersion = void 0;
|
|
11
11
|
const got_1 = require("got");
|
|
12
12
|
const proxy_agent_1 = require("proxy-agent");
|
|
13
|
+
const ts_types_1 = require("@salesforce/ts-types");
|
|
14
|
+
const core_1 = require("@salesforce/core");
|
|
13
15
|
const getProxiedOptions = (url) => ({
|
|
14
16
|
timeout: {
|
|
15
17
|
request: 10000,
|
|
@@ -19,10 +21,22 @@ const getProxiedOptions = (url) => ({
|
|
|
19
21
|
},
|
|
20
22
|
url,
|
|
21
23
|
});
|
|
24
|
+
let apiVer;
|
|
22
25
|
const getCurrentApiVersion = async () => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
if (apiVer === undefined) {
|
|
27
|
+
try {
|
|
28
|
+
const apiVersionsUrl = 'https://appexchange.salesforce.com/services/data';
|
|
29
|
+
const lastVersionEntry = (await (0, got_1.default)(getProxiedOptions(apiVersionsUrl)).json()).at(-1);
|
|
30
|
+
apiVer = +lastVersionEntry.version;
|
|
31
|
+
}
|
|
32
|
+
catch (e) {
|
|
33
|
+
const err = e instanceof Error ? e : core_1.SfError.wrap((0, ts_types_1.isString)(e) ? e : 'unknown');
|
|
34
|
+
const eMsg = 'Unable to get a current API version from the appexchange org';
|
|
35
|
+
const eActions = ['Provide an API version explicitly', 'Set an API version in the project configuration'];
|
|
36
|
+
throw new core_1.SfError(eMsg, 'ApiVersionRetrievalError', eActions, err);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return apiVer;
|
|
26
40
|
};
|
|
27
41
|
exports.getCurrentApiVersion = getCurrentApiVersion;
|
|
28
42
|
const getCoverage = async (apiVersion) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.js","sourceRoot":"","sources":["../../../src/registry/coverage.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,+BAA+B;;;AAG/B,6BAAsB;AACtB,6CAAyC;
|
|
1
|
+
{"version":3,"file":"coverage.js","sourceRoot":"","sources":["../../../src/registry/coverage.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,+BAA+B;;;AAG/B,6BAAsB;AACtB,6CAAyC;AACzC,mDAAgD;AAChD,2CAA2C;AAG3C,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAA6B,EAAE,CAAC,CAAC;IACrE,OAAO,EAAE;QACP,OAAO,EAAE,KAAK;KACf;IACD,KAAK,EAAE;QACL,KAAK,EAAE,IAAI,wBAAU,EAAE;KACxB;IACD,GAAG;CACJ,CAAC,CAAC;AAQH,IAAI,MAAc,CAAC;AAEZ,MAAM,oBAAoB,GAAG,KAAK,IAAqB,EAAE;IAC9D,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,IAAI,CAAC;YACH,MAAM,cAAc,GAAG,kDAAkD,CAAC;YAC1E,MAAM,gBAAgB,GAAG,CAAC,MAAM,IAAA,aAAG,EAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,EAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAe,CAAC;YAClH,MAAM,GAAG,CAAC,gBAAgB,CAAC,OAAO,CAAC;QACrC,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YACpB,MAAM,GAAG,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAO,CAAC,IAAI,CAAC,IAAA,mBAAQ,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC/E,MAAM,IAAI,GAAG,8DAA8D,CAAC;YAC5E,MAAM,QAAQ,GAAG,CAAC,mCAAmC,EAAE,iDAAiD,CA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IAAI,EAAkB,CACzB,CACF,CAAC;IACF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,KAAK,EAAE,UAAU,KAAK,UAAU,EAAE,CAAC;YAC7E,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,oDAAoD,UAAU,EAAE,CAAC,CAAC;IAE9E,OAAO;QACL,UAAU;QACV,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,EAAE;KACV,CAAC;AACJ,CAAC,CAAC;AApCW,QAAA,WAAW,eAoCtB"}
|
|
@@ -3319,7 +3319,7 @@
|
|
|
3319
3319
|
"identityverificationprocdef": {
|
|
3320
3320
|
"id": "identityverificationprocdef",
|
|
3321
3321
|
"name": "IdentityVerificationProcDef",
|
|
3322
|
-
"suffix": "
|
|
3322
|
+
"suffix": "IdentityVerificationProcDef",
|
|
3323
3323
|
"directoryName": "IdentityVerificationProcDefs",
|
|
3324
3324
|
"inFolder": false,
|
|
3325
3325
|
"strictDirectoryName": false
|
|
@@ -4106,7 +4106,7 @@
|
|
|
4106
4106
|
"dwl": "dataweaveresource",
|
|
4107
4107
|
"aq": "assessmentquestion",
|
|
4108
4108
|
"aqs": "assessmentquestionset",
|
|
4109
|
-
"
|
|
4109
|
+
"IdentityVerificationProcDef": "identityverificationprocdef",
|
|
4110
4110
|
"digitalExperience": "digitalexperiencebundle",
|
|
4111
4111
|
"digitalExperienceConfig": "digitalexperienceconfig",
|
|
4112
4112
|
"forecastingFilter": "forecastingfilter",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/source-deploy-retrieve",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.13",
|
|
4
4
|
"description": "JavaScript library to run Salesforce metadata deploys and retrieves",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"author": "Salesforce",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@salesforce/cli-plugins-testkit": "^4.4.12",
|
|
44
|
-
"@salesforce/dev-scripts": "^8.
|
|
44
|
+
"@salesforce/dev-scripts": "^8.3.0",
|
|
45
45
|
"@types/deep-equal-in-any-order": "^1.0.1",
|
|
46
46
|
"@types/fast-levenshtein": "^0.0.4",
|
|
47
47
|
"@types/graceful-fs": "^4.1.9",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/shelljs": "^0.8.15",
|
|
52
52
|
"deep-equal-in-any-order": "^1.1.19",
|
|
53
53
|
"deepmerge": "^4.3.1",
|
|
54
|
-
"eslint-plugin-sf-plugin": "^1.17.
|
|
54
|
+
"eslint-plugin-sf-plugin": "^1.17.2",
|
|
55
55
|
"jsforce": "^2.0.0-beta.29",
|
|
56
56
|
"mocha-junit-reporter": "^1.23.3",
|
|
57
57
|
"shelljs": "0.8.5",
|