appmetrics
Advanced tools
Comparing version
{ | ||
"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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance 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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
112307992
5813.14%5
-16.67%657
114.01%536
0.19%6
20%6789
-0.92%55
323.08%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated