@oclif/core 4.0.30 → 4.0.31

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.
@@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Config = void 0;
30
30
  const ejs = __importStar(require("ejs"));
31
+ const is_wsl_1 = __importDefault(require("is-wsl"));
31
32
  const node_os_1 = require("node:os");
32
33
  const node_path_1 = require("node:path");
33
34
  const node_url_1 = require("node:url");
@@ -293,8 +294,7 @@ class Config {
293
294
  this.channel = this.options.channel || channelFromVersion(this.version);
294
295
  this.valid = this.rootPlugin.valid;
295
296
  this.arch = (0, node_os_1.arch)() === 'ia32' ? 'x86' : (0, node_os_1.arch)();
296
- const { default: isWSL } = await import('is-wsl');
297
- this.platform = isWSL ? 'wsl' : (0, os_1.getPlatform)();
297
+ this.platform = is_wsl_1.default ? 'wsl' : (0, os_1.getPlatform)();
298
298
  this.windows = this.platform === 'win32';
299
299
  this.bin = this.pjson.oclif.bin || this.name;
300
300
  this.binAliases = this.pjson.oclif.binAliases;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "4.0.30",
4
+ "version": "4.0.31",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -14,7 +14,7 @@
14
14
  "get-package-type": "^0.1.0",
15
15
  "globby": "^11.1.0",
16
16
  "indent-string": "^4.0.0",
17
- "is-wsl": "^3",
17
+ "is-wsl": "^2.2.0",
18
18
  "lilconfig": "^3.1.2",
19
19
  "minimatch": "^9.0.5",
20
20
  "semver": "^7.6.3",