🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@oclif/core

Package Overview
Dependencies
Maintainers
2
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/core - npm Package Compare versions

Comparing version
4.10.2
to
4.10.3
+1
-2
lib/config/config.js

@@ -41,3 +41,2 @@ "use strict";

const ejs = __importStar(require("ejs"));
const is_wsl_1 = __importDefault(require("is-wsl"));
const node_os_1 = require("node:os");

@@ -319,3 +318,3 @@ const node_path_1 = require("node:path");

this.arch = (0, node_os_1.arch)() === 'ia32' ? 'x86' : (0, node_os_1.arch)();
this.platform = is_wsl_1.default ? 'wsl' : (0, os_1.getPlatform)();
this.platform = (0, os_1.getPlatform)();
this.windows = this.platform === 'win32';

@@ -322,0 +321,0 @@ this.bin = this.pjson.oclif.bin || this.name;

@@ -18,2 +18,2 @@ /**

*/
export declare function getPlatform(): NodeJS.Platform;
export declare function getPlatform(): 'wsl' | NodeJS.Platform;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHomeDir = getHomeDir;
exports.getPlatform = getPlatform;
const is_wsl_1 = __importDefault(require("is-wsl"));
const node_os_1 = require("node:os");

@@ -26,3 +30,3 @@ /**

function getPlatform() {
return (0, node_os_1.platform)();
return is_wsl_1.default ? 'wsl' : (0, node_os_1.platform)();
}
{
"name": "@oclif/core",
"description": "base library for oclif CLIs",
"version": "4.10.2",
"version": "4.10.3",
"author": "Salesforce",

@@ -38,3 +38,3 @@ "bugs": "https://github.com/oclif/core/issues",

"@types/clean-stack": "^2.1.1",
"@types/debug": "^4.1.10",
"@types/debug": "^4.1.13",
"@types/ejs": "^3.1.5",

@@ -41,0 +41,0 @@ "@types/indent-string": "^4.0.1",