Comparing version 2.0.0 to 2.1.0
14
index.js
@@ -16,3 +16,3 @@ var through = require('through'); | ||
return 'module.exports = '+stringified_content+';\n'; | ||
return 'module.exports = ' + stringified_content + ';\n'; | ||
} | ||
@@ -22,4 +22,4 @@ | ||
* Creates the | ||
* @param {object} options | ||
* @param {object} options.extensions | ||
* @param {object | array} options | ||
* @param {object} options.extensions | ||
* @returns {stream} | ||
@@ -41,4 +41,8 @@ */ | ||
if (options && options.extensions) { | ||
extensions = options.extensions; | ||
if (options) { | ||
if (Object.prototype.toString.call(options) === '[object Array]') { | ||
extensions = options; | ||
} else if(options.extensions) { | ||
extensions = options.extensions; | ||
} | ||
} | ||
@@ -45,0 +49,0 @@ |
{ | ||
"name": "stringify", | ||
"description": "Browserify middleware to be able to require() text files (including templates) inside of your client-side JavaScript files.", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "./index.js", | ||
"author": "John Postlethwait <john.postlethwait@gmail.com>", | ||
"contributors": [ | ||
"James Newell <james@digitaledgeit.com.au>" | ||
"James Newell <james@digitaledgeit.com.au>", | ||
"Livoras <livoras@163.com>" | ||
], | ||
@@ -23,4 +24,4 @@ "website": "http://johnpostlethwait.github.com/stringify/", | ||
}, | ||
"engines" : { | ||
"node" : "*" | ||
"engines": { | ||
"node": "*" | ||
}, | ||
@@ -32,3 +33,6 @@ "licenses": [ | ||
} | ||
] | ||
], | ||
"dependencies": { | ||
"through": "~2.3.4" | ||
} | ||
} |
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
4989
73
1
+ Addedthrough@~2.3.4
+ Addedthrough@2.3.8(transitive)