Socket
Socket
Sign inDemoInstall

pending-dns

Package Overview
Dependencies
160
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

.github/workflows/deploy.yml

64

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc