@babel/plugin-transform-object-super
Advanced tools
Comparing version 7.18.6 to 7.21.4-esm
@@ -7,9 +7,5 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _helperReplaceSupers = require("@babel/helper-replace-supers"); | ||
var _core = require("@babel/core"); | ||
function replacePropertySuper(path, getObjectRef, file) { | ||
@@ -23,3 +19,2 @@ const replaceSupers = new _helperReplaceSupers.default({ | ||
} | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
@@ -32,5 +27,3 @@ api.assertVersion(7); | ||
let objectRef; | ||
const getObjectRef = () => objectRef = objectRef || path.scope.generateUidIdentifier("obj"); | ||
path.get("properties").forEach(propPath => { | ||
@@ -40,3 +33,2 @@ if (!propPath.isMethod()) return; | ||
}); | ||
if (objectRef) { | ||
@@ -49,7 +41,7 @@ path.scope.push({ | ||
} | ||
} | ||
}; | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-object-super", | ||
"version": "7.18.6", | ||
"version": "7.21.4-esm", | ||
"description": "Compile ES2015 object super to ES5", | ||
@@ -20,11 +20,11 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/helper-replace-supers": "^7.18.6" | ||
"@babel/helper-plugin-utils": "^7.21.4-esm", | ||
"@babel/helper-replace-supers": "^7.21.4-esm" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.0.0-0" | ||
"@babel/core": "^7.0.0-0 || 7.21.4-esm" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/helper-plugin-test-runner": "^7.18.6" | ||
"@babel/core": "^7.21.4-esm", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm" | ||
}, | ||
@@ -31,0 +31,0 @@ "engines": { |
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
6705
6
40
1