Socket
Socket
Sign inDemoInstall

@microsoft/ts-command-line

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/ts-command-line - npm Package Compare versions

Comparing version 2.3.10 to 3.0.1

18

CHANGELOG.json

@@ -5,2 +5,20 @@ {

{
"version": "3.0.1",
"tag": "@microsoft/ts-command-line_v3.0.1",
"date": "Fri, 16 Feb 2018 22:05:23 GMT",
"comments": {}
},
{
"version": "3.0.0",
"tag": "@microsoft/ts-command-line_v3.0.0",
"date": "Fri, 16 Feb 2018 17:05:11 GMT",
"comments": {
"major": [
{
"comment": "Change all CommandLineActions to have an asychronous API that returns a promise."
}
]
}
},
{
"version": "2.3.10",

@@ -7,0 +25,0 @@ "tag": "@microsoft/ts-command-line_v2.3.10",

14

CHANGELOG.md
# Change Log - @microsoft/ts-command-line
This log was last generated on Wed, 07 Feb 2018 17:05:11 GMT and should not be manually modified.
This log was last generated on Fri, 16 Feb 2018 22:05:23 GMT and should not be manually modified.
## 3.0.1
Fri, 16 Feb 2018 22:05:23 GMT
*Version update only*
## 3.0.0
Fri, 16 Feb 2018 17:05:11 GMT
### Breaking changes
- Change all CommandLineActions to have an asychronous API that returns a promise.
## 2.3.10

@@ -6,0 +18,0 @@ Wed, 07 Feb 2018 17:05:11 GMT

8

dist/index-internal.d.ts

@@ -37,7 +37,7 @@ /**

*/
_execute(): void;
_execute(): Promise<void>;
/**
* Your subclass should implement this hook to perform the operation.
*/
protected abstract onExecute(): void;
protected abstract onExecute(): Promise<void>;
}

@@ -196,3 +196,3 @@

*/
execute(args?: string[]): void;
execute(args?: string[]): Promise<void>;
/**

@@ -202,3 +202,3 @@ * This hook allows the subclass to perform additional operations before or after

*/
protected onExecute(): void;
protected onExecute(): Promise<void>;
}

@@ -205,0 +205,0 @@

@@ -52,8 +52,8 @@ import * as argparse from 'argparse';

*/
_execute(): void;
_execute(): Promise<void>;
/**
* Your subclass should implement this hook to perform the operation.
*/
protected abstract onExecute(): void;
protected abstract onExecute(): Promise<void>;
}
export default CommandLineAction;

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

_execute() {
this.onExecute();
try {
return this.onExecute();
}
catch (error) {
return Promise.reject(error);
}
}

@@ -44,0 +49,0 @@ }

@@ -49,3 +49,3 @@ import CommandLineAction from './CommandLineAction';

*/
execute(args?: string[]): void;
execute(args?: string[]): Promise<void>;
/**

@@ -55,4 +55,4 @@ * This hook allows the subclass to perform additional operations before or after

*/
protected onExecute(): void;
protected onExecute(): Promise<void>;
}
export default CommandLineParser;

@@ -57,3 +57,3 @@ "use strict";

this._argumentParser.printHelp();
return;
return Promise.resolve();
}

@@ -72,3 +72,3 @@ const data = this._argumentParser.parseArgs();

}
this.onExecute();
return this.onExecute();
}

@@ -80,3 +80,3 @@ /**

onExecute() {
this.selectedAction._execute();
return this.selectedAction._execute();
}

@@ -83,0 +83,0 @@ }

{
"name": "@microsoft/ts-command-line",
"version": "2.3.10",
"version": "3.0.1",
"description": "An object-oriented command-line parser for TypeScript",

@@ -5,0 +5,0 @@ "repository": {

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