@babel/plugin-transform-typeof-symbol
Advanced tools
Comparing version 7.24.7 to 7.24.8
@@ -28,3 +28,3 @@ "use strict"; | ||
if (node.operator !== "typeof") return; | ||
if (path.parentPath.isBinaryExpression() && _core.types.EQUALITY_BINARY_OPERATORS.indexOf(parent.operator) >= 0) { | ||
if (path.parentPath.isBinaryExpression() && _core.types.EQUALITY_BINARY_OPERATORS.includes(parent.operator)) { | ||
const opposite = path.getOpposite(); | ||
@@ -31,0 +31,0 @@ if (opposite.isStringLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") { |
{ | ||
"name": "@babel/plugin-transform-typeof-symbol", | ||
"version": "7.24.7", | ||
"version": "7.24.8", | ||
"description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.24.7" | ||
"@babel/helper-plugin-utils": "^7.24.8" | ||
}, | ||
@@ -26,7 +26,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/core": "^7.24.8", | ||
"@babel/helper-plugin-test-runner": "^7.24.7", | ||
"@babel/runtime": "^7.24.7", | ||
"@babel/runtime": "^7.24.8", | ||
"@babel/runtime-corejs2": "^7.24.0", | ||
"@babel/runtime-corejs3": "^7.24.7" | ||
"@babel/runtime-corejs3": "^7.24.8" | ||
}, | ||
@@ -33,0 +33,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typeof-symbol", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72713