pending-dns
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "pending-dns", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Lightweight API driven DNS server", | ||
@@ -9,3 +9,6 @@ "main": "index.js", | ||
"test": "grunt", | ||
"licenses": "npm-license-crawler --production --csv ./licenses.csv" | ||
"build-source": "rm -rf node_modules package-lock.json && npm install && npm run licenses && rm -rf node_modules package-lock.json && npm install --production && rm -rf package-lock.json", | ||
"build-dist-fast": "npx pkg --debug package.json && rm -rf package-lock.json && npm install", | ||
"build-dist": "npx pkg --compress Brotli package.json && rm -rf package-lock.json && npm install", | ||
"licenses": "license-report --only=prod --output=table --config license-report-config.json > licenses.txt" | ||
}, | ||
@@ -29,34 +32,53 @@ "repository": { | ||
"devDependencies": { | ||
"eslint": "8.18.0", | ||
"eslint": "8.45.0", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"grunt": "1.5.3", | ||
"eslint-config-prettier": "8.8.0", | ||
"grunt": "1.6.1", | ||
"grunt-cli": "1.4.3", | ||
"grunt-eslint": "24.0.0", | ||
"npm-license-crawler": "0.2.1" | ||
"grunt-eslint": "24.3.0", | ||
"license-report": "6.4.0" | ||
}, | ||
"dependencies": { | ||
"@bugsnag/js": "^7.20.2", | ||
"@fidm/x509": "1.2.1", | ||
"@hapi/boom": "10.0.0", | ||
"@hapi/hapi": "20.2.2", | ||
"@hapi/inert": "6.0.5", | ||
"@hapi/boom": "10.0.1", | ||
"@hapi/hapi": "21.3.2", | ||
"@hapi/inert": "7.1.0", | ||
"@hapi/joi": "17.1.1", | ||
"@hapi/vision": "6.1.0", | ||
"@hapi/vision": "7.0.2", | ||
"@root/acme": "3.1.0", | ||
"@root/csr": "0.8.1", | ||
"dns2": "2.0.2", | ||
"hapi-pino": "10.1.0", | ||
"hapi-swagger": "14.5.5", | ||
"dns2": "2.1.0", | ||
"handlebars": "4.7.7", | ||
"hapi-pino": "12.1.0", | ||
"hapi-swagger": "17.1.0", | ||
"http-proxy": "1.18.1", | ||
"ioredfour": "1.2.0-ioredis-06", | ||
"ioredis": "5.0.6", | ||
"ipaddr.js": "2.0.1", | ||
"ioredfour": "1.2.0-ioredis-07", | ||
"ioredis": "5.3.2", | ||
"ipaddr.js": "2.1.0", | ||
"minimist": "1.2.8", | ||
"node-rsa": "1.1.1", | ||
"pem-jwk": "2.0.0", | ||
"pino": "8.1.0", | ||
"punycode": "^2.1.1", | ||
"pino": "8.14.1", | ||
"punycode": "2.3.0", | ||
"shortid": "2.2.16", | ||
"uuid": "^8.3.2", | ||
"wild-config": "1.6.1" | ||
"uuid": "9.0.0", | ||
"wild-config": "1.7.0" | ||
}, | ||
"bin": { | ||
"pending-dns": "bin/pending-dns.js" | ||
}, | ||
"pkg": { | ||
"assets": [ | ||
"licenses.txt", | ||
"LICENSE.txt", | ||
"help.txt" | ||
], | ||
"targets": [ | ||
"node16-linux-x64", | ||
"node16-macos-x64", | ||
"node16-win-x64" | ||
], | ||
"outputPath": "ee-dist" | ||
} | ||
} |
@@ -10,2 +10,3 @@ 'use strict'; | ||
const pathlib = require('path'); | ||
const packageData = require('./package.json'); | ||
const { Worker, SHARE_ENV } = require('worker_threads'); | ||
@@ -19,2 +20,25 @@ const { isemail } = require('./lib/tools'); | ||
const Bugsnag = require('@bugsnag/js'); | ||
if (process.env.BUGSNAG_API_KEY) { | ||
Bugsnag.start({ | ||
apiKey: process.env.BUGSNAG_API_KEY, | ||
appVersion: packageData.version, | ||
logger: { | ||
debug(...args) { | ||
logger.debug({ msg: args.shift(), worker: 'main', source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
info(...args) { | ||
logger.debug({ msg: args.shift(), worker: 'main', source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
warn(...args) { | ||
logger.warn({ msg: args.shift(), worker: 'main', source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
error(...args) { | ||
logger.error({ msg: args.shift(), worker: 'main', source: 'bugsnag', args: args.length ? args : undefined }); | ||
} | ||
} | ||
}); | ||
logger.notifyError = Bugsnag.notify.bind(Bugsnag); | ||
} | ||
let closing = false; | ||
@@ -72,3 +96,3 @@ | ||
const closeProcess = code => { | ||
const closeProcess = (code, errType, err) => { | ||
if (closing) { | ||
@@ -78,10 +102,23 @@ return; | ||
closing = true; | ||
setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
if (!code) { | ||
return setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
} | ||
logger.fatal({ | ||
msg: errType, | ||
_msg: errType, | ||
err | ||
}); | ||
if (!logger.notifyError) { | ||
setTimeout(() => process.exit(code), 10); | ||
} | ||
}; | ||
process.on('uncaughtException', () => closeProcess(1)); | ||
process.on('unhandledRejection', () => closeProcess(2)); | ||
process.on('uncaughtException', err => closeProcess(1, 'uncaughtException', err)); | ||
process.on('unhandledRejection', err => closeProcess(2, 'unhandledRejection', err)); | ||
process.on('SIGTERM', () => closeProcess(0)); | ||
process.on('SIGINT', () => closeProcess(0)); |
@@ -12,3 +12,3 @@ /* eslint global-require: 0 */ | ||
let closing = false; | ||
const closeProcess = code => { | ||
const closeProcess = (code, errType, err) => { | ||
if (closing) { | ||
@@ -18,9 +18,22 @@ return; | ||
closing = true; | ||
setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
if (!code) { | ||
return setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
} | ||
logger.fatal({ | ||
msg: errType, | ||
_msg: errType, | ||
err | ||
}); | ||
if (!logger.notifyError) { | ||
setTimeout(() => process.exit(code), 10); | ||
} | ||
}; | ||
process.on('uncaughtException', () => closeProcess(1)); | ||
process.on('unhandledRejection', () => closeProcess(2)); | ||
process.on('uncaughtException', err => closeProcess(1, 'uncaughtException', err)); | ||
process.on('unhandledRejection', err => closeProcess(2, 'unhandledRejection', err)); | ||
process.on('SIGTERM', () => closeProcess(0)); | ||
@@ -27,0 +40,0 @@ process.on('SIGINT', () => closeProcess(0)); |
@@ -12,3 +12,3 @@ /* eslint global-require: 0 */ | ||
let closing = false; | ||
const closeProcess = code => { | ||
const closeProcess = (code, errType, err) => { | ||
if (closing) { | ||
@@ -18,12 +18,49 @@ return; | ||
closing = true; | ||
setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
if (!code) { | ||
return setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
} | ||
logger.fatal({ | ||
msg: errType, | ||
_msg: errType, | ||
err | ||
}); | ||
if (!logger.notifyError) { | ||
setTimeout(() => process.exit(code), 10); | ||
} | ||
}; | ||
process.on('uncaughtException', () => closeProcess(1)); | ||
process.on('unhandledRejection', () => closeProcess(2)); | ||
process.on('uncaughtException', err => closeProcess(1, 'uncaughtException', err)); | ||
process.on('unhandledRejection', err => closeProcess(2, 'unhandledRejection', err)); | ||
process.on('SIGTERM', () => closeProcess(0)); | ||
process.on('SIGINT', () => closeProcess(0)); | ||
const packageData = require('../package.json'); | ||
const Bugsnag = require('@bugsnag/js'); | ||
if (process.env.BUGSNAG_API_KEY) { | ||
Bugsnag.start({ | ||
apiKey: process.env.BUGSNAG_API_KEY, | ||
appVersion: packageData.version, | ||
logger: { | ||
debug(...args) { | ||
logger.debug({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
info(...args) { | ||
logger.debug({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
warn(...args) { | ||
logger.warn({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
error(...args) { | ||
logger.error({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
} | ||
} | ||
}); | ||
logger.notifyError = Bugsnag.notify.bind(Bugsnag); | ||
} | ||
const run = () => { | ||
@@ -30,0 +67,0 @@ require(`../lib/${workerName}-server.js`)() |
@@ -12,3 +12,3 @@ /* eslint global-require: 0 */ | ||
let closing = false; | ||
const closeProcess = code => { | ||
const closeProcess = (code, errType, err) => { | ||
if (closing) { | ||
@@ -18,12 +18,50 @@ return; | ||
closing = true; | ||
setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
if (!code) { | ||
return setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
} | ||
logger.fatal({ | ||
msg: errType, | ||
_msg: errType, | ||
err | ||
}); | ||
if (!logger.notifyError) { | ||
setTimeout(() => process.exit(code), 10); | ||
} | ||
}; | ||
process.on('uncaughtException', () => closeProcess(1)); | ||
process.on('unhandledRejection', () => closeProcess(2)); | ||
process.on('uncaughtException', err => closeProcess(1, 'uncaughtException', err)); | ||
process.on('unhandledRejection', err => closeProcess(2, 'unhandledRejection', err)); | ||
process.on('SIGTERM', () => closeProcess(0)); | ||
process.on('SIGINT', () => closeProcess(0)); | ||
const packageData = require('../package.json'); | ||
const Bugsnag = require('@bugsnag/js'); | ||
if (process.env.BUGSNAG_API_KEY) { | ||
Bugsnag.start({ | ||
apiKey: process.env.BUGSNAG_API_KEY, | ||
appVersion: packageData.version, | ||
logger: { | ||
debug(...args) { | ||
logger.debug({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
info(...args) { | ||
logger.debug({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
warn(...args) { | ||
logger.warn({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
error(...args) { | ||
logger.error({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
} | ||
} | ||
}); | ||
logger.notifyError = Bugsnag.notify.bind(Bugsnag); | ||
} | ||
const run = () => { | ||
@@ -30,0 +68,0 @@ require(`../lib/${workerName}-worker.js`)() |
@@ -12,3 +12,3 @@ /* eslint global-require: 0 */ | ||
let closing = false; | ||
const closeProcess = code => { | ||
const closeProcess = (code, errType, err) => { | ||
if (closing) { | ||
@@ -18,12 +18,49 @@ return; | ||
closing = true; | ||
setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
if (!code) { | ||
return setTimeout(() => { | ||
process.exit(code); | ||
}, 10); | ||
} | ||
logger.fatal({ | ||
msg: errType, | ||
_msg: errType, | ||
err | ||
}); | ||
if (!logger.notifyError) { | ||
setTimeout(() => process.exit(code), 10); | ||
} | ||
}; | ||
process.on('uncaughtException', () => closeProcess(1)); | ||
process.on('unhandledRejection', () => closeProcess(2)); | ||
process.on('uncaughtException', err => closeProcess(1, 'uncaughtException', err)); | ||
process.on('unhandledRejection', err => closeProcess(2, 'unhandledRejection', err)); | ||
process.on('SIGTERM', () => closeProcess(0)); | ||
process.on('SIGINT', () => closeProcess(0)); | ||
const packageData = require('../package.json'); | ||
const Bugsnag = require('@bugsnag/js'); | ||
if (process.env.BUGSNAG_API_KEY) { | ||
Bugsnag.start({ | ||
apiKey: process.env.BUGSNAG_API_KEY, | ||
appVersion: packageData.version, | ||
logger: { | ||
debug(...args) { | ||
logger.debug({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
info(...args) { | ||
logger.debug({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
warn(...args) { | ||
logger.warn({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
}, | ||
error(...args) { | ||
logger.error({ msg: args.shift(), worker: workerName, source: 'bugsnag', args: args.length ? args : undefined }); | ||
} | ||
} | ||
}); | ||
logger.notifyError = Bugsnag.notify.bind(Bugsnag); | ||
} | ||
const run = () => { | ||
@@ -30,0 +67,0 @@ require(`../lib/${workerName}-server.js`)() |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
144996
38
3336
25
18
+ Added@bugsnag/js@^7.20.2
+ Addedhandlebars@4.7.7
+ Addedminimist@1.2.8
+ Added@apidevtools/json-schema-ref-parser@10.1.0(transitive)
+ Added@bugsnag/browser@7.22.7(transitive)
+ Added@bugsnag/core@7.22.7(transitive)
+ Added@bugsnag/cuid@3.1.1(transitive)
+ Added@bugsnag/js@7.23.0(transitive)
+ Added@bugsnag/node@7.23.0(transitive)
+ Added@bugsnag/safe-json-stringify@6.0.0(transitive)
+ Added@hapi/accept@6.0.3(transitive)
+ Added@hapi/ammo@6.0.1(transitive)
+ Added@hapi/b64@6.0.1(transitive)
+ Added@hapi/boom@10.0.1(transitive)
+ Added@hapi/bounce@3.0.1(transitive)
+ Added@hapi/bourne@3.0.0(transitive)
+ Added@hapi/call@9.0.1(transitive)
+ Added@hapi/catbox@12.1.1(transitive)
+ Added@hapi/catbox-memory@6.0.1(transitive)
+ Added@hapi/content@6.0.0(transitive)
+ Added@hapi/cryptiles@6.0.1(transitive)
+ Added@hapi/file@3.0.0(transitive)
+ Added@hapi/hapi@21.3.2(transitive)
+ Added@hapi/heavy@8.0.1(transitive)
+ Added@hapi/hoek@11.0.4(transitive)
+ Added@hapi/inert@7.1.0(transitive)
+ Added@hapi/iron@7.0.1(transitive)
+ Added@hapi/mimos@7.0.1(transitive)
+ Added@hapi/nigel@5.0.1(transitive)
+ Added@hapi/pez@6.1.0(transitive)
+ Added@hapi/podium@5.0.1(transitive)
+ Added@hapi/shot@6.0.1(transitive)
+ Added@hapi/somever@4.1.1(transitive)
+ Added@hapi/statehood@8.1.1(transitive)
+ Added@hapi/subtext@8.1.0(transitive)
+ Added@hapi/teamwork@6.0.0(transitive)
+ Added@hapi/topo@6.0.2(transitive)
+ Added@hapi/validate@2.0.1(transitive)
+ Added@hapi/vise@5.0.1(transitive)
+ Added@hapi/vision@7.0.2(transitive)
+ Added@hapi/wreck@18.1.0(transitive)
+ Added@types/lodash@4.17.1(transitive)
+ Added@types/lodash.clonedeep@4.5.9(transitive)
+ Addedbyline@5.0.0(transitive)
+ Addeddns2@2.1.0(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addederror-stack-parser@2.1.4(transitive)
+ Addedhandlebars@4.7.7(transitive)
+ Addedhapi-pino@12.1.0(transitive)
+ Addedhapi-swagger@17.1.0(transitive)
+ Addedioredfour@1.2.0-ioredis-07(transitive)
+ Addedioredis@5.3.15.3.2(transitive)
+ Addedipaddr.js@2.1.0(transitive)
+ Addediserror@0.0.2(transitive)
+ Addedlodash.clonedeep@4.5.0(transitive)
+ Addedlru-cache@7.18.3(transitive)
+ Addedpino@8.14.1(transitive)
+ Addedpino-std-serializers@6.2.2(transitive)
+ Addedpump@3.0.0(transitive)
+ Addedpunycode@2.3.0(transitive)
+ Addedreal-require@0.2.0(transitive)
+ Addedstack-generator@2.0.10(transitive)
+ Addedstackframe@1.3.4(transitive)
+ Addedswagger-ui-dist@5.17.9(transitive)
+ Addedthread-stream@2.7.0(transitive)
+ Addeduuid@9.0.0(transitive)
+ Addedwild-config@1.7.0(transitive)
- Removed@hapi/accept@5.0.2(transitive)
- Removed@hapi/ammo@5.0.1(transitive)
- Removed@hapi/b64@5.0.0(transitive)
- Removed@hapi/boom@10.0.09.1.4(transitive)
- Removed@hapi/bounce@2.0.0(transitive)
- Removed@hapi/bourne@2.1.0(transitive)
- Removed@hapi/call@8.0.1(transitive)
- Removed@hapi/catbox@11.1.1(transitive)
- Removed@hapi/catbox-memory@5.0.1(transitive)
- Removed@hapi/content@5.0.2(transitive)
- Removed@hapi/cryptiles@5.1.0(transitive)
- Removed@hapi/file@2.0.0(transitive)
- Removed@hapi/hapi@20.2.2(transitive)
- Removed@hapi/heavy@7.0.1(transitive)
- Removed@hapi/hoek@10.0.1(transitive)
- Removed@hapi/inert@6.0.5(transitive)
- Removed@hapi/iron@6.0.0(transitive)
- Removed@hapi/mimos@6.0.0(transitive)
- Removed@hapi/nigel@4.0.2(transitive)
- Removed@hapi/pez@5.1.0(transitive)
- Removed@hapi/podium@4.1.3(transitive)
- Removed@hapi/shot@5.0.5(transitive)
- Removed@hapi/somever@3.0.1(transitive)
- Removed@hapi/statehood@7.0.4(transitive)
- Removed@hapi/subtext@7.1.0(transitive)
- Removed@hapi/teamwork@5.1.1(transitive)
- Removed@hapi/validate@1.1.3(transitive)
- Removed@hapi/vise@4.0.0(transitive)
- Removed@hapi/vision@6.1.0(transitive)
- Removed@hapi/wreck@17.2.0(transitive)
- Removed@types/hapi__catbox@10.2.6(transitive)
- Removed@types/hapi__hapi@20.0.13(transitive)
- Removed@types/hapi__mimos@4.1.4(transitive)
- Removed@types/hapi__shot@4.1.6(transitive)
- Removed@types/mime-db@1.43.5(transitive)
- Removed@types/node@20.12.11(transitive)
- Removedargparse@1.0.10(transitive)
- Removeddenque@1.5.1(transitive)
- Removeddns2@2.0.2(transitive)
- Removedesprima@4.0.1(transitive)
- Removedformat-util@1.0.5(transitive)
- Removedhandlebars@4.7.8(transitive)
- Removedhapi-pino@10.1.0(transitive)
- Removedhapi-swagger@14.5.5(transitive)
- Removedioredfour@1.2.0-ioredis-06(transitive)
- Removedioredis@4.27.65.0.6(transitive)
- Removedipaddr.js@2.0.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjson-schema-ref-parser@6.1.0(transitive)
- Removedlodash.flatten@4.4.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedon-exit-leak-free@0.2.0(transitive)
- Removedono@4.0.11(transitive)
- Removedp-map@2.1.0(transitive)
- Removedpino@7.11.08.1.0(transitive)
- Removedpino-std-serializers@4.0.05.6.0(transitive)
- Removedprocess-warning@1.0.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedreal-require@0.1.0(transitive)
- Removedredis-commands@1.7.0(transitive)
- Removedsonic-boom@2.8.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedswagger-ui-dist@4.19.1(transitive)
- Removedthread-stream@0.15.21.0.1(transitive)
- Removedundici-types@5.26.5(transitive)
- Removeduuid@8.3.2(transitive)
- Removedwild-config@1.6.1(transitive)
- Removedyallist@4.0.0(transitive)
Updated@hapi/boom@10.0.1
Updated@hapi/hapi@21.3.2
Updated@hapi/inert@7.1.0
Updated@hapi/vision@7.0.2
Updateddns2@2.1.0
Updatedhapi-pino@12.1.0
Updatedhapi-swagger@17.1.0
Updatedioredfour@1.2.0-ioredis-07
Updatedioredis@5.3.2
Updatedipaddr.js@2.1.0
Updatedpino@8.14.1
Updatedpunycode@2.3.0
Updateduuid@9.0.0
Updatedwild-config@1.7.0