New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.3.0 to 1.3.1

test/expected/recursive_path_with_placeholder.html

11

Gruntfile.js

@@ -419,2 +419,13 @@ /*

},
recursive_path_with_placeholder: {
options: {
content: {
filename: "include-four.html"
}
},
files: {
"tmp/recursive_path_with_placeholder.html": "test/fixtures/recursive_path_with_placeholder.html"
}
}
}

@@ -421,0 +432,0 @@ } );

2

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

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

@@ -602,2 +602,3 @@ # grunt-bake

`1.3.0` __1-13-2016__ adds support for parsing file paths in bake tag.
`1.3.1` __1-20-2016__ adds support for parsing values in inline variables.
`1.3.0` __1-13-2016__ adds support for parsing file paths in bake tag.

@@ -71,3 +71,3 @@ /*

// check if key exists and leave pattern untouched if specified in options
// due to support for vairables as array keys (see #41) we need to check if we could resolve
// due to support for variables as array keys (see #41) we need to check if we could resolve
// something, because mout.object.has() can not resolve keys.

@@ -95,3 +95,3 @@ if( resolved === "" && !mout.object.has( content, key ) && !options.removeUndefined ) {

// check if transform is valid callback
if( ! mout.lang.isFunction( options.transforms[transform] ) ) {
if( ! mout.lang.isFunction( options.transforms[ transform ] ) ) {
grunt.log.error( "Transform is not a function: " + transform );

@@ -415,2 +415,7 @@

// resolve placeholders within inline values so these can be used in subsequent grunt-tags (see #67)
inlineValues = mout.object.map( inlineValues, function( value ) {
return processContent( value, values );
});
if ( validateIf( inlineValues, values ) ) return "";

@@ -417,0 +422,0 @@ if ( validateRender( inlineValues ) ) return "";

@@ -37,3 +37,4 @@ "use strict";

"tmp/keep_undefined_vars.html": "test/expected/keep_undefined_vars.html",
"tmp/path_with_placeholder.html": "test/expected/path_with_placeholder.html"
"tmp/path_with_placeholder.html": "test/expected/path_with_placeholder.html",
"tmp/recursive_path_with_placeholder.html": "test/expected/recursive_path_with_placeholder.html"
};

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