Socket
Socket
Sign inDemoInstall

@babel/helper-replace-supers

Package Overview
Dependencies
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-replace-supers - npm Package Compare versions

Comparing version 7.0.0-beta.34 to 7.0.0-beta.35

10

lib/index.js

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

this.inClass = void 0;
this.inConstructor = void 0;
this.isLoose = void 0;

@@ -106,2 +107,3 @@ this.scope = void 0;

this.inClass = inClass;
this.inConstructor = opts.inConstructor;
this.isLoose = opts.isLoose;

@@ -127,3 +129,9 @@ this.scope = this.methodPath.scope;

_proto.getSuperProperty = function getSuperProperty(property, isComputed) {
return t.callExpression(this.file.addHelper("get"), [getPrototypeOfExpression(this.getObjectRef(), this.isStatic), isComputed ? property : t.stringLiteral(property.name), t.thisExpression()]);
var thisExpr = t.thisExpression();
if (this.inConstructor) {
thisExpr = t.callExpression(this.file.addHelper("assertThisInitialized"), [thisExpr]);
}
return t.callExpression(this.file.addHelper("get"), [getPrototypeOfExpression(this.getObjectRef(), this.isStatic), isComputed ? property : t.stringLiteral(property.name), thisExpr]);
};

@@ -130,0 +138,0 @@

10

package.json
{
"name": "@babel/helper-replace-supers",
"version": "7.0.0-beta.34",
"version": "7.0.0-beta.35",
"description": "Helper function to replace supers",

@@ -9,7 +9,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-replace-supers",

"dependencies": {
"@babel/helper-optimise-call-expression": "7.0.0-beta.34",
"@babel/template": "7.0.0-beta.34",
"@babel/traverse": "7.0.0-beta.34",
"@babel/types": "7.0.0-beta.34"
"@babel/helper-optimise-call-expression": "7.0.0-beta.35",
"@babel/template": "7.0.0-beta.35",
"@babel/traverse": "7.0.0-beta.35",
"@babel/types": "7.0.0-beta.35"
}
}
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