Comparing version 0.5.24 to 0.5.26
@@ -1,2 +0,2 @@ | ||
var cssminPkg = require("cssmin"); | ||
global.cssmin = require("cssmin"); | ||
@@ -11,3 +11,3 @@ module.exports = { | ||
try { | ||
output = cssminPkg.cssmin(input); | ||
output = cssmin(input); | ||
} catch(error) { | ||
@@ -14,0 +14,0 @@ err = error; |
@@ -38,3 +38,4 @@ var fs = require("fs"); | ||
child_process.exec(copy_command, function(err, stdout, stderr) { | ||
if(err) { | ||
if (err && os.platform() === "win32" && err.code <= 3) { | ||
} else if(err) { | ||
throw err; | ||
@@ -41,0 +42,0 @@ } |
@@ -235,3 +235,3 @@ var _ = require("underscore"); | ||
var directories_to_look = []; | ||
_.each(basepath.split("/"), function(current_dir_entry){ | ||
_.each(basepath.split(path.sep || "/"), function(current_dir_entry){ | ||
var previous_dir_entry; | ||
@@ -238,0 +238,0 @@ |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "0.5.24", | ||
"version": "0.5.26", | ||
"homepage": "https://github.com/laktek/punch", | ||
@@ -32,3 +32,3 @@ "author": "Lakshan Perera <lakshan@web2media.net> (http://laktek.com)", | ||
"connect": ">= 2.4.4", | ||
"cssmin": ">= 0.3.1", | ||
"cssmin": ">= 0.4.1", | ||
"fresh": ">= 0.1.0", | ||
@@ -35,0 +35,0 @@ "fstream": ">= 0.1.18", |
@@ -1,2 +0,1 @@ | ||
var cssminPkg = require("cssmin"); | ||
var cssmin_minifier = require("../../lib/minifiers/cssmin"); | ||
@@ -7,3 +6,3 @@ | ||
it("calls the callback with the result", function(){ | ||
spyOn(cssminPkg, "cssmin").andCallFake(function(input){ | ||
spyOn(global, "cssmin").andCallFake(function(input){ | ||
return "compiled output"; | ||
@@ -19,3 +18,3 @@ }); | ||
it("calls the callback with the error", function(){ | ||
spyOn(cssminPkg, "cssmin").andCallFake(function(input){ | ||
spyOn(global, "cssmin").andCallFake(function(input){ | ||
throw "error"; | ||
@@ -22,0 +21,0 @@ }); |
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
1017359
Updatedcssmin@>= 0.4.1