Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zipkin-instrumentation-fetch

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zipkin-instrumentation-fetch - npm Package Compare versions

Comparing version 0.14.3 to 0.15.0

.babelrc

2

lib/index.js

@@ -1,3 +0,3 @@

'use strict';
"use strict";
module.exports = require('./wrapFetch');

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -10,7 +10,9 @@ var _require = require('zipkin'),

remoteServiceName = _ref.remoteServiceName;
var instrumentation = new Instrumentation.HttpClient({ tracer: tracer, serviceName: serviceName, remoteServiceName: remoteServiceName });
var instrumentation = new Instrumentation.HttpClient({
tracer: tracer,
serviceName: serviceName,
remoteServiceName: remoteServiceName
});
return function zipkinfetch(url) {
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return new Promise(function (resolve, reject) {

@@ -21,3 +23,2 @@ tracer.scoped(function () {

var traceId = tracer.id;
fetch(url, zipkinOpts).then(function (res) {

@@ -24,0 +25,0 @@ tracer.scoped(function () {

{
"name": "zipkin-instrumentation-fetch",
"version": "0.14.3",
"version": "0.15.0",
"description": "Interceptor for HTTP clients using the 'fetch' API",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"build": "babel src -d lib",
"test": "mocha --require ../../test/helper.js",
"test": "mocha --exit --require ../../test/helper.js",
"prepublish": "npm run build"

@@ -16,8 +16,10 @@ },

"devDependencies": {
"babel-cli": "^6.23.0",
"@babel/cli": "7.1.5",
"@babel/core": "7.1.5",
"express": "^4.13.4",
"mocha": "^3.2.0",
"mocha": "^5.2.0",
"node-fetch": "^1.5.3",
"zipkin": "^0.14.3"
}
"zipkin": "^0.15.0"
},
"gitHead": "efd22b807a6d6056a319d9468231480e7a58a402"
}
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