Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "http-curl", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "", | ||
"main": "index.js", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"http_client.h", | ||
"http_client.cc", | ||
"http_client_v8.h", | ||
"http_client_v8.cc", | ||
"dist", | ||
"src", | ||
"lib", | ||
"binding.gyp", | ||
"package.json", | ||
"index.js", | ||
"LICENSE", | ||
@@ -18,4 +17,3 @@ "README.md" | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"install": "node-gyp rebuild" | ||
"test": "jest" | ||
}, | ||
@@ -29,3 +27,30 @@ "keywords": [], | ||
"node-gyp": "^3.6.2" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^23.3.12", | ||
"@types/node": "^10.12.18", | ||
"jest": "^23.6.0", | ||
"ts-jest": "^23.10.5", | ||
"typescript": "^3.2.2" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "/test/response\\.test.ts", | ||
"testURL": "http://localhost/", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"collectCoverage": false, | ||
"collectCoverageFrom": [ | ||
"src/**/*.ts" | ||
], | ||
"verbose": false | ||
} | ||
} |
@@ -7,3 +7,11 @@ # Installation | ||
TBA | ||
```js | ||
const { HttpClient } = require('http-curl'); | ||
(async function(proxy) { | ||
const client = new HttpClient(); | ||
const response = await client.get('https://www.google.com/', { proxy }); | ||
console.log(response.statusCode); // 200 | ||
})('socks5://localhost:9050'); | ||
``` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
47993
14
531
2
17
5
2
2