Skip to content

Commit

Permalink
Merge pull request #9 from sagi/revamp
Browse files Browse the repository at this point in the history
Revamp
  • Loading branch information
sagi committed Mar 29, 2021
2 parents 44f8412 + 2943126 commit 0bfc067
Show file tree
Hide file tree
Showing 5 changed files with 2,540 additions and 2,524 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8.11
- image: circleci/node:12

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"singleQuote": true,
"trailingComma": "es5",
"useTabs": false,
"parser": "babylon",
"overrides": [
{
"files": "*.json",
"options": { "parser": "json", "printWidth": 200 }
}
]
}
}
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const query = ({
});
const httpAgent = useHttps ? require('https') : require('http');

const req = httpAgent.request(options, res =>
res.on('data', data => {
const req = httpAgent.request(options, (res) =>
res.on('data', (data) => {
const { statusCode } = res;

switch (statusCode) {
Expand All @@ -95,7 +95,7 @@ const query = ({
const dnsWireformat = getDnsWireformat({ name, type, klass });
req.write(dnsWireformat);
}
req.on('error', e => reject(e));
req.on('error', (e) => reject(e));
req.end();
});

Expand Down
25 changes: 17 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,28 @@
"coverage": "jest --coverage"
},
"dependencies": {
"base64url": "^3.0.0",
"dns-packet": "^5.0.4"
"base64url": "^3.0.1",
"dns-packet": "^5.2.1"
},
"devDependencies": {
"coveralls": "^3.0.2",
"eslint": "^5.9.0",
"jest": "^23.6.0",
"jest-junit": "^5.2.0",
"prettier": "^1.14.3"
"coveralls": "^3.1.0",
"eslint": "^7.23.0",
"jest": "^26.6.3",
"jest-junit": "^12.0.0",
"prettier": "^2.2.1"
},
"repository": {
"type": "git",
"url": "https://github.com/sagi/dns-over-https-node.git"
},
"keywords": ["dns-over-https", "dns over https", "dns", "https", "dnshttps", "doh", "security", "privacy"]
"keywords": [
"dns-over-https",
"dns over https",
"dns",
"https",
"dnshttps",
"doh",
"security",
"privacy"
]
}

0 comments on commit 0bfc067

Please sign in to comment.