Comparing version 0.3.1 to 0.3.2
@@ -0,1 +1,5 @@ | ||
# v0.3.2 | ||
* Better reporting when modules are not found. | ||
* Expanded list of excepted modules | ||
# v0.3.1 | ||
@@ -2,0 +6,0 @@ * Add convoy binary - mostly for testing purposes. |
{ | ||
"name": "convoy", | ||
"version": "v0.3.1", | ||
"version": "v0.3.2", | ||
"author": "Charles Jolley <charles@sproutcore.com>", | ||
@@ -5,0 +5,0 @@ "description": "Pluggable, package-aware asset pipeline for node", |
@@ -12,7 +12,7 @@ /** | ||
var EXCEPTIONS = { | ||
'__node': ['util', 'events', 'stream', 'buffer', 'crypto', 'tls', 'fs', 'path', | ||
'net', 'dgram', 'dns', 'http', 'url', 'querystring', 'https', | ||
'readline', 'vm', 'child_process', 'asset', 'tty', 'zlib', 'os', | ||
'cluster'], | ||
'jquery': ['jsdom', 'xmlhttprequest', 'location', 'navigator'] | ||
'__node': require('../lib/resolver').core, | ||
'__narwhal': { system: true, file: true }, | ||
'jquery': { | ||
jsdom: true, xmlhttprequest: true, location: true, navigator: true | ||
} | ||
}; | ||
@@ -39,4 +39,5 @@ | ||
var exceptions = asset.pkg && EXCEPTIONS[asset.pkg.name]; | ||
var isException = (EXCEPTIONS.__node.indexOf(moduleId)>=0 || | ||
(exceptions && exceptions.indexOf(moduleId)>=0)); | ||
var isException = | ||
EXCEPTIONS.__node[moduleId] || EXCEPTIONS.__narwhal[moduleId] || | ||
(exceptions && exceptions[moduleId]); | ||
if (!isException) results.push(moduleId); | ||
@@ -58,5 +59,10 @@ } | ||
var modules = _extractRequiredModules(asset); | ||
asset.dependencies = modules.map(function(moduleId) { | ||
return context.resolve(moduleId, PATH.dirname(asset.path)); | ||
}); | ||
try { | ||
asset.dependencies = modules.map(function(moduleId) { | ||
return context.resolve(moduleId, PATH.dirname(asset.path)); | ||
}); | ||
} catch (e) { | ||
e.message = e.message +' (required in '+asset.id+')'; | ||
throw e; | ||
} | ||
@@ -63,0 +69,0 @@ done(); |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
140973
3850