Socket
Socket
Sign inDemoInstall

bns

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bns - npm Package Compare versions

Comparing version 0.1.8 to 0.2.0

2

.eslintrc.json

@@ -8,3 +8,3 @@ {

"parserOptions": {
"ecmaVersion": 8
"ecmaVersion": 9
},

@@ -11,0 +11,0 @@ "root": true,

/*!
* api.js - node.js api for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const EventEmitter = require('events');

@@ -12,0 +12,0 @@ const IP = require('binet');

/*!
* authority.js - authority object for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on solvere:

const assert = require('assert');
const assert = require('bsert');

@@ -15,0 +15,0 @@ /**

/*!
* bns.js - dns module
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* cache.js - resolver cache for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on solvere:

const assert = require('assert');
const assert = require('bsert');
const Heap = require('bheep');

@@ -15,0 +15,0 @@ const bio = require('bufio');

/*!
* constants.js - constants for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -6,0 +6,0 @@ * Parts of this software are based on miekg/dns and golang/go:

/*!
* crypto.js - crypto for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const safeEqual = require('bcrypto/lib/safe-equal');

@@ -12,0 +12,0 @@ const MD5 = require('bcrypto/lib/md5');

/*!
* dane.js - DANE for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -15,3 +15,3 @@ * Parts of this software are based on miekg/dns:

const assert = require('assert');
const assert = require('bsert');
const constants = require('./constants');

@@ -18,0 +18,0 @@ const crypto = require('./crypto');

/*!
* dns.js - replacement dns node.js module
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* dnssec.js - DNSSEC for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -15,3 +15,3 @@ * Parts of this software are based on miekg/dns and golang/go:

const assert = require('assert');
const assert = require('bsert');
const bio = require('bufio');

@@ -18,0 +18,0 @@ const constants = require('./constants');

/*!
* encoding.js - encoding for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -16,3 +16,3 @@ * Parts of this software are based on miekg/dns and golang/go:

const assert = require('assert');
const assert = require('bsert');
const IP = require('binet');

@@ -19,0 +19,0 @@ const bio = require('bufio');

/*!
* error.js - dns error for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* hints.js - root hints object for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on solvere:

const assert = require('assert');
const assert = require('bsert');
const fs = require('bfile');

@@ -15,0 +15,0 @@ const IP = require('binet');

/*!
* hosts.js - hosts file for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const Path = require('path');

@@ -12,0 +12,0 @@ const fs = require('bfile');

/*!
* hsig.js - HSIG for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const wire = require('./wire');

@@ -12,0 +12,0 @@ const sig0 = require('./sig0');

/*!
* iana.js - assigned names/numbers
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -16,3 +16,3 @@ * Resources

const assert = require('assert');
const assert = require('bsert');
const constants = require('./constants');

@@ -19,0 +19,0 @@ const toSymbol = constants._toSymbol;

/*!
* keys.js - DNSSEC keys for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const rsa = require('bcrypto/lib/rsa');

@@ -12,0 +12,0 @@ const p256 = require('bcrypto/lib/p256');

/*!
* lazy.js - lazy require for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const iana = require('./iana');

@@ -12,0 +12,0 @@ const scan = require('./scan');

/*!
* lazy.js - lazy require for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');

@@ -12,0 +12,0 @@ let iana = null;

/*!
* net.js - dns server for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const EventEmitter = require('events');

@@ -12,0 +12,0 @@ const IP = require('binet');

/*!
* nsec3.js - NSEC3 for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -15,3 +15,3 @@ * Parts of this software are based on miekg/dns and golang/go:

const assert = require('assert');
const assert = require('bsert');
const base32 = require('bs32');

@@ -18,0 +18,0 @@ const constants = require('./constants');

/*!
* openpgpkey.js - OPENPGPKEY for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Resources:

const assert = require('assert');
const assert = require('bsert');
const dane = require('./dane');

@@ -15,0 +15,0 @@ const wire = require('./wire');

/*!
* ownership.js - DNSSEC ownership proofs for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const bio = require('bufio');

@@ -12,0 +12,0 @@ const constants = require('./constants');

/*!
* rdns.js - replacement dns node.js module (recursive)
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* resolvconf.js - resolv.conf for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const fs = require('bfile');

@@ -12,0 +12,0 @@ const IP = require('binet');

/*!
* resolver.js - dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const EventEmitter = require('events');

@@ -12,0 +12,0 @@ const IP = require('binet');

/*!
* recursive.js - recursive dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on solvere:

const assert = require('assert');
const assert = require('bsert');
const IP = require('binet');

@@ -15,0 +15,0 @@ const Authority = require('../authority');

/*!
* root.js - root dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const constants = require('../constants');

@@ -12,0 +12,0 @@ const DNSResolver = require('./dns');

/*!
* stub.js - stub dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const constants = require('../constants');

@@ -12,0 +12,0 @@ const DNSResolver = require('./dns');

/*!
* unbound.js - unbound dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const EventEmitter = require('events');

@@ -12,0 +12,0 @@ const Path = require('path');

/*!
* unbound.js - unbound dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* unbound.js - unbound dns resolver for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* scan.js - zone file parsing for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -16,3 +16,3 @@ * Parts of this software are based on miekg/dns:

const assert = require('assert');
const assert = require('bsert');
const fs = require('bfile');

@@ -19,0 +19,0 @@ const IP = require('binet');

/*!
* schema.js - schemas for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -16,3 +16,3 @@ * Parts of this software are based on miekg/dns and golang/go:

const assert = require('assert');
const assert = require('bsert');
const IP = require('binet');

@@ -19,0 +19,0 @@ const base32 = require('bs32');

/*!
* auth.js - authoritative dns server for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* dns.js - dns server for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const EventEmitter = require('events');

@@ -12,0 +12,0 @@ const bio = require('bufio');

/*!
* recursive.js - recursive dns server for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* stub.js - stub dns server for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* unbound.js - unbound recursive dns server for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* sig0.js - SIG(0) for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on miekg/dns:

const assert = require('assert');
const assert = require('bsert');
const bio = require('bufio');

@@ -15,0 +15,0 @@ const constants = require('./constants');

/*!
* smimea.js - SMIMEA for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -15,3 +15,3 @@ * Parts of this software are based on miekg/dns:

const assert = require('assert');
const assert = require('bsert');
const dane = require('./dane');

@@ -18,0 +18,0 @@ const wire = require('./wire');

/*!
* srv.js - SRV for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Resources:

const assert = require('assert');
const assert = require('bsert');
const util = require('./util');

@@ -15,0 +15,0 @@

/*!
* sshfp.js - SSHFP for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -9,3 +9,3 @@

const assert = require('assert');
const assert = require('bsert');
const constants = require('./constants');

@@ -12,0 +12,0 @@ const crypto = require('./crypto');

/*!
* tlsa.js - TLSA for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -15,3 +15,3 @@ * Parts of this software are based on miekg/dns:

const assert = require('assert');
const assert = require('bsert');
const dane = require('./dane');

@@ -18,0 +18,0 @@ const util = require('./util');

/*!
* tsig.js - TSIG for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on miekg/dns:

const assert = require('assert');
const assert = require('bsert');
const bio = require('bufio');

@@ -15,0 +15,0 @@ const constants = require('./constants');

/*!
* udns.js - replacement dns node.js module (recursive)
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*/

@@ -6,0 +6,0 @@

/*!
* util.js - utils for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -15,3 +15,3 @@ * Parts of this software are based on miekg/dns and golang/go:

const assert = require('assert');
const assert = require('bsert');
const IP = require('binet');

@@ -882,6 +882,5 @@ const bio = require('bufio');

const min = (((str.length - 3) & ~3) * 3) / 4 | 0;
const data = Buffer.from(str, 'base64');
if (data.length < min)
if (str.length > size64(data.length))
throw new Error('Invalid base64 string.');

@@ -988,1 +987,6 @@

}
function size64(size) {
const expect = ((4 * size / 3) + 3) & ~3;
return expect >>> 0;
}
/*!
* hints.js - root hints object for bns
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bns
* https://github.com/chjj/bns
*

@@ -12,3 +12,3 @@ * Parts of this software are based on solvere:

const assert = require('assert');
const assert = require('bsert');
const fs = require('bfile');

@@ -15,0 +15,0 @@ const constants = require('./constants');

{
"name": "bns",
"version": "0.1.8",
"version": "0.2.0",
"description": "DNS bike-shed",

@@ -12,6 +12,6 @@ "keywords": [

"license": "MIT",
"repository": "git://github.com/bcoin-org/bns.git",
"homepage": "https://github.com/bcoin-org/bns",
"repository": "git://github.com/chjj/bns.git",
"homepage": "https://github.com/chjj/bns",
"bugs": {
"url": "https://github.com/bcoin-org/bns/issues"
"url": "https://github.com/chjj/bns/issues"
},

@@ -33,36 +33,23 @@ "author": "Christopher Jeffrey <chjjeffrey@gmail.com>",

"scripts": {
"browserify": "browserify -s bns lib/bns.js | uglifyjs -c > bns.js",
"clean": "rm -f bns.js",
"lint": "eslint bin/* lib/ test/ || exit 0",
"test": "mocha --reporter spec test/*-test.js",
"test-file": "mocha --reporter spec",
"webpack": "webpack --mode production --config webpack.config.js"
"test-file": "mocha --reporter spec"
},
"dependencies": {
"bcrypto": "~0.3.7",
"bfile": "~0.1.0",
"bheep": "~0.1.0",
"binet": "~0.3.0",
"bs32": "~0.1.0",
"btcp": "~0.1.0",
"budp": "~0.1.0",
"bufio": "~0.2.0"
"bcrypto": "~1.0.0",
"bfile": "~0.1.1",
"bheep": "~0.1.1",
"binet": "~0.3.1",
"bs32": "~0.1.1",
"bsert": "~0.0.3",
"btcp": "~0.1.1",
"budp": "~0.1.1",
"bufio": "~1.0.1"
},
"optionalDependencies": {
"unbound": "~0.0.4"
"unbound": "~0.0.5"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babelify": "^8.0.0",
"browserify": "^16.2.2",
"eslint": "^4.19.1",
"mocha": "^5.2.0",
"uglify-es": "^3.3.9",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.11.1",
"webpack-cli": "^3.0.3"
"eslint": "^5.1.0",
"mocha": "^5.2.0"
},

@@ -75,8 +62,3 @@ "engines": {

"./lib/resolver/unbound": "./lib/resolver/unbound-browser.js"
},
"browserify": {
"transform": [
"babelify"
]
}
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc