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

nanoid - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

async/random.rn.js

@@ -13,3 +13,3 @@ var random

module.exports = function (bytes) {
return random.getRandomBytesAsync(new Uint8Array(bytes))
return random.getRandomBytesAsync(bytes)
}
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 2.1.1
* Fix React Native support (by Shawn Hwei).
## 2.1

@@ -5,0 +8,0 @@ * Improve React Native support (by Sebastian Werner).

{
"name": "nanoid",
"version": "2.1.0",
"version": "2.1.1",
"description": "A tiny (141 bytes), secure URL-friendly unique string ID generator",

@@ -21,3 +21,3 @@ "keywords": [

"react-native": {
"./async/random.js": "./random.rn.js"
"./async/random.js": "./async/random.rn.js"
},

@@ -29,4 +29,4 @@ "sideEffects": false,

"sharec": {
"version": "0.4.2"
"version": "0.4.4"
}
}

@@ -35,4 +35,4 @@ # Nano ID

2. [Benchmark](#benchmark)
4. [Tools](#tools)
3. [Security](#security)
4. [Tools](#tools)
6. Usage

@@ -93,2 +93,15 @@ 1. [JS](#js)

## Tools
* [ID size calculator] to choice smaller ID size depends on your case.
* [`nanoid-dictionary`] with popular alphabets to use with `nanoid/generate`.
* [`nanoid-cli`] to generate ID from CLI.
* [`nanoid-good`] to be sure that your ID doesn't contain any obscene words.
[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary
[ID size calculator]: https://zelark.github.io/nano-id-cc/
[`nanoid-cli`]: https://github.com/twhitbeck/nanoid-cli
[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good
## Security

@@ -123,15 +136,9 @@

## Tools
### Vulnerabilities
* [ID size calculator] to choice smaller ID size depends on your case.
* [`nanoid-dictionary`] with popular alphabets to use with `nanoid/generate`.
* [`nanoid-cli`] to generate ID from CLI.
* [`nanoid-good`] to be sure that your ID doesn't contain any obscene words.
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.
[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary
[ID size calculator]: https://zelark.github.io/nano-id-cc/
[`nanoid-cli`]: https://github.com/twhitbeck/nanoid-cli
[`nanoid-good`]: https://github.com/y-gagar1n/nanoid-good
## Usage

@@ -257,3 +264,3 @@

* [Crystal](https://github.com/mamantoha/nanoid.cr)
* [Dart](https://github.com/pd4d10/nanoid)
* [Dart](https://github.com/pd4d10/nanoid-dart)
* [Go](https://github.com/matoous/go-nanoid)

@@ -377,8 +384,1 @@ * [Elixir](https://github.com/railsmechanic/nanoid)

```
## Security
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc