summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/tar/lib/pack.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/tar/lib/pack.js')
-rw-r--r--deps/npm/node_modules/tar/lib/pack.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/deps/npm/node_modules/tar/lib/pack.js b/deps/npm/node_modules/tar/lib/pack.js
index 8df366e118..09b6ac590b 100644
--- a/deps/npm/node_modules/tar/lib/pack.js
+++ b/deps/npm/node_modules/tar/lib/pack.js
@@ -88,8 +88,6 @@ const Pack = warner(class Pack extends MiniPass {
this.portable = !!opt.portable
this.noDirRecurse = !!opt.noDirRecurse
this.follow = !!opt.follow
- this.noMtime = !!opt.noMtime
- this.mtime = opt.mtime || null
this.filter = typeof opt.filter === 'function' ? opt.filter : _ => true
@@ -293,18 +291,17 @@ const Pack = warner(class Pack extends MiniPass {
strict: this.strict,
portable: this.portable,
linkCache: this.linkCache,
- statCache: this.statCache,
- noMtime: this.noMtime,
- mtime: this.mtime
+ statCache: this.statCache
}
}
[ENTRY] (job) {
this[JOBS] += 1
try {
- return new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job))
- .on('end', () => this[JOBDONE](job))
- .on('error', er => this.emit('error', er))
+ return new this[WRITEENTRYCLASS](
+ job.path, this[ENTRYOPT](job)).on('end', _ => {
+ this[JOBDONE](job)
+ }).on('error', er => this.emit('error', er))
} catch (er) {
this.emit('error', er)
}
@@ -381,6 +378,7 @@ class PackSync extends Pack {
job.path.slice(this.prefix.length + 1) || './'
: job.path
+
const base = p === './' ? '' : p.replace(/\/*$/, '/')
this[ADDFSENTRY](base + entry)
})