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

@pnpm/exportable-manifest

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/exportable-manifest - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7

10

lib/index.js

@@ -38,5 +38,5 @@ "use strict";

async function makePublishManifest(dir, originalManifest) {
const publishManifest = omit_1.default(['pnpm', 'scripts'], originalManifest);
const publishManifest = (0, omit_1.default)(['pnpm', 'scripts'], originalManifest);
if (originalManifest.scripts != null) {
publishManifest.scripts = omit_1.default(PREPUBLISH_SCRIPTS, originalManifest.scripts);
publishManifest.scripts = (0, omit_1.default)(PREPUBLISH_SCRIPTS, originalManifest.scripts);
}

@@ -63,3 +63,3 @@ for (const depsField of ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies']) {

return dependencies;
const publishDependencies = fromPairs_1.default(await Promise.all(Object.entries(dependencies)
const publishDependencies = (0, fromPairs_1.default)(await Promise.all(Object.entries(dependencies)
.map(async ([depName, depSpec]) => [

@@ -78,3 +78,3 @@ depName,

if (versionAliasSpecParts != null) {
const { manifest } = await read_project_manifest_1.tryReadProjectManifest(path_1.default.join(dir, 'node_modules', depName));
const { manifest } = await (0, read_project_manifest_1.tryReadProjectManifest)(path_1.default.join(dir, 'node_modules', depName));
if ((manifest == null) || !manifest.version) {

@@ -91,3 +91,3 @@ throw new error_1.default('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` +

if (depSpec.startsWith('workspace:./') || depSpec.startsWith('workspace:../')) {
const { manifest } = await read_project_manifest_1.tryReadProjectManifest(path_1.default.join(dir, depSpec.substr(10)));
const { manifest } = await (0, read_project_manifest_1.tryReadProjectManifest)(path_1.default.join(dir, depSpec.substr(10)));
if ((manifest == null) || !manifest.name || !manifest.version) {

@@ -94,0 +94,0 @@ throw new error_1.default('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` +

{
"name": "@pnpm/exportable-manifest",
"version": "2.1.6",
"version": "2.1.7",
"description": "Creates an exportable manifest",

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

"keywords": [
"pnpm6",
"pnpm"

@@ -29,4 +30,4 @@ ],

"@pnpm/error": "2.0.0",
"@pnpm/read-project-manifest": "2.0.5",
"@pnpm/types": "7.4.0",
"@pnpm/read-project-manifest": "2.0.6",
"@pnpm/types": "7.5.0",
"ramda": "^0.27.1"

@@ -36,3 +37,3 @@ },

"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"lint": "eslint src/**/*.ts test/**/*.ts",
"test": "pnpm run compile && pnpm run _test",

@@ -39,0 +40,0 @@ "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix",

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