不要怂,就是干,撸起袖子干!

Commit b3d6a479 by Sascha Depold

upgraded to underscore 1.2.0 and underscore.string 1.2.1

1 parent ffeddc46
Showing with 6 additions and 4 deletions
...@@ -4,9 +4,11 @@ var client = new (require("mysql").Client)() ...@@ -4,9 +4,11 @@ var client = new (require("mysql").Client)()
var Utils = module.exports = { var Utils = module.exports = {
_: (function() { _: (function() {
var _ = require("underscore") var _ = require("underscore")
, _s = require('underscore.string')
_.mixin(require('underscore.string')) _.mixin(_s.exports())
_.mixin({ _.mixin({
includes: _s.include,
camelizeIf: function(string, condition) { camelizeIf: function(string, condition) {
var result = string var result = string
if(condition) result = _.camelize(string) if(condition) result = _.camelize(string)
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
], ],
"dependencies": { "dependencies": {
"mysql": "=0.9.4", "mysql": "=0.9.4",
"underscore": "=1.1.5", "underscore": "=1.2.1",
"underscore.string": "=1.1.3", "underscore.string": "=1.2.0",
"lingo": "=0.0.4" "lingo": "=0.0.4"
}, },
"devDependencies": { "devDependencies": {
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
"main": "index", "main": "index",
"scripts": {}, "scripts": {},
"bin": {}, "bin": {},
"engines": { "node": ">= 0.1.93" } "engines": { "node": ">= 0.4.0" }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!