nanoid
Advanced tools
Comparing version 3.1.11 to 3.1.12
# 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). |
@@ -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 @@ ``` |
48750
489