You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/helper-annotate-as-pure

Package Overview
Dependencies
Maintainers
6
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

17

lib/index.js

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

function t() {
const data = _interopRequireWildcard(require("@babel/types"));
var data = _interopRequireWildcard(require("@babel/types"));
t = function () {
t = function t() {
return data;

@@ -21,10 +21,13 @@ };

const PURE_ANNOTATION = "#__PURE__";
var PURE_ANNOTATION = "#__PURE__";
const isPureAnnotated = ({
leadingComments
}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value));
var isPureAnnotated = function isPureAnnotated(_ref) {
var leadingComments = _ref.leadingComments;
return !!leadingComments && leadingComments.some(function (comment) {
return /[@#]__PURE__/.test(comment.value);
});
};
function annotateAsPure(pathOrNode) {
const node = pathOrNode.node || pathOrNode;
var node = pathOrNode.node || pathOrNode;

@@ -31,0 +34,0 @@ if (isPureAnnotated(node)) {

{
"name": "@babel/helper-annotate-as-pure",
"version": "7.0.0-beta.43",
"version": "7.0.0-beta.44",
"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.43"
"@babel/types": "7.0.0-beta.44"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc