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 3.1.1 to 3.1.2

10

lib/index.js

@@ -9,4 +9,4 @@ "use strict";

const read_project_manifest_1 = require("@pnpm/read-project-manifest");
const fromPairs_js_1 = __importDefault(require("ramda/src/fromPairs.js"));
const omit_js_1 = __importDefault(require("ramda/src/omit.js"));
const fromPairs_1 = __importDefault(require("ramda/src/fromPairs"));
const omit_1 = __importDefault(require("ramda/src/omit"));
const overridePublishConfig_1 = require("./overridePublishConfig");

@@ -22,5 +22,5 @@ const PREPUBLISH_SCRIPTS = [

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

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

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

@@ -46,0 +46,0 @@ depName,

@@ -7,3 +7,3 @@ "use strict";

exports.overridePublishConfig = void 0;
const isEmpty_js_1 = __importDefault(require("ramda/src/isEmpty.js"));
const isEmpty_1 = __importDefault(require("ramda/src/isEmpty"));
// property keys that are copied from publishConfig into the manifest

@@ -43,3 +43,3 @@ const PUBLISH_CONFIG_WHITELIST = new Set([

});
if ((0, isEmpty_js_1.default)(publishConfig)) {
if ((0, isEmpty_1.default)(publishConfig)) {
delete publishManifest.publishConfig;

@@ -46,0 +46,0 @@ }

{
"name": "@pnpm/exportable-manifest",
"version": "3.1.1",
"version": "3.1.2",
"description": "Creates an exportable manifest",

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

"devDependencies": {
"@pnpm/exportable-manifest": "3.1.1",
"@pnpm/exportable-manifest": "3.1.2",
"@types/ramda": "0.28.14"

@@ -31,5 +31,5 @@ },

"@pnpm/error": "3.0.1",
"@pnpm/read-project-manifest": "3.0.8",
"@pnpm/read-project-manifest": "3.0.9",
"@pnpm/types": "8.5.0",
"ramda": "^0.28.0"
"ramda": "npm:@pnpm/ramda@0.28.1"
},

@@ -36,0 +36,0 @@ "funding": "https://opencollective.com/pnpm",

Sorry, the diff of this file is not supported yet

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