Socket
Socket
Sign inDemoInstall

@oclif/core

Package Overview
Dependencies
Maintainers
5
Versions
396
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 0.5.9 to 0.5.10

2

CHANGELOG.md

@@ -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 };

3

lib/index.d.ts

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc