Socket
Socket
Sign inDemoInstall

babel-plugin-minify-flip-comparisons

Package Overview
Dependencies
1
Maintainers
5
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0-alpha.55276695 to 0.5.0-alpha.18dcfe13

16

lib/index.js
"use strict";
module.exports = function (_ref) {
var t = _ref.types;
module.exports = function ({
types: t
}) {
const isVoid0 = require("babel-helper-is-void-0")(t);
var isVoid0 = require("babel-helper-is-void-0")(t);
return {

@@ -16,5 +16,5 @@ name: "minify-flip-comparisons",

BinaryExpression(path) {
var node = path.node;
var right = node.right,
left = node.left; // Make sure we have a constant on the right.
const node = path.node;
const right = node.right,
left = node.left; // Make sure we have a constant on the right.

@@ -35,3 +35,3 @@ if (!t.isLiteral(right) && !isVoid0(right) && !(t.isUnaryExpression(right) && t.isLiteral(right.argument)) && !t.isObjectExpression(right) && !t.isArrayExpression(right)) {

node.right = left;
var operator;
let operator;

@@ -38,0 +38,0 @@ switch (node.operator) {

{
"name": "babel-plugin-minify-flip-comparisons",
"version": "0.5.0-alpha.55276695",
"version": "0.5.0-alpha.18dcfe13",
"description": "",

@@ -15,4 +15,4 @@ "keywords": [

"dependencies": {
"babel-helper-is-void-0": "^0.5.0-alpha.55276695"
"babel-helper-is-void-0": "^0.5.0-alpha.18dcfe13"
}
}

@@ -28,3 +28,3 @@ # babel-plugin-minify-flip-comparisons

```sh
npm install babel-plugin-minify-flip-comparisons
npm install babel-plugin-minify-flip-comparisons --save-dev
```

@@ -31,0 +31,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc