File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
/node_modules
2
2
/tmp
3
- npm-debug.log
3
+ npm-debug.log
4
+
5
+ # JetBrains IDE project files
6
+ /.idea /
Original file line number Diff line number Diff line change 5
5
var user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.36 Safari/537.36' ;
6
6
7
7
var fs = require ( 'fs' ) ;
8
+ var http = require ( 'http' ) ;
8
9
var https = require ( 'https' ) ;
9
10
var path = require ( 'path' ) ;
10
11
var url = require ( 'url' ) ;
@@ -160,7 +161,7 @@ function check(database, cb) {
160
161
var status = response . statusCode ;
161
162
162
163
if ( status !== 200 ) {
163
- console . log ( 'ERROR' . red + ': HTTP Request Failed [%d %s]' , status , https . STATUS_CODES [ status ] ) ;
164
+ console . log ( 'ERROR' . red + ': HTTP Request Failed [%d %s]' , status , http . STATUS_CODES [ status ] ) ;
164
165
client . abort ( ) ;
165
166
process . exit ( ) ;
166
167
}
@@ -221,7 +222,7 @@ function fetch(database, cb) {
221
222
var status = response . statusCode ;
222
223
223
224
if ( status !== 200 ) {
224
- console . log ( 'ERROR' . red + ': HTTP Request Failed [%d %s]' , status , https . STATUS_CODES [ status ] ) ;
225
+ console . log ( 'ERROR' . red + ': HTTP Request Failed [%d %s]' , status , http . STATUS_CODES [ status ] ) ;
225
226
client . abort ( ) ;
226
227
process . exit ( ) ;
227
228
}
You can’t perform that action at this time.
0 commit comments