opentracing
Advanced tools
Comparing version 0.14.2 to 0.14.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
var _ = require("lodash"); | ||
/** | ||
@@ -17,3 +15,3 @@ * Index a collection of reported MockSpans in a way that's easy to run unit | ||
this.unfinishedSpans = []; | ||
_.each(spans, function (span) { | ||
spans.forEach(function (span) { | ||
if (span._finishMs === 0) { | ||
@@ -24,3 +22,5 @@ _this.unfinishedSpans.push(span); | ||
_this.debugSpans.push(span.debug()); | ||
_.each(span.tags(), function (val, key) { | ||
var tags = span.tags(); | ||
Object.keys(tags).forEach(function (key) { | ||
var val = tags[key]; | ||
_this.spansByTag[key] = _this.spansByTag[key] || {}; | ||
@@ -27,0 +27,0 @@ _this.spansByTag[key][val] = _this.spansByTag[key][val] || []; |
@@ -14,3 +14,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _ = require("lodash"); | ||
var opentracing = require("../index"); | ||
@@ -93,3 +92,3 @@ var mock_context_1 = require("./mock_context"); | ||
}; | ||
if (_.size(this._tags)) { | ||
if (Object.keys(this._tags).length) { | ||
obj.tags = this._tags; | ||
@@ -96,0 +95,0 @@ } |
{ | ||
"name": "opentracing", | ||
"version": "0.14.2", | ||
"version": "0.14.3", | ||
"engines": { | ||
@@ -36,3 +36,2 @@ "node": ">=0.10" | ||
"@types/chai": "3.4.35", | ||
"@types/lodash": "4.14.61", | ||
"@types/mocha": "2.2.40", | ||
@@ -47,3 +46,2 @@ "@types/node": "7.0.12", | ||
"json-loader": "^0.5.4", | ||
"lodash": "^4.17.4", | ||
"mocha": "^2.4.5", | ||
@@ -50,0 +48,0 @@ "shelljs": "^0.5.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
515819
19
90
9979
0