Comparing version 0.9.12 to 0.9.14
@@ -9,4 +9,2 @@ /** | ||
var Builder = require('node-spritesheet').Builder; | ||
var fs = require('fs'); | ||
@@ -40,3 +38,3 @@ var fsys = require('../fsys'); | ||
build: function (dstPath, group, images, options, callback) { | ||
_.defaults(options || (options = {}), DEFAULT_OPTIONS); | ||
options = _.defaults(options || (options = {}), DEFAULT_OPTIONS); | ||
var ratios = options.ratios; | ||
@@ -51,2 +49,4 @@ var separator = options.separator; | ||
// node-spritesheet will be removed in a future version | ||
var Builder = options.sprite2 ? require('node-sprite').Builder : require('node-spritesheet').Builder; | ||
// Make csssprite builder | ||
@@ -90,3 +90,4 @@ builder = new Builder({ | ||
if (err) { | ||
logger.err('css.sprite.build:', err); | ||
logger.error('Fail to build spritesheet:', err); | ||
return callback(err); | ||
} | ||
@@ -96,3 +97,3 @@ | ||
if (options.overwrite === false) { | ||
logger.trace('save log id: ', output); | ||
logger.trace('Save log id: ', output); | ||
@@ -99,0 +100,0 @@ checker.save(output); |
{ | ||
"name": "beezlib", | ||
"version": "0.9.12", | ||
"version": "0.9.14", | ||
"description": "The utility library for Node.js using beez projects.", | ||
@@ -85,3 +85,4 @@ "keywords": [ | ||
"beez-ua": "~1.0.3", | ||
"node-spritesheet": "git+https://github.com/shibucafe/node-spritesheet.git" | ||
"node-spritesheet": "git+https://github.com/shibucafe/node-spritesheet.git", | ||
"node-sprite": "git+https://github.com/masakisueda/node-sprite.git" | ||
}, | ||
@@ -88,0 +89,0 @@ "devDependencies": { |
@@ -38,3 +38,7 @@ beezlib | ||
- 複数画像を一枚にする | ||
- StylusファイルでCSSを出力可能 | ||
- StylusファイルでCSSを出力可能 | ||
- ライブラリの切り替え(options.sprite2) | ||
- node-spritesheet, node-spriteから選択可能 | ||
- node-spritesheetでは複数解像度対応時にバグが見つかったため、次のメジャーアップデートではnode-spriteのみになります。 | ||
- stylus | ||
@@ -127,3 +131,3 @@ - コンパイル | ||
// 'process', 'require', '__filename', '__dirname', 'module', 'exports' | ||
var fs = require('fs'); // sample | ||
@@ -130,0 +134,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
424209
3438
176
14
2