Socket
Socket
Sign inDemoInstall

@babel/types

Package Overview
Dependencies
Maintainers
4
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/types - npm Package Compare versions

Comparing version 7.25.0 to 7.25.2

2

lib/converters/valueToNode.js

@@ -54,3 +54,3 @@ "use strict";

const pattern = value.source;
const flags = /\/([a-z]+|)$/.exec(value.toString())[1];
const flags = /\/([a-z]*)$/.exec(value.toString())[1];
return (0, _index.regExpLiteral)(pattern, flags);

@@ -57,0 +57,0 @@ }

@@ -25,6 +25,6 @@ "use strict";

if (!isFirstLine) {
trimmedLine = trimmedLine.replace(/^[ ]+/, "");
trimmedLine = trimmedLine.replace(/^ +/, "");
}
if (!isLastLine) {
trimmedLine = trimmedLine.replace(/[ ]+$/, "");
trimmedLine = trimmedLine.replace(/ +$/, "");
}

@@ -31,0 +31,0 @@ if (trimmedLine) {

{
"name": "@babel/types",
"version": "7.25.0",
"version": "7.25.2",
"description": "Babel Types is a Lodash-esque utility library for AST nodes",

@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)",

Sorry, the diff of this file is not supported yet

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