Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
0
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.9 to 3.1.10

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 3.1.10
* Fix ES modules support.
## 3.1.9

@@ -5,0 +8,0 @@ * Try to fix React Native Expo support.

10

package.json
{
"name": "nanoid",
"version": "3.1.9",
"version": "3.1.10",
"description": "A tiny (108 bytes), secure URL-friendly unique string ID generator",

@@ -29,11 +29,11 @@ "keywords": [

".": {
"browser": "./index.browser.js",
"require": "./index.cjs",
"import": "./index.js",
"browser": "./index.browser.js"
"import": "./index.js"
},
"./async/package.json": "./async/package.json",
"./async": {
"browser": "./async/index.browser.js",
"require": "./async/index.cjs",
"import": "./async/index.js",
"browser": "./async/index.browser.js"
"import": "./async/index.js"
},

@@ -40,0 +40,0 @@ "./non-secure/package.json": "./non-secure/package.json",

@@ -256,5 +256,6 @@ # Nano ID

2. Use `nanoid/async` instead of `nanoid`.
3. Import `index.native.js` file directly.
```js
import { nanoid } from 'nanoid/async'
import { nanoid } from 'nanoid/async/index.native'

@@ -359,5 +360,7 @@ async function createUser () {

* [Dart](https://github.com/pd4d10/nanoid-dart)
* [Deno](https://github.com/ianfabs/nanoid)
* [Go](https://github.com/matoous/go-nanoid)
* [Elixir](https://github.com/railsmechanic/nanoid)
* [Haskell](https://github.com/4e6/nanoid-hs)
* [Janet](https://sr.ht/~statianzo/janet-nanoid/)
* [Java](https://github.com/aventrix/jnanoid)

@@ -364,0 +367,0 @@ * [Nim](https://github.com/icyphox/nanoid.nim)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc