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.1.7 to 0.1.9

6

package.json
{
"name": "zipkin-instrumentation-fetch",
"version": "0.1.7",
"version": "0.1.9",
"description": "Interceptor for HTTP clients using the 'fetch' API",

@@ -13,3 +13,3 @@ "main": "index.js",

"peerDependencies": {
"zipkin-core": "^0.1.7"
"zipkin": "^0.1.9"
},

@@ -19,4 +19,4 @@ "devDependencies": {

"node-fetch": "^1.5.1",
"zipkin-core": "^0.1.7"
"zipkin": "^0.1.9"
}
}

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

const {trace, HttpHeaders, Annotation} = require('zipkin-core');
const {trace, HttpHeaders, Annotation} = require('zipkin');

@@ -45,4 +45,4 @@ function wrapFetch(fetch, {serviceName}) {

trace.recordAnnotation(new Annotation.ClientRecv());
resolve(res);
});
resolve(res);
}).catch(err => {

@@ -53,4 +53,4 @@ trace.withContext(() => {

trace.recordAnnotation(new Annotation.ClientRecv());
reject(err);
});
reject(err);
});

@@ -57,0 +57,0 @@ });

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

const {trace} = require('zipkin-core');
const {trace} = require('zipkin');
const express = require('express');

@@ -3,0 +3,0 @@ const nodeFetch = require('node-fetch');

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