@pnpm/npm-resolver
Advanced tools
Comparing version 2.0.0 to 2.1.1
@@ -87,4 +87,8 @@ "use strict"; | ||
: 'No valid version found.'; | ||
const err = new Error('No compatible version found: ' + | ||
const err = new Error('No matching version found for ' + | ||
toRaw_1.default(spec) + '\n' + message); | ||
// tslint:disable:no-string-literal | ||
err['code'] = 'ERR_PNPM_NO_MATCHING_VERSION'; | ||
err['packageMeta'] = meta; | ||
// tslint:enable:no-string-literal | ||
throw err; | ||
@@ -91,0 +95,0 @@ } |
@@ -103,5 +103,5 @@ "use strict"; | ||
if (res.status > 400) { | ||
const err = new Error(`${res.status} ${res.statusText}: ${pkgName}`); | ||
const err = new Error(`${res.status} ${res.statusText}: ${pkgName} (via ${uri})`); | ||
// tslint:disable | ||
err['code'] = `E${res.status}`; | ||
err['code'] = `ERR_PNPM_REGISTRY_META_RESPONSE_${res.status}`; | ||
err['uri'] = uri; | ||
@@ -108,0 +108,0 @@ err['response'] = res; |
{ | ||
"name": "@pnpm/npm-resolver", | ||
"version": "2.0.0", | ||
"version": "2.1.1", | ||
"description": "Resolver for npm-hosted packages", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34470
460