@babel/plugin-transform-object-super
Advanced tools
Comparing version 7.21.4-esm.4 to 7.22.5
@@ -1,6 +0,12 @@ | ||
import { declare } from "@babel/helper-plugin-utils"; | ||
import ReplaceSupers from "@babel/helper-replace-supers"; | ||
import { types as t } from "@babel/core"; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
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) { | ||
const replaceSupers = new ReplaceSupers({ | ||
const replaceSupers = new _helperReplaceSupers.default({ | ||
getObjectRef: getObjectRef, | ||
@@ -12,3 +18,3 @@ methodPath: path, | ||
} | ||
export default declare(api => { | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
api.assertVersion(7); | ||
@@ -27,5 +33,5 @@ return { | ||
path.scope.push({ | ||
id: t.cloneNode(objectRef) | ||
id: _core.types.cloneNode(objectRef) | ||
}); | ||
path.replaceWith(t.assignmentExpression("=", t.cloneNode(objectRef), path.node)); | ||
path.replaceWith(_core.types.assignmentExpression("=", _core.types.cloneNode(objectRef), path.node)); | ||
} | ||
@@ -36,3 +42,4 @@ } | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-object-super", | ||
"version": "7.21.4-esm.4", | ||
"version": "7.22.5", | ||
"description": "Compile ES2015 object super to ES5", | ||
@@ -20,11 +20,11 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.21.4-esm.4", | ||
"@babel/helper-replace-supers": "7.21.4-esm.4" | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-replace-supers": "^7.22.5" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.0.0-0 || ^7.21.4-esm.2" | ||
"@babel/core": "^7.0.0-0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.21.4-esm.4", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.4" | ||
"@babel/core": "^7.22.5", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
}, | ||
@@ -35,3 +35,3 @@ "engines": { | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
"type": "module" | ||
"type": "commonjs" | ||
} |
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
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
6661
40
0
3
5
No
+ Added@babel/helper-member-expression-to-functions@7.25.9(transitive)
+ Added@babel/helper-optimise-call-expression@7.25.9(transitive)
+ Added@babel/helper-plugin-utils@7.25.9(transitive)
+ Added@babel/helper-replace-supers@7.25.9(transitive)
- Removed@babel/code-frame@7.21.4-esm.4(transitive)
- Removed@babel/generator@7.21.4-esm.4(transitive)
- Removed@babel/helper-environment-visitor@7.21.4-esm.4(transitive)
- Removed@babel/helper-function-name@7.21.4-esm.4(transitive)
- Removed@babel/helper-hoist-variables@7.21.4-esm.4(transitive)
- Removed@babel/helper-member-expression-to-functions@7.21.4-esm.4(transitive)
- Removed@babel/helper-optimise-call-expression@7.21.4-esm.4(transitive)
- Removed@babel/helper-plugin-utils@7.21.4-esm.4(transitive)
- Removed@babel/helper-replace-supers@7.21.4-esm.4(transitive)
- Removed@babel/helper-split-export-declaration@7.21.4-esm.4(transitive)
- Removed@babel/helper-string-parser@7.21.4-esm.4(transitive)
- Removed@babel/helper-validator-identifier@7.21.4-esm.4(transitive)
- Removed@babel/highlight@7.21.4-esm.4(transitive)
- Removed@babel/parser@7.21.4-esm.4(transitive)
- Removed@babel/template@7.21.4-esm.4(transitive)
- Removed@babel/traverse@7.21.4-esm.4(transitive)
- Removed@babel/types@7.21.4-esm.4(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedjsesc@2.5.2(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedto-fast-properties@2.0.0(transitive)