New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-console-clean

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-console-clean - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

test/test5/dist/replace.js

13

Gruntfile.js

@@ -46,3 +46,8 @@ /*

]
}
},
test5: {
files : [
{ src: ['test/test5/replace.js'], dest: 'test/test5/dist/replace.js' }
]
},
},

@@ -65,3 +70,4 @@

test3: ['test/test3/test.js'],
test4: ['test/test4/test.js']
test4: ['test/test4/test.js'],
test5: ['test/test5/test.js']
},

@@ -86,5 +92,6 @@

grunt.registerTask('test-4', ['clean', 'console-clean:test4', 'nodeunit:test4']);
grunt.registerTask('test-5', ['clean', 'console-clean:test5', 'nodeunit:test5']);
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test-1', 'test-2', 'test-3', 'test-4']);
grunt.registerTask('default', ['jshint', 'test-1', 'test-2', 'test-3', 'test-4', 'test-5']);
};
{
"name": "grunt-console-clean",
"version": "0.2.1",
"version": "0.3.0",
"description": "Plugin for grunt to clean up code from console object",

@@ -23,2 +23,5 @@ "author": "Tomasz Czechowski",

"keywords": [
"remove console object",
"remove window.console",
"clean code console.log",
"grunt console clean",

@@ -25,0 +28,0 @@ "clean console grunt",

@@ -91,3 +91,4 @@ # grunt-console-clean

## Release History
* 2015-07-14 v0.3.0 Added cleaning objects "window.console".
* 2015-07-13 v0.2.1 Added "strategy" option.
* 2015-07-11 v0.1.1 Updated dev dependencies.

@@ -94,0 +95,0 @@ * 2015-07-11 v0.1.0 First version of plugin.

@@ -22,3 +22,3 @@ /*

process: function (content) {
var regex = /console.([a-zA-Z]+)\([^;]*\);/g;
var regex = /(window\.)?console.([a-zA-Z]+)\([^;]*\);/g;
var m, i = 0, replace = [];

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