Socket
Socket
Sign inDemoInstall

grunt-add-comment

Package Overview
Dependencies
30
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

3

Gruntfile.js

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

'.js': '//',
'.json': '--'
'.json': '--',
'.css': ['/*', '*/']
}

@@ -25,0 +26,0 @@ },

{
"name": "grunt-add-comment",
"description": "Prepend or append some comments to your autogenerated files",
"version": "1.0.3",
"version": "1.1.0",
"homepage": "https://github.com/PillowPillow/grunt-add-comment",

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

@@ -76,3 +76,4 @@ # grunt-add-comment

'.js': '//',
'.sql': '--'
'.json': '--',
'.css': ['/*', '*/']
}

@@ -79,0 +80,0 @@ },

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

extension = Path.extname(filePath);
commentSyntax = ( extension in options.syntaxes ? options.syntaxes[extension] : options.syntaxes['*'] ) + ' ';
commentSyntax = ( extension in options.syntaxes ? options.syntaxes[extension] : options.syntaxes['*'] );

@@ -52,3 +52,7 @@

for(var i = 0; i<options.comments.length; i++) {
comment += commentSyntax + options.comments[i] + options.carriageReturn;
console.log(commentSyntax)
if(typeof commentSyntax === 'string')
comment += commentSyntax + ' ' + options.comments[i] + options.carriageReturn;
else
comment += commentSyntax[0] + ' ' + options.comments[i] + (commentSyntax.length > 1 ? ' ' + commentSyntax[1] : '') + options.carriageReturn;
}

@@ -55,0 +59,0 @@

@@ -1,5 +0,6 @@

// this file is autogenerated
// this file is autogenerated 2
console.log('an amazing test');
// this file is autogenerated
// this file is autogenerated 2
/* this file is autogenerated*/
/* this file is autogenerated 2*/
/*,*/ this file is autogenerated
/*,*/ this file is autogenerated 2
/*,*/ this file is autogenerated
/*,*/ this file is autogenerated 2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc