Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-react-jsx-self

Package Overview
Dependencies
Maintainers
6
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-react-jsx-self - npm Package Compare versions

Comparing version 7.0.0-beta.43 to 7.0.0-beta.44

27

lib/index.js

@@ -9,5 +9,5 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var data = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
_helperPluginUtils = function _helperPluginUtils() {
return data;

@@ -20,5 +20,5 @@ };

function _core() {
const data = require("@babel/core");
var data = require("@babel/core");
_core = function () {
_core = function _core() {
return data;

@@ -30,20 +30,19 @@ };

const TRACE_ID = "__self";
var TRACE_ID = "__self";
var _default = (0, _helperPluginUtils().declare)(api => {
var _default = (0, _helperPluginUtils().declare)(function (api) {
api.assertVersion(7);
const visitor = {
JSXOpeningElement({
node
}) {
const id = _core().types.jsxIdentifier(TRACE_ID);
var visitor = {
JSXOpeningElement: function JSXOpeningElement(_ref) {
var node = _ref.node;
const trace = _core().types.thisExpression();
var id = _core().types.jsxIdentifier(TRACE_ID);
var trace = _core().types.thisExpression();
node.attributes.push(_core().types.jsxAttribute(id, _core().types.jsxExpressionContainer(trace)));
}
};
return {
visitor
visitor: visitor
};

@@ -50,0 +49,0 @@ });

{
"name": "@babel/plugin-transform-react-jsx-self",
"version": "7.0.0-beta.43",
"version": "7.0.0-beta.44",
"description": "Add a __self prop to all JSX Elements",

@@ -12,12 +12,12 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-self",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.43",
"@babel/plugin-syntax-jsx": "7.0.0-beta.43"
"@babel/helper-plugin-utils": "7.0.0-beta.44",
"@babel/plugin-syntax-jsx": "7.0.0-beta.44"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.43"
"@babel/core": "7.0.0-beta.44"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.43",
"@babel/helper-plugin-test-runner": "7.0.0-beta.43"
"@babel/core": "7.0.0-beta.44",
"@babel/helper-plugin-test-runner": "7.0.0-beta.44"
}
}
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