@pnpm/npm-resolver
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -13,3 +13,3 @@ import { PackageManifest } from '@pnpm/types'; | ||
export interface PackageMetaCache { | ||
get(key: string): PackageMeta; | ||
get(key: string): PackageMeta | undefined; | ||
set(key: string, meta: PackageMeta): void; | ||
@@ -16,0 +16,0 @@ has(key: string): boolean; |
@@ -31,7 +31,7 @@ "use strict"; | ||
opts = opts || {}; | ||
if (ctx.metaCache.has(spec.name)) { | ||
const meta = ctx.metaCache.get(spec.name); | ||
const cachedMeta = ctx.metaCache.get(spec.name); | ||
if (cachedMeta) { | ||
return { | ||
meta, | ||
pickedPackage: pickPackageFromMeta_1.default(spec, opts.preferredVersionSelector, meta), | ||
meta: cachedMeta, | ||
pickedPackage: pickPackageFromMeta_1.default(spec, opts.preferredVersionSelector, cachedMeta), | ||
}; | ||
@@ -38,0 +38,0 @@ } |
{ | ||
"name": "@pnpm/npm-resolver", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Resolver for npm-hosted packages", | ||
@@ -73,3 +73,3 @@ "main": "lib/index.js", | ||
"tslint": "^5.8.0", | ||
"typescript": "^2.6.1" | ||
"typescript": "^3.0.0" | ||
}, | ||
@@ -76,0 +76,0 @@ "mos": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34264