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

grunt-import-clean

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-import-clean - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"name": "grunt-import-clean",
"description": "identify unused imports in es6 modules",
"version": "0.1.7",
"version": "0.1.8",
"homepage": "https://github.com/elnarddogg/grunt-import-clean",

@@ -6,0 +6,0 @@ "author": {

@@ -11,3 +11,3 @@ module.exports = (function() {

var RE_EXTRACT = /^(import(.|\n)*from.*('|"|;))$/gmi;
var RE_EXTRACT = /^(import(?:[^;]|\n)*from.*(?:'|"|;))$/gmi;
var RE_START = /^import/i;

@@ -20,3 +20,3 @@ var RE_END = /from.*('|"|;)$/i;

var input = file.input;
var text = RE_EXTRACT.exec( input );
var text = input.match( RE_EXTRACT );
var imports = [];

@@ -27,3 +27,2 @@ var block = null;

text = text[0].split( '\n' );
input = input.replace( RE_EXTRACT , '' );

@@ -30,0 +29,0 @@

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