Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-typeof-symbol

Package Overview
Dependencies
1
Maintainers
6
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.8.3 to 7.8.4

10

lib/index.js

@@ -42,4 +42,12 @@ "use strict";

let isUnderHelper = path.findParent(path => {
if (path.isFunction()) {
var _path$get;
return ((_path$get = path.get("body.directives.0")) == null ? void 0 : _path$get.node.value.value) === "@babel/helpers - typeof";
}
});
if (isUnderHelper) return;
const helper = this.addHelper("typeof");
const isUnderHelper = path.findParent(path => {
isUnderHelper = path.findParent(path => {
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name;

@@ -46,0 +54,0 @@ });

12

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

@@ -21,6 +21,10 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typeof-symbol",

"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/helper-plugin-test-runner": "^7.8.3"
"@babel/core": "^7.8.4",
"@babel/helper-plugin-test-runner": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@babel/runtime-corejs2": "^7.8.4",
"@babel/runtime-corejs3": "^7.8.4",
"resolve": "^1.15.0"
},
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017"
"gitHead": "5c2e6bc07fed3d28801d93168622c99ae622653a"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc