Comparing version 3.1.1 to 3.1.2
@@ -29,3 +29,3 @@ var debug = require("./debug")('module'), | ||
function contentOf(module){ | ||
debug('Reading %s%s', module, module.pack.component ? ' [component]' : ''); | ||
debug('Reading %s%s', module, module.pack && module.pack.component ? ' [component]' : ''); | ||
@@ -35,3 +35,3 @@ var content = readFile(module.filename), | ||
if ( module.pack.component && ( uncompressed = uncompress(content) ) ) { | ||
if ( module.pack && module.pack.component && ( uncompressed = uncompress(content) ) ) { | ||
content = uncompressed; | ||
@@ -38,0 +38,0 @@ } |
{ | ||
"name": "one", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Bundles NodeJS modules/libraries for web browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
28231