Comparing version 3.1.0 to 3.2.0
var fs = require('fs') | ||
var path = require('path') | ||
var request = require('request') | ||
var request = require('teeny-request').teenyRequest | ||
var urlgrey = require('urlgrey') | ||
@@ -149,7 +149,8 @@ var jsYaml = require('js-yaml') | ||
// Direct to Codecov | ||
request.post( | ||
request( | ||
{ | ||
url: urlgrey(codecov_endpoint + '/upload/v2') | ||
uri: urlgrey(codecov_endpoint + '/upload/v2') | ||
.query(query) | ||
.toString(), | ||
method: 'POST', | ||
body: upload_body, | ||
@@ -184,7 +185,8 @@ headers: { | ||
// Direct to S3 | ||
request.post( | ||
request( | ||
{ | ||
url: urlgrey(codecov_endpoint + '/upload/v4') | ||
uri: urlgrey(codecov_endpoint + '/upload/v4') | ||
.query(query) | ||
.toString(), | ||
method: 'POST', | ||
body: '', | ||
@@ -207,5 +209,6 @@ headers: { | ||
var codecov_report_url = result.split('\n')[0] | ||
request.put( | ||
request( | ||
{ | ||
url: result.split('\n')[1], | ||
uri: result.split('\n')[1], | ||
method: 'PUT', | ||
body: upload_body, | ||
@@ -305,4 +308,5 @@ headers: { | ||
try { | ||
var loadedYamlFile = jsYaml.safeLoad(fs.readFileSync(query.yaml, 'utf8')) | ||
yamlToken = loadedYamlFile && loadedYamlFile.codecov && loadedYamlFile.codecov.token | ||
var loadedYamlFile = jsYaml.safeLoad(fs.readFileSync(query.yaml, 'utf8')) | ||
yamlToken = | ||
loadedYamlFile && loadedYamlFile.codecov && loadedYamlFile.codecov.token | ||
} catch (e) { | ||
@@ -309,0 +313,0 @@ // silently fail |
@@ -5,2 +5,3 @@ var services = { | ||
buildkite: require('./services/buildkite'), | ||
azurePipelines: require('./services/azurePipelines'), | ||
codeship: require('./services/codeship'), | ||
@@ -7,0 +8,0 @@ drone: require('./services/drone'), |
{ | ||
"name": "codecov", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Uploading report to Codecov: https://codecov.io", | ||
@@ -15,3 +15,8 @@ "main": "index.js", | ||
}, | ||
"keywords": ["coverage", "code-coverage", "codecov.io", "codecov"], | ||
"keywords": [ | ||
"coverage", | ||
"code-coverage", | ||
"codecov.io", | ||
"codecov" | ||
], | ||
"bin": { | ||
@@ -33,3 +38,3 @@ "codecov": "./bin/codecov" | ||
"js-yaml": "^3.12.0", | ||
"request": "^2.87.0", | ||
"teeny-request": "^3.7.0", | ||
"urlgrey": "^0.4.4" | ||
@@ -49,5 +54,11 @@ }, | ||
"lint-staged": { | ||
"**/*.js": ["prettier --write --parser=babylon", "git add"], | ||
"**/*.json": ["prettier --write --parser=json", "git add"] | ||
"**/*.js": [ | ||
"prettier --write --parser=babylon", | ||
"git add" | ||
], | ||
"**/*.json": [ | ||
"prettier --write --parser=json", | ||
"git add" | ||
] | ||
} | ||
} |
@@ -13,7 +13,11 @@ # Codecov NodeJS Uploader | ||
## Installation: | ||
Add the latest version of `codecov` to your package.json: | ||
``` | ||
npm install codecov --save-dev | ||
``` | ||
or | ||
``` | ||
@@ -32,2 +36,3 @@ yarn add codecov --dev | ||
#### Upload repo tokens | ||
> Repo tokens are **not** required for public repos tested on Travis-Org, CircleCI or AppVeyor. | ||
@@ -68,12 +73,8 @@ | ||
[travis-url]: https://travis-ci.org/codecov/codecov-node | ||
[appveyor-image]: https://ci.appveyor.com/api/projects/status/ea1suiv0tprnq61l?svg=true | ||
[appveyor-url]: https://ci.appveyor.com/project/eddiemoore/codecov-node/branch/master | ||
[npm-url]: https://npmjs.org/package/codecov | ||
[npm-image]: https://img.shields.io/npm/v/codecov.svg | ||
[depstat-url]: https://david-dm.org/codecov/codecov-node | ||
[depstat-image]: https://img.shields.io/david/codecov/codecov-node/master.svg | ||
[devdepstat-url]: https://david-dm.org/codecov/codecov-node#info=devDependencies | ||
@@ -91,2 +92,3 @@ [devdepstat-image]: https://img.shields.io/david/dev/codecov/codecov-node/master.svg | ||
## Change Log | ||
- v2.0.0 No longer supports node v0.10 because of the execSync. | ||
@@ -103,1 +105,3 @@ - v2.0.1 Publish as latest instead of next. | ||
- v3.0.4 Security fixes | ||
- v3.1.0 Custom yaml file. Allow codecov token from yml file. | ||
- v3.2.0 Added azure pipelines |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61678
51
1714
103
190
+ Addedteeny-request@^3.7.0
+ Addedagent-base@4.3.0(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedteeny-request@3.11.3(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedrequest@^2.87.0
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.10.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedverror@1.10.0(transitive)