Comparing version 0.17.0 to 0.18.0
@@ -0,1 +1,12 @@ | ||
## [v0.18.0] | ||
> Feb 12, 2016 | ||
- [#107] - sort dependencies in `--save`. ([@iamstarkov]) | ||
- [#93] - (internal) Resolve store_path. ([@kesla]) | ||
- [#94] - Fix `--production`. ([@kesla]) | ||
- [#86] - Enable HTTPS keepalive. ([@fengmk2]) | ||
- [#81] - Allow installing new versions of existing deps. | ||
[v0.18.0]: https://github.com/rstacruz/pnpm/compare/v0.17.0...v0.18.0 | ||
## [v0.17.0] | ||
@@ -61,3 +72,3 @@ > Feb 3, 2016 | ||
- [#9], [#36] - Support exact versions in scoped packages (`pnpm i @rstacruz/tap-spec@4.1.1`). | ||
- [#9], [#36] - Support exact versions in scoped packages. | ||
@@ -135,3 +146,3 @@ [v0.11.1]: https://github.com/rstacruz/pnpm/compare/v0.11.0...v0.11.1 | ||
- Support scoped modules without version spec (eg, `pnpm i @rstacruz/tap-spec`). | ||
- Support scoped modules without version spec (eg, `pnpm i [@rstacruz]/tap-spec`). | ||
- Lots of internal cleanups. | ||
@@ -217,2 +228,5 @@ | ||
[#80]: https://github.com/rstacruz/pnpm/issues/80 | ||
[#86]: https://github.com/rstacruz/pnpm/issues/86 | ||
[#93]: https://github.com/rstacruz/pnpm/issues/93 | ||
[#107]: https://github.com/rstacruz/pnpm/issues/107 | ||
[@asbjornenge]: https://github.com/asbjornenge | ||
@@ -223,1 +237,4 @@ [@davej]: https://github.com/davej | ||
[@rstacruz]: https://github.com/rstacruz | ||
[@iamstarkov]: https://github.com/iamstarkov | ||
[@kesla]: https://github.com/kesla | ||
[@fengmk2]: https://github.com/fengmk2 |
var readPkgUp = require('read-pkg-up'); | ||
var dirname = require('path').dirname; | ||
var join = require('path').join; | ||
var resolve = require('path').resolve; | ||
var assign = require('object-assign'); | ||
@@ -52,3 +53,3 @@ var npa = require('npm-package-arg'); | ||
ctx.root = root; | ||
ctx.store = join(root, config.store_path); | ||
ctx.store = resolve(root, config.store_path); | ||
if (!flags.quiet) ctx.log = logger();else ctx.log = function () { | ||
@@ -80,2 +81,2 @@ return function () {}; | ||
module.exports = installCmd; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYn4vY21kL2luc3RhbGwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBSSxZQUFZLFFBQVEsYUFBUixDQUFaO0FBQ0osSUFBSSxVQUFVLFFBQVEsTUFBUixFQUFnQixPQUFoQjtBQUNkLElBQUksT0FBTyxRQUFRLE1BQVIsRUFBZ0IsSUFBaEI7QUFDWCxJQUFJLFNBQVMsUUFBUSxlQUFSLENBQVQ7QUFDSixJQUFJLE1BQU0sUUFBUSxpQkFBUixDQUFOOztBQUVKLElBQUksU0FBUyxRQUFRLFdBQVIsQ0FBVDtBQUNKLElBQUksa0JBQWtCLFFBQVEscUJBQVIsQ0FBbEI7QUFDSixJQUFJLFNBQVMsUUFBUSxXQUFSLENBQVQ7QUFDSixJQUFJLE9BQU8sUUFBUSxTQUFSLENBQVA7QUFDSixJQUFJLFlBQVksUUFBUSx1QkFBUixDQUFaOzs7Ozs7OztBQVFKLFNBQVMsVUFBVCxDQUFxQixLQUFyQixFQUE0QixLQUE1QixFQUFtQztBQUNqQyxNQUFJLE1BQU0sRUFBTixDQUQ2QjtBQUVqQyxNQUFJLEdBQUosQ0FGaUM7QUFHakMsTUFBSSxpQkFBSixDQUhpQztBQUlqQyxNQUFJLFdBQUosQ0FKaUM7QUFLakMsTUFBSSxzQkFBc0IsTUFBTSxVQUFOLElBQW9CLFFBQVEsR0FBUixDQUFZLFFBQVosS0FBeUIsWUFBekIsQ0FMYjs7QUFPakMsU0FBTyxZQUNKLElBREksQ0FDQyxhQUFLO0FBQUUsVUFBTSxDQUFOLENBQUY7R0FBTCxDQURELENBRUosSUFGSSxDQUVDO1dBQUssY0FBYyxJQUFJLElBQUo7R0FBbkIsQ0FGRCxDQUdKLElBSEksQ0F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gKGZsYWdzLnNhdmVPcHRpb25hbCkgcmV0dXJuICdvcHRpb25hbERlcGVuZGVuY2llcydcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBpbnN0YWxsQ21kXG4iXX0= |
@@ -7,2 +7,4 @@ var Promise = require('./promise'); | ||
var config = require('./config'); | ||
var HttpAgent = require('http').Agent; | ||
var HttpsAgent = require('https').Agent; | ||
@@ -12,2 +14,10 @@ var cache = {}; | ||
var throater = throat(+config.concurrency); | ||
var httpKeepaliveAgent = new HttpAgent({ | ||
keepAlive: true, | ||
keepAliveMsecs: 30000 | ||
}); | ||
var httpsKeepaliveAgent = new HttpsAgent({ | ||
keepAlive: true, | ||
keepAliveMsecs: 30000 | ||
}); | ||
@@ -24,3 +34,3 @@ /* | ||
debug(url); | ||
var promise = got(url, extend(options)); | ||
var promise = got(url, extend(url, options)); | ||
resolve({ promise: promise }); | ||
@@ -42,3 +52,3 @@ return promise; | ||
debug(url, '[stream]'); | ||
var stream = got.stream(url, extend(options)); | ||
var stream = got.stream(url, extend(url, options)); | ||
resolve(stream); | ||
@@ -60,4 +70,9 @@ return waiter(stream); | ||
function extend(options) { | ||
function extend(url, options) { | ||
if (!options) options = {}; | ||
if (url.indexOf('https://') === 0) { | ||
options.agent = httpsKeepaliveAgent; | ||
} else { | ||
options.agent = httpKeepaliveAgent; | ||
} | ||
return assign({}, options, { | ||
@@ -69,2 +84,2 @@ headers: assign({}, options.headers || {}, { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL2xpYn4vZ290LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLElBQUksVUFBVSxRQUFRLFdBQVIsQ0FBVjtBQUNKLElBQUksUUFBUSxRQUFRLE9BQVIsRUFBaUIsV0FBakIsQ0FBUjtBQUNKLElBQUksU0FBUyxRQUFRLGVBQVIsQ0FBVDtBQUNKLElBQUksU0FBUyxRQUFRLFFBQVIsQ0FB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XNvbHZlID0+IHtcbiAgICB0aHJvYXRlcihfID0+IHtcbiAgICAgIGRlYnVnKHVybCwgJ1tzdHJlYW1dJylcbiAgICAgIHZhciBzdHJlYW0gPSBnb3Quc3RyZWFtKHVybCwgZXh0ZW5kKHVybCwgb3B0aW9ucykpXG4gICAgICByZXNvbHZlKHN0cmVhbSlcbiAgICAgIHJldHVybiB3YWl0ZXIoc3RyZWFtKVxuICAgIH0pXG4gIH0pXG59XG5cbmZ1bmN0aW9uIHdhaXRlciAoc3RyZWFtKSB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgc3RyZWFtXG4gICAgICAub24oJ2VuZCcsIHJlc29sdmUpXG4gICAgICAub24oJ2Vycm9yJywgcmVqZWN0KVxuICB9KVxufVxuXG4vKlxuICogRXh0ZW5kcyBgZ290YCBvcHRpb25zIHdpdGggVXNlciBBZ2VudCBoZWFkZXJzIGFuZCBzdHVmZlxuICovXG5cbmZ1bmN0aW9uIGV4dGVuZCAodXJsLCBvcHRpb25zKSB7XG4gIGlmICghb3B0aW9ucykgb3B0aW9ucyA9IHt9XG4gIGlmICh1cmwuaW5kZXhPZignaHR0cHM6Ly8nKSA9PT0gMCkge1xuICAgIG9wdGlvbnMuYWdlbnQgPSBodHRwc0tlZXBhbGl2ZUFnZW50XG4gIH0gZWxzZSB7XG4gICAgb3B0aW9ucy5hZ2VudCA9IGh0dHBLZWVwYWxpdmVBZ2VudFxuICB9XG4gIHJldHVybiBhc3NpZ24oe30sIG9wdGlvbnMsIHtcbiAgICBoZWFkZXJzOiBhc3NpZ24oe30sIG9wdGlvbnMuaGVhZGVycyB8fCB7fSwge1xuICAgICAgJ3VzZXItYWdlbnQnOiAnaHR0cHM6Ly9naXRodWIuY29tL3JzdGFjcnV6L3BucG0nXG4gICAgfSlcbiAgfSlcbn1cbiJdfQ== |
var Promise = require('./promise'); | ||
var debug = require('debug')('pnpm:install'); | ||
var npa = require('npm-package-arg'); | ||
var getUuid = require('node-uuid'); | ||
var fs = require('mz/fs'); | ||
var join = require('path').join; | ||
@@ -8,14 +11,16 @@ var dirname = require('path').dirname; | ||
var abspath = require('path').resolve; | ||
var mkdirp = require('./fs/mkdirp'); | ||
var fetch = require('./fetch'); | ||
var resolve = require('./resolve'); | ||
var getUuid = require('node-uuid'); | ||
var mkdirp = require('./fs/mkdirp'); | ||
var symlink = require('./fs/force_symlink'); | ||
var obliterate = require('./fs/obliterate'); | ||
var requireJson = require('./fs/require_json'); | ||
var relSymlink = require('./fs/rel_symlink'); | ||
var linkBins = require('./install/link_bins'); | ||
var linkBundledDeps = require('./install/link_bundled_deps'); | ||
var isAvailable = require('./install/is_available'); | ||
var postInstall = require('./install/post_install'); | ||
var fs = require('mz/fs'); | ||
var obliterate = require('./fs/obliterate'); | ||
var requireJson = require('./fs/require_json'); | ||
@@ -89,3 +94,3 @@ /* | ||
// it might be a bundleDependency, in which case, don't bother | ||
return isBundled(pkg.spec.name, modules).then(function (_) { | ||
return isAvailable(pkg.spec, modules).then(function (_) { | ||
return _ ? saveCachedResolution().then(function (data) { | ||
@@ -151,23 +156,2 @@ return log('package.json', data); | ||
/* | ||
* Check if a module exists (eg, `node_modules/node-pre-gyp`). This is the case when | ||
* it's part of bundleDependencies. | ||
* | ||
* This check is also responsible for stopping `pnpm i lodash` from doing anything when | ||
* 'node_modules/lodash' already exists. | ||
*/ | ||
function isBundled(name, modules) { | ||
if (!name) return Promise.resolve(false); | ||
return Promise.resolve().then(function (_) { | ||
return fs.statSync(join(modules, name, 'package.json')); | ||
}).then(function (_) { | ||
return true; | ||
}).catch(function (err) { | ||
if (err.code !== 'ENOENT') throw err; | ||
return false; | ||
}); | ||
} | ||
/* | ||
* Builds to `.store/lodash@4.0.0` (paths.target) | ||
@@ -351,2 +335,2 @@ * If an ongoing build is already working, use it. Also, if that ongoing build | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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gIHJldHVybiBsb2Nrc1trZXldXG59XG4iXX0= |
@@ -10,3 +10,3 @@ var Promise = require('../promise'); | ||
return isDir(nodeModules, function (_) { | ||
return Promise.all(fs.readdir(nodeModules).map(function (mod) { | ||
return Promise.all(fs.readdirSync(nodeModules).map(function (mod) { | ||
return isDir(join(nodeModules, mod), function (_) { | ||
@@ -31,2 +31,2 @@ return symlinkBundledDep(nodeModules, join(nodeModules, mod)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYn4vaW5zdGFsbC9saW5rX2J1bmRsZWRfZGVwcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLFVBQVUsUUFBUSxZQUFSLENBQVY7QUFDSixJQUFJLEtBQUssUUFBUSxPQUFSLENBQUw7QUFDSixJQUFJLE9BQU8sUUFBUSxNQUFSLEVBQWdCLElBQWhCO0FBQ1gsSUFBSSxXQUFXLFFBQVEsYUFBUixDQUFYOztBQUVKLE9BQU8sT0FBUCxHQUFpQixTQUFTLGVBQVQsQ0FBMEIsSUFBMUIsRUFBZ0M7QUFDL0MsTUFBSSxjQUFjLEtBQUssSUFBTCxFQUFXLGNBQVgsQ0FBZCxDQUQyQzs7QUFHL0MsU0FBTyxNQUFNLFdBQU4sRUFBbUI7V0FDeEIsUUFBUSxHQUFSLENBQVksR0FBRyxPQUFILENBQVcsV0FBWCxFQUF3QixHQUF4QixDQUE0QjthQUN0QyxNQUFNLEtBQUssV0FBTCxFQUFrQixHQUFsQixDQUFOLEVBQThCO2VBQzVCLGtCQUFrQixXQUFsQixFQUErQixLQUFLLFdBQUwsRUFBa0IsR0FBbEIsQ0FBL0I7T0FENEI7S0FEUSxDQUF4QztHQUR3QixDQUExQixDQUgrQztDQUFoQzs7QUFXakIsU0FBUyxpQkFBVCxDQUE0QixXQUE1QixFQUF5QyxNQUF6QyxFQUFpRDtBQUMvQyxTQUFPLFNBQV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yA9PlxuICAgIFByb21pc2UuYWxsKGZzLnJlYWRkaXJTeW5jKG5vZGVNb2R1bGVzKS5tYXAobW9kID0+XG4gICAgICBpc0Rpcihqb2luKG5vZGVNb2R1bGVzLCBtb2QpLCBfID0+XG4gICAgICAgIHN5bWxpbmtCdW5kbGVkRGVwKG5vZGVNb2R1bGVzLCBqb2luKG5vZGVNb2R1bGVzLCBtb2QpKVxuICAgICAgKVxuICAgICkpKVxufVxuXG5mdW5jdGlvbiBzeW1saW5rQnVuZGxlZERlcCAobm9kZU1vZHVsZXMsIHN1Ym1vZCkge1xuICByZXR1cm4gbGlua0JpbnMobm9kZU1vZHVsZXMsIHN1Ym1vZCwgc3VibW9kKVxufVxuXG5mdW5jdGlvbiBpc0RpciAocGF0aCwgZm4pIHtcbiAgcmV0dXJuIGZzLnN0YXQocGF0aClcbiAgLnRoZW4oc3RhdCA9PiB7XG4gICAgaWYgKCFzdGF0LmlzRGlyZWN0b3J5KCkpIHJldHVybiBQcm9taXNlLnJlc29sdmUoKVxuICAgIHJldHVybiBmbigpXG4gIH0pXG4gIC5jYXRjaChlcnIgPT4geyBpZiAoZXJyLmNvZGUgIT09ICdFTk9FTlQnKSB0aHJvdyBlcnIgfSlcbn1cblxuIl19 |
var writeFile = require('mz/fs').writeFile; | ||
var requireJson = require('./fs/require_json'); | ||
var sortedObject = require('sorted-object'); | ||
@@ -11,5 +12,6 @@ module.exports = function save(pkg, installedPackages, saveType, useExactVersion) { | ||
}); | ||
packageJson[saveType] = sortedObject(packageJson[saveType]); | ||
return writeFile(pkg.path, JSON.stringify(packageJson, null, 2) + '\n', 'utf8'); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL2xpYn4vc2F2ZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFJLFlBQVksUUFBUSxPQUFSLEVBQWlCLFNBQWpCO0FBQ2hCLElBQUksY0FBYyxR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nNvbltzYXZlVHlwZV0gPSBzb3J0ZWRPYmplY3QocGFja2FnZUpzb25bc2F2ZVR5cGVdKVxuXG4gIHJldHVybiB3cml0ZUZpbGUocGtnLnBhdGgsIEpTT04uc3RyaW5naWZ5KHBhY2thZ2VKc29uLCBudWxsLCAyKSArICdcXG4nLCAndXRmOCcpXG59XG4iXX0= |
{ | ||
"name": "pnpm", | ||
"description": "A fast implementation of npm install", | ||
"version": "0.17.0", | ||
"version": "0.18.0", | ||
"author": "Rico Sta. Cruz <rico@ricostacruz.com>", | ||
@@ -38,4 +38,5 @@ "bin": { | ||
"semver": "5.1.0", | ||
"sorted-object": "^1.0.0", | ||
"supports-color": "^3.1.2", | ||
"tar-fs": "1.9.0", | ||
"tar-fs": "1.10.0", | ||
"thenify": "3.1.1", | ||
@@ -46,12 +47,12 @@ "throat": "2.0.2" | ||
"babel-cli": "6.4.5", | ||
"babel-plugin-transform-es2015-arrow-functions": "6.3.13", | ||
"babel-plugin-transform-es2015-arrow-functions": "6.5.0", | ||
"babel-plugin-transform-es2015-literals": "6.3.13", | ||
"docpress": "0.6.10", | ||
"docpress": "0.6.11", | ||
"eslint": "1.10.3", | ||
"eslint-config-standard": "4.4.0", | ||
"eslint-plugin-standard": "1.3.1", | ||
"eslint-plugin-standard": "1.3.2", | ||
"git-update-ghpages": "1.3.0", | ||
"in-publish": "2.0.0", | ||
"nixt": "0.5.0", | ||
"npm": "3.6.0", | ||
"npm": "3.7.1", | ||
"sepia": "2.0.1", | ||
@@ -58,0 +59,0 @@ "tap-spec": "4.1.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151217
36
1129
25
4
+ Addedsorted-object@^1.0.0
+ Addedsorted-object@1.0.0(transitive)
+ Addedtar-fs@1.10.0(transitive)
- Removedtar-fs@1.9.0(transitive)
Updatedtar-fs@1.10.0