Lines Matching refs:pkg
15 function pkgRequested (pkg) { argument
16 return pkg._requested || (pkg._resolved && npa(pkg._resolved)) || (pkg._from && npa(pkg._from))
41 function pkgIntegrity (pkg) { argument
44 var sri = (pkg.dist && pkg.dist.integrity) ||
46 pkg._integrity ||
48 (pkg._shasum && ssri.fromHex(pkg._shasum, 'sha1').toString())
177 function setAction (differences, action, pkg) {
178 differences.push([action, pkg])
194 var pkg = flatOldTree[flatname]
195 if (pkg.isInLink && /^[.][.][/\\]/.test(path.relative(newTree.realpath, pkg.realpath))) return
197 toRemove[flatname] = pkg
198 var name = moduleName(pkg)
200 toRemoveByName[name].push({flatname: flatname, pkg: pkg}) property
206 var pkg = flatNewTree[flatname]
207 var oldPkg = pkg.oldPkg = flatOldTree[flatname]
211 if (!pkg.userRequired && pkgAreEquiv(oldPkg, pkg)) return
212 setAction(differences, 'update', pkg)
214 var name = moduleName(pkg)
216 var removing = (toRemoveByName[name] || []).filter((rm) => pkgAreEquiv(rm.pkg, pkg))
217 var bundlesOrFromBundle = pkg.fromBundle || pkg.package.bundleDependencies
222 pkg.fromPath = toMv.pkg.path
223 setAction(differences, 'move', pkg)
226 } else if (!pkg.isInLink || !(pkg.fromBundle && pkg.fromBundle.isLink)) {
227 setAction(differences, 'add', pkg)
236 .forEach((pkg) => setAction(differences, 'remove', pkg))
252 const pkg = diff[1] constant
253 const pkgIsOnlyDev = isOnlyDev(pkg)
254 const pkgIsOnlyOpt = isOnlyOptional(pkg)