You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 1.0.2
* Fix Web Workers support (by Zachary Golba).
## 1.0.1

@@ -5,0 +8,0 @@ * Reduce `nanoid/index` size (by Anton Khlynovskiy).

38

package.json
{
"name": "nanoid",
"version": "1.0.1",
"description": "A tiny (179 bytes), secure URL-friendly unique string ID generator",
"version": "1.0.2",
"description": "A tiny (172 bytes), secure URL-friendly unique string ID generator",
"keywords": [

@@ -19,11 +19,12 @@ "uuid",

"benchmark": "^2.1.4",
"chalk": "^2.3.0",
"chalk": "^2.3.1",
"docdash": "^0.4.0",
"eslint": "^4.10.0",
"eslint-config-logux": "^16.2.0",
"eslint": "^4.17.0",
"eslint-ci": "^0.1.1",
"eslint-config-logux": "^19.0.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-es5": "^1.1.0",
"eslint-plugin-es5": "^1.2.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jest": "^21.2.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-jest": "^21.12.1",
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-promise": "^3.6.0",

@@ -33,13 +34,13 @@ "eslint-plugin-security": "^1.4.0",

"html-webpack-plugin": "^2.30.1",
"jest": "^21.2.1",
"jest": "^22.3.0",
"jsdoc": "^3.5.5",
"lint-staged": "^4.3.0",
"microtime": "^2.1.6",
"lint-staged": "^6.1.0",
"microtime": "^2.1.7",
"pre-commit": "^1.2.2",
"rimraf": "^2.6.2",
"shortid": "^2.2.8",
"size-limit": "^0.12.0",
"uuid": "^3.1.0",
"webpack-dev-server": "^2.9.3",
"yaspeller-ci": "^0.7.0"
"size-limit": "^0.14.1",
"uuid": "^3.2.1",
"webpack-dev-server": "^2.11.1",
"yaspeller-ci": "^1.0.0"
},

@@ -51,3 +52,3 @@ "scripts": {

"docs": "jsdoc --configure .jsdocrc *.js",
"lint": "eslint *.js test/*.js",
"lint": "eslint-ci *.js test/*.js",
"test": "jest --coverage && yarn lint && size-limit && yarn spellcheck",

@@ -57,2 +58,3 @@ "demo": "webpack-dev-server --config test/demo/webpack.config"

"jest": {
"testEnvironment": "node",
"coverageThreshold": {

@@ -73,7 +75,7 @@ "global": {

"path": "index.js",
"limit": "176 B"
"limit": "172 B"
},
{
"path": "generate.js",
"limit": "184 B"
"limit": "181 B"
}

@@ -80,0 +82,0 @@ ],

@@ -1,2 +0,2 @@

var crypto = window.crypto || window.msCrypto
var crypto = self.crypto || self.msCrypto

@@ -3,0 +3,0 @@ module.exports = function (bytes) {

@@ -7,3 +7,3 @@ # Nano ID

var nanoid = require('nanoid')
model.id = nanoid() //=> "Uakgb_J5m9g~0JDMbcJqLJ"
model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B~myT"
```

@@ -14,3 +14,3 @@

**Small.** Only 179 bytes (minified and gzipped). No dependencies.
**Small.** Only 172 bytes (minified and gzipped). No dependencies.
It uses [Size Limit] to control size.

@@ -31,2 +31,3 @@

## Security

@@ -37,2 +38,3 @@

### Unpredictability

@@ -43,2 +45,3 @@

### Uniformity

@@ -58,2 +61,3 @@

## Comparison with UUID

@@ -75,2 +79,3 @@

## Benchmark

@@ -109,2 +114,8 @@

Don’t forget to check safety of your ID length
in our [ID collision probability] calculator.
[ID collision probability]: https://alex7kom.github.io/nano-nanoid-cc/
### Custom Alphabet or Length

@@ -120,6 +131,11 @@

Check safety of your custom alphabet and ID length
in our [ID collision probability] calculator.
Alphabet must contain 256 symbols or less.
Otherwise, the generator will not be secure.
[ID collision probability]: https://alex7kom.github.io/nano-nanoid-cc/
### Custom Random Bytes Generator

@@ -156,3 +172,7 @@

* [C#](https://github.com/codeyu/nanoid-net)
* [Crystal](https://github.com/mamantoha/nanoid.cr)
* [Go](https://github.com/matoous/go-nanoid)
* [Elixir](https://github.com/railsmechanic/nanoid)
* [Haskell](https://github.com/4e6/nanoid-hs)
* [Java](https://github.com/aventrix/jnanoid)

@@ -162,1 +182,2 @@ * [PHP](https://github.com/hidehalo/nanoid-php)

* [Ruby](https://github.com/radeno/nanoid.rb)
* [Rust](https://github.com/nikolay-govorov/nanoid)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc