@babel/helper-annotate-as-pure
Advanced tools
Comparing version 7.0.0-beta.46 to 7.0.0-beta.47
@@ -9,3 +9,3 @@ "use strict"; | ||
function t() { | ||
var data = _interopRequireWildcard(require("@babel/types")); | ||
const data = _interopRequireWildcard(require("@babel/types")); | ||
@@ -21,13 +21,10 @@ t = function t() { | ||
var PURE_ANNOTATION = "#__PURE__"; | ||
const PURE_ANNOTATION = "#__PURE__"; | ||
var isPureAnnotated = function isPureAnnotated(_ref) { | ||
var leadingComments = _ref.leadingComments; | ||
return !!leadingComments && leadingComments.some(function (comment) { | ||
return /[@#]__PURE__/.test(comment.value); | ||
}); | ||
}; | ||
const isPureAnnotated = ({ | ||
leadingComments | ||
}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value)); | ||
function annotateAsPure(pathOrNode) { | ||
var node = pathOrNode.node || pathOrNode; | ||
const node = pathOrNode.node || pathOrNode; | ||
@@ -34,0 +31,0 @@ if (isPureAnnotated(node)) { |
{ | ||
"name": "@babel/helper-annotate-as-pure", | ||
"version": "7.0.0-beta.46", | ||
"version": "7.0.0-beta.47", | ||
"description": "Helper function to annotate paths and nodes with #__PURE__ comment", | ||
@@ -9,4 +9,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-annotate-as-pure", | ||
"dependencies": { | ||
"@babel/types": "7.0.0-beta.46" | ||
"@babel/types": "7.0.0-beta.47" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
2249
24
+ Added@babel/types@7.0.0-beta.47(transitive)
- Removed@babel/types@7.0.0-beta.46(transitive)
Updated@babel/types@7.0.0-beta.47