Socket
Socket
Sign inDemoInstall

@nichoth/nanoid

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nichoth/nanoid - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 5.0.2
* Fixed `webcrypto` import (by Divyansh Singh).
## 5.0.1

@@ -5,0 +8,0 @@ * Fixed Node.js 18 support.

2

index.js

@@ -1,2 +0,2 @@

import crypto from 'node:crypto'
import { webcrypto as crypto } from 'node:crypto'

@@ -3,0 +3,0 @@ import { urlAlphabet } from './url-alphabet/index.js'

{
"name": "@nichoth/nanoid",
"version": "5.0.1",
"version": "5.0.2",
"description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",

@@ -12,6 +12,5 @@ "keywords": [

"scripts": {
"clean": "rm -R coverage",
"clean": "rm -rf coverage",
"start": "vite test/demo/ --open",
"unit": "uvu . .test.js$",
"test:coverage": "c8 pnpm unit",
"test:coverage": "c8 pnpm bnt",
"test:lint": "eslint .",

@@ -49,3 +48,3 @@ "test:size": "pnpm clean && size-limit",

"devDependencies": {
"@babel/core": "^7.22.17",
"@babel/core": "^7.23.2",
"@logux/eslint-config": "^52.0.1",

@@ -55,14 +54,15 @@ "@lukeed/uuid": "^2.0.1",

"@originjs/vite-plugin-commonjs": "^1.0.3",
"@size-limit/file": "^9.0.0",
"@size-limit/webpack": "^9.0.0",
"@types/node": "^20.6.0",
"@size-limit/file": "^10.0.1",
"@size-limit/webpack": "^10.0.1",
"@types/node": "^20.8.7",
"benchmark": "^2.1.4",
"better-node-test": "^0.2.0",
"c8": "^8.0.1",
"clean-publish": "^4.2.0",
"eslint": "^8.49.0",
"eslint": "^8.52.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.1.0",
"eslint-plugin-node-import": "^1.0.3",
"eslint-plugin-perfectionist": "^2.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.2.0",
"eslint-plugin-prefer-let": "^3.0.1",

@@ -74,9 +74,8 @@ "eslint-plugin-promise": "^6.1.1",

"shortid": "^2.2.16",
"size-limit": "^9.0.0",
"terser": "^5.19.4",
"size-limit": "^10.0.1",
"terser": "^5.22.0",
"uid": "^2.0.2",
"uid-safe": "^2.1.5",
"uuid": "^9.0.1",
"uvu": "^0.5.6",
"vite": "^4.4.9"
"vite": "^4.5.0"
},

@@ -152,8 +151,14 @@ "size-limit": [

"exclude": [
"**/*.test.*"
"**/*.test.*",
"test/*"
],
"lines": 100,
"reporter": "lcov",
"check-coverage": true
"check-coverage": true,
"reporter": [
"text",
"lcov"
],
"skip-full": true,
"clean": true
}
}

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

```bash
npm install --save nanoid
npm install nanoid
```

@@ -116,3 +116,3 @@

```bash
npm install --save nanoid@3
npm install nanoid@3
```

@@ -119,0 +119,0 @@

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

```bash
npm install --save nanoid
npm install nanoid
```

@@ -138,3 +138,3 @@

```bash
npm install --save nanoid@3
npm install nanoid@3
```

@@ -141,0 +141,0 @@

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

```bash
npm install --save nanoid
npm install nanoid
```

@@ -145,3 +145,3 @@

```bash
npm install --save nanoid@3
npm install nanoid@3
```

@@ -148,0 +148,0 @@

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

```bash
npm install --save nanoid
npm install nanoid
```

@@ -132,3 +132,3 @@

```bash
npm install --save nanoid@3
npm install nanoid@3
```

@@ -135,0 +135,0 @@

Sorry, the diff of this file is not supported yet

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