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

@pnpm/manifest-utils

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/manifest-utils - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

4

lib/updateProjectManifestObject.d.ts

@@ -1,2 +0,2 @@

import { type DependenciesField, type ProjectManifest } from '@pnpm/types';
import { type DependenciesOrPeersField, type DependenciesField, type ProjectManifest } from '@pnpm/types';
export interface PackageSpecObject {

@@ -10,2 +10,2 @@ alias: string;

export declare function updateProjectManifestObject(prefix: string, packageManifest: ProjectManifest, packageSpecs: PackageSpecObject[]): Promise<ProjectManifest>;
export declare function guessDependencyType(alias: string, manifest: ProjectManifest): DependenciesField | undefined;
export declare function guessDependencyType(alias: string, manifest: ProjectManifest): DependenciesOrPeersField | undefined;

@@ -26,4 +26,6 @@ "use strict";

const usedDepType = guessDependencyType(packageSpec.alias, packageManifest) ?? 'dependencies';
packageManifest[usedDepType] = packageManifest[usedDepType] ?? {};
packageManifest[usedDepType][packageSpec.alias] = packageSpec.pref;
if (usedDepType !== 'peerDependencies') {
packageManifest[usedDepType] = packageManifest[usedDepType] ?? {};
packageManifest[usedDepType][packageSpec.alias] = packageSpec.pref;
}
}

@@ -49,3 +51,3 @@ if (packageSpec.nodeExecPath) {

function guessDependencyType(alias, manifest) {
return types_1.DEPENDENCIES_FIELDS
return types_1.DEPENDENCIES_OR_PEER_FIELDS
.find((depField) => manifest[depField]?.[alias] === '' || Boolean(manifest[depField]?.[alias]));

@@ -52,0 +54,0 @@ }

{
"name": "@pnpm/manifest-utils",
"description": "Utils for dealing with package manifest",
"version": "5.0.0",
"version": "5.0.1",
"bugs": {

@@ -23,5 +23,5 @@ "url": "https://github.com/pnpm/pnpm/issues"

"dependencies": {
"@pnpm/core-loggers": "9.0.0",
"@pnpm/error": "5.0.0",
"@pnpm/types": "9.0.0"
"@pnpm/core-loggers": "9.0.1",
"@pnpm/error": "5.0.1",
"@pnpm/types": "9.1.0"
},

@@ -31,3 +31,3 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manifest/manifest-utils#readme",

"devDependencies": {
"@pnpm/manifest-utils": "5.0.0"
"@pnpm/manifest-utils": "5.0.1"
},

@@ -34,0 +34,0 @@ "exports": {

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