appmetrics
Advanced tools
Comparing version 5.0.5 to 5.1.0
{ | ||
"name": "appmetrics", | ||
"version": "5.0.5", | ||
"version": "5.1.0", | ||
"engines": { | ||
@@ -10,10 +10,8 @@ "node": ">=6" | ||
"nan": "2.x", | ||
"node-gyp": "5.x", | ||
"tar": "4.x", | ||
"semver": "^5.3.0", | ||
"jszip": "2.5.x", | ||
"ibmapm-embed": "^1.0.0" | ||
"ibmapm-embed": ">=19.9.0" | ||
}, | ||
"bundleDependencies": [ | ||
"tar" | ||
], | ||
"devDependencies": { | ||
@@ -23,3 +21,2 @@ "codecov": "^3.1.0", | ||
"eslint-config-strongloop": "^2.1.0", | ||
"node-gyp": "4.x", | ||
"prettier": "^1.4.4", | ||
@@ -26,0 +23,0 @@ "tap": "^12.0.1" |
@@ -71,69 +71,2 @@ /******************************************************************************* | ||
function generateF(expectedArgCount, fn) { | ||
switch (expectedArgCount) { | ||
case 0: | ||
return function() { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 1: | ||
return function(a) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 2: | ||
return function(a, b) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 3: | ||
return function(a, b, c) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 4: | ||
return function(a, b, c, d) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 5: | ||
return function(a, b, c, d, e) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 6: | ||
return function(a, b, c, d, e, f) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 7: | ||
return function(a, b, c, d, e, f, g) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 8: | ||
return function(a, b, c, d, e, f, g, h) { | ||
return fn.apply(this, arguments); | ||
}; | ||
case 9: | ||
return function(a, b, c, d, e, f, g, h, i) { | ||
return fn.apply(this, arguments); | ||
}; | ||
// Slow case for functions with > 10 args | ||
default: | ||
var ident = 'a'; | ||
var argumentList = []; | ||
for (var i = 0; i < expectedArgCount; i++) { | ||
argumentList[i] = ident; | ||
ident = incrementIdentifier(ident); | ||
} | ||
/* eslint no-eval: 0 */ | ||
return eval('x = function(' + argumentList.join(',') + ') {return fn.apply(this,arguments);};'); | ||
} | ||
function incrementIdentifier(identifier) { | ||
var charArr = identifier.split(''); | ||
var lastChar = charArr[charArr.length - 1]; | ||
if (lastChar == 'z') { | ||
return identifier + 'a'; | ||
} else { | ||
var chopped = identifier.substring(0, identifier.length - 1); | ||
return chopped + String.fromCharCode(lastChar.charCodeAt(0) + 1); | ||
} | ||
} | ||
} | ||
var f = function() { | ||
@@ -220,4 +153,5 @@ var req = request.startMethod(fullName); | ||
// use a function replace to call our 'f' function. | ||
// we ned to use 'generateF' to call f with the correct number of arguments | ||
target[name] = generateF(method.length, f); | ||
target[name] = function() { | ||
return f.apply(this, arguments); | ||
}; | ||
target[name].prototype = method.prototype; | ||
@@ -224,0 +158,0 @@ } |
@@ -490,5 +490,6 @@ # Node Application Metrics | ||
## Version | ||
5.0.5 | ||
5.1.0 | ||
## Release History | ||
`5.1.0` - Node13 support, bump dependency versions and a trace probe fix. | ||
`5.0.5` - zAppmetrics fixes, and bump agentcore for Alpine support. | ||
@@ -495,0 +496,0 @@ `5.0.3` - Bug fix. |
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 3 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 3 instances in 1 package
112307992
5
657
536
6
6650
55
+ Addednode-gyp@5.x
+ Addedabbrev@1.1.1(transitive)
+ Addedagent-base@5.1.1(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedaproba@1.2.0(transitive)
+ Addedare-we-there-yet@1.1.7(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addeddate-format@2.1.0(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addedflatted@2.0.2(transitive)
+ Addedfs-extra@7.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgauge@2.7.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhttps-proxy-agent@4.0.0(transitive)
+ Addedibmapm-embed@21.9.0(transitive)
+ Addedibmapm-restclient@20.8.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedis-promise@2.2.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedlog4js@4.5.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednode-gyp@5.1.1(transitive)
+ Addednopt@4.0.3(transitive)
+ Addednpmlog@4.1.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedosenv@0.1.5(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedproperties-reader@2.2.0(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrfdc@1.4.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstreamroller@1.0.6(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedzipkin@0.22.0(transitive)
+ Addedzipkin-transport-http@0.22.0(transitive)
- Removedagent-base@4.3.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedhttps-proxy-agent@2.2.4(transitive)
- Removedibmapm-embed@1.1.2(transitive)
- Removedibmapm-restclient@1.1.11(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlog4js@0.6.38(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedproperties-reader@0.0.16(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedsemver@4.3.6(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedzipkin-transport-http@0.10.1(transitive)
Updatedibmapm-embed@>=19.9.0