Socket
Socket
Sign inDemoInstall

nanoid

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoid - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

2

async/format.browser.js
module.exports = function (random, alphabet, size) {
var mask = (2 << 31 - Math.clz32((alphabet.length - 1) | 1)) - 1
var step = Math.ceil(1.6 * mask * size / alphabet.length)
var step = -~(1.6 * mask * size / alphabet.length)

@@ -5,0 +5,0 @@ function tick (id) {

# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 2.1.9
* Reduce `format` and `async/format` size (by Dair Aidarkhanov).
## 2.1.8

@@ -5,0 +8,0 @@ * Improve React docs (by Nahum Zsilva).

module.exports = function (random, alphabet, size) {
var mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1
var step = Math.ceil(1.6 * mask * size / alphabet.length)
var step = -~(1.6 * mask * size / alphabet.length)
var id = ''

@@ -5,0 +5,0 @@

{
"name": "nanoid",
"version": "2.1.8",
"version": "2.1.9",
"description": "A tiny (137 bytes), secure URL-friendly unique string ID generator",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc