Comparing version 1.0.0 to 1.0.1
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 1.0.1 | ||
* Reduce `nanoid/index` size (by Anton Khlynovskiy). | ||
## 1.0 | ||
@@ -5,0 +8,0 @@ * Use 21 symbols by default (by David Klebanoff). |
@@ -25,6 +25,6 @@ var random = require('./random') | ||
var bytes = random(size) | ||
for (var i = 0; i < size; i++) { | ||
id += url[bytes[i] & 63] | ||
while (0 < size--) { | ||
id += url[bytes[size] & 63] | ||
} | ||
return id | ||
} |
{ | ||
"name": "nanoid", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A tiny (179 bytes), secure URL-friendly unique string ID generator", | ||
@@ -19,5 +19,5 @@ "keywords": [ | ||
"benchmark": "^2.1.4", | ||
"chalk": "^2.2.0", | ||
"chalk": "^2.3.0", | ||
"docdash": "^0.4.0", | ||
"eslint": "^4.9.0", | ||
"eslint": "^4.10.0", | ||
"eslint-config-logux": "^16.2.0", | ||
@@ -28,3 +28,3 @@ "eslint-config-standard": "^10.2.1", | ||
"eslint-plugin-jest": "^21.2.0", | ||
"eslint-plugin-node": "^5.2.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-promise": "^3.6.0", | ||
@@ -41,3 +41,3 @@ "eslint-plugin-security": "^1.4.0", | ||
"shortid": "^2.2.8", | ||
"size-limit": "^0.11.6", | ||
"size-limit": "^0.12.0", | ||
"uuid": "^3.1.0", | ||
@@ -64,3 +64,6 @@ "webpack-dev-server": "^2.9.3", | ||
"eslintConfig": { | ||
"extends": "eslint-config-logux/browser" | ||
"extends": "eslint-config-logux/browser", | ||
"rules": { | ||
"yoda": "off" | ||
} | ||
}, | ||
@@ -70,3 +73,3 @@ "size-limit": [ | ||
"path": "index.js", | ||
"limit": "179 B" | ||
"limit": "176 B" | ||
}, | ||
@@ -73,0 +76,0 @@ { |
@@ -148,4 +148,5 @@ # Nano ID | ||
* [Go](https://github.com/matoous/go-nanoid) | ||
* [Java](https://github.com/aventrix/jnanoid) | ||
* [PHP](https://github.com/hidehalo/nanoid-php) | ||
* [Python](https://github.com/puyuan/py-nanoid) | ||
* [Ruby](https://github.com/radeno/nanoid.rb) |
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
10922
152