assetgraph-sprite
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -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" | ||
} |
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
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
551
39125
5
8
+ Addedlodash.assign@3.2.0
+ Addedlodash.values@3.0.0
+ Addedcanvas@1.2.11(transitive)
+ Addedchainsaw@0.0.9(transitive)
+ Addedhashish@0.0.4(transitive)
+ Addedlodash._baseassign@3.2.0(transitive)
+ Addedlodash._basecopy@3.0.1(transitive)
+ Addedlodash._basevalues@3.0.0(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._createassigner@3.1.1(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash._isiterateecall@3.0.9(transitive)
+ Addedlodash.assign@3.2.0(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
+ Addedlodash.restparam@3.6.1(transitive)
+ Addedlodash.values@3.0.0(transitive)
+ Addedpasserror@1.1.0(transitive)
+ Addedseq@0.3.5(transitive)
+ Addedtraverse@0.3.9(transitive)
- Removedunderscore@=1.4.2
- Removedcanvas@1.2.9(transitive)
Updatedpasserror@1.1.0
Updatedseq@0.3.5