@babel/plugin-transform-typeof-symbol
Advanced tools
Comparing version 8.0.0-alpha.11 to 8.0.0-alpha.12
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
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
73298