🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-typeof-symbol

Package Overview
Dependencies
Maintainers
4
Versions
86
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

to
7.27.0

12

lib/index.js

@@ -42,7 +42,9 @@ "use strict";

const helper = this.addHelper("typeof");
isUnderHelper = path.findParent(path => {
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name;
});
if (isUnderHelper) {
return;
{
isUnderHelper = path.findParent(path => {
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name;
});
if (isUnderHelper) {
return;
}
}

@@ -49,0 +51,0 @@ const call = _core.types.callExpression(helper, [node.argument]);

{
"name": "@babel/plugin-transform-typeof-symbol",
"version": "7.26.7",
"version": "7.27.0",
"description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)",

@@ -25,7 +25,7 @@ "repository": {

"devDependencies": {
"@babel/core": "^7.26.7",
"@babel/core": "^7.26.10",
"@babel/helper-plugin-test-runner": "^7.25.9",
"@babel/runtime": "^7.26.7",
"@babel/runtime": "^7.27.0",
"@babel/runtime-corejs2": "^7.24.0",
"@babel/runtime-corejs3": "^7.26.7"
"@babel/runtime-corejs3": "^7.27.0"
},

@@ -32,0 +32,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typeof-symbol",

Sorry, the diff of this file is not supported yet