Socket
Socket
Sign inDemoInstall

@babel/helper-annotate-as-pure

Package Overview
Dependencies
Maintainers
5
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-annotate-as-pure - npm Package Compare versions

Comparing version 7.0.0-beta.46 to 7.0.0-beta.47

15

lib/index.js

@@ -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)) {

4

package.json
{
"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"
}
}
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