@pnpm/package-is-installable
Advanced tools
Comparing version 4.0.13 to 4.0.14
# @pnpm/package-is-installable | ||
## 4.0.14 | ||
### Patch Changes | ||
- Updated dependencies [75a36deba] | ||
- @pnpm/error@1.3.1 | ||
## 4.0.13 | ||
@@ -4,0 +11,0 @@ |
@@ -9,6 +9,6 @@ import PnpmError from '@pnpm/error'; | ||
export default function checkEngine(packageId: string, wantedEngine: WantedEngine, currentEngine: Engine): UnsupportedEngineError | null; | ||
export declare type Engine = { | ||
export interface Engine { | ||
node: string; | ||
pnpm?: string; | ||
}; | ||
} | ||
export declare type WantedEngine = Partial<Engine>; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UnsupportedEngineError = void 0; | ||
const error_1 = require("@pnpm/error"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const semver = require("semver"); | ||
@@ -6,0 +9,0 @@ class UnsupportedEngineError extends error_1.default { |
@@ -8,6 +8,6 @@ import PnpmError from '@pnpm/error'; | ||
export default function checkPlatform(packageId: string, wantedPlatform: WantedPlatform): UnsupportedPlatformError | null; | ||
export declare type Platform = { | ||
export interface Platform { | ||
cpu: string | string[]; | ||
os: string | string[]; | ||
}; | ||
} | ||
export declare type WantedPlatform = Partial<Platform>; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UnsupportedPlatformError = void 0; | ||
const error_1 = require("@pnpm/error"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
class UnsupportedPlatformError extends error_1.default { | ||
@@ -6,0 +9,0 @@ constructor(packageId, wanted, current) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkPackage = exports.UnsupportedPlatformError = exports.UnsupportedEngineError = void 0; | ||
const core_loggers_1 = require("@pnpm/core-loggers"); | ||
const checkEngine_1 = require("./checkEngine"); | ||
const checkEngine_1 = __importStar(require("./checkEngine")); | ||
Object.defineProperty(exports, "UnsupportedEngineError", { enumerable: true, get: function () { return checkEngine_1.UnsupportedEngineError; } }); | ||
const checkPlatform_1 = require("./checkPlatform"); | ||
const checkPlatform_1 = __importStar(require("./checkPlatform")); | ||
Object.defineProperty(exports, "UnsupportedPlatformError", { enumerable: true, get: function () { return checkPlatform_1.UnsupportedPlatformError; } }); | ||
@@ -36,12 +55,13 @@ function packageIsInstallable(pkgId, pkg, options) { | ||
function checkPackage(pkgId, manifest, options) { | ||
return checkPlatform_1.default(pkgId, { | ||
cpu: manifest.cpu || ['any'], | ||
os: manifest.os || ['any'], | ||
}) || (manifest.engines && | ||
var _a, _b, _c, _d, _e; | ||
return (_e = (_c = 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, { | ||
node: options.nodeVersion || process.version, | ||
node: (_d = options.nodeVersion) !== null && _d !== void 0 ? _d : process.version, | ||
pnpm: options.pnpmVersion, | ||
})) || null; | ||
}))) !== null && _e !== void 0 ? _e : null; | ||
} | ||
exports.checkPackage = checkPackage; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/package-is-installable", | ||
"version": "4.0.13", | ||
"version": "4.0.14", | ||
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)", | ||
@@ -26,3 +26,3 @@ "description": "Checks if a package is installable on the current system", | ||
"test": "pnpm run compile && pnpm run _test", | ||
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts", | ||
"prepublishOnly": "pnpm run compile", | ||
@@ -33,3 +33,3 @@ "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build" | ||
"@pnpm/core-loggers": "4.2.0", | ||
"@pnpm/error": "1.3.0", | ||
"@pnpm/error": "1.3.1", | ||
"@pnpm/types": "6.2.0", | ||
@@ -41,3 +41,3 @@ "semver": "^7.3.2" | ||
"@pnpm/package-is-installable": "link:", | ||
"@types/semver": "^7.3.1" | ||
"@types/semver": "^7.3.3" | ||
}, | ||
@@ -44,0 +44,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11894
206
+ Added@pnpm/error@1.3.1(transitive)
- Removed@pnpm/error@1.3.0(transitive)
Updated@pnpm/error@1.3.1