From 44bb9dc65ceb716d4203eb9120758fdcfccad0c9 Mon Sep 17 00:00:00 2001 From: "Indospace.io" Date: Mon, 9 Sep 2019 00:25:16 -0700 Subject: [PATCH] use uid-safe instead use uid-safe instead: Create cryptographically secure UIDs safe for both cookie and URL usage. This is in contrast to modules such as rand-token and uid2 whose UIDs are actually skewed due to the use of % and unnecessarily truncate the UID. Use this if you could still use UIDs with - and _ in them. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 787f4846..03b8c008 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ ], "main": "./lib", "dependencies": { - "uid2": "0.0.x", + "uid-safe": "2.1.5", "utils-merge": "1.x.x", "debug": "2.x.x" },