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.11 to 3.1.12

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 3.1.12
* Improve IE 11 docs.
## 3.1.11

@@ -5,0 +8,0 @@ * Fixed asynchronous `customAlphabet` in browser (by @LoneRifle).

4

index.browser.js

@@ -23,4 +23,4 @@ // This file replaces `index.js` in bundlers like webpack or Rollup,

throw new Error(
'Add `if (!window.crypto) window.crypto = window.msCrypto` ' +
'before Nano ID to fix IE 11 support'
'Import file with `if (!window.crypto) window.crypto = window.msCrypto`' +
' before importing Nano ID to fix IE 11 support'
)

@@ -27,0 +27,0 @@ }

{
"name": "nanoid",
"version": "3.1.11",
"version": "3.1.12",
"description": "A tiny (108 bytes), secure URL-friendly unique string ID generator",

@@ -5,0 +5,0 @@ "keywords": [

@@ -178,6 +178,10 @@ # Nano ID

```js
// polyfills.js
if (!window.crypto) {
window.crypto = window.msCrypto
}
```
```js
import './polyfills.js'
import { nanoid } from 'nanoid'

@@ -184,0 +188,0 @@ ```

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