resolvewithplus
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "resolvewithplus", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license" : "MIT", | ||
@@ -5,0 +5,0 @@ "main": "src/resolvewithplus.js", |
// Filename: resolvewithplus.js | ||
// Timestamp: 2016.02.12-16:47:59 (last modified) | ||
// Timestamp: 2016.02.19-10:28:39 (last modified) | ||
// Author(s): bumblehead <chris@bumblehead.com> | ||
@@ -84,9 +84,12 @@ | ||
indexval; | ||
if (browserobj) { | ||
indexprop = Object.keys(browserobj).filter(function (prop) { | ||
return /index.js$/.test(prop); | ||
})[0]; | ||
indexval = indexprop in browserobj && browserobj[indexprop]; | ||
if (typeof browserobj === 'string') { | ||
indexval = browserobj; | ||
} else if (typeof browserobj === 'object') { | ||
indexprop = Object.keys(browserobj).filter(function (prop) { | ||
return /index.js$/.test(prop); | ||
})[0]; | ||
indexval = indexprop in browserobj && browserobj[indexprop]; | ||
} | ||
} | ||
@@ -93,0 +96,0 @@ |
14992
345