dependencies-hierarchy
Advanced tools
Comparing version 6.0.2 to 7.0.0-0
@@ -33,3 +33,3 @@ "use strict"; | ||
const modules = await modules_yaml_1.read(virtualStoreDir); | ||
const registries = utils_1.normalizeRegistries(Object.assign({}, maybeOpts && maybeOpts.registries, modules && modules.registries)); | ||
const registries = utils_1.normalizeRegistries(Object.assign(Object.assign({}, maybeOpts && maybeOpts.registries), modules && modules.registries)); | ||
const currentLockfile = await lockfile_file_1.readCurrentLockfile(maybeOpts.lockfileDirectory, { ignoreIncompatible: false }); | ||
@@ -110,3 +110,3 @@ const result = {}; | ||
if (dependencies.length) { | ||
newEntry = Object.assign({}, packageInfo, { dependencies }); | ||
newEntry = Object.assign(Object.assign({}, packageInfo), { dependencies }); | ||
} | ||
@@ -160,3 +160,3 @@ else if (!searched.length || matches(searched, packageInfo)) { | ||
function getAllDirectDependencies(lockfileImporter) { | ||
return Object.assign({}, lockfileImporter.dependencies, lockfileImporter.devDependencies, lockfileImporter.optionalDependencies); | ||
return Object.assign(Object.assign(Object.assign({}, lockfileImporter.dependencies), lockfileImporter.devDependencies), lockfileImporter.optionalDependencies); | ||
} | ||
@@ -168,6 +168,6 @@ function getTree(opts, keypath, parentId) { | ||
? opts.currentPackages[parentId].dependencies | ||
: Object.assign({}, opts.currentPackages[parentId].dependencies, opts.currentPackages[parentId].optionalDependencies); | ||
: Object.assign(Object.assign({}, opts.currentPackages[parentId].dependencies), opts.currentPackages[parentId].optionalDependencies); | ||
if (!deps) | ||
return []; | ||
const getChildrenTree = getTree.bind(null, Object.assign({}, opts, { currentDepth: opts.currentDepth + 1 })); | ||
const getChildrenTree = getTree.bind(null, Object.assign(Object.assign({}, opts), { currentDepth: opts.currentDepth + 1 })); | ||
const peers = new Set(Object.keys(opts.currentPackages[parentId].peerDependencies || {})); | ||
@@ -198,3 +198,3 @@ const result = []; | ||
if (dependencies.length) { | ||
newEntry = Object.assign({}, packageInfo, { dependencies }); | ||
newEntry = Object.assign(Object.assign({}, packageInfo), { dependencies }); | ||
} | ||
@@ -257,3 +257,3 @@ else if (!opts.searched.length || matchedSearched) { | ||
name, | ||
path: packageAbsolutePath && path.join(opts.modulesDir, `.${packageAbsolutePath}`) || path.join(opts.modulesDir, '..', opts.ref.substr(5)), | ||
path: packageAbsolutePath && path.join(opts.modulesDir, '.pnpm', packageAbsolutePath) || path.join(opts.modulesDir, '..', opts.ref.substr(5)), | ||
version, | ||
@@ -260,0 +260,0 @@ }; |
{ | ||
"name": "dependencies-hierarchy", | ||
"version": "6.0.2", | ||
"version": "7.0.0-0", | ||
"description": "Creates a dependencies hierarchy for a symlinked `node_modules`", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts", | ||
"pretest": "cd fixtures && pnpm recursive install --frozen-lockfile --no-shared-workspace-lockfile --no-link-workspace-packages && cd ../fixtureWithLinks && pnpm recursive install --frozen-lockfile --link-workspace-packages --no-shared-workspace-lockfile && cd ..", | ||
"pretest": "cd fixtures && node ../../pnpm recursive install --frozen-lockfile --no-shared-workspace-lockfile --no-link-workspace-packages -f && cd ../fixtureWithLinks && node ../../pnpm/bin/pnpm.js recursive install --frozen-lockfile --link-workspace-packages --no-shared-workspace-lockfile -f && cd ..", | ||
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check", | ||
@@ -42,3 +42,3 @@ "prepublishOnly": "pnpm run tsc", | ||
"@pnpm/lockfile-utils": "1.0.10", | ||
"@pnpm/modules-yaml": "3.0.3", | ||
"@pnpm/modules-yaml": "4.0.0-0", | ||
"@pnpm/read-modules-dir": "2.0.1", | ||
@@ -55,3 +55,3 @@ "@pnpm/types": "3.2.0", | ||
"devDependencies": { | ||
"@pnpm/constants": "1.1.0", | ||
"@pnpm/constants": "link:../constants", | ||
"@pnpm/logger": "2.1.1", | ||
@@ -58,0 +58,0 @@ "@types/semver": "6", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
16199
2
+ Added@pnpm/modules-yaml@4.0.0-0(transitive)
- Removed@pnpm/modules-yaml@3.0.3(transitive)
Updated@pnpm/modules-yaml@4.0.0-0