@babel/helper-builder-react-jsx
Advanced tools
Comparing version 7.21.4-esm.4 to 7.22.5
@@ -1,2 +0,9 @@ | ||
import * as _t from "@babel/types"; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = _default; | ||
var _t = require("@babel/types"); | ||
var _helperAnnotateAsPure = require("@babel/helper-annotate-as-pure"); | ||
const { | ||
@@ -26,4 +33,3 @@ booleanLiteral, | ||
} = _t; | ||
import annotateAsPure from "@babel/helper-annotate-as-pure"; | ||
export default function (opts) { | ||
function _default(opts) { | ||
const visitor = {}; | ||
@@ -137,3 +143,3 @@ visitor.JSXNamespacedName = function (path) { | ||
const call = state.call || callExpression(state.callee, args); | ||
if (state.pure) annotateAsPure(call); | ||
if (state.pure) (0, _helperAnnotateAsPure.default)(call); | ||
return call; | ||
@@ -209,3 +215,3 @@ } | ||
const call = state.call || callExpression(state.callee, args); | ||
if (state.pure) annotateAsPure(call); | ||
if (state.pure) (0, _helperAnnotateAsPure.default)(call); | ||
return call; | ||
@@ -212,0 +218,0 @@ } |
{ | ||
"name": "@babel/helper-builder-react-jsx", | ||
"version": "7.21.4-esm.4", | ||
"version": "7.22.5", | ||
"description": "Helper function to build react jsx", | ||
@@ -17,8 +17,8 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-annotate-as-pure": "7.21.4-esm.4", | ||
"@babel/types": "7.21.4-esm.4" | ||
"@babel/helper-annotate-as-pure": "^7.22.5", | ||
"@babel/types": "^7.22.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.21.4-esm.4", | ||
"@babel/traverse": "7.21.4-esm.4" | ||
"@babel/core": "^7.22.5", | ||
"@babel/traverse": "^7.22.5" | ||
}, | ||
@@ -29,3 +29,3 @@ "engines": { | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
"type": "module" | ||
"type": "commonjs" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27664
216
0
5
No
+ Added@babel/helper-annotate-as-pure@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.7(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/types@7.24.7(transitive)
- Removed@babel/helper-annotate-as-pure@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/types@7.21.4-esm.4(transitive)
Updated@babel/types@^7.22.5