Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-typeof-symbol

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-typeof-symbol - npm Package Compare versions

Comparing version 6.6.0 to 6.8.0

32

lib/index.js

@@ -1,18 +0,18 @@

/* eslint max-len: 0 */
/*istanbul ignore next*/"use strict";
"use strict";
exports.__esModule = true;
var _Symbol = require("babel-runtime/core-js/symbol")["default"];
var _symbol = require("babel-runtime/core-js/symbol");
exports.__esModule = true;
var _symbol2 = _interopRequireDefault(_symbol);
exports["default"] = function (_ref) {
var t = _ref.types;
exports.default = function ( /*istanbul ignore next*/_ref) {
/*istanbul ignore next*/var t = _ref.types;
var IGNORE = _Symbol();
var IGNORE = /*istanbul ignore next*/(0, _symbol2.default)();
return {
visitor: {
visitor: { /*istanbul ignore next*/
Scope: function Scope(_ref2) {
var scope = _ref2.scope;
/*istanbul ignore next*/var scope = _ref2.scope;

@@ -25,9 +25,8 @@ if (!scope.getBinding("Symbol")) {

},
/*istanbul ignore next*/UnaryExpression: function UnaryExpression(path) {
/*istanbul ignore next*/var node = path.node;
/*istanbul ignore next*/var parent = path.parent;
UnaryExpression: function UnaryExpression(path) {
var node = path.node;
var parent = path.parent;
if (node[IGNORE]) return;
if (path.find(function (path) {
if (path.find(function (path) /*istanbul ignore next*/{
return path.node && !!path.node._generated;

@@ -60,2 +59,5 @@ })) return;

module.exports = exports["default"];
/*istanbul ignore next*/
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = exports["default"]; /* eslint max-len: 0 */
{
"name": "babel-plugin-transform-es2015-typeof-symbol",
"version": "6.6.0",
"version": "6.8.0",
"description": "",

@@ -12,7 +12,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-typeof-symbol",

"dependencies": {
"babel-runtime": "^5.0.0"
"babel-runtime": "^6.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.3.13"
"babel-helper-plugin-test-runner": "^6.8.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc