@salesforce/core 3.33.6 → 3.33.8

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/testSetup.js +4 -4
  2. package/package.json +3 -3
package/lib/testSetup.js CHANGED
@@ -399,7 +399,7 @@ const stubContext = (testContext) => {
399
399
  // init calls read calls getPath which sets the path on the config file the first time.
400
400
  // Since read is now stubbed, make sure to call getPath to initialize it.
401
401
  configFile.getPath();
402
- // @ts-ignore set this to true to avoid an infinite loop in tests when reading config files.
402
+ // @ts-expect-error: set this to true to avoid an infinite loop in tests when reading config files.
403
403
  configFile.hasRead = true;
404
404
  return stub;
405
405
  };
@@ -421,9 +421,9 @@ const stubContext = (testContext) => {
421
421
  }
422
422
  };
423
423
  // Mock out all config file IO for all tests. They can restore individually if they need original functionality.
424
- // @ts-ignore
425
- stubs.configRead = testContext.SANDBOXES.CONFIG.stub(configFile_1.ConfigFile.prototype, 'readSync').callsFake(readSync);
426
- stubs.configReadSync = testContext.SANDBOXES.CONFIG.stub(configFile_1.ConfigFile.prototype, 'read').callsFake(read);
424
+ stubs.configRead = testContext.SANDBOXES.CONFIG.stub(configFile_1.ConfigFile.prototype, 'read').callsFake(read);
425
+ // @ts-expect-error: muting exact type match for stub readSync
426
+ stubs.configReadSync = testContext.SANDBOXES.CONFIG.stub(configFile_1.ConfigFile.prototype, 'readSync').callsFake(readSync);
427
427
  const writeSync = function (newContents) {
428
428
  if (!testContext.configStubs[this.constructor.name]) {
429
429
  testContext.configStubs[this.constructor.name] = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.33.6",
3
+ "version": "3.33.8",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -63,11 +63,11 @@
63
63
  "@types/chai-string": "^1.4.2",
64
64
  "@types/debug": "0.0.31",
65
65
  "@types/jsen": "0.0.21",
66
- "@types/jsonwebtoken": "8.5.9",
66
+ "@types/jsonwebtoken": "9.0.1",
67
67
  "@types/lodash": "^4.14.191",
68
68
  "@types/shelljs": "0.8.11",
69
69
  "@typescript-eslint/eslint-plugin": "^5.53.0",
70
- "@typescript-eslint/parser": "^5.53.0",
70
+ "@typescript-eslint/parser": "^5.54.1",
71
71
  "chai": "^4.3.7",
72
72
  "chai-string": "^1.5.0",
73
73
  "commitizen": "^3.1.2",