Skip to content

Commit 331eb5f

Browse files
author
Johan Borestad
committed
Finish upgrade-deps
2 parents f4ee2f7 + 0f4f5e0 commit 331eb5f

File tree

4 files changed

+596
-580
lines changed

4 files changed

+596
-580
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,24 @@
5959
]
6060
},
6161
"dependencies": {
62-
"debug": "2.5.1",
63-
"lodash": "4.17.2",
64-
"tslint-config-standard": "2.0.0"
62+
"debug": "^2.6.1",
63+
"lodash": "^4.17.4",
64+
"tslint-config-standard": "^4.0.0"
6565
},
6666
"devDependencies": {
6767
"@types/chai": "3.4.34",
6868
"@types/debug": "0.0.29",
69-
"@types/lodash": "4.14.44",
70-
"@types/node": "6.0.52",
69+
"@types/lodash": "^4.14.52",
70+
"@types/node": "^7.0.5",
7171
"@types/power-assert": "1.4.29",
72-
"ava": "0.17.0",
72+
"ava": "^0.18.1",
7373
"chai": "3.5.0",
7474
"coveralls": "^2.11.15",
75-
"nyc": "10.0.0",
75+
"nyc": "^10.1.2",
7676
"power-assert": "1.4.2",
77-
"snyk": "1.22.1",
78-
"ts-node": "1.7.2",
79-
"tslint": "4.1.1",
80-
"typescript": "2.1.4"
77+
"snyk": "^1.25.0",
78+
"ts-node": "^2.1.0",
79+
"tslint": "^4.4.2",
80+
"typescript": "^2.1.6"
8181
}
8282
}

src/index.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
22
* Example of simple function
33
*/
4-
export function add(a, b): Number {
4+
export function add (a, b): Number {
55
return (a + b)
66
}
77

88
/**
99
* Example of using the spread operator
1010
*/
11-
export function clone(obj: Object): Object {
11+
export function clone (obj: Object): Object {
1212
let copy = { ...obj }
1313
return copy
1414
}
@@ -17,23 +17,23 @@ export function clone(obj: Object): Object {
1717
* Example of using getters/setters
1818
*/
1919
export class GetterSetter {
20-
private _val
20+
private _val
2121

22-
get bar() {
23-
return `Hello ${this._val}`
24-
}
22+
get bar() {
23+
return `Hello ${this._val}`
24+
}
2525

26-
set bar(val) {
27-
this._val = val
28-
}
26+
set bar(val) {
27+
this._val = val
28+
}
2929
}
3030

3131
export class GenericsExample1<T> {
32-
value: T
33-
setValue(value: T) {
34-
this.value = value
35-
}
36-
getValue(): T {
37-
return this.value
38-
}
32+
value: T
33+
setValue (value: T) {
34+
this.value = value
35+
}
36+
getValue (): T {
37+
return this.value
38+
}
3939
}

tslint.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"extends": ["tslint-config-standard"],
33
"rules": {
4-
"indent": [true,
5-
"spaces"
6-
],
4+
"indent": ["error", 2],
75
"member-access": [false,
86
"check-accessor"
97
],

0 commit comments

Comments
 (0)