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

grunt-responsive-images-extender

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-responsive-images-extender - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

12

package.json
{
"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:

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