New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@erickmerchant/checkup

Package Overview
Dependencies
Maintainers
1
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erickmerchant/checkup - npm Package Compare versions

Comparing version 12.4.1 to 12.4.2

5

package.json
{
"name": "@erickmerchant/checkup",
"version": "12.4.1",
"version": "12.4.2",
"description": "Check multiple projects for various things.",

@@ -26,4 +26,3 @@ "bin": {

"semver": "^6.3.0",
"sergeant": "^27.1.0",
"stream-to-promise": "^2.2.0"
"sergeant": "^27.1.0"
},

@@ -30,0 +29,0 @@ "devDependencies": {

13

src/check-dependencies.js

@@ -6,3 +6,3 @@ const fs = require('fs')

const fsAccess = promisify(fs.access)
const streamPromise = require('stream-to-promise')
const createReadStream = fs.createReadStream

@@ -62,3 +62,3 @@ const parse5 = require('parse5')

const ast = parse5.parse(code)
const ast = parse5.parse(String(code))

@@ -86,6 +86,11 @@ return traverse(ast.childNodes || [])

let deps = await Promise.all(files.map(async (file) => {
let code = await streamPromise(createReadStream(path.join(directory, file), 'utf8'))
const codeStream = createReadStream(path.join(directory, file))
let code = []
code = String(code)
for await (const chunk of codeStream) {
code.push(chunk)
}
code = Buffer.concat(code)
switch (path.extname(file)) {

@@ -92,0 +97,0 @@ case '.js':

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