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

grunt-bake

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-bake - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

2

package.json
{
"name": "grunt-bake",
"description": "Bake external includes into files to create static pages with no server-side compilation time",
"version": "0.3.9",
"version": "0.3.10",
"homepage": "https://github.com/MathiasPaumgarten/grunt-bake",

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

@@ -57,3 +57,3 @@ /*

var regex = /([ |\t]*)<!--\(\s?bake\s+([\w\/.\-]+)\s?([^>]*)\)-->/g;
var regex = /(\n?)([ |\t]*)<!--\(\s?bake\s+([\w\/.\-]+)\s?([^>]*)\)-->/g;
var regexInline = /(?:[ |\t]*<!--\(\s?bake-start\s+([^>]*)\)-->)\n?([\s\S]+?)(?:[ |\t]*<!--\(\s?bake-end\s?\)-->)/g;

@@ -225,3 +225,3 @@

function replace( indent, includePath, attributes, filePath, values ) {
function replace( linebreak, indent, includePath, attributes, filePath, values ) {

@@ -263,7 +263,7 @@ includePath = preparePath( includePath, filePath );

return fragment;
return linebreak + fragment;
} else {
return parse( includeContent, includePath, values );
return linebreak + parse( includeContent, includePath, values );

@@ -334,4 +334,4 @@ }

fileContent = fileContent.replace( regex, function( match, indent, includePath, attributes ) {
return replace( indent, includePath, attributes, filePath, values );
fileContent = fileContent.replace( regex, function( match, linebreak, indent, includePath, attributes ) {
return replace( linebreak, indent, includePath, attributes, filePath, values );
} );

@@ -338,0 +338,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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