Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 1243) sorted by relevance

12345678910>>...50

/third_party/node/deps/npm/lib/install/
Ddecompose-actions.js9 var pkg = action[1]
12 addSteps(decomposed, pkg)
15 updateSteps(decomposed, pkg)
18 moveSteps(decomposed, pkg)
21 removeSteps(decomposed, pkg)
24 defaultSteps(decomposed, cmd, pkg)
30 function addAction (decomposed, action, pkg) { argument
31 if (decomposed.some((_) => _[0] === action && _[1] === pkg)) return
32 decomposed.push([action, pkg])
35 function addSteps (decomposed, pkg) { argument
[all …]
Ddiff-trees.js15 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
[all …]
Dactions.js35 actions[actionName] = (staging, pkg, log) => { argument
36 validate('SOO', [staging, pkg, log])
38 if (pkg.failed) return BB.resolve()
40 if (!pkg.rollback) pkg.rollback = []
41 pkg.rollback.unshift(action.rollback)
44 if (!pkg.commit) pkg.commit = []
45 pkg.commit.push(action.commit)
49 if (pkg.knownInstallable) {
50 actionP = runAction(action, staging, pkg, log)
52 actionP = isInstallable(null, pkg.package).then(() => {
[all …]
Dvalidate-args.js15 asyncMap(args, function (pkg, done) { argument
17 [hasMinimumFields, pkg],
18 [checkSelf, idealTree, pkg, force],
19 [isInstallable, idealTree, pkg]
24 function hasMinimumFields (pkg, cb) { argument
25 if (pkg.name === '' || pkg.name == null) {
26 return cb(new Error(`Can't install ${pkg._resolved}: Missing package name`))
27 } else if (pkg.version === '' || pkg.version == null) {
28 return cb(new Error(`Can't install ${pkg._resolved}: Missing package version`))
51 var isInstallable = module.exports.isInstallable = function (idealTree, pkg, next) {
[all …]
Dmutate-into-logical-tree.js77 var pkg = tree.package
78 if (seen.has(tree)) return pkg
80 if (pkg._dependencies) return pkg
81 pkg._dependencies = pkg.dependencies
82 pkg.dependencies = {}
84 const dep = pkg.dependencies[moduleName(child)] = translateTree_(child, seen)
93 if (pkg.dependencies[name]) {
94 if (pkg.dependencies[name].missing) return
95 pkg.dependencies[name].invalid = true
96 pkg.dependencies[name].realName = name
[all …]
Dsave.js83 toSave.forEach(function (pkg) { if (pkg.save) savingTo[pkg.save] = true }) argument
84 toRemove.forEach(function (pkg) { if (pkg.save) savingTo[pkg.save] = true }) argument
92 toSave.forEach(function (pkg) { argument
93 if (pkg.save) tree.package[pkg.save][pkg.name] = pkg.spec
97 pkg.save !== saveType &&
99 tree.package[saveType][pkg.name]
102 delete tree.package[saveType][pkg.name]
106 … log.notice('save', `${pkg.name} is being moved from ${movedFrom.join(' and ')} to ${pkg.save}`)
109 var ii = bundle.indexOf(pkg.name)
110 if (ii === -1) bundle.push(pkg.name)
[all …]
/third_party/node/deps/npm/node_modules/pacote/lib/
Dfinalize-manifest.js38 function finalizeManifest (pkg, spec, opts) { argument
39 const key = finalKey(pkg, spec)
50 return tarballedProps(pkg, spec, opts).then(props => {
51 return pkg && pkg.name
52 ? new Manifest(pkg, props, opts.fullMetadata)
75 function Manifest (pkg, fromTarball, fullMetadata) { argument
78 Object.assign(this, pkg)
80 this.name = pkg.name
81 this.version = pkg.version
82 this.engines = pkg.engines || fromTarball.engines
[all …]
/third_party/node/deps/npm/node_modules/npm-normalize-package-bin/
Dindex.js5 const normalize = pkg => argument
6 !pkg.bin ? removeBin(pkg)
7 : typeof pkg.bin === 'string' ? normalizeString(pkg)
8 : Array.isArray(pkg.bin) ? normalizeArray(pkg)
9 : typeof pkg.bin === 'object' ? normalizeObject(pkg)
10 : removeBin(pkg)
12 const normalizeString = pkg => { argument
13 if (!pkg.name)
14 return removeBin(pkg)
15 pkg.bin = { [pkg.name]: pkg.bin }
[all …]
/third_party/node/deps/npm/node_modules/normalize-package-data/node_modules/resolve/lib/
Dasync.js63 } else loadNodeModules(x, basedir, function (err, n, pkg) { argument
65 else if (n) cb(null, n, pkg);
75 function onfile(err, m, pkg) { argument
77 else if (m) cb(null, m, pkg);
78 else loadAsDirectory(res, function (err, d, pkg) { argument
80 else if (d) cb(null, d, pkg);
104 var pkg = loadPackage;
105 if (pkg) onpkg(null, pkg);
109 pkg = pkg_;
111 if (dir && pkg && opts.pathFilter) {
[all …]
Dsync.js63 var pkg = loadpkg(path.dirname(x));
65 if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
66 var rfile = path.relative(pkg.dir, x);
67 var r = opts.pathFilter(pkg.pkg, x, rfile);
69 x = path.resolve(pkg.dir, r); // eslint-disable-line no-param-reassign
101 var pkg = JSON.parse(body);
104 if (pkg && opts.packageFilter) {
105 pkg = opts.packageFilter(pkg, dir);
108 return { pkg: pkg, dir: dir };
116 var pkg = JSON.parse(body);
[all …]
/third_party/node/deps/npm/node_modules/normalize-package-data/node_modules/resolve/test/
Dresolver.js9 resolve('./foo', { basedir: dir }, function (err, res, pkg) { argument
12 t.equal(pkg && pkg.name, 'resolve');
15 resolve('./foo.js', { basedir: dir }, function (err, res, pkg) { argument
18 t.equal(pkg && pkg.name, 'resolve');
21 resolve('./foo', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) { argument
24 t.equal(pkg && pkg.main, 'resolver');
27 … resolve('./foo.js', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) { argument
30 t.equal(pkg.main, 'resolver');
53 resolve('foo', { basedir: dir + '/bar' }, function (err, res, pkg) { argument
56 t.equal(pkg, undefined);
[all …]
/third_party/node/deps/npm/lib/install/action/
Dfinalize.js18 module.exports = function (staging, pkg, log) { argument
19 log.silly('finalize', pkg.realpath)
21 const extractedTo = moduleStagingPath(staging, pkg)
23 …const delpath = path.join(path.dirname(pkg.realpath), '.' + path.basename(pkg.realpath) + '.DELETE…
26 const requested = pkg.package._requested || getRequested(pkg)
28 const relative = path.relative(path.dirname(pkg.path), pkg.realpath)
29 return makeParentPath(pkg.path)
30 .then(() => symlink(relative, pkg.path, 'junction'))
32 return rimraf(pkg.path).then(() => symlink(relative, pkg.path, 'junction'))
35 return makeParentPath(pkg.realpath)
[all …]
Dremove.js15 module.exports = function (staging, pkg, log, next) { argument
16 log.silly('remove', pkg.path)
17 if (pkg.target) {
18 removeLink(pkg, next)
20 removeDir(pkg, log, next)
24 function removeLink (pkg, next) { argument
25 var base = isInside(pkg.path, npm.prefix) ? npm.prefix : pkg.path
26 rimraf(pkg.path, (err) => {
28 vacuum(pkg.path, {base: base}, next)
32 function removeDir (pkg, log, next) { argument
[all …]
Drefresh-package-json.js12 module.exports = function (staging, pkg, log) { argument
13 log.silly('refresh-package-json', pkg.realpath)
15 return readJson(path.join(pkg.path, 'package.json'), false).then((metadata) => {
16 Object.keys(pkg.package).forEach(function (key) {
17 if (key !== 'version' && key !== 'dependencies' && !isEmpty(pkg.package[key])) {
18 metadata[key] = pkg.package[key]
21 if (metadata._resolved == null && pkg.fakeChild) {
22 metadata._resolved = pkg.fakeChild.resolved
28 pkg.package = metadata
29 pkg.fakeChild = false
[all …]
/third_party/node/deps/npm/node_modules/libcipm/
Dindex.js53 this.pkg = null
73 .then(() => this.timedStage('runScript', 'prepublish', this.pkg, this.prefix))
74 .then(() => this.timedStage('runScript', 'prepare', this.pkg, this.prefix))
120 (pkg, lock, shrink) => {
126 pkg._shrinkwrap = shrink || lock
127 this.pkg = pkg
144 this.tree = buildLogicalTree(this.pkg, this.pkg._shrinkwrap)
161 const pkg = this.pkg
163 if (!pkg._shrinkwrap || !pkg._shrinkwrap.lockfileVersion) {
262 .then(pkg => (spec.registry || spec.type === 'directory')
[all …]
/third_party/node/deps/npm/node_modules/npm-lifecycle/
Dindex.js47 function logid (pkg, stage) { argument
48 return pkg._id + '~' + stage + ':'
65 function lifecycle (pkg, stage, wd, opts) { argument
67 while (pkg && pkg._data) pkg = pkg._data
68 if (!pkg) return reject(new Error('Invalid package data'))
70 opts.log.info('lifecycle', logid(pkg, stage), pkg._id)
71 if (!pkg.scripts) pkg.scripts = {}
74 …opts.log.info('lifecycle', logid(pkg, stage), 'ignored because ignore-prepublish is set to true',
75 delete pkg.scripts.prepublish
81 if (!pkg.scripts[stage] && statError) return resolve()
[all …]
/third_party/node/deps/npm/node_modules/npm-normalize-package-bin/test/
Dobject.js6 const pkg = { name: 'hello', version: 'world', bin: { variable
16 t.strictSame(normalize(pkg), expect)
17 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
22 const pkg = { name: 'hello', version: 'world', bin: { variable
36 t.strictSame(normalize(pkg), expect)
37 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
41 const pkg = { name: 'hello', version: 'world', bin: { variable
57 t.strictSame(normalize(pkg), expect)
58 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
62 const pkg = { variable
[all …]
Dnobin.js8 const pkg = { name: 'hello', version: 'world' } variable
9 t.strictSame(normalize(pkg), expect)
10 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
14 const pkg = { name: 'hello', version: 'world', bin: '' } variable
15 t.strictSame(normalize(pkg), expect)
16 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
20 const pkg = { name: 'hello', version: 'world', bin: false } variable
21 t.strictSame(normalize(pkg), expect)
22 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
26 const pkg = { name: 'hello', version: 'world', bin: null } variable
[all …]
Dstring.js5 const pkg = { name: 'hello', version: 'world', bin: 'hello.js' } variable
7 t.strictSame(normalize(pkg), expect)
8 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
12 const pkg = { name: 'hello', version: 'world', bin: '/etc/passwd' } variable
14 t.strictSame(normalize(pkg), expect)
15 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
19 const pkg = { name: 'hello', version: 'world', bin: '../../../../etc/passwd' } variable
21 t.strictSame(normalize(pkg), expect)
22 t.strictSame(normalize(normalize(pkg)), expect, 'double sanitize ok')
26 const pkg = { name: 'hello', version: 'world', bin: '/etc/passwd:/bin/usr/exec' } variable
[all …]
/third_party/node/deps/npm/node_modules/init-package-json/
Dinit-package-json.js45 var pkg
55 if (er) pkg = {}
56 else pkg = d
61 if (!pkg.version || !semver.valid(pkg.version))
62 delete pkg.version
64 ctx.package = pkg
74 if (data[k] !== undefined && data[k] !== null) pkg[k] = data[k]
83 readJson.extras(packageFile, pkg, function (er, pkg) { argument
85 if (er) return cb(er, pkg)
86 pkg = unParsePeople(pkg)
[all …]
/third_party/node/deps/npm/node_modules/pacote/lib/fetchers/
Ddirectory.js44 (pkg, sr) => {
45 pkg._shrinkwrap = sr
46 pkg._hasShrinkwrap = !!sr
47 pkg._resolved = spec.fetchSpec
48 pkg._integrity = false // Don't auto-calculate integrity
49 pkg._shasum = false // Don't auto-calculate shasum either
50 return pkg
52 ).then(pkg => {
53 if (!pkg.bin && pkg.directories && pkg.directories.bin) {
54 const dirBin = pkg.directories.bin
[all …]
/third_party/node/deps/npm/test/tap/
Dbin-overwriting.js3 const pkg = common.pkg constant
23 process.env.npm_config_prefix = pkg + '/global'
27 ? path.resolve(pkg, 'global')
28 : path.resolve(pkg, 'global/bin')
31 ? path.resolve(pkg, 'global/node_modules')
32 : path.resolve(pkg, 'global/lib/node_modules')
44 mkdirp(pkg + '/first')
45 writeFileSync(pkg + '/first/package.json', JSON.stringify({
50 writeFileSync(pkg + '/first/first.js', `#!/usr/bin/env node
54 mkdirp(pkg + '/second')
[all …]
Dinstall-cli-only-shrinkwrap.js11 var pkg = common.pkg variable
13 var EXEC_OPTS = { cwd: pkg }
57 mkdirp.sync(path.join(pkg, 'dependency'))
59 path.join(pkg, 'dependency', 'package.json'),
63 mkdirp.sync(path.join(pkg, 'dev-dependency'))
65 path.join(pkg, 'dev-dependency', 'package.json'),
69 mkdirp.sync(path.join(pkg, 'node_modules'))
71 path.join(pkg, 'package.json'),
75 path.join(pkg, 'npm-shrinkwrap.json'),
89 path.resolve(pkg, 'node_modules/dev-dependency/package.json')
[all …]
/third_party/flutter/flutter/examples/flutter_gallery/
DBUILD.gn26 "//third_party/dart-pkg/pub/charcode",
27 "//third_party/dart-pkg/pub/collection",
28 "//third_party/dart-pkg/pub/connectivity",
29 "//third_party/dart-pkg/pub/cupertino_icons",
30 "//third_party/dart-pkg/pub/device_info",
31 "//third_party/dart-pkg/pub/flutter_gallery_assets",
32 "//third_party/dart-pkg/pub/meta",
33 "//third_party/dart-pkg/pub/path",
34 "//third_party/dart-pkg/pub/scoped_model",
35 "//third_party/dart-pkg/pub/shrine_images",
[all …]
/third_party/node/deps/npm/lib/
Dbuild.js42 readJson(path.resolve(npm.localPrefix, 'package.json'), function (er, pkg) { argument
43 if (!args.length && pkg && pkg.scripts && pkg.scripts.build) {
66 readJson(path.resolve(folder, 'package.json'), function (er, pkg) { argument
69 !didPre && [lifecycle, pkg, 'preinstall', folder],
70 [linkStuff, pkg, folder, global],
71 !didRB && [rebuildBundles, pkg, folder],
72 [writeBuiltinConf, pkg, folder],
73 didPre !== build._noLC && [lifecycle, pkg, 'install', folder],
74 didPre !== build._noLC && [lifecycle, pkg, 'postinstall', folder]
81 var writeBuiltinConf = build.writeBuiltinConf = function (pkg, folder, cb) {
[all …]

12345678910>>...50