@babel/helper-annotate-as-pure
Advanced tools
Comparing version 7.21.4-esm.4 to 7.22.5
@@ -1,2 +0,8 @@ | ||
import * as _t from "@babel/types"; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = annotateAsPure; | ||
var _t = require("@babel/types"); | ||
const { | ||
@@ -9,3 +15,3 @@ addComment | ||
}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value)); | ||
export default function annotateAsPure(pathOrNode) { | ||
function annotateAsPure(pathOrNode) { | ||
const node = pathOrNode["node"] || pathOrNode; | ||
@@ -12,0 +18,0 @@ if (isPureAnnotated(node)) { |
{ | ||
"name": "@babel/helper-annotate-as-pure", | ||
"version": "7.21.4-esm.4", | ||
"version": "7.22.5", | ||
"description": "Helper function to annotate paths and nodes with #__PURE__ comment", | ||
@@ -17,3 +17,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/types": "7.21.4-esm.4" | ||
"@babel/types": "^7.22.5" | ||
}, | ||
@@ -24,3 +24,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
4018
21
1
5
No
0
+ Added@babel/helper-string-parser@7.24.1(transitive)
+ Added@babel/helper-validator-identifier@7.24.5(transitive)
+ Added@babel/types@7.24.5(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