Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lsif

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lsif - npm Package Compare versions

Comparing version 0.6.0-next.12 to 0.6.0-next.13

29

lib/main.js

@@ -25,3 +25,4 @@ "use strict";

try {
yargs.
let commandCalled = false;
const args = yargs.
parserConfiguration({ 'camel-case-expansion': false }).

@@ -35,2 +36,3 @@ exitProcess(false).

handler: (argv) => __awaiter(this, void 0, void 0, function* () {
commandCalled = true;
const options = Object.assign({}, tsc.Options.defaults, argv);

@@ -46,2 +48,3 @@ const main = yield Promise.resolve().then(() => require('lsif-tsc'));

handler: (argv) => __awaiter(this, void 0, void 0, function* () {
commandCalled = true;
const options = Object.assign({}, npm.Options.defaults, argv);

@@ -57,2 +60,3 @@ const main = yield Promise.resolve().then(() => require('lsif-npm'));

handler: (argv) => __awaiter(this, void 0, void 0, function* () {
commandCalled = true;
const options = Object.assign({}, sqlite.Options.defaults, argv);

@@ -68,2 +72,3 @@ const main = yield Promise.resolve().then(() => require('lsif-sqlite'));

handler: (argv) => __awaiter(this, void 0, void 0, function* () {
commandCalled = true;
const options = Object.assign({}, validate.Options.defaults, argv);

@@ -74,5 +79,25 @@ const main = yield Promise.resolve().then(() => require('lsif-tooling'));

}).
demandCommand(1, 1, 'You need to specify one of the above commands.').
option('v', {
alias: 'version',
description: 'Output the version number',
boolean: true
}).
option('h', {
alias: 'help',
description: 'Output usage information',
boolean: true
}).
wrap(Math.min(100, yargs.terminalWidth())).
argv;
if (commandCalled) {
return;
}
if (args.v === true) {
console.log(require('../package.json').version);
return;
}
if (args.h === true) {
return;
}
console.error(`You need to specify one of the following commands: tsc, npm, sqlite, or validate.`);
}

@@ -79,0 +104,0 @@ catch (err) {

4

package.json
{
"name": "lsif",
"description": "Wrapper tool to start lsif based sub tools",
"version": "0.6.0-next.12",
"version": "0.6.0-next.13",
"author": "Microsoft Corporation",

@@ -23,3 +23,3 @@ "license": "MIT",

"lsif-tooling": "0.6.0-next.7",
"lsif-tsc": "0.6.0-next.11",
"lsif-tsc": "0.6.0-next.12",
"yargs": "^16.2.0"

@@ -26,0 +26,0 @@ },

@@ -15,3 +15,4 @@ /* --------------------------------------------------------------------------------------------

try {
yargs.
let commandCalled: boolean = false;
const args = yargs.
parserConfiguration({ 'camel-case-expansion': false }).

@@ -25,2 +26,3 @@ exitProcess(false).

handler: async (argv) => {
commandCalled = true;
const options: tsc.Options = Object.assign({}, tsc.Options.defaults, argv);

@@ -36,2 +38,3 @@ const main = await import('lsif-tsc');

handler: async (argv) => {
commandCalled = true;
const options: npm.Options = Object.assign({}, npm.Options.defaults, argv);

@@ -47,2 +50,3 @@ const main = await import('lsif-npm');

handler: async (argv) => {
commandCalled = true;
const options: sqlite.Options = Object.assign({}, sqlite.Options.defaults, argv);

@@ -58,2 +62,3 @@ const main = await import('lsif-sqlite');

handler: async (argv) => {
commandCalled = true;
const options: validate.Options = Object.assign({}, validate.Options.defaults, argv);

@@ -64,5 +69,25 @@ const main = await import('lsif-tooling');

}).
demandCommand(1, 1, 'You need to specify one of the above commands.').
option('v', {
alias: 'version',
description: 'Output the version number',
boolean: true
}).
option('h', {
alias: 'help',
description: 'Output usage information',
boolean: true
}).
wrap(Math.min(100, yargs.terminalWidth())).
argv;
if (commandCalled) {
return;
}
if (args.v === true) {
console.log(require('../package.json').version);
return;
}
if (args.h === true) {
return;
}
console.error(`You need to specify one of the following commands: tsc, npm, sqlite, or validate.`);
} catch (err) {

@@ -69,0 +94,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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