opentracing
Advanced tools
Comparing version 0.9.11 to 0.9.12
@@ -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
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
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
168649