@salesforce/core 6.7.4 → 6.7.6

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.
@@ -30,6 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.messageTransformer = void 0;
33
+ // eslint-disable-next-line import/no-extraneous-dependencies
33
34
  const ts = __importStar(require("typescript"));
34
35
  const messages_1 = require("./messages");
35
36
  /**
@@ -296,7 +296,7 @@ class Connection extends jsforce_1.Connection {
296
296
  async autoFetchQuery(soql, queryOptions = { tooling: false }) {
297
297
  const config = await configAggregator_1.ConfigAggregator.create();
298
298
  // take the limit from the calling function, then the config, then default 10,000
299
- const maxFetch = (config.getInfo(orgConfigProperties_1.OrgConfigProperties.ORG_MAX_QUERY_LIMIT).value || queryOptions.maxFetch) ?? 10000;
299
+ const maxFetch = (config.getInfo(orgConfigProperties_1.OrgConfigProperties.ORG_MAX_QUERY_LIMIT).value || queryOptions.maxFetch) ?? 10_000;
300
300
  const { tooling, ...queryOptionsWithoutTooling } = queryOptions;
301
301
  const options = Object.assign(queryOptionsWithoutTooling, {
302
302
  autoFetch: true,
package/lib/org/org.js CHANGED
@@ -454,7 +454,7 @@ class Org extends kit_1.AsyncOptionalCreatable {
454
454
  const existingAliases = stateAgg.aliases.getAll(username);
455
455
  await stateAgg.aliases.unsetValuesAndSave(existingAliases);
456
456
  // unset any configs referencing this org
457
- [...existingAliases, username].flatMap((name) => this.configAggregator.unsetByValue(name));
457
+ await Promise.all([...existingAliases, username].flatMap((name) => this.configAggregator.unsetByValue(name)));
458
458
  if (await this.isSandbox()) {
459
459
  await this.deleteSandbox();
460
460
  }
@@ -14,6 +14,10 @@ export type PackageDir = {
14
14
  dependencies?: PackageDirDependency[];
15
15
  includeProfileUserLicenses?: boolean;
16
16
  package?: string;
17
+ packageMetadataAccess?: {
18
+ permissionSets: string | string[];
19
+ permissionSetLicenses: string | string[];
20
+ };
17
21
  path: string;
18
22
  postInstallScript?: string;
19
23
  postInstallUrl?: string;
package/lib/testSetup.js CHANGED
@@ -316,6 +316,7 @@ class TestContext {
316
316
  if (sinon)
317
317
  return sinon;
318
318
  try {
319
+ // eslint-disable-next-line import/no-extraneous-dependencies
319
320
  sinon = require('sinon');
320
321
  }
321
322
  catch (e) {
@@ -11,6 +11,6 @@ exports.lockRetryOptions = exports.lockOptions = void 0;
11
11
  exports.lockOptions = { stale: 10_000 };
12
12
  exports.lockRetryOptions = {
13
13
  ...exports.lockOptions,
14
- retries: { retries: 10, maxTimeout: 1_000, factor: 2 },
14
+ retries: { retries: 10, maxTimeout: 1000, factor: 2 },
15
15
  };
16
16
  //# sourceMappingURL=lockRetryOptions.js.map
@@ -478,5 +478,5 @@ class WebServer extends kit_1.AsyncCreatable {
478
478
  }
479
479
  }
480
480
  exports.WebServer = WebServer;
481
- WebServer.DEFAULT_CLIENT_SOCKET_TIMEOUT = 20000;
481
+ WebServer.DEFAULT_CLIENT_SOCKET_TIMEOUT = 20_000;
482
482
  //# sourceMappingURL=webOAuthServer.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "6.7.4",
3
+ "version": "6.7.6",
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",
@@ -15,6 +15,7 @@
15
15
  "compile": "wireit",
16
16
  "docs": "sf-docs",
17
17
  "format": "wireit",
18
+ "link-check": "wireit",
18
19
  "lint": "wireit",
19
20
  "lint-fix": "yarn sf-lint --fix",
20
21
  "postcompile": "tsc -p typedocExamples",
@@ -39,9 +40,8 @@
39
40
  ],
40
41
  "dependencies": {
41
42
  "@salesforce/kit": "^3.1.0",
42
- "@salesforce/schemas": "^1.6.1",
43
+ "@salesforce/schemas": "^1.7.0",
43
44
  "@salesforce/ts-types": "^2.0.9",
44
- "@types/semver": "^7.5.8",
45
45
  "ajv": "^8.12.0",
46
46
  "change-case": "^4.1.2",
47
47
  "faye": "^1.4.0",
@@ -58,12 +58,13 @@
58
58
  "ts-retry-promise": "^0.7.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@salesforce/dev-scripts": "^7.1.1",
61
+ "@salesforce/dev-scripts": "^8.4.2",
62
62
  "@salesforce/ts-sinon": "^1.4.19",
63
63
  "@types/benchmark": "^2.1.5",
64
64
  "@types/chai-string": "^1.4.5",
65
65
  "@types/jsonwebtoken": "9.0.6",
66
66
  "@types/proper-lockfile": "^4.1.4",
67
+ "@types/semver": "^7.5.8",
67
68
  "benchmark": "^2.1.4",
68
69
  "chai-string": "^1.5.0",
69
70
  "ts-node": "^10.9.2",
@@ -146,8 +147,19 @@
146
147
  "test": {
147
148
  "dependencies": [
148
149
  "test:only",
149
- "test:compile"
150
+ "test:compile",
151
+ "link-check"
150
152
  ]
153
+ },
154
+ "link-check": {
155
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"./*.md\" --skip \"examples/README.md|CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
156
+ "files": [
157
+ "./*.md",
158
+ "./examples/**/*.md",
159
+ "./messages/**/*.md",
160
+ "./!(CHANGELOG).md"
161
+ ],
162
+ "output": []
151
163
  }
152
164
  }
153
165
  }