Comparing version 0.0.21 to 0.0.24
@@ -69,3 +69,3 @@ var outcome = require("outcome"), | ||
var on = outcome.e(function(e) { | ||
callback(new Error("unable to include script " + script.path + " from "+script.source+", e: " + e.stack)) | ||
callback(new Error("unable to include script " + script.path + " from " + script.source + ", " + e.stack)) | ||
}); | ||
@@ -258,6 +258,10 @@ | ||
on.success(function(deps) { | ||
var err; | ||
deps.forEach(function(dep) { | ||
dep.source = entry; | ||
if(dep.error) { | ||
err = dep.error; | ||
} | ||
}); | ||
callback(null, deps); | ||
callback(err, deps); | ||
}) | ||
@@ -264,0 +268,0 @@ ); |
@@ -10,3 +10,3 @@ require("structr").mixin(require("asyngleton")); | ||
outcome.logAllErrors(true); | ||
//outcome.logAllErrors(true); | ||
@@ -13,0 +13,0 @@ module.exports = function(ops, next) { |
@@ -84,2 +84,5 @@ mkdirp = require("mkdirp"), | ||
function() { | ||
try { | ||
fs.unlinkSync(fp) | ||
} catch(e) { } | ||
fs.writeFile(fp, dep.content(), this); | ||
@@ -86,0 +89,0 @@ }, |
{ | ||
"name": "amdify", | ||
"version": "0.0.21", | ||
"version": "0.0.24", | ||
"description": "Amdify converts your node.js code into browser-compatible code. For example", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
493880
11677