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

grunt-inline

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-inline - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

2

package.json

@@ -9,3 +9,3 @@ {

"description": "Inlines <img>, <script> and <link> tags into the same file.",
"version": "0.2.5",
"version": "0.2.6",
"keywords": [

@@ -12,0 +12,0 @@ "gruntplugin",

@@ -196,2 +196,3 @@ # grunt-inline[![build status](https://secure.travis-ci.org/miniflycn/grunt-inline.png)](http://travis-ci.org/miniflycn/grunt-inline)

## Release History
* 2014-03-06 v0.2.6 bug fix: script tags like <script src="index.js?__inline">\n</script> were not inlined
* 2014-01-31 v0.2.3 radded tag option, encode url(..) images.

@@ -198,0 +199,0 @@ * 2013-10-31  v0.2.2 bug fix: img urls like 'background: url(http://www.example.com/img/bg.png)' will be transformed to 'background: url(url(http://www.example.com/img/bg.png))'

/*
* casper-inline
* grunt-inline
* https://github.com/chyingp/grunt-inline

@@ -65,5 +65,5 @@ *

function html(filepath, fileContent, relativeTo, options){
if(relativeTo){
filepath = filepath.replace(/[^\/]+\//g, relativeTo);
}
if(relativeTo){
filepath = filepath.replace(/[^\/]+\//, relativeTo);
}

@@ -70,0 +70,0 @@ fileContent = fileContent.replace(/<inline.+?src=["']([^"']+?)["']\s*?\/>/g, function(matchedWord, src){

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