@salesforce/core-bundle 8.8.2 → 8.8.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 +13 -27
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -10392,16 +10392,7 @@ var require_fileLocking = __commonJS({
10392
10392
  } catch (err) {
10393
10393
  throw sfError_12.SfError.wrap(err);
10394
10394
  }
10395
- const [unlock] = await Promise.all(fs.existsSync(filePath) ? (
10396
- // if the file exists, wait for it to be unlocked
10397
- [(0, proper_lockfile_1.lock)(filePath, lockRetryOptions_1.lockRetryOptions)]
10398
- ) : (
10399
- // lock the entire directory to keep others from trying to create the file while we are
10400
- [
10401
- (0, proper_lockfile_1.lock)((0, node_path_1.dirname)(filePath), lockRetryOptions_1.lockRetryOptions),
10402
- (await logger_12.Logger.child("fileLocking.lockInit")).debug(`No file found at ${filePath}. Write will create it. Locking the entire directory until file is written.`)
10403
- ]
10404
- ));
10395
+ const unlock = await (0, proper_lockfile_1.lock)(filePath, { ...lockRetryOptions_1.lockRetryOptions, realpath: false });
10405
10396
  return {
10406
10397
  writeAndUnlock: async (data) => {
10407
10398
  const logger = await logger_12.Logger.child("fileLocking.writeAndUnlock");
@@ -10422,16 +10413,7 @@ var require_fileLocking = __commonJS({
10422
10413
  } catch (err) {
10423
10414
  throw sfError_12.SfError.wrap(err);
10424
10415
  }
10425
- const [unlock] = fs.existsSync(filePath) ? (
10426
- // if the file exists, wait for it to be unlocked
10427
- [(0, proper_lockfile_1.lockSync)(filePath, lockRetryOptions_1.lockOptions)]
10428
- ) : (
10429
- // lock the entire directory to keep others from trying to create the file while we are
10430
- [
10431
- (0, proper_lockfile_1.lockSync)((0, node_path_1.dirname)(filePath), lockRetryOptions_1.lockOptions),
10432
- logger_12.Logger.childFromRoot("fileLocking.lockInit").debug(`No file found at ${filePath}. Write will create it. Locking the entire directory until file is written.`)
10433
- ]
10434
- );
10416
+ const unlock = (0, proper_lockfile_1.lockSync)(filePath, { ...lockRetryOptions_1.lockOptions, realpath: false });
10435
10417
  return {
10436
10418
  writeAndUnlock: (data) => {
10437
10419
  const logger = logger_12.Logger.childFromRoot("fileLocking.writeAndUnlock");
@@ -12328,7 +12310,7 @@ var require_package2 = __commonJS({
12328
12310
  "package.json"(exports2, module2) {
12329
12311
  module2.exports = {
12330
12312
  name: "@salesforce/core-bundle",
12331
- version: "8.8.2",
12313
+ version: "8.8.4",
12332
12314
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
12333
12315
  main: "lib/index",
12334
12316
  types: "lib/index.d.ts",
@@ -12365,7 +12347,7 @@ var require_package2 = __commonJS({
12365
12347
  "messageTransformer/messageTransformer.ts"
12366
12348
  ],
12367
12349
  dependencies: {
12368
- "@jsforce/jsforce-node": "^3.6.1",
12350
+ "@jsforce/jsforce-node": "^3.6.5",
12369
12351
  "@salesforce/kit": "^3.2.2",
12370
12352
  "@salesforce/schemas": "^1.9.0",
12371
12353
  "@salesforce/ts-types": "^2.0.10",
@@ -33031,7 +33013,7 @@ var require_VERSION = __commonJS({
33031
33013
  "node_modules/@jsforce/jsforce-node/lib/VERSION.js"(exports2) {
33032
33014
  "use strict";
33033
33015
  Object.defineProperty(exports2, "__esModule", { value: true });
33034
- exports2.default = "3.6.1";
33016
+ exports2.default = "3.6.5";
33035
33017
  }
33036
33018
  });
33037
33019
 
@@ -43048,8 +43030,9 @@ var require_csv = __commonJS({
43048
43030
  var sync_1 = require_sync();
43049
43031
  var csv_stringify_1 = require_cjs2();
43050
43032
  var sync_2 = require_sync2();
43033
+ var csvDelimiters = ["`", "^", ",", "|", ";", " "];
43051
43034
  function parseCSV(str, options) {
43052
- return (0, sync_1.parse)(str, { ...options, columns: true });
43035
+ return (0, sync_1.parse)(str, { ...options, columns: true, delimiter: csvDelimiters });
43053
43036
  }
43054
43037
  exports2.parseCSV = parseCSV;
43055
43038
  function toCSV(records, options) {
@@ -43278,7 +43261,7 @@ var require_http_api = __commonJS({
43278
43261
  * @protected
43279
43262
  */
43280
43263
  isSessionExpired(response) {
43281
- return response.statusCode === 401;
43264
+ return response.statusCode === 401 && !response.body.includes("Connected app is not attached to Agent");
43282
43265
  }
43283
43266
  /**
43284
43267
  * Detect error response
@@ -52060,8 +52043,11 @@ var require_soap = __commonJS({
52060
52043
  return value.map((v) => toXML(name, v)).join("");
52061
52044
  } else {
52062
52045
  const attrs = [];
52063
- const elems = [];
52064
- if ((0, function_1.isMapObject)(value)) {
52046
+ if (value === null) {
52047
+ attrs.push('xsi:nil="true"');
52048
+ value = "";
52049
+ } else if ((0, function_1.isMapObject)(value)) {
52050
+ const elems = [];
52065
52051
  for (const k of Object.keys(value)) {
52066
52052
  const v = value[k];
52067
52053
  if (k.startsWith("@")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core-bundle",
3
- "version": "8.8.2",
3
+ "version": "8.8.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",
@@ -37,7 +37,7 @@
37
37
  "messageTransformer/messageTransformer.ts"
38
38
  ],
39
39
  "dependencies": {
40
- "@jsforce/jsforce-node": "^3.6.1",
40
+ "@jsforce/jsforce-node": "^3.6.5",
41
41
  "@salesforce/kit": "^3.2.2",
42
42
  "@salesforce/schemas": "^1.9.0",
43
43
  "@salesforce/ts-types": "^2.0.10",