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.6 to 0.1.7

test/default_as/default_as.js

1

Gruntfile.js

@@ -34,2 +34,3 @@ /*

wildcard: 'test/wildcard/*.js',
default_as: 'test/default_as/*.js',
options: { test: true }

@@ -36,0 +37,0 @@ },

2

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

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

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

var RE_END = /from.*('|"|;)$/i;
var RE_CLEAN = /\s\*\sas\s|'|"|\s|\t/gi;
var RE_CLEAN = /\s(\*|default)\sas\s|'|"|\s|\t/gi;
var RE_PARSE1 = /import(.*)from/i;

@@ -17,0 +17,0 @@ var RE_PARSE2 = /\{(.*)\}/i;

@@ -64,2 +64,13 @@ (function() {

test.done();
},
default_as: function( test ) {
test.expect( 1 );
var actual = grunt.file.read( 'tmp/default_as.json' );
var expected = grunt.file.read( 'test/default_as/output.json' );
test.equal( actual , expected , 'should describe default_as behavior.' );
test.done();
}

@@ -66,0 +77,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