Skip to content

Commit 91d7b1d

Browse files
authored
Merge pull request #70 from inversify/dependencies
Upgraded dependencies
2 parents 8782985 + d819e2c commit 91d7b1d

10 files changed

+52
-39
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ type_definitions/**/*.js
6060
type_definitions/*.js
6161

6262
.typingsrc
63+
package-lock.json

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ wallaby.js
1919
.travis.yml
2020
.gitignore
2121
.vscode
22-
type_definitions
22+
type_definitions
23+
package-lock.json

.travis.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
language: node_js
22
node_js:
33
- stable
4-
- 5.4.1
5-
- 5.4.0
6-
- 5.3.0
7-
- 5.2.0
8-
- 5.1.1
9-
- 4.4.6
4+
- 8.8.1
5+
- 7.10.1
106
before_install:
117
- npm install -g codeclimate-test-reporter
128
after_success:

PULL_REQUEST_TEMPLATE.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,45 @@
1+
# PR Details
2+
13
<!--- Provide a general summary of your changes in the Title above -->
24

35
## Description
6+
47
<!--- Describe your changes in detail -->
58

69
## Related Issue
10+
711
<!--- This project only accepts pull requests related to open issues -->
812
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
913
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
1014
<!--- Please link to the issue here: -->
1115

1216
## Motivation and Context
17+
1318
<!--- Why is this change required? What problem does it solve? -->
1419

15-
## How Has This Been Tested?
20+
## How Has This Been Tested
21+
1622
<!--- Please describe in detail how you tested your changes. -->
1723
<!--- Include details of your testing environment, and the tests you ran to -->
1824
<!--- see how your change affects other areas of the code, etc. -->
1925

2026
## Types of changes
27+
2128
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
29+
30+
- [ ] Docs change / refactoring / dependency upgrade
2231
- [ ] Bug fix (non-breaking change which fixes an issue)
2332
- [ ] New feature (non-breaking change which adds functionality)
2433
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
2534

26-
## Checklist:
35+
## Checklist
36+
2737
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
2838
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
39+
2940
- [ ] My code follows the code style of this project.
3041
- [ ] My change requires a change to the documentation.
3142
- [ ] I have updated the documentation accordingly.
32-
- [ ] My change requires a change to the type definitions.
33-
- [ ] I have updated the type definitions accordingly.
3443
- [ ] I have read the **CONTRIBUTING** document.
3544
- [ ] I have added tests to cover my changes.
36-
- [ ] All new and existing tests passed.
45+
- [ ] All new and existing tests passed.

package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "inversify-logger-middleware",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "A basic logger middleware for InversifyJS",
55
"main": "lib/index.js",
66
"typings": "./dts/index.d.ts",
@@ -29,27 +29,27 @@
2929
},
3030
"homepage": "https://github.com/inversify/inversify-logger-middleware#readme",
3131
"dependencies": {
32-
"chalk": "^2.0.0"
32+
"chalk": "2.3.0"
3333
},
3434
"devDependencies": {
35-
"@types/chai": "^4.0.0",
36-
"@types/chalk": "^0.4.28",
37-
"@types/mocha": "^2.2.35",
38-
"@types/sinon": "^2.1.0",
39-
"chai": "^4.0.0",
40-
"gulp": "^3.9.1",
41-
"gulp-istanbul": "^1.0.0",
42-
"gulp-mocha": "^4.0.1",
43-
"gulp-tslint": "^7.1.0",
44-
"gulp-typescript": "^3.1.4",
45-
"harmonize": "^2.0.0",
46-
"inversify": "^4.0.0",
47-
"mocha": "^4.0.0",
48-
"publish-please": "^2.1.4",
49-
"reflect-metadata": "^0.1.9",
50-
"run-sequence": "^1.2.0",
51-
"sinon": "^3.0.0",
52-
"tslint": "^5.0.0",
53-
"typescript": "^2.2.0"
35+
"@types/chai": "4.0.4",
36+
"@types/chalk": "2.2.0",
37+
"@types/mocha": "2.2.44",
38+
"@types/sinon": "2.3.7",
39+
"chai": "4.1.2",
40+
"gulp": "3.9.1",
41+
"gulp-istanbul": "1.1.2",
42+
"gulp-mocha": "3.0.1",
43+
"gulp-tslint": "8.1.2",
44+
"gulp-typescript": "3.2.3",
45+
"harmonize": "2.0.0",
46+
"inversify": "4.5.1",
47+
"mocha": "4.0.1",
48+
"publish-please": "2.3.1",
49+
"reflect-metadata": "0.1.10",
50+
"run-sequence": "2.2.0",
51+
"sinon": "4.1.1",
52+
"tslint": "5.8.0",
53+
"typescript": "2.6.1"
5454
}
5555
}

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function makeLoggerMiddleware(
1616
next: inversify.interfaces.Next
1717
): inversify.interfaces.Next {
1818

19-
if (settings === undefined || settings === null) { settings = deatultOptions; };
20-
if (renderer === undefined || renderer === null) { renderer = consoleRenderer; };
19+
if (settings === undefined || settings === null) { settings = deatultOptions; }
20+
if (renderer === undefined || renderer === null) { renderer = consoleRenderer; }
2121

2222
return (args: inversify.interfaces.NextArgs) => {
2323

src/serializers/text/colors.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import * as Chalk from "chalk";
2+
3+
const yellow = Chalk.default.yellow;
4+
const green = Chalk.default.green;
5+
const red = Chalk.default.red;
6+
7+
export { yellow, green, red, Chalk };

src/serializers/text/text_serializer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import serializeRequest from "./request_serializer";
2-
import { green, red } from "./text_serializer_utils";
2+
import { green, red } from "./colors";
33
import interfaces from "../../interfaces/interfaces";
44

55
function textSerializer(entry: interfaces.LogEntry) {

src/serializers/text/text_serializer_utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { yellow, green, red } from "chalk";
1+
import { yellow } from "./colors";
22

33
let tree = {
44
item: "└──"
@@ -38,4 +38,4 @@ function makePropertyLogger(indentationForDepth: string) {
3838
};
3939
}
4040

41-
export { getIndentationForDepth, makePropertyLogger, yellow, green, red };
41+
export { getIndentationForDepth, makePropertyLogger };

tslint.json

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"no-switch-case-fall-through": false,
3636
"no-trailing-whitespace": true,
3737
"no-unused-expression": true,
38-
"no-use-before-declare": true,
3938
"no-var-keyword": true,
4039
"object-literal-sort-keys": true,
4140
"one-line": [true,

0 commit comments

Comments
 (0)