Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-peruse

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-peruse - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

3

package.json
{
"name": "node-peruse",
"version": "1.3.1",
"version": "1.3.2",
"description": "A powerful CLI tool designed to analyze your node.js application.",

@@ -45,2 +45,3 @@ "main": "src/index.js",

"glob": "^11.0.0",
"js-yaml": "^4.1.0",
"ora": "^8.1.1",

@@ -47,0 +48,0 @@ "pino": "^9.5.0",

import fs from 'node:fs';
import path from 'node:path';
import yaml from 'js-yaml';
import { logger } from './logger.js';

@@ -58,4 +59,4 @@

const composePath = path.join(process.cwd(), 'compose.yaml');
if (!fs.existsSync(composePath)) {
const composeFilePath = path.join(process.cwd(), 'compose.yaml');
if (!fs.existsSync(composeFilePath)) {
throw new Error('Dockerfile not found in the current directory');

@@ -68,6 +69,6 @@ }

if (!parsed.version) {
throw new Error('Invalid docker-compose.yml: Missing "version" key.');
throw new Error('Invalid compose.yml: Missing "version" key.');
}
if (!parsed.services || typeof parsed.services !== 'object') {
throw new Error('Invalid docker-compose.yml: Missing "services" key or incorrect format.');
throw new Error('Invalid compose.yml: Missing "services" key or incorrect format.');
}

@@ -74,0 +75,0 @@

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