@oclif/core
Advanced tools
@@ -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; |
+1
-1
@@ -18,2 +18,2 @@ /** | ||
| */ | ||
| export declare function getPlatform(): NodeJS.Platform; | ||
| export declare function getPlatform(): 'wsl' | NodeJS.Platform; |
+5
-1
| "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)(); | ||
| } |
+2
-2
| { | ||
| "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", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
416703
0.04%10428
0.03%