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.30 to 3.1.31

4

index.js

@@ -17,3 +17,3 @@ import crypto from 'crypto'

let random = bytes => {
fillPool(bytes)
fillPool((bytes -= 0))
return pool.subarray(poolOffset - bytes, poolOffset)

@@ -38,3 +38,3 @@ }

let nanoid = (size = 21) => {
fillPool(size)
fillPool((size -= 0))
let id = ''

@@ -41,0 +41,0 @@ for (let i = poolOffset - size; i < poolOffset; i++) {

{
"name": "nanoid",
"version": "3.1.30",
"version": "3.1.31",
"description": "A tiny (130 bytes), secure URL-friendly unique string ID generator",

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

@@ -6,3 +6,3 @@ # Nano ID

**English** | [Русский](./README.ru.md) | [简体中文](./README.zh-CN.md)
**English** | [Русский](./README.ru.md) | [简体中文](./README.zh-CN.md) | [Bahasa Indonesia](./README.id-ID.md)

@@ -21,3 +21,3 @@ A tiny, secure, URL-friendly, unique string ID generator for JavaScript.

* **Portable.** Nano ID was ported
to [19 programming languages](#other-programming-languages).
to [20 programming languages](#other-programming-languages).

@@ -24,0 +24,0 @@ ```js

Sorry, the diff of this file is not supported yet

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