New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

appmetrics

Package Overview
Dependencies
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appmetrics - npm Package Compare versions

Comparing version 5.0.5 to 5.1.0

.nyc_output/23beeafb-cb83-4477-9176-721372884c01.json

9

package.json
{
"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

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