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 8.0.0-alpha.11 to 8.0.0-alpha.12

2

lib/index.d.ts
import * as _babel_core from '@babel/core';
declare const _default: (api: _babel_core.PluginAPI, options: {}, dirname: string) => _babel_core.PluginObject<_babel_core.PluginPass<{}>>;
declare const _default: (api: _babel_core.PluginAPI, options: object, dirname: string) => _babel_core.PluginObject<object & _babel_core.PluginPass>;
//# sourceMappingURL=index.d.ts.map
export { _default as default };

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

var index = declare(api => {
api.assertVersion("8.0.0-alpha.11");
api.assertVersion("8.0.0-alpha.12");
return {

@@ -24,3 +24,3 @@ name: "transform-typeof-symbol",

if (node.operator !== "typeof") return;
if (path.parentPath.isBinaryExpression() && types.EQUALITY_BINARY_OPERATORS.indexOf(parent.operator) >= 0) {
if (path.parentPath.isBinaryExpression() && types.EQUALITY_BINARY_OPERATORS.includes(parent.operator)) {
const opposite = path.getOpposite();

@@ -27,0 +27,0 @@ if (opposite.isStringLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") {

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

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

"dependencies": {
"@babel/helper-plugin-utils": "^8.0.0-alpha.11"
"@babel/helper-plugin-utils": "^8.0.0-alpha.12"
},
"peerDependencies": {
"@babel/core": "^8.0.0-alpha.11"
"@babel/core": "^8.0.0-alpha.12"
},
"devDependencies": {
"@babel/core": "^8.0.0-alpha.11",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.11",
"@babel/runtime": "^8.0.0-alpha.11",
"@babel/core": "^8.0.0-alpha.12",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.12",
"@babel/runtime": "^8.0.0-alpha.12",
"@babel/runtime-corejs2": "^7.24.0",
"@babel/runtime-corejs3": "^8.0.0-alpha.11"
"@babel/runtime-corejs3": "^8.0.0-alpha.12"
},

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

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