@salesforce/core 8.11.2 → 8.11.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/messages.js
CHANGED
|
@@ -538,7 +538,7 @@ class Messages {
|
|
|
538
538
|
tokenCur += tokenCount;
|
|
539
539
|
return util.format(msgStr, ...relevantTokens);
|
|
540
540
|
}
|
|
541
|
-
else {
|
|
541
|
+
else if (tokens.length > 0) {
|
|
542
542
|
const logger = logger_1.Logger.childFromRoot('core:messages');
|
|
543
543
|
logger.warn(`Unable to render tokens in message. Ensure a specifier (e.g. %s) exists in the message:\n${msgStr}`);
|
|
544
544
|
}
|
|
@@ -41,6 +41,7 @@ const zipWriter_1 = require("../util/zipWriter");
|
|
|
41
41
|
const directoryWriter_1 = require("../util/directoryWriter");
|
|
42
42
|
const lifecycleEvents_1 = require("../lifecycleEvents");
|
|
43
43
|
const messages_1 = require("../messages");
|
|
44
|
+
const configAggregator_1 = require("../config/configAggregator");
|
|
44
45
|
;
|
|
45
46
|
var RequestStatus;
|
|
46
47
|
(function (RequestStatus) {
|
|
@@ -233,9 +234,12 @@ class SettingsGenerator {
|
|
|
233
234
|
const connection = scratchOrg.getConnection();
|
|
234
235
|
logger.debug(`deploying to apiVersion: ${apiVersion}`);
|
|
235
236
|
connection.setApiVersion(apiVersion);
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
// Get org-metadata-rest-deploy from config aggregator
|
|
238
|
+
const restDeploy = (await configAggregator_1.ConfigAggregator.create()).getPropertyValue('org-metadata-rest-deploy');
|
|
239
|
+
logger.debug(`Deploying settings to scratch org using ${restDeploy ? 'REST' : 'SOAP'} API`);
|
|
240
|
+
const { id } = await connection.deploy(this.writer.buffer, { rest: restDeploy });
|
|
241
|
+
logger.debug(`Settings deploy id: ${id}`);
|
|
242
|
+
let result = await connection.metadata.checkDeployStatus(id, undefined, restDeploy);
|
|
239
243
|
const pollingOptions = {
|
|
240
244
|
async poll() {
|
|
241
245
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.4",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jszip": "3.10.1",
|
|
68
68
|
"pino": "^9.7.0",
|
|
69
69
|
"pino-abstract-transport": "^1.2.0",
|
|
70
|
-
"pino-pretty": "^11.
|
|
70
|
+
"pino-pretty": "^11.3.0",
|
|
71
71
|
"proper-lockfile": "^4.1.2",
|
|
72
72
|
"semver": "^7.6.3",
|
|
73
73
|
"ts-retry-promise": "^0.8.1"
|