grunt-responsive-images-extender
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "grunt-responsive-images-extender", | ||
"description": "Extend HTML image tags with srcset and sizes attributes to leverage native responsive images.", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/smaxtastic/grunt-responsive-images-extender", | ||
"version": "2.0.1", | ||
"homepage": "https://github.com/stephanmax/grunt-responsive-images-extender", | ||
"author": { | ||
@@ -13,6 +13,6 @@ "name": "Stephan Max", | ||
"type": "git", | ||
"url": "git://github.com/smaxtastic/grunt-responsive-images-extender.git" | ||
"url": "git://github.com/stephanmax/grunt-responsive-images-extender.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/smaxtastic/grunt-responsive-images-extender/issues" | ||
"url": "https://github.com/stephanmax/grunt-responsive-images-extender/issues" | ||
}, | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"grunt": "~0.4.5", | ||
"grunt": "~0.4.0", | ||
"grunt-contrib-clean": "^0.5.0", | ||
@@ -34,3 +34,3 @@ "grunt-contrib-jshint": "^0.9.2", | ||
"peerDependencies": { | ||
"grunt": "~0.4.5" | ||
"grunt": ">=0.4.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ # grunt-responsive-images-extender | ||
## Getting Started | ||
This plugin requires Grunt `~0.4.5` | ||
This plugin requires Grunt `~0.4.0` | ||
@@ -257,2 +257,5 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: | ||
*2.0.1* | ||
* Switched to POSIX-compatible paths (thanks to [sprrw](https://github.com/sprrw)) | ||
*2.0.0* | ||
@@ -259,0 +262,0 @@ |
@@ -77,3 +77,3 @@ /* | ||
for (var img in srcMap) { | ||
candidate = path.join(path.dirname(imgSrc), img); | ||
candidate = path.posix.join(path.dirname(imgSrc), img); | ||
if (width !== undefined) { | ||
@@ -122,3 +122,3 @@ candidate += ' ' + Math.round(srcMap[img] / width * 100) / 100 + 'x'; | ||
}); | ||
imgElem.attr('src', path.join(path.dirname(imgSrc), smallestImage[0])); | ||
imgElem.attr('src', path.posix.join(path.dirname(imgSrc), smallestImage[0])); | ||
break; | ||
@@ -125,0 +125,0 @@ default: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143577
275
1