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

concurix-instrument

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concurix-instrument - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

wrappers/core/process.js

11

instrument.js

@@ -23,7 +23,7 @@ "use strict";

"wrap_timers": true,
"wrap_process": true,
"wrap_dns": true,
"wrap_fs": true,
"wrap_http": true,
"wrap_https": true,
"wrap_http": true, // also wraps https
"wrap_zlib": true,

@@ -108,9 +108,8 @@ // TBD

}
if (config.wrap_process) {
core.wrapProcess(tracer)
}
if (config.wrap_http) {
core.wrapHttp(tracer, "http")
}
if (config.wrap_https) {
core.wrapHttp(tracer, "https")
}
if (config.wrap_http || config.wrap_https) {
core.wrapHttpOutgoingMessage(tracer)

@@ -117,0 +116,0 @@ }

{
"name": "concurix-instrument",
"version": "1.0.6",
"version": "1.1.0",
"description": "Apply Concurix tracing instrumentation to client code.",

@@ -27,11 +27,12 @@ "main": "instrument.js",

"devDependencies": {
"tape": "^2.13.3"
"tape": "^2.14.0"
},
"dependencies": {
"estraverse": "^1.5.0",
"concurix-tracer": "~1.0.1",
"estraverse": "^1.5.1",
"glob-to-regexp": "0.0.1",
"xtend": "^3.0.0",
"scopetracer": "~1.0.0",
"require-transform": "~1.0.0",
"concurix-tracer": "~1.0.0"
"scopetracer": "~1.0.1",
"transaction-tracer": "^1.1.0",
"xtend": "^4.0.0"
},

@@ -38,0 +39,0 @@ "directories": {

@@ -11,7 +11,2 @@ "use strict";

// client
// TODO don't track? Or maybe do track? sending data to concurix?
// instead bind to http.ClientRequest.addListener 'response' ?
// TODO "data" listeners
var reqFnId = tracer.addFunction(httpx, "request")

@@ -114,2 +109,3 @@ var request = http_module.request

var http = require("http")
tracer.addCoreFile("http")
var proxyEnd = http.OutgoingMessage.prototype.end

@@ -116,0 +112,0 @@ var endId = tracer.addFunction("http", "OutgoingMessage.prototype.end")

@@ -7,1 +7,2 @@ module.exports.wrapTimers = require("./timers")

module.exports.wrapZlib = require("./zlib")
module.exports.wrapProcess = require("./process")

@@ -14,6 +14,2 @@ "use strict";

// This won't work if there is a console.log the wrapper meta-code
// You'll get stack size exceptions
process.nextTick = tracer.wrapCoreLinker("process", "nextTick", process.nextTick, "process.nextTick")
var intervals = {}

@@ -20,0 +16,0 @@

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