@oclif/core
Advanced tools
Comparing version 0.5.9 to 0.5.10
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.5.10](https://github.com/oclif/core/compare/v0.5.9...v0.5.10) (2021-05-28) | ||
### [0.5.9](https://github.com/oclif/core/compare/v0.5.8...v0.5.9) (2021-05-27) | ||
@@ -7,0 +9,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const url_1 = require("url"); | ||
const util_1 = require("util"); | ||
@@ -126,2 +127,6 @@ const config_1 = require("./config"); | ||
argv = process.argv.slice(2); | ||
// Handle the case when a file URL string is passed in such as 'import.meta.url'; covert to file path. | ||
if (typeof opts === 'string' && opts.startsWith('file://')) { | ||
opts = url_1.fileURLToPath(opts); | ||
} | ||
const config = await config_1.Config.load(opts || (module.parent && module.parent.parent && module.parent.parent.filename) || __dirname); | ||
@@ -128,0 +133,0 @@ const cmd = new this(argv, config); |
@@ -36,2 +36,6 @@ "use strict"; | ||
static async load(opts = (module.parent && module.parent && module.parent.parent && module.parent.parent.filename) || __dirname) { | ||
// Handle the case when a file URL string is passed in such as 'import.meta.url'; covert to file path. | ||
if (typeof opts === 'string' && opts.startsWith('file://')) { | ||
opts = url_1.fileURLToPath(opts); | ||
} | ||
if (typeof opts === 'string') | ||
@@ -38,0 +42,0 @@ opts = { root: opts }; |
@@ -12,2 +12,3 @@ import Command from './command'; | ||
import { settings, Settings } from './settings'; | ||
export { Command, Config, Errors, Flags, loadHelpClass, Help, HelpBase, Hook, Interfaces, Parser, Plugin, run, toCached, tsPath, toStandardizedId, toConfiguredId, settings, Settings, }; | ||
declare const flush: any; | ||
export { Command, Config, Errors, Flags, loadHelpClass, Help, HelpBase, Hook, Interfaces, Parser, Plugin, run, toCached, tsPath, toStandardizedId, toConfiguredId, settings, Settings, flush, }; |
@@ -31,2 +31,4 @@ "use strict"; | ||
exports.settings = settings_1.settings; | ||
const flush = require('../flush'); | ||
exports.flush = flush; | ||
function checkCWD() { | ||
@@ -33,0 +35,0 @@ try { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const url_1 = require("url"); | ||
const util_1 = require("util"); | ||
@@ -28,2 +29,6 @@ const config_1 = require("./config"); | ||
async function run(argv = process.argv.slice(2), options) { | ||
// Handle the case when a file URL string or URL is passed in such as 'import.meta.url'; covert to file path. | ||
if ((typeof options === 'string' && options.startsWith('file://')) || options instanceof URL) { | ||
options = url_1.fileURLToPath(options); | ||
} | ||
// return Main.run(argv, options) | ||
@@ -30,0 +35,0 @@ const config = await config_1.Config.load(options || (module.parent && module.parent.parent && module.parent.parent.filename) || __dirname); |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -67,3 +67,3 @@ "bugs": "https://github.com/oclif/core/issues", | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=12.0.0" | ||
}, | ||
@@ -70,0 +70,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164472
4286