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

derf

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derf - npm Package Compare versions

Comparing version 3.0.0 to 3.0.2

index.d.ts

22

lib/callback.js

@@ -37,13 +37,15 @@ 'use strict';

if (index >= 0) {
(0, _constants.debug)('wrapping callback at arguments[%s]', index);
var start = process.hrtime();
var cb = args[index];
args[index] = function perfWrappedCb() {
for (var _len2 = arguments.length, retArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
retArgs[_key2] = arguments[_key2];
}
(function () {
(0, _constants.debug)('wrapping callback at arguments[%s]', index);
var start = process.hrtime();
var cb = args[index];
args[index] = function perfWrappedCb() {
for (var _len2 = arguments.length, retArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
retArgs[_key2] = arguments[_key2];
}
print(start, args, retArgs);
return cb.apply(this, retArgs);
};
print(start, args, retArgs);
return cb.apply(this, retArgs);
};
})();
} else {

@@ -50,0 +52,0 @@ // no callback at all. Wow..

{
"name": "derf",
"version": "3.0.0",
"version": "3.0.2",
"description": "A javascript performance debugger.",

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

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