39 Commits

Author SHA1 Message Date
Kyle Fang
761b67dc0e Add git: to https: filter 2014-08-22 09:52:17 +08:00
isaacs
a6710a6e3b cache: proto/protocol typo 2014-08-21 16:39:06 -07:00
isaacs
6c47201a7d Prepend the git+ to git urls if not found in _resolved
Fix #5752
Fix #6013
2014-08-21 16:31:13 -07:00
不四
16bead7f2c remove repeating mkdir in cache/add-remote-tarball.js 2014-08-21 13:42:47 -07:00
Forrest L Norvell
d987707442 move fetch into npm-registry-client
The primary purpose is so that everything doing network requests
includes auth, if so required. Sends bearer token by default, will send
HTTP Basic auth with `always-auth` set in the config.
2014-08-07 17:56:53 -07:00
Adam Meadows
33ccd13d16 Don't squash execute perms in _git-remotes/ dir
A previous fix for https://github.com/npm/npm/issues/3117
explicitly set the permissions for all files to a hard-coded
value, regardless of what the permissions were previously.

This changes that behavior to *add* the permissions that were
previously being *set* so that existing execute permissions are
maintained.

This is a redo of the much more blunt solution attempted in
https://github.com/npm/npm/pull/5728
thanks to some very helpful feedback from @othiym23
2014-07-24 16:36:12 -07:00
Forrest L Norvell
a945f75789 simplify use of maybeGithub 2014-07-01 18:49:46 -07:00
Forrest L Norvell
cf9bf56272 fix order dependency in remote git caching
Also add more logging.
2014-07-01 18:49:46 -07:00
Forrest L Norvell
94c2aeef4b short-circuit local installs but fall back less 2014-07-01 18:49:45 -07:00
Forrest L Norvell
2793877f5b opportunistic linting 2014-07-01 18:49:45 -07:00
Forrest L Norvell
0c007eefb5 switch to npm-package-arg from whatever that was 2014-07-01 18:49:45 -07:00
Forrest L Norvell
0689ba249b use --scope to map scope to registry 2014-07-01 18:43:16 -07:00
Forrest L Norvell
7f55057807 first piece of @org/package module specifiers 2014-07-01 18:16:43 -07:00
Bradley Meck
59eb112eec Use core.longpaths on win32 git - fixes #5525 2014-06-27 15:06:53 -07:00
Michael Hayes
b4a0641336 removed duplicate function 2014-06-25 01:51:45 -04:00
Forrest L Norvell
626c3e4a7f use the new URL-based npm-registry-client interface 2014-06-13 12:41:12 -07:00
isaacs
8611af0da4 graceful-fs@3 2014-06-05 23:32:49 -07:00
Forrest L Norvell
ed3abf1aa1 fix #5330 2014-05-23 14:39:42 -07:00
isaacs
6b84f2be50 addLocalTarball: Replace 'once' function 2014-05-15 14:55:53 -07:00
isaacs
8e92a87042 addLocalTarball: minor fixups from review with @domenic 2014-05-15 14:51:32 -07:00
Forrest L Norvell
5ada4c6158 remove unused variables & packages 2014-05-15 14:26:20 -07:00
isaacs
41a035ecb1 addLocalTarball: comment cleanup 2014-05-15 13:39:47 -07:00
isaacs
00888fbb74 getCacheStat: Prevent unnecessary stats with inflight 2014-05-15 00:10:23 -07:00
isaacs
d5fa4d01f7 addLocalTarball: Remove extraneous unpack 2014-05-15 00:10:23 -07:00
isaacs
a14aeb9a7d addPlacedTarball: send package data obj, not name 2014-05-14 22:11:29 -07:00
isaacs
e4f26ef195 addRemoteTarball: swap args to match addLocalTarball 2014-05-14 18:27:02 -07:00
isaacs
cb9c53321a addLocal: Pass pkgData instead of name 2014-05-14 18:10:49 -07:00
isaacs
0404aa49d0 addLocalTarball: Use pkgData instead of name/version 2014-05-14 17:47:43 -07:00
isaacs
1e24837688 addRemoteTarball: Pass data, not name/ver 2014-05-14 17:06:39 -07:00
Forrest L Norvell
79d5e6da65 update docs 2014-05-07 18:00:51 -07:00
Forrest L Norvell
3294bfaf6d remove the 'use strict' and jshint bits 2014-05-07 18:00:51 -07:00
Forrest L Norvell
235002da9d refactor maybe* methods to be more consistent 2014-05-07 18:00:51 -07:00
Forrest L Norvell
ff35ed6b67 reorganize for readability 2014-05-07 18:00:51 -07:00
Forrest L Norvell
83d68b675f devariadify cache.* 2014-05-07 18:00:51 -07:00
Forrest L Norvell
5865427fc7 fix #5178 in refactor branch 2014-05-07 18:00:50 -07:00
Forrest L Norvell
0e5c561cef break inflight management out into a module 2014-05-07 18:00:50 -07:00
Forrest L Norvell
6c49e2680c goodbye variadic "optional" parameters 2014-05-07 18:00:50 -07:00
Forrest L Norvell
355bb7e0f3 refactor add* into separate files 2014-05-07 18:00:50 -07:00
Forrest L Norvell
cc8dd4e632 split out cache locking into separate file 2014-05-07 17:37:11 -07:00