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

babel-plugin-debug-tools

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-debug-tools - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

29

lib/index.js

@@ -168,23 +168,3 @@ "use strict";

function explainExpr(bigExpr, fields, addf) {
if (t.isStringLiteral(bigExpr)) {
return {
caption: bigExpr.value,
val: bigExpr
};
} else if (t.isNumericLiteral(bigExpr)) {
return {
caption: bigExpr.value.toString(),
val: bigExpr
};
} else if (t.isBooleanLiteral(bigExpr)) {
return {
caption: bigExpr.value ? 'true' : 'false',
val: bigExpr
};
} else if (t.isNullLiteral(bigExpr)) {
return {
caption: 'null',
val: bigExpr
};
} else if (t.isIdentifier(bigExpr)) {
if (t.isIdentifier(bigExpr)) {
if (addf) fields[bigExpr.name] = t.clone(bigExpr);

@@ -274,5 +254,8 @@ return {

// return { caption: cname, expr: cclone }
}
} else if (t.isAssignmentExpression(bigExpr) || t.isUpdateExpression(bigExpr)) path.buildCodeFrameError("Don't change state when assert");
throw path.buildCodeFrameError("unsupported expression: " + bigExpr.type);
return {
caption: (0, _generator.default)(bigExpr).code,
val: bigExpr
};
}

@@ -279,0 +262,0 @@ }

{
"name": "babel-plugin-debug-tools",
"version": "1.0.23",
"version": "1.0.24",
"description": "Helpers for debug Javascript Applications",

@@ -5,0 +5,0 @@ "repository": {

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