@babel/helper-replace-supers
Advanced tools
Comparing version 7.20.7 to 7.21.4-esm
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31827
6
234
1