Adam Stankiewicz
53eeca97d3
Use eslint instead jscs
2016-03-31 00:27:17 +02:00
Iain Monro
b1ba9be7f6
Fix name clashes in package extraction
...
Prevent extraction failing if a package archive contains a file with
the same name as the archive, or a single directory with a subdirectory
with the same name.
2015-12-14 16:58:02 +00:00
Adam Stankiewicz
0bb1536c99
Better manage file handles, properly close streams
2015-10-14 19:31:53 +02:00
Adam Stankiewicz
df8e5a16be
Fix readdir call on Windows
...
Sometimes it return ENOENT instead of ENODIR for normal files.
This broke code paths in few places. Also, see:
https://github.com/isaacs/chmodr/pull/8
2015-10-14 16:09:38 +02:00
Adam Stankiewicz
c00cadb37a
[fix] Ensure extracted files are readable, update tar-fs
2014-09-28 18:21:24 +02:00
Burak Yigit Kaya
623f6e9542
Use tar-fs instead of tar for faster TAR extraction
2014-09-07 19:29:37 +02:00
MadLux
794744d5a3
Added .zip MIME type (e.g. the default served by Windows/IIS)
2014-07-30 11:41:21 +02:00
Mat Scales
d3991ee672
Close GH-900: Merge all the decompress-zip work and add small improvements. Fixes #873 , Fixes #896
2013-10-07 00:29:29 +01:00
André Cruz
cc9c440614
Give priority to mime type header, except for octet-stream.
2013-09-29 22:50:06 +01:00
André Cruz
f332de8ba9
Do not follow symlinks, closes #730 .
2013-08-07 01:50:49 +01:00
André Cruz
212c4c3a71
Close GH-667: Filter symlinks when copying/extracting. Fixes #665
2013-07-29 22:00:37 +01:00
André Cruz
adee5cec2b
Improve can extract function.
2013-07-24 09:12:20 +01:00
André Cruz
e94cb6a4b6
Use the filename first, fallback to mime type afterwards, fixes #619 .
2013-07-15 19:50:02 +01:00
André Cruz
ef60fcb9ec
Check archive size before extracting, caught invalid archives.
2013-07-09 20:41:54 +01:00
André Cruz
fe1a635c14
Switch to graceful-fs.
2013-07-01 20:31:28 +01:00
André Cruz
f9f8f7aebd
Implement link command.
...
Also:
- CS fixes
- Remove options argument from commands that do not have them
- Use console.trace instead of err.stack (more reliable)
2013-06-24 23:19:59 +01:00
André Cruz
4c3802878a
Another huge commit.
...
- Add info command
- Fix list --paths
- Fix search with no name
- Fix conflict detection when uninstalling
- Mix tweaks and fixes
2013-06-23 01:14:08 +01:00
André Cruz
e811236973
Print only the stack trace when verbose or the error has no code (usually something strange).
2013-06-02 11:49:01 +01:00
André Cruz
e09a3b8cbf
Huge commit, implement rough working version of the whole resolve process.
2013-05-13 11:09:04 +01:00
Sindre Sorhus
083cb9cc9a
Replace util/osJunk with junk module
2013-05-05 01:53:42 +02:00
André Cruz
0682df3801
Merge branch 'rewrite' of github.com:bower/bower into rewrite
...
Also improve codebase.
Conflicts:
lib/resolve/resolverFactory.js
lib/util/copy.js
test/resolve/resolverFactory.js
2013-05-04 16:54:22 +01:00
André Cruz
e5c4391900
Fix some bugs.
2013-05-04 16:32:31 +01:00
Nicolas Gallagher
de0eca7890
Code style consistency
...
Some very minor changes to improve code style consistency.
2013-05-03 09:01:19 -07:00
André Cruz
007b3644be
Finish UrlResolver tests, fix some bugs.
2013-05-02 11:14:23 +01:00
André Cruz
96f2e150a1
Oops.
2013-05-01 11:58:47 +01:00
André Cruz
a38af3a31c
Do not take OS junk files into account when counting files.
2013-05-01 11:57:06 +01:00
André Cruz
3a93600195
Implement renaming to index in the FsResolver, fix minor issues.
2013-04-30 19:22:47 +01:00
André Cruz
2530c577dc
Fix some bugs when extracting archives, add some tests.
2013-04-29 17:09:54 +01:00
André Cruz
9ead37845e
Fix some issues with the extraction step.
2013-04-29 16:06:48 +01:00
André Cruz
bff9141a4f
Oops.
2013-04-29 15:25:25 +01:00
André Cruz
f11b2f6782
Walk towards finishing FsResolver.
2013-04-29 15:21:33 +01:00