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.4 to 3.1.5

3

CHANGELOG.md
# 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).

3

index.browser.js

@@ -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'

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