New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/package-is-installable

Package Overview
Dependencies
Maintainers
3
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/package-is-installable - npm Package Compare versions

Comparing version 4.0.19 to 5.0.0

14

CHANGELOG.md
# @pnpm/package-is-installable
## 5.0.0
### Major Changes
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
### Patch Changes
- Updated dependencies [97b986fbc]
- Updated dependencies [90487a3a8]
- @pnpm/core-loggers@6.0.0
- @pnpm/error@2.0.0
- @pnpm/types@7.0.0
## 4.0.19

@@ -4,0 +18,0 @@

8

lib/checkEngine.js

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

const error_1 = __importDefault(require("@pnpm/error"));
const semver = require("semver");
const semver_1 = __importDefault(require("semver"));
class UnsupportedEngineError extends error_1.default {

@@ -23,9 +23,9 @@ constructor(packageId, wanted, current) {

const unsatisfiedWanted = {};
if (wantedEngine.node && !semver.satisfies(currentEngine.node, wantedEngine.node)) {
if (wantedEngine.node && !semver_1.default.satisfies(currentEngine.node, wantedEngine.node)) {
unsatisfiedWanted.node = wantedEngine.node;
}
if (currentEngine.pnpm && wantedEngine.pnpm && !semver.satisfies(currentEngine.pnpm, wantedEngine.pnpm)) {
if (currentEngine.pnpm && wantedEngine.pnpm && !semver_1.default.satisfies(currentEngine.pnpm, wantedEngine.pnpm)) {
unsatisfiedWanted.pnpm = wantedEngine.pnpm;
}
if (Object.keys(unsatisfiedWanted).length) {
if (Object.keys(unsatisfiedWanted).length > 0) {
return new UnsupportedEngineError(packageId, unsatisfiedWanted, currentEngine);

@@ -32,0 +32,0 @@ }

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

const warn = checkPackage(pkgId, pkg, options);
if (!warn)
if (warn == null)
return true;

@@ -56,13 +56,14 @@ core_loggers_1.installCheckLogger.warn({

function checkPackage(pkgId, manifest, options) {
var _a, _b, _c, _d, _e;
return (_e = (_c = checkPlatform_1.default(pkgId, {
var _a, _b, _c, _d;
return (_c = (0, checkPlatform_1.default)(pkgId, {
cpu: (_a = manifest.cpu) !== null && _a !== void 0 ? _a : ['any'],
os: (_b = manifest.os) !== null && _b !== void 0 ? _b : ['any'],
})) !== null && _c !== void 0 ? _c : (manifest.engines &&
checkEngine_1.default(pkgId, manifest.engines, {
})) !== null && _c !== void 0 ? _c : ((manifest.engines == null)
? null
: (0, checkEngine_1.default)(pkgId, manifest.engines, {
node: (_d = options.nodeVersion) !== null && _d !== void 0 ? _d : process.version,
pnpm: options.pnpmVersion,
}))) !== null && _e !== void 0 ? _e : null;
}));
}
exports.checkPackage = checkPackage;
//# sourceMappingURL=index.js.map
{
"name": "@pnpm/package-is-installable",
"version": "4.0.19",
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)",
"version": "5.0.0",
"description": "Checks if a package is installable on the current system",

@@ -15,6 +14,6 @@ "main": "lib/index.js",

"engines": {
"node": ">=10.16"
"node": ">=12.17"
},
"peerDependencies": {
"@pnpm/logger": "^3.2.3"
"@pnpm/logger": "^4.0.0"
},

@@ -29,12 +28,12 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/package-is-installable",

"prepublishOnly": "pnpm run compile",
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build"
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
},
"dependencies": {
"@pnpm/core-loggers": "5.0.3",
"@pnpm/error": "1.4.0",
"@pnpm/types": "6.4.0",
"@pnpm/core-loggers": "6.0.0",
"@pnpm/error": "2.0.0",
"@pnpm/types": "7.0.0",
"semver": "^7.3.4"
},
"devDependencies": {
"@pnpm/logger": "^3.2.3",
"@pnpm/logger": "^4.0.0",
"@types/semver": "^7.3.4"

@@ -41,0 +40,0 @@ },

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