A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/npm/commit/3b4681b53db7757985223932072875d099694677 below:

Stop calling addBundle on locked deps · npm/npm@3b4681b · GitHub

This repository was archived by the owner on Aug 11, 2022. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+20

-26

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+20

-26

lines changed Original file line number Diff line number Diff line change

@@ -114,34 +114,28 @@ function makeFakeChild (name, topPath, tree, sw, requested) {

114 114

_where: topPath,

115 115

_args: [[requested.toString(), topPath]]

116 116

}

117 -

let bundleAdded = BB.resolve()

118 -

if (Object.keys(sw.dependencies || {}).some((d) => {

119 -

return sw.dependencies[d].bundled

120 -

})) {

121 -

pkg.bundleDependencies = []

122 -

bundleAdded = addBundled(pkg)

123 -

}

124 -

return bundleAdded.then(() => {

125 -

const child = createChild({

126 -

package: pkg,

127 -

loaded: true,

128 -

parent: tree,

129 -

children: pkg._bundled || [],

130 -

fromShrinkwrap: true,

131 -

fakeChild: sw,

132 -

fromBundle: sw.bundled ? tree.fromBundle || tree : null,

133 -

path: childPath(tree.path, pkg),

134 -

realpath: childPath(tree.realpath, pkg),

135 -

location: tree.location + '/' + pkg.name,

136 -

isInLink: tree.isLink

137 -

})

138 -

tree.children.push(child)

139 -

if (pkg._bundled) {

140 -

delete pkg._bundled

141 -

inflateBundled(child, child, child.children)

117 + 118 +

if (!sw.bundled) {

119 +

const bundleDependencies = Object.keys(sw.dependencies || {}).filter((d) => sw.dependencies[d].bundled)

120 +

if (bundleDependencies.length === 0) {

121 +

pkg.bundleDependencies = bundleDependencies

142 122

}

143 -

return child

123 +

}

124 +

const child = createChild({

125 +

package: pkg,

126 +

loaded: true,

127 +

parent: tree,

128 +

children: pkg._bundled || [],

129 +

fromShrinkwrap: true,

130 +

fakeChild: sw,

131 +

fromBundle: sw.bundled ? tree.fromBundle || tree : null,

132 +

path: childPath(tree.path, pkg),

133 +

realpath: childPath(tree.realpath, pkg),

134 +

location: tree.location + '/' + pkg.name,

135 +

isInLink: tree.isLink

144 136

})

137 +

tree.children.push(child)

138 +

return child

145 139

}

146 140 147 141

function adaptResolved (requested, resolved) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4