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

grunt-html-build

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-html-build - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "grunt-html-build",
"description": "Grunt HTML Builder - Appends scripts and styles, Removes debug parts, append html partials, Template options",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/spatools/grunt-html-build.git",

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

@@ -28,3 +28,4 @@ grunt-html-build

beautify: true,
prefix: '//some-cdn'
prefix: '//some-cdn',
relative: true,
scripts: {

@@ -170,1 +171,2 @@ bundle: [

* Allow prefixing src files
* 0.2.1 Allow non relative file names + per file tag parameter

@@ -42,5 +42,7 @@ /*

// Tags Regular Expressions
regexTagStart = "<!--\\s*%parseTag%:(\\w+)\\s*(inline)?\\s*(optional)?\\s*([^\\s]*)\\s*-->", // <!-- build:{type} [inline] [optional] {name} --> {} required [] optional
regexTagEnd = "<!--\\s*\\/%parseTag%\\s*-->",
isFileRegex = /\.(\w+){2,4}$/; // <!-- /build -->
regexTagStartTemplate = "<!--\\s*%parseTag%:(\\w+)\\s*(inline)?\\s*(optional)?\\s*([^\\s]*)\\s*-->", // <!-- build:{type} [inline] [optional] {name} --> {} required [] optional
regexTagEndTemplate = "<!--\\s*\\/%parseTag%\\s*-->", // <!-- /build -->
regexTagStart = "",
regexTagEnd = "",
isFileRegex = /\.(\w+){2,4}$/;

@@ -101,4 +103,4 @@ //#endregion

function setTagRegexes(parseTag) {
regexTagStart = regexTagStart.replace(/%parseTag%/, function () { return parseTag });
regexTagEnd = regexTagEnd.replace(/%parseTag%/, function () { return parseTag });
regexTagStart = regexTagStartTemplate.replace(/%parseTag%/, function () { return parseTag });
regexTagEnd = regexTagEndTemplate.replace(/%parseTag%/, function () { return parseTag });
}

@@ -130,6 +132,9 @@

return options.files.map(function (f) {
var url = path.relative(options.dest, f).replace(/\\/g, '/');
var url = options.relative ? path.relative(options.dest, f) : f;
url = url.replace(/\\/g, '/');
if (options.prefix) {
url = path.join(options.prefix, url);
url = path.join(options.prefix, url);
}
return processHtmlTagTemplate(options, { src: url });

@@ -195,2 +200,3 @@ }).join(EOL);

logOptionals: false,
relative: true,
scripts: {},

@@ -197,0 +203,0 @@ styles: {},

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

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

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