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.3 to 0.1.4

2

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

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

@@ -22,6 +22,5 @@ module.exports = function( grunt ) {

var that = this;
var options = that.options();
var options = that.options({ test: false, force: false });
var data = shared.ensureArray( that.data );
var testAdaptor = options.test ? new TestAdaptor( __dirname ) : testAdaptor;
var force = options.force !== undefined ? options.force : true;

@@ -75,3 +74,3 @@ var files = data.reduce(function( prev , current ) {

// this handles the force option politely.
if (force) {
if (options.force) {
util.puts(( 'Warning: ' + msg ).yellow );

@@ -78,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