randomatic
Advanced tools
Comparing version 1.1.0 to 1.1.1
/*! | ||
* randomatic <https://github.com/jonschlinkert/randomatic> | ||
* | ||
* This was originally inspired by <http://stackoverflow.com/a/10727155/1267639> | ||
* Copyright (c) 2014-2015, Jon Schlinkert. | ||
* Licensed under the MIT License (MIT) | ||
* | ||
* Many changes have been made, but this was originally | ||
* inspired by <http://stackoverflow.com/a/10727155/1267639> | ||
*/ | ||
@@ -61,3 +59,3 @@ | ||
if(typeOf(length) === 'object' && length.hasOwnProperty('chars')) { | ||
if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) { | ||
options = length; | ||
@@ -83,6 +81,5 @@ pattern = options.chars; | ||
while (length--) { | ||
res += mask.charAt(parseInt(Math.random() * mask.length)); | ||
res += mask.charAt(parseInt(Math.random() * mask.length, 10)); | ||
} | ||
return res; | ||
}; |
{ | ||
"name": "randomatic", | ||
"description": "Generate randomized strings of a specified length, fast. Only the length is necessary, but you can optionally generate patterns using any combination of numeric, alpha-numeric, alphabetical, special or custom characters.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/jonschlinkert/randomatic", | ||
"author": { | ||
"name": "Jon Schlinkert", | ||
"url": "https://github.com/jonschlinkert" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jonschlinkert/randomatic.git" | ||
}, | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"repository": "jonschlinkert/randomatic", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/randomatic/issues" | ||
}, | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/randomatic/blob/master/LICENSE-MIT" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
"test": "mocha" | ||
}, | ||
@@ -29,10 +20,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"is-number": "^1.1.0", | ||
"kind-of": "^1.0.0" | ||
"is-number": "^2.0.2", | ||
"kind-of": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"benchmarked": "^0.1.3", | ||
"chalk": "^0.5.1", | ||
"glob": "^4.3.5", | ||
"should": "^4.4.1" | ||
"ansi-bold": "^0.1.1", | ||
"benchmarked": "^0.1.4", | ||
"chalk": "^1.1.1", | ||
"glob": "^5.0.15", | ||
"should": "*" | ||
}, | ||
@@ -39,0 +31,0 @@ "keywords": [ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
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
8945
4
0
5
68
132
1
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-number@2.1.0(transitive)
+ Addedkind-of@2.0.13.2.2(transitive)
- Removedis-number@1.1.2(transitive)
- Removedkind-of@1.1.0(transitive)
Updatedis-number@^2.0.2
Updatedkind-of@^2.0.1