@babel/plugin-transform-react-jsx-self
Advanced tools
Comparing version 7.21.4-esm.3 to 7.21.4-esm.4
@@ -1,9 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _core = require("@babel/core"); | ||
import { declare } from "@babel/helper-plugin-utils"; | ||
import { types as t } from "@babel/core"; | ||
const TRACE_ID = "__self"; | ||
@@ -38,3 +32,3 @@ function getThisFunctionParent(path) { | ||
} | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
export default declare(api => { | ||
api.assertVersion(7); | ||
@@ -47,5 +41,5 @@ const visitor = { | ||
const node = path.node; | ||
const id = _core.types.jsxIdentifier(TRACE_ID); | ||
const trace = _core.types.thisExpression(); | ||
node.attributes.push(_core.types.jsxAttribute(id, _core.types.jsxExpressionContainer(trace))); | ||
const id = t.jsxIdentifier(TRACE_ID); | ||
const trace = t.thisExpression(); | ||
node.attributes.push(t.jsxAttribute(id, t.jsxExpressionContainer(trace))); | ||
} | ||
@@ -62,4 +56,3 @@ }; | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-react-jsx-self", | ||
"version": "7.21.4-esm.3", | ||
"version": "7.21.4-esm.4", | ||
"description": "Add a __self prop to all JSX Elements", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.21.4-esm.3" | ||
"@babel/helper-plugin-utils": "7.21.4-esm.4" | ||
}, | ||
@@ -27,5 +27,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.21.4-esm.3", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.3", | ||
"@babel/plugin-syntax-jsx": "7.21.4-esm.3" | ||
"@babel/core": "7.21.4-esm.4", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.4", | ||
"@babel/plugin-syntax-jsx": "7.21.4-esm.4" | ||
}, | ||
@@ -32,0 +32,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
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
6
8847
54
+ Added@babel/helper-plugin-utils@7.21.4-esm.4(transitive)
+ Addedelectron-to-chromium@1.5.26(transitive)
- Removed@babel/helper-plugin-utils@7.21.4-esm.3(transitive)
- Removedelectron-to-chromium@1.5.25(transitive)