🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

triton-core

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

triton-core - npm Package Compare versions

Comparing version

to
1.2.0

2

package.json
{
"name": "triton-core",
"version": "1.1.0",
"version": "1.2.0",
"description": "Triton Media Core Modules",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -91,3 +91,15 @@ /**

return this._tracer.extract(opentracing.FORMAT_TEXT_MAP, data)
},
/**
* SerializeHTTP dumps opentracing context into an object
* suitable for use in HTTP headers
* @param {opentracing.Span} span - span to serialize
* @returns {Object} kv
*/
serializeHTTP: function(span) {
const context = {}
this._tracer.inject(span, opentracing.FORMAT_HTTP_HEADERS, context)
return context
}
}