@salesforce/core 7.3.3-dev.0 → 7.3.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.
@@ -243,10 +243,6 @@ class ConfigFile extends configStore_1.BaseConfigStore {
243
243
  */
244
244
  async write() {
245
245
  const lockResponse = await (0, fileLocking_1.lockInit)(this.getPath());
246
- if (this.getPath().endsWith('sandbox-create-cache.json')) {
247
- // eslint-disable-next-line no-console
248
- console.log('(async) time before write:', performance.now());
249
- }
250
246
  // lock the file. Returns an unlock function to call when done.
251
247
  try {
252
248
  const fileTimestamp = (await fs.promises.stat(this.getPath(), { bigint: true })).mtimeNs;
@@ -258,13 +254,6 @@ class ConfigFile extends configStore_1.BaseConfigStore {
258
254
  }
259
255
  // write the merged LWWMap to file
260
256
  await lockResponse.writeAndUnlock(JSON.stringify(this.getContents(), null, 2));
261
- if (this.getPath().endsWith('sandbox-create-cache.json')) {
262
- /* eslint-disable no-console */
263
- console.log('(async) time after write:', performance.now());
264
- console.dir(this.getContents(), { depth: 8 });
265
- console.log('--------------------------------------');
266
- /* eslint-enable no-console */
267
- }
268
257
  return this.getContents();
269
258
  }
270
259
  /**
@@ -275,10 +264,6 @@ class ConfigFile extends configStore_1.BaseConfigStore {
275
264
  */
276
265
  writeSync() {
277
266
  const lockResponse = (0, fileLocking_1.lockInitSync)(this.getPath());
278
- if (this.getPath().endsWith('sandbox-create-cache.json')) {
279
- // eslint-disable-next-line no-console
280
- console.log('(sync) time before write:', performance.now());
281
- }
282
267
  try {
283
268
  // get the file modstamp. Do this after the lock acquisition in case the file is being written to.
284
269
  const fileTimestamp = fs.statSync(this.getPath(), { bigint: true }).mtimeNs;
@@ -290,13 +275,6 @@ class ConfigFile extends configStore_1.BaseConfigStore {
290
275
  }
291
276
  // write the merged LWWMap to file
292
277
  lockResponse.writeAndUnlock(JSON.stringify(this.getContents(), null, 2));
293
- if (this.getPath().endsWith('sandbox-create-cache.json')) {
294
- /* eslint-disable no-console */
295
- console.log('(sync) time after write:', performance.now());
296
- console.dir(this.getContents(), { depth: 8 });
297
- console.log('--------------------------------------');
298
- /* eslint-enable no-console */
299
- }
300
278
  return this.getContents();
301
279
  }
302
280
  /**
@@ -197,7 +197,9 @@ class SfdcUrl extends node_url_1.URL {
197
197
  * @returns {boolean} true if this domain is a lightning domain
198
198
  */
199
199
  isLightningDomain() {
200
- return this.origin.includes('.lightning.force.com') || this.origin.includes('.lightning.crmforce.mil') || this.origin.includes('.lightning.sfcrmapps.cn');
200
+ return (this.origin.includes('.lightning.force.com') ||
201
+ this.origin.includes('.lightning.crmforce.mil') ||
202
+ this.origin.includes('.lightning.sfcrmapps.cn'));
201
203
  }
202
204
  }
203
205
  exports.SfdcUrl = SfdcUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "7.3.3-dev.0",
3
+ "version": "7.3.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",
@@ -52,11 +52,11 @@
52
52
  "messageTransformer/messageTransformer.ts"
53
53
  ],
54
54
  "dependencies": {
55
- "@jsforce/jsforce-node": "^3.1.0",
55
+ "@jsforce/jsforce-node": "^3.2.0",
56
56
  "@salesforce/kit": "^3.1.1",
57
57
  "@salesforce/schemas": "^1.7.0",
58
58
  "@salesforce/ts-types": "^2.0.9",
59
- "ajv": "^8.12.0",
59
+ "ajv": "^8.13.0",
60
60
  "change-case": "^4.1.2",
61
61
  "faye": "^1.4.0",
62
62
  "form-data": "^4.0.0",