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

@pnpm/read-project-manifest

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/read-project-manifest - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4

11

lib/index.js

@@ -102,2 +102,3 @@ "use strict";

const err = new Error(`"${projectDir}" is not a directory`);
// @ts-expect-error
err['code'] = 'ENOTDIR';

@@ -201,9 +202,9 @@ throw err;

manifest = JSON.parse(JSON.stringify(manifest));
const result = {};
for (const key of Object.keys(manifest)) {
const result = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
for (const [key, value] of Object.entries(manifest)) {
if (!dependencyKeys.has(key)) {
result[key] = manifest[key];
result[key] = value;
}
else if (Object.keys(manifest[key]).length !== 0) {
result[key] = (0, sort_keys_1.default)(manifest[key]);
else if (Object.keys(value).length !== 0) {
result[key] = (0, sort_keys_1.default)(value);
}

@@ -210,0 +211,0 @@ }

{
"name": "@pnpm/read-project-manifest",
"version": "4.1.3",
"version": "4.1.4",
"description": "Read a project manifest (called package.json in most cases)",

@@ -28,3 +28,3 @@ "main": "lib/index.js",

"is-windows": "^1.0.2",
"json5": "^2.2.2",
"json5": "^2.2.3",
"parse-json": "^5.2.0",

@@ -35,3 +35,3 @@ "read-yaml-file": "^2.1.0",

"@pnpm/error": "4.0.1",
"@pnpm/graceful-fs": "2.0.0",
"@pnpm/graceful-fs": "2.1.0",
"@pnpm/text.comments-parser": "1.0.0",

@@ -45,3 +45,3 @@ "@pnpm/types": "8.10.0",

"tempy": "^1.0.1",
"@pnpm/read-project-manifest": "4.1.3"
"@pnpm/read-project-manifest": "4.1.4"
},

@@ -53,3 +53,3 @@ "funding": "https://opencollective.com/pnpm",

"scripts": {
"lint": "eslint src/**/*.ts test/**/*.ts",
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
"_test": "jest",

@@ -56,0 +56,0 @@ "test": "pnpm run compile && pnpm run _test",

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