New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@4a/passcode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4a/passcode - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+5
-1
index.js
function generate(length = 4) {
let i = 0
if (length > 6) {

@@ -8,5 +10,7 @@ length = 6

do {
i++
result = Math.random().toString().slice(2, 2 + length)
console.log(i, result)
}
while(result.length !== length)
while(result.length !== length && i < 100)

@@ -13,0 +17,0 @@ return result

+1
-1
{
"name": "@4a/passcode",
"version": "1.0.0",
"version": "1.0.1",
"description": "短信验证码",

@@ -5,0 +5,0 @@ "main": "index.js",