Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/helper-annotate-as-pure

Package Overview
Dependencies
Maintainers
4
Versions
71
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.21.4-esm.3 to 7.21.4-esm.4

lib/package.json

10

lib/index.js

@@ -1,8 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = annotateAsPure;
var _t = require("@babel/types");
import * as _t from "@babel/types";
const {

@@ -15,3 +9,3 @@ addComment

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

@@ -18,0 +12,0 @@ if (isPureAnnotated(node)) {

4

package.json
{
"name": "@babel/helper-annotate-as-pure",
"version": "7.21.4-esm.3",
"version": "7.21.4-esm.4",
"description": "Helper function to annotate paths and nodes with #__PURE__ comment",

@@ -17,3 +17,3 @@ "repository": {

"dependencies": {
"@babel/types": "7.21.4-esm.3"
"@babel/types": "7.21.4-esm.4"
},

@@ -20,0 +20,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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