Socket
Socket
Sign inDemoInstall

@pnpm/pnpmfile

Package Overview
Dependencies
Maintainers
3
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/pnpmfile - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

lib/requirePnpmfile.js

@@ -28,2 +28,9 @@ "use strict";

});
if (typeof pnpmfile === 'undefined') {
logger_1.default.warn({
message: `Ignoring the pnpmfile at "${pnpmFilePath}". It exports "undefined".`,
prefix,
});
return undefined;
}
if (((_b = (_a = pnpmfile) === null || _a === void 0 ? void 0 : _a.hooks) === null || _b === void 0 ? void 0 : _b.readPackage) && typeof pnpmfile.hooks.readPackage !== 'function') {

@@ -30,0 +37,0 @@ throw new TypeError('hooks.readPackage should be a function');

4

package.json
{
"name": "@pnpm/pnpmfile",
"version": "0.1.1",
"version": "0.1.2",
"description": "Reading a pnpmfile.js",

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

"tsc": "rimraf lib && tsc",
"test": "pnpm run tsc",
"test": "pnpm run tsc && ts-node test --type-check",
"prepublishOnly": "pnpm run tsc"

@@ -19,0 +19,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