Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-es2015-object-super

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-object-super - npm Package Compare versions

Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16

10

lib/index.js

@@ -7,3 +7,2 @@ "use strict";

var t = _ref.types;
return {

@@ -13,2 +12,3 @@ visitor: {

var objectRef = void 0;
var getObjectRef = function getObjectRef() {

@@ -20,4 +20,4 @@ return objectRef = objectRef || path.scope.generateUidIdentifier("obj");

if (!propertyPath.isMethod()) return;
var propPaths = path.get("properties");
var propPaths = path.get("properties");
for (var _iterator = propPaths, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {

@@ -36,3 +36,2 @@ var _ref2;

var propPath = _ref2;
if (propPath.isObjectProperty()) propPath = propPath.get("value");

@@ -44,3 +43,5 @@ replacePropertySuper(propPath, propPath.node, path.scope, getObjectRef, state);

if (objectRef) {
path.scope.push({ id: objectRef });
path.scope.push({
id: objectRef
});
path.replaceWith(t.assignmentExpression("=", objectRef, path.node));

@@ -68,4 +69,3 @@ }

});
replaceSupers.replace();
}
{
"name": "babel-plugin-transform-es2015-object-super",
"version": "7.0.0-alpha.15",
"version": "7.0.0-alpha.16",
"description": "Compile ES2015 object super to ES5",

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

"dependencies": {
"babel-helper-replace-supers": "7.0.0-alpha.15"
"babel-helper-replace-supers": "7.0.0-alpha.16"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-alpha.15"
"babel-helper-plugin-test-runner": "7.0.0-alpha.16"
}
}
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