Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-typeof-symbol

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-typeof-symbol - npm Package Compare versions

Comparing version 7.24.7 to 7.24.8

2

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc