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

opentracing

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentracing - npm Package Compare versions

Comparing version 0.9.11 to 0.9.12

14

dist/opentracing-browser.js

@@ -326,3 +326,3 @@ var Tracer =

if (typeof format !== 'string') {
throw new Error('format expected to be a string');
throw new Error('format expected to be a string. Found: ' + (typeof format === 'undefined' ? 'undefined' : _typeof(format)));
}

@@ -332,4 +332,4 @@ if (format === _constants2.default.FORMAT_SPLIT_TEXT && !(carrier instanceof _split_text_carrier2.default)) {

}
if (format === _constants2.default.FORMAT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "binary" format');
if (format === _constants2.default.FORMAT_SPLIT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "split_binary" format');
}

@@ -372,4 +372,4 @@ }

}
if (format === _constants2.default.FORMAT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "binary" format');
if (format === _constants2.default.FORMAT_SPLIT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "split_binary" format');
}

@@ -623,3 +623,3 @@ }

}
if (!kKeyRegExp.match(key)) {
if (!kKeyRegExp.test(key)) {
throw new Error('Invalid trace key');

@@ -660,3 +660,3 @@ }

}
if (!kKeyRegExp.match(key)) {
if (!kKeyRegExp.test(key)) {
throw new Error('Invalid trace key');

@@ -663,0 +663,0 @@ }

@@ -327,3 +327,3 @@ require("source-map-support").install();

if (typeof format !== 'string') {
throw new Error('format expected to be a string');
throw new Error('format expected to be a string. Found: ' + (typeof format === 'undefined' ? 'undefined' : _typeof(format)));
}

@@ -333,4 +333,4 @@ if (format === _constants2.default.FORMAT_SPLIT_TEXT && !(carrier instanceof _split_text_carrier2.default)) {

}
if (format === _constants2.default.FORMAT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "binary" format');
if (format === _constants2.default.FORMAT_SPLIT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "split_binary" format');
}

@@ -373,4 +373,4 @@ }

}
if (format === _constants2.default.FORMAT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "binary" format');
if (format === _constants2.default.FORMAT_SPLIT_BINARY && !(carrier instanceof _binary_carrier2.default)) {
throw new Error('Unexpected carrier object for "split_binary" format');
}

@@ -624,3 +624,3 @@ }

}
if (!kKeyRegExp.match(key)) {
if (!kKeyRegExp.test(key)) {
throw new Error('Invalid trace key');

@@ -661,3 +661,3 @@ }

}
if (!kKeyRegExp.match(key)) {
if (!kKeyRegExp.test(key)) {
throw new Error('Invalid trace key');

@@ -664,0 +664,0 @@ }

{
"name": "opentracing",
"version": "0.9.11",
"version": "0.9.12",
"main": "dist/opentracing-node.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -134,3 +134,3 @@ 'use strict';

}
if (!kKeyRegExp.match(key)) {
if (!kKeyRegExp.test(key)) {
throw new Error('Invalid trace key');

@@ -171,3 +171,3 @@ }

}
if (!kKeyRegExp.match(key)) {
if (!kKeyRegExp.test(key)) {
throw new Error('Invalid trace key');

@@ -174,0 +174,0 @@ }

@@ -110,3 +110,3 @@ 'use strict';

if (typeof format !== 'string') {
throw new Error('format expected to be a string');
throw new Error('format expected to be a string. Found: ' + typeof format);
}

@@ -116,4 +116,4 @@ if (format === Constants.FORMAT_SPLIT_TEXT && !(carrier instanceof SplitTextCarrier)) {

}
if (format === Constants.FORMAT_BINARY && !(carrier instanceof BinaryCarrier)) {
throw new Error('Unexpected carrier object for "binary" format');
if (format === Constants.FORMAT_SPLIT_BINARY && !(carrier instanceof BinaryCarrier)) {
throw new Error('Unexpected carrier object for "split_binary" format');
}

@@ -153,4 +153,4 @@ }

}
if (format === Constants.FORMAT_BINARY && !(carrier instanceof BinaryCarrier)) {
throw new Error('Unexpected carrier object for "binary" format');
if (format === Constants.FORMAT_SPLIT_BINARY && !(carrier instanceof BinaryCarrier)) {
throw new Error('Unexpected carrier object for "split_binary" format');
}

@@ -157,0 +157,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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