Skip to content

Commit e2b4f73

Browse files
committed
Upgrade dependencies.
1 parent fca7c4f commit e2b4f73

26 files changed

+70
-64
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
[Dep:LRT.Core]: https://github.com/litert/core.js
44

5+
## v0.2.1
6+
7+
- Upgraded @litert/core to the v0.3.x.
8+
- Upgraded TypeScript to the v2.7.x.
9+
510
## v0.2.0
611

712
- Now allows that only options input without commands in command mode.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on
176176
the same "printed page" as the copyright notice for easier identification within
177177
third-party archives.
178178

179-
Copyright 2017 Angus.Fenying
179+
Copyright 2018 Angus.Fenying
180180

181181
Licensed under the Apache License, Version 2.0 (the "License");
182182
you may not use this file except in compliance with the License.

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "@litert/clap",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A simple library for parsing commandline arguments.",
55
"main": "dist/index.js",
66
"scripts": {
77
"prepare": "npm run rebuild",
88
"build": "tsc -p .",
9-
"rebuild": "npm run clean && npm run build",
9+
"rebuild": "npm run clean && npm run lint && npm run build",
1010
"test": "echo See directory sources/samples",
11-
"clean": "rm -rf ./dist/"
11+
"clean": "rm -rf ./dist/",
12+
"lint": "tslint -p . -c tslint.json"
1213
},
1314
"repository": {
1415
"type": "git",
@@ -31,12 +32,12 @@
3132
"types": "dist/index.d.ts",
3233
"devDependencies": {
3334
"@types/node": "^8.0.6",
34-
"typescript": "^2.5.2"
35+
"typescript": "^2.7.0"
3536
},
3637
"engines": {
3738
"node": ">=8.0.0"
3839
},
3940
"dependencies": {
40-
"@litert/core": "^0.2.0"
41+
"@litert/core": "^0.3.3"
4142
}
4243
}

sources/class.AbstractCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
+----------------------------------------------------------------------+
33
| LiteRT Clap.js Library |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2007-2017 Fenying Studio |
5+
| Copyright (c) 2018 Fenying Studio |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 2.0 of the Apache license, |
88
| that is bundled with this package in the file LICENSE, and is |
99
| available through the world-wide-web at the following url: |
1010
| https://github.com/litert/clap.js/blob/master/LICENSE |
1111
+----------------------------------------------------------------------+
12-
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
12+
| Authors: Angus Fenying <fenying@litert.org> |
1313
+----------------------------------------------------------------------+
1414
*/
1515

sources/class.CommandParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
+----------------------------------------------------------------------+
33
| LiteRT Clap.js Library |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2007-2017 Fenying Studio |
5+
| Copyright (c) 2018 Fenying Studio |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 2.0 of the Apache license, |
88
| that is bundled with this package in the file LICENSE, and is |
99
| available through the world-wide-web at the following url: |
1010
| https://github.com/litert/clap.js/blob/master/LICENSE |
1111
+----------------------------------------------------------------------+
12-
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
12+
| Authors: Angus Fenying <fenying@litert.org> |
1313
+----------------------------------------------------------------------+
1414
*/
1515

sources/class.Exception.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
+----------------------------------------------------------------------+
33
| LiteRT Clap.js Library |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2007-2017 Fenying Studio |
5+
| Copyright (c) 2018 Fenying Studio |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 2.0 of the Apache license, |
88
| that is bundled with this package in the file LICENSE, and is |
99
| available through the world-wide-web at the following url: |
1010
| https://github.com/litert/clap.js/blob/master/LICENSE |
1111
+----------------------------------------------------------------------+
12-
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
12+
| Authors: Angus Fenying <fenying@litert.org> |
1313
+----------------------------------------------------------------------+
1414
*/
1515

sources/class.MainCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
+----------------------------------------------------------------------+
33
| LiteRT Clap.js Library |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2007-2017 Fenying Studio |
5+
| Copyright (c) 2018 Fenying Studio |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 2.0 of the Apache license, |
88
| that is bundled with this package in the file LICENSE, and is |
99
| available through the world-wide-web at the following url: |
1010
| https://github.com/litert/clap.js/blob/master/LICENSE |
1111
+----------------------------------------------------------------------+
12-
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
12+
| Authors: Angus Fenying <fenying@litert.org> |
1313
+----------------------------------------------------------------------+
1414
*/
1515

sources/class.Option.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
+----------------------------------------------------------------------+
33
| LiteRT Clap.js Library |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2007-2017 Fenying Studio |
5+
| Copyright (c) 2018 Fenying Studio |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 2.0 of the Apache license, |
88
| that is bundled with this package in the file LICENSE, and is |
99
| available through the world-wide-web at the following url: |
1010
| https://github.com/litert/clap.js/blob/master/LICENSE |
1111
+----------------------------------------------------------------------+
12-
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
12+
| Authors: Angus Fenying <fenying@litert.org> |
1313
+----------------------------------------------------------------------+
1414
*/
1515

@@ -26,7 +26,7 @@ export class Option implements Internal.IOption {
2626

2727
public withArgument: boolean;
2828

29-
public defaultArgument: string;
29+
public defaultArgument!: string;
3030

3131
public shortcut?: string;
3232

sources/class.ParseResult.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
+----------------------------------------------------------------------+
33
| LiteRT Clap.js Library |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2007-2017 Fenying Studio |
5+
| Copyright (c) 2018 Fenying Studio |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 2.0 of the Apache license, |
88
| that is bundled with this package in the file LICENSE, and is |
99
| available through the world-wide-web at the following url: |
1010
| https://github.com/litert/clap.js/blob/master/LICENSE |
1111
+----------------------------------------------------------------------+
12-
| Authors: Angus Fenying <i.am.x.fenying@gmail.com> |
12+
| Authors: Angus Fenying <fenying@litert.org> |
1313
+----------------------------------------------------------------------+
1414
*/
1515

@@ -19,7 +19,7 @@ import * as Internal from "./internal";
1919

2020
export class ParseResult implements Internal.IParseResult {
2121

22-
protected _success: boolean;
22+
protected _success!: boolean;
2323

2424
protected _error?: Exception;
2525

@@ -137,9 +137,9 @@ export class ParseResult implements Internal.IParseResult {
137137

138138
export class CommandParseResult extends ParseResult implements Internal.ICommandParseResult {
139139

140-
protected _mainCommand: string;
140+
protected _mainCommand!: string;
141141

142-
protected _subCommand: string;
142+
protected _subCommand!: string;
143143

144144
public constructor() {
145145

0 commit comments

Comments
 (0)