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

@babel/helper-replace-supers

Package Overview
Dependencies
Maintainers
4
Versions
99
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.20.7 to 7.21.4-esm

lib/package.json

9

lib/index.js

@@ -100,4 +100,3 @@ "use strict";

const proto = getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod);
return callExpression(this.file.addHelper("get"), [
thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), thisRefs.this]);
return callExpression(this.file.addHelper("get"), [thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), thisRefs.this]);
},

@@ -119,4 +118,3 @@ _getThisRefs() {

const proto = getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod);
return callExpression(this.file.addHelper("set"), [
thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), value, thisRefs.this, booleanLiteral(superMember.isInStrictMode())]);
return callExpression(this.file.addHelper("set"), [thisRefs.memo ? sequenceExpression([thisRefs.memo, proto]) : proto, this.prop(superMember), value, thisRefs.this, booleanLiteral(superMember.isInStrictMode())]);
},

@@ -204,4 +202,3 @@ destructureSet(superMember) {

}) && !!opts.superRef;
this.isStatic = path.isObjectMethod() ||
path.node.static || (path.isStaticBlock == null ? void 0 : path.isStaticBlock());
this.isStatic = path.isObjectMethod() || path.node.static || (path.isStaticBlock == null ? void 0 : path.isStaticBlock());
this.isPrivateMethod = path.isPrivate() && path.isMethod();

@@ -208,0 +205,0 @@ this.file = opts.file;

{
"name": "@babel/helper-replace-supers",
"version": "7.20.7",
"version": "7.21.4-esm",
"description": "Helper function to replace supers",

@@ -17,8 +17,8 @@ "repository": {

"dependencies": {
"@babel/helper-environment-visitor": "^7.18.9",
"@babel/helper-member-expression-to-functions": "^7.20.7",
"@babel/helper-optimise-call-expression": "^7.18.6",
"@babel/template": "^7.20.7",
"@babel/traverse": "^7.20.7",
"@babel/types": "^7.20.7"
"@babel/helper-environment-visitor": "^7.21.4-esm",
"@babel/helper-member-expression-to-functions": "^7.21.4-esm",
"@babel/helper-optimise-call-expression": "^7.21.4-esm",
"@babel/template": "^7.21.4-esm",
"@babel/traverse": "^7.21.4-esm",
"@babel/types": "^7.21.4-esm"
},

@@ -25,0 +25,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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