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

assetgraph-sprite

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assetgraph-sprite - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

4

lib/packers/horizontal.js

@@ -1,2 +0,2 @@

var _ = require('underscore');
var extend = require('lodash.assign');

@@ -11,3 +11,3 @@ exports.pack = function (imageInfos) {

imageInfos.forEach(function (existingImageInfo) {
var imageInfo = _.extend({}, existingImageInfo);
var imageInfo = extend({}, existingImageInfo);
packingData.width += Math.max(previousRightPadding, imageInfo.padding[3]);

@@ -14,0 +14,0 @@ imageInfo.x = packingData.width;

@@ -10,3 +10,3 @@ /*

var _ = require('underscore');
var extend = require('lodash.assign');

@@ -85,3 +85,3 @@ function findCoords(node, width, height) {

imageInfos.forEach(function (existingImageInfo) {
var imageInfo = _.extend({}, existingImageInfo);
var imageInfo = extend({}, existingImageInfo);
if (imageInfo.padding && imageInfo.padding.some(function (v) {return v > 0;})) {

@@ -99,3 +99,3 @@ throw new Error('jimScott.pack: Sprite padding not supported');

}
_.extend(imageInfo, coords);
extend(imageInfo, coords);
packingData.imageInfos.push(imageInfo);

@@ -102,0 +102,0 @@ });

@@ -1,2 +0,2 @@

var _ = require('underscore');
var extend = require('lodash.assign');

@@ -11,3 +11,3 @@ exports.pack = function (imageInfos) {

imageInfos.forEach(function (existingImageInfo) {
var imageInfo = _.extend({}, existingImageInfo);
var imageInfo = extend({}, existingImageInfo);
packingData.height += Math.max(previousBottomPadding, imageInfo.padding[0]);

@@ -14,0 +14,0 @@ imageInfo.y = packingData.height;

var URL = require('url'),
queryString = require('querystring'),
_ = require('underscore'),
extend = require('lodash.assign'),
values = require('lodash.values'),
seq = require('seq'),

@@ -177,3 +178,3 @@ passError = require('passerror'),

group.placeHolders.push(_.extend(spriteInfo, {
group.placeHolders.push(extend(spriteInfo, {
asset: cssAsset,

@@ -190,3 +191,3 @@ cssRule: cssRule

} else {
group.placeHolders.push(_.extend(spriteInfo, {
group.placeHolders.push(extend(spriteInfo, {
asset: cssAsset,

@@ -220,3 +221,3 @@ cssRule: cssRule

spriteGroup = spriteGroups[spriteGroupName],
imageInfos = _.values(spriteGroup.imageInfosById),
imageInfos = values(spriteGroup.imageInfosById),
spriteInfo = spriteGroup.placeHolders && spriteGroup.placeHolders[0] || {},

@@ -230,3 +231,3 @@ packingData;

.seqEach(function (canvasImage, i) {
_.extend(imageInfos[i], {
extend(imageInfos[i], {
canvasImage: canvasImage,

@@ -233,0 +234,0 @@ width: canvasImage.width,

@@ -5,6 +5,6 @@ {

"repository": "git://github.com/One-com/assetgraph-sprite.git",
"version": "0.8.1",
"version": "0.8.2",
"maintainers": [
{
"name": "Andreas Lind Petersen",
"name": "Andreas Lind",
"email": "andreas@one.com"

@@ -24,17 +24,19 @@ },

"dependencies": {
"passerror": "=0.0.1",
"seq": "=0.3.5",
"underscore": "=1.4.2"
"lodash.assign": "3.2.0",
"lodash.values": "3.0.0",
"passerror": "1.1.0",
"seq": "0.3.5"
},
"optionalDependencies": {
"canvas": "1.2.9"
"canvas": "1.2.11"
},
"devDependencies": {
"assetgraph": "1.20.1",
"coveralls": "^2.11.1",
"istanbul": "^0.3.0",
"assetgraph": "1.23.1",
"coveralls": "2.11.4",
"istanbul": "0.4.0",
"jshint": "2.8.0",
"lodash.pluck": "3.1.2",
"mocha": "2.3.3",
"unexpected": "8.5.0",
"urltools": "=0.1.0"
"unexpected": "10.0.2",
"urltools": "0.2.0"
},

@@ -47,6 +49,6 @@ "directories": {

"test": "npm run lint && mocha",
"travis": "npm run lint && NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"coverage": "NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot"
"coverage": "istanbul cover _mocha",
"travis": "npm run lint && npm run coverage"
},
"main": "lib/spriteBackgroundImages.js"
}
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