Skip to content

Commit 964fbac

Browse files
committed
Merge branch 'master' into whyboris-testing
2 parents 74204c8 + 30f33a6 commit 964fbac

File tree

4 files changed

+197
-171
lines changed

4 files changed

+197
-171
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@
5555
"main": "./src/main.js",
5656
"dependencies": {
5757
"clipboardy": "^2.1.0",
58-
"diff2html": "^2.7.0",
58+
"diff2html": "^2.11.2",
5959
"extend": "^3.0.2",
6060
"open": "^6.4.0",
6161
"request": "^2.88.0",
62-
"yargs": "^13.2.1"
62+
"yargs": "^14.0.0"
6363
},
6464
"devDependencies": {
65-
"@types/node": "^11.9.4",
6665
"codacy-coverage": "^3.4.0",
67-
"eslint": "^5.14.1",
68-
"eslint-plugin-promise": "^4.0.1",
69-
"eslint-plugin-standard": "^4.0.0",
70-
"mocha": "^6.0.0",
71-
"nyc": "^13.3.0",
72-
"sinon": "^7.2.4",
66+
"eslint": "^6.2.1",
67+
"eslint-plugin-promise": "^4.2.1",
68+
"eslint-plugin-standard": "^4.0.1",
69+
"mocha": "^6.2.0",
70+
"nyc": "^14.1.1",
71+
"sinon": "^7.4.1",
72+
"@types/node": "^11.9.4",
7373
"typescript": "^3.3.3"
7474
},
7575
"license": "MIT",
@@ -78,4 +78,4 @@
7878
"src",
7979
"dist"
8080
]
81-
}
81+
}

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = {
149149
},
150150

151151
postToDiffy(diff: string, postType: PostType, callback) {
152-
var jsonParams = {udiff: diff};
152+
var jsonParams = {diff: diff};
153153

154154
http.put('https://diffy.org/api/diff/', jsonParams, (err, response) => {
155155
if (err) {

src/http-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
response.on('data', function(body) {
2424
try {
2525
var object = JSON.parse(body.toString('utf8'));
26-
if(object.id) {
27-
return callback(null, "https://diffy.org/diff/" + object.id);
26+
if (object.id) {
27+
return callback(null, 'https://diffy.org/diff/' + object.id);
2828
} else if (object.error) {
2929
return callback(new Error(object.error));
30-
}else {
30+
} else {
3131
return callback(new Error(body.toString('utf8')));
3232
}
3333
} catch (err) {

0 commit comments

Comments
 (0)