diff --git a/package-lock.json b/package-lock.json index 2ec03ac..9915948 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cf-clearance-scraper", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cf-clearance-scraper", - "version": "2.0.4", + "version": "2.0.5", "license": "ISC", "dependencies": { "ajv": "^8.17.1", diff --git a/package.json b/package.json index 27eeb28..6c91f06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cf-clearance-scraper", - "version": "2.0.5", + "version": "2.0.6", "main": "index.js", "scripts": { "start": "node src/index.js", diff --git a/src/index.js b/src/index.js index f17eaee..877752f 100644 --- a/src/index.js +++ b/src/index.js @@ -15,7 +15,9 @@ app.use(bodyParser.urlencoded({ extended: true })) app.use(cors()) if (process.env.NODE_ENV !== 'development') { let server = app.listen(port, () => { console.log(`Server running on port ${port}`) }) - server.timeout = (global.timeOut || 60000) + try { + server.timeout = global.timeOut + } catch (e) { } } if (process.env.SKIP_LAUNCH != 'true') require('./module/createBrowser')