@salesforce/core 3.26.4 → 3.30.1

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.
package/CHANGELOG.md CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [3.26.4](https://github.com/forcedotcom/sfdx-core/compare/v3.26.3...v3.26.4) (2022-09-14)
5
+ ### [3.30.1](https://github.com/forcedotcom/sfdx-core/compare/v3.30.0...v3.30.1) (2022-09-15)
6
6
 
7
7
  ### Bug Fixes
8
8
 
9
- - **logger:** idempotent mkdir when creating sf dir ([#635](https://github.com/forcedotcom/sfdx-core/issues/635)) ([4594940](https://github.com/forcedotcom/sfdx-core/commit/4594940a16f5473aeea0af37a2705e9f00e2590a))
9
+ - await postOrgCreate hook ([#636](https://github.com/forcedotcom/sfdx-core/issues/636)) ([b9934d2](https://github.com/forcedotcom/sfdx-core/commit/b9934d2df6f5ea49b4f8bae44779aa5cab0e897f))
10
+
11
+ ## [3.30.0](https://github.com/forcedotcom/sfdx-core/compare/v3.26.3...v3.30.0) (2022-09-12)
10
12
 
11
13
  ### [3.26.3](https://github.com/forcedotcom/sfdx-core/compare/v3.26.2...v3.26.3) (2022-09-06)
12
14
 
package/lib/logger.js CHANGED
@@ -288,10 +288,10 @@ class Logger {
288
288
  catch (err1) {
289
289
  try {
290
290
  if (process.platform === 'win32') {
291
- fs.mkdirSync(path.dirname(logFile), { recursive: true });
291
+ fs.mkdirSync(path.dirname(logFile));
292
292
  }
293
293
  else {
294
- fs.mkdirSync(path.dirname(logFile), { mode: 0o700, recursive: true });
294
+ fs.mkdirSync(path.dirname(logFile), { mode: 0o700 });
295
295
  }
296
296
  }
297
297
  catch (err2) {
@@ -39,7 +39,7 @@ const isHookField = (key) => {
39
39
  return postOrgCreateHookFields.includes(key);
40
40
  };
41
41
  const emitPostOrgCreate = async (authFields) => {
42
- emitter.emit('postorgcreate', Object.fromEntries(Object.entries(authFields).filter(([key]) => isHookField(key))));
42
+ await emitter.emit('postorgcreate', Object.fromEntries(Object.entries(authFields).filter(([key]) => isHookField(key))));
43
43
  };
44
44
  exports.emitPostOrgCreate = emitPostOrgCreate;
45
45
  //# sourceMappingURL=scratchOrgLifecycleEvents.js.map
@@ -11,7 +11,7 @@ const sfdcUrl_1 = require("./sfdcUrl");
11
11
  async function getJwtAudienceUrl(options) {
12
12
  if (options.loginUrl) {
13
13
  const url = new sfdcUrl_1.SfdcUrl(options.loginUrl);
14
- return await url.getJwtAudienceUrl(options.createdOrgInstance);
14
+ return url.getJwtAudienceUrl(options.createdOrgInstance);
15
15
  }
16
16
  return sfdcUrl_1.SfdcUrl.PRODUCTION;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.26.4",
3
+ "version": "3.30.1",
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",