@pnpm/package-is-installable
Advanced tools
Comparing version 4.0.19 to 5.0.0
# @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,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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
12545
207
1
+ Added@pnpm/core-loggers@6.0.0(transitive)
+ Added@pnpm/error@2.0.0(transitive)
+ Added@pnpm/logger@4.0.0(transitive)
+ Added@pnpm/types@7.0.0(transitive)
+ Addedbole@4.0.1(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedndjson@2.0.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsplit2@3.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedthrough2@4.0.2(transitive)
- Removed@pnpm/core-loggers@5.0.3(transitive)
- Removed@pnpm/error@1.4.0(transitive)
- Removed@pnpm/logger@3.2.3(transitive)
- Removed@pnpm/types@6.4.0(transitive)
- Removed@zkochan/bole@3.0.4(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedfast-safe-stringify@1.1.13(transitive)
- Removedisarray@1.0.0(transitive)
- Removedndjson@1.5.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsplit2@2.2.0(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedxtend@4.0.2(transitive)
Updated@pnpm/core-loggers@6.0.0
Updated@pnpm/error@2.0.0
Updated@pnpm/types@7.0.0