nanoid
Advanced tools
Comparing version 3.1.4 to 3.1.5
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 3.1.5 | ||
* Improve IE docs and warning. | ||
## 3.1.4 | ||
@@ -5,0 +8,0 @@ * Restrict old Node.js 13 by `engines.node` (by Cansin Yildiz). |
@@ -19,3 +19,4 @@ // This file replaces `index.js` in bundlers like webpack or Rollup, | ||
throw new Error( | ||
'Add window.crypto = window.msCrypto before Nano ID to fix IE 11 support' | ||
'Add `if (!window.crypto) window.crypto = window.msCrypto` ' + | ||
'before Nano ID to fix IE 11 support' | ||
) | ||
@@ -22,0 +23,0 @@ } |
{ | ||
"name": "nanoid", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "A tiny (108 bytes), secure URL-friendly unique string ID generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -178,3 +178,5 @@ # Nano ID | ||
```js | ||
window.crypto = window.msCrypto | ||
if (!window.crypto) { | ||
window.crypto = window.msCrypto | ||
} | ||
@@ -181,0 +183,0 @@ import { nanoid } from 'nanoid' |
44442
629
461