@bbc/http-transport-statsd
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "@bbc/http-transport-statsd", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Provides stats for statsD ", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@bbc/http-transport": "^3.0.0", | ||
"@bbc/http-transport": "^3.4.2", | ||
"chai": "^4.1.2", | ||
@@ -40,5 +40,5 @@ "eslint": "^4.11.0", | ||
"lodash": "^4.17.4", | ||
"mocha": "^2.1.0", | ||
"mocha": "^5.2.0", | ||
"nock": "^9.0.14", | ||
"sinon": "^3.2.1" | ||
"sinon": "^7.2.3" | ||
}, | ||
@@ -45,0 +45,0 @@ "peerDependencies": { |
@@ -0,1 +1,8 @@ | ||
[![NPM downloads](https://img.shields.io/npm/dm/@bbc/http-transport-statsd.svg?style=flat)](https://npmjs.org/package/@bbc/http-transport-rate-limiter) | ||
![npm](https://img.shields.io/npm/v/@bbc/http-transport-statsd.svg) | ||
![license](https://img.shields.io/badge/license-MIT-blue.svg) | ||
![github-issues](https://img.shields.io/github/issues/bbc/http-transport-statsd.svg) | ||
![stars](https://img.shields.io/github/stars/bbc/http-transport-statsd.svg) | ||
![forks](https://img.shields.io/github/forks/bbc/http-transport-statsd.svg) | ||
# http-transport-statsd | ||
@@ -32,9 +39,7 @@ | ||
HttpTransport.createClient() | ||
const body = await HttpTransport.createClient() | ||
.use(sendStats(statsd)) // send stats for this request | ||
.get(url) | ||
.asBody() | ||
.then((body) => { | ||
console.log(body); | ||
}); | ||
.asBody(); | ||
console.log(body); | ||
``` | ||
@@ -41,0 +46,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9764
57
0