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.1 to 0.1.2

8

bin/named.js

@@ -20,2 +20,3 @@ #!/usr/bin/env node

let unbound = false;
let minimize = false;
let hintsFile = null;

@@ -64,2 +65,6 @@ let origin = '.';

break;
case '-m':
case '--minimize':
minimize = true;
break;
case '--hints':

@@ -143,3 +148,4 @@ hintsFile = process.argv[i + 1];

edns,
dnssec
dnssec,
minimize
});

@@ -146,0 +152,0 @@

@@ -578,7 +578,50 @@ /*!

const str = date.toString();
const parts = str.split(' ');
const [n, m, d, y, t, , tz] = parts;
const z = tz.slice(1, -1);
// We need to replicate something like:
// Tue Jun 12 21:27:00 PDT 2018
// We use only ECMA-262 enforced methods
// for this for compatibility purposes.
// Format: Wed Jun 28 1993
const ds = date.toDateString();
// Format: 14:39:07 GMT-0700 (PDT)
const ts = date.toTimeString();
const dp = ds.split(' ');
const tp = ts.split(' ');
const [n, m, d, y] = dp;
const [t] = tp;
let z = '';
// Timezone parsing.
if (tp.length === 3) {
// The timezone is in short form, e.g.
// 14:39:07 GMT-0700 (PDT)
z = tp[2];
if (z[0] === '(')
z = z.slice(1, -1);
} else if (tp.length > 3) {
// We have something like:
// 22:03:24 GMT-0700 (Pacific Daylight Time)
// Newer versions of v8 tend to do this.
z = '';
// Abbreviate.
for (let i = 2; i < tp.length; i++) {
let p = tp[i];
if (i === 2 && p[0] === '(')
z += p[1];
else
z += p[0];
}
} else {
// Fallback to GMT+offset, e.g.
// GMT-0700
z = tp[1];
}
return `${n} ${m} ${d} ${t} ${z} ${y}`;

@@ -585,0 +628,0 @@ };

6

package.json
{
"name": "bns",
"version": "0.1.1",
"version": "0.1.2",
"description": "DNS bike-shed",

@@ -39,3 +39,3 @@ "keywords": [

"dependencies": {
"bcrypto": "~0.3.2",
"bcrypto": "~0.3.3",
"bfile": "~0.1.0",

@@ -50,3 +50,3 @@ "bheep": "~0.1.0",

"optionalDependencies": {
"unbound": "~0.0.1"
"unbound": "~0.0.2"
},

@@ -53,0 +53,0 @@ "devDependencies": {

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