underscore.string
Advanced tools
Comparing version 2.3.3 to 2.4.0
@@ -5,3 +5,3 @@ { | ||
"description": "String manipulation extensions for Underscore.js javascript library", | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"keywords": ["underscore", "string"], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
@@ -6,3 +6,3 @@ // Underscore.string | ||
// Some code is borrowed from MooTools and Alexandru Marasteanu. | ||
// Version '2.3.2' | ||
// Version '2.4.0' | ||
@@ -193,3 +193,3 @@ !function(root, String){ | ||
VERSION: '2.3.0', | ||
VERSION: '2.4.0', | ||
@@ -354,3 +354,3 @@ isBlank: function(str){ | ||
classify: function(str){ | ||
return _s.titleize(String(str).replace(/[\W_]/g, ' ')).replace(/\s/g, ''); | ||
return _s.capitalize(_s.camelize(String(str).replace(/[\W_]/g, ' ')).replace(/\s/g, '')); | ||
}, | ||
@@ -366,3 +366,3 @@ | ||
characters = defaultToWhiteSpace(characters); | ||
return String(str).replace(new RegExp('\^' + characters + '+|' + characters + '+$', 'g'), ''); | ||
return String(str).replace(new RegExp('^' + characters + '+|' + characters + '+$', 'g'), ''); | ||
}, | ||
@@ -369,0 +369,0 @@ |
{ | ||
"name": "underscore.string", | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"description": "String manipulation extensions for Underscore.js javascript library.", | ||
@@ -20,3 +20,3 @@ "homepage": "http://epeli.github.com/underscore.string/", | ||
], | ||
"main": "./lib/underscore.string", | ||
"main": "./lib/underscore.string.js", | ||
"directories": { | ||
@@ -39,3 +39,13 @@ "lib": "./lib" | ||
} | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"test": "gulp test" | ||
}, | ||
"devDependencies": { | ||
"gulp": "~3.8.10", | ||
"gulp-uglify": "~1.0.1", | ||
"gulp-qunit": "~1.0.0", | ||
"gulp-clean": "~0.3.1", | ||
"gulp-rename": "~1.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
826
0
43824
5
10
624
1