🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@babel/plugin-transform-typeof-symbol

Package Overview
Dependencies
Maintainers
4
Versions
87
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
8.0.0-beta.0

8

lib/index.js

@@ -5,3 +5,3 @@ import { declare } from '@babel/helper-plugin-utils';

var index = declare(api => {
api.assertVersion("8.0.0-alpha.17");
api.assertVersion("8.0.0-beta.0");
return {

@@ -37,8 +37,2 @@ name: "transform-typeof-symbol",

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;
}
const call = types.callExpression(helper, [node.argument]);

@@ -45,0 +39,0 @@ const arg = path.get("argument");

16

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

@@ -19,17 +19,17 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^8.0.0-alpha.17"
"@babel/helper-plugin-utils": "^8.0.0-beta.0"
},
"peerDependencies": {
"@babel/core": "^8.0.0-alpha.17"
"@babel/core": "^8.0.0-beta.0"
},
"devDependencies": {
"@babel/core": "^8.0.0-alpha.17",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.17",
"@babel/runtime": "^8.0.0-alpha.17",
"@babel/core": "^8.0.0-beta.0",
"@babel/helper-plugin-test-runner": "^8.0.0-beta.0",
"@babel/runtime": "^8.0.0-beta.0",
"@babel/runtime-corejs2": "^7.24.0",
"@babel/runtime-corejs3": "^8.0.0-alpha.17"
"@babel/runtime-corejs3": "^8.0.0-beta.0"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typeof-symbol",
"engines": {
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
"node": "^20.19.0 || >=22.12.0"
},

@@ -36,0 +36,0 @@ "author": "The Babel Team (https://babel.dev/team)",

Sorry, the diff of this file is not supported yet