New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.2.1 to 3.0.0

22

lib/callback.js

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

if (index >= 0) {
(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];
}
(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 {

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

@@ -11,3 +11,3 @@ 'use strict';

Object.keys(_sync).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {

@@ -24,3 +24,3 @@ enumerable: true,

Object.keys(_promise).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {

@@ -37,3 +37,3 @@ enumerable: true,

Object.keys(_callback).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {

@@ -50,3 +50,3 @@ enumerable: true,

Object.keys(_middleware).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {

@@ -53,0 +53,0 @@ enumerable: true,

@@ -54,3 +54,3 @@ 'use strict';

function createDecorator(type) {
var printer = arguments.length <= 1 || arguments[1] === undefined ? defaultPrinter : arguments[1];
var printer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultPrinter;

@@ -83,3 +83,3 @@ return function decorate(namespace) {

return function (namespace, fn) {
var printer = arguments.length <= 2 || arguments[2] === undefined ? defaultPrinter : arguments[2];
var printer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultPrinter;

@@ -86,0 +86,0 @@ // 'cast' namespace to be a debug function

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

@@ -44,3 +44,3 @@ "main": "lib/index.js",

"dependencies": {
"debug": "^2.2.0",
"debug": "^3.1.0",
"lodash": "^4.12.0",

@@ -59,4 +59,2 @@ "mimic-fn": "^1.1.0",

"eslint": "^2.10.2",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.8.0",
"glob": "^7.0.3",

@@ -63,0 +61,0 @@ "in-publish": "^2.0.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