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

@babel/plugin-transform-object-super

Package Overview
Dependencies
Maintainers
5
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-object-super - npm Package Compare versions

Comparing version 7.0.0-beta.46 to 7.0.0-beta.47

21

lib/index.js

@@ -9,3 +9,3 @@ "use strict";

function _helperPluginUtils() {
var data = require("@babel/helper-plugin-utils");
const data = require("@babel/helper-plugin-utils");

@@ -20,3 +20,3 @@ _helperPluginUtils = function _helperPluginUtils() {

function _helperReplaceSupers() {
var data = _interopRequireDefault(require("@babel/helper-replace-supers"));
const data = _interopRequireDefault(require("@babel/helper-replace-supers"));

@@ -31,3 +31,3 @@ _helperReplaceSupers = function _helperReplaceSupers() {

function _core() {
var data = require("@babel/core");
const data = require("@babel/core");

@@ -44,3 +44,3 @@ _core = function _core() {

function replacePropertySuper(path, getObjectRef, file) {
var replaceSupers = new (_helperReplaceSupers().default)({
const replaceSupers = new (_helperReplaceSupers().default)({
getObjectRef: getObjectRef,

@@ -53,14 +53,12 @@ methodPath: path,

var _default = (0, _helperPluginUtils().declare)(function (api) {
var _default = (0, _helperPluginUtils().declare)(api => {
api.assertVersion(7);
return {
visitor: {
ObjectExpression: function ObjectExpression(path, state) {
var objectRef;
ObjectExpression(path, state) {
let objectRef;
var getObjectRef = function getObjectRef() {
return objectRef = objectRef || path.scope.generateUidIdentifier("obj");
};
const getObjectRef = () => objectRef = objectRef || path.scope.generateUidIdentifier("obj");
path.get("properties").forEach(function (propPath) {
path.get("properties").forEach(propPath => {
if (!propPath.isMethod()) return;

@@ -77,2 +75,3 @@ replacePropertySuper(propPath, getObjectRef, state);

}
}

@@ -79,0 +78,0 @@ };

{
"name": "@babel/plugin-transform-object-super",
"version": "7.0.0-beta.46",
"version": "7.0.0-beta.47",
"description": "Compile ES2015 object super to ES5",

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

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.46",
"@babel/helper-replace-supers": "7.0.0-beta.46"
"@babel/helper-plugin-utils": "7.0.0-beta.47",
"@babel/helper-replace-supers": "7.0.0-beta.47"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.46"
"@babel/core": "7.0.0-beta.47"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.46",
"@babel/helper-plugin-test-runner": "7.0.0-beta.46"
"@babel/core": "7.0.0-beta.47",
"@babel/helper-plugin-test-runner": "7.0.0-beta.47"
}
}
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