@salesforce/core-bundle 8.11.3 → 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.
Files changed (2) hide show
  1. package/lib/index.js +8 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -8289,7 +8289,7 @@ ${error.message}`);
8289
8289
  const relevantTokens = tokens.slice(tokenCur, tokenCur + tokenCount);
8290
8290
  tokenCur += tokenCount;
8291
8291
  return util.format(msgStr, ...relevantTokens);
8292
- } else {
8292
+ } else if (tokens.length > 0) {
8293
8293
  const logger = logger_12.Logger.childFromRoot("core:messages");
8294
8294
  logger.warn(`Unable to render tokens in message. Ensure a specifier (e.g. %s) exists in the message:
8295
8295
  ${msgStr}`);
@@ -12319,7 +12319,7 @@ var require_package2 = __commonJS({
12319
12319
  "package.json"(exports2, module2) {
12320
12320
  module2.exports = {
12321
12321
  name: "@salesforce/core-bundle",
12322
- version: "8.11.3",
12322
+ version: "8.11.4",
12323
12323
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
12324
12324
  main: "lib/index",
12325
12325
  types: "lib/index.d.ts",
@@ -106884,6 +106884,7 @@ var require_scratchOrgSettingsGenerator = __commonJS({
106884
106884
  var directoryWriter_1 = require_directoryWriter();
106885
106885
  var lifecycleEvents_12 = require_lifecycleEvents();
106886
106886
  var messages_12 = require_messages();
106887
+ var configAggregator_12 = require_configAggregator();
106887
106888
  var RequestStatus;
106888
106889
  (function(RequestStatus2) {
106889
106890
  RequestStatus2["Pending"] = "Pending";
@@ -107059,9 +107060,11 @@ var require_scratchOrgSettingsGenerator = __commonJS({
107059
107060
  const connection = scratchOrg.getConnection();
107060
107061
  logger.debug(`deploying to apiVersion: ${apiVersion}`);
107061
107062
  connection.setApiVersion(apiVersion);
107062
- const { id } = await connection.deploy(this.writer.buffer, {});
107063
- logger.debug(`deploying settings id ${id}`);
107064
- let result = await connection.metadata.checkDeployStatus(id);
107063
+ const restDeploy = (await configAggregator_12.ConfigAggregator.create()).getPropertyValue("org-metadata-rest-deploy");
107064
+ logger.debug(`Deploying settings to scratch org using ${restDeploy ? "REST" : "SOAP"} API`);
107065
+ const { id } = await connection.deploy(this.writer.buffer, { rest: restDeploy });
107066
+ logger.debug(`Settings deploy id: ${id}`);
107067
+ let result = await connection.metadata.checkDeployStatus(id, void 0, restDeploy);
107065
107068
  const pollingOptions = {
107066
107069
  async poll() {
107067
107070
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core-bundle",
3
- "version": "8.11.3",
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",