Comparing version 7.4.2 to 7.4.3
@@ -371,2 +371,3 @@ "use strict"; | ||
prefix: this.prefix, | ||
onWriteEntry: this.onWriteEntry, | ||
}; | ||
@@ -378,3 +379,2 @@ } | ||
const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job)); | ||
this.onWriteEntry?.(e); | ||
return e | ||
@@ -381,0 +381,0 @@ .on('end', () => this[JOBDONE](job)) |
@@ -59,2 +59,3 @@ /// <reference types="node" /> | ||
stat?: Stats; | ||
onWriteEntry?: (entry: WriteEntry) => any; | ||
constructor(p: string, opt_?: TarOptionsWithAliases); | ||
@@ -120,2 +121,3 @@ warn(code: string, message: string | Error, data?: WarnData): void; | ||
size: number; | ||
onWriteEntry?: (entry: WriteEntry) => any; | ||
warn(code: string, message: string | Error, data?: WarnData): void; | ||
@@ -122,0 +124,0 @@ constructor(readEntry: ReadEntry, opt_?: TarOptionsWithAliases); |
@@ -98,3 +98,3 @@ "use strict"; | ||
stat; | ||
/* c8 ignore start */ | ||
onWriteEntry; | ||
#hadError = false; | ||
@@ -118,2 +118,3 @@ constructor(p, opt_ = {}) { | ||
opt.prefix ? (0, normalize_windows_path_js_1.normalizeWindowsPath)(opt.prefix) : undefined; | ||
this.onWriteEntry = opt.onWriteEntry; | ||
if (typeof opt.onwarn === 'function') { | ||
@@ -210,2 +211,3 @@ this.on('warn', opt.onwarn); | ||
} | ||
this.onWriteEntry?.(this); | ||
this.header = new header_js_1.Header({ | ||
@@ -532,2 +534,3 @@ path: this[PREFIX](this.path), | ||
size; | ||
onWriteEntry; | ||
warn(code, message, data = {}) { | ||
@@ -544,2 +547,3 @@ return (0, warn_method_js_1.warnMethod)(this, code, message, data); | ||
this.noMtime = !!opt.noMtime; | ||
this.onWriteEntry = opt.onWriteEntry; | ||
this.readEntry = readEntry; | ||
@@ -588,2 +592,3 @@ const { type } = readEntry; | ||
this.blockRemain = readEntry.startBlockSize; | ||
this.onWriteEntry?.(this); | ||
this.header = new header_js_1.Header({ | ||
@@ -590,0 +595,0 @@ path: this[PREFIX](this.path), |
@@ -341,2 +341,3 @@ // A readable tar stream creator | ||
prefix: this.prefix, | ||
onWriteEntry: this.onWriteEntry, | ||
}; | ||
@@ -348,3 +349,2 @@ } | ||
const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job)); | ||
this.onWriteEntry?.(e); | ||
return e | ||
@@ -351,0 +351,0 @@ .on('end', () => this[JOBDONE](job)) |
@@ -59,2 +59,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
stat?: Stats; | ||
onWriteEntry?: (entry: WriteEntry) => any; | ||
constructor(p: string, opt_?: TarOptionsWithAliases); | ||
@@ -120,2 +121,3 @@ warn(code: string, message: string | Error, data?: WarnData): void; | ||
size: number; | ||
onWriteEntry?: (entry: WriteEntry) => any; | ||
warn(code: string, message: string | Error, data?: WarnData): void; | ||
@@ -122,0 +124,0 @@ constructor(readEntry: ReadEntry, opt_?: TarOptionsWithAliases); |
@@ -69,3 +69,3 @@ import fs from 'fs'; | ||
stat; | ||
/* c8 ignore start */ | ||
onWriteEntry; | ||
#hadError = false; | ||
@@ -89,2 +89,3 @@ constructor(p, opt_ = {}) { | ||
opt.prefix ? normalizeWindowsPath(opt.prefix) : undefined; | ||
this.onWriteEntry = opt.onWriteEntry; | ||
if (typeof opt.onwarn === 'function') { | ||
@@ -181,2 +182,3 @@ this.on('warn', opt.onwarn); | ||
} | ||
this.onWriteEntry?.(this); | ||
this.header = new Header({ | ||
@@ -501,2 +503,3 @@ path: this[PREFIX](this.path), | ||
size; | ||
onWriteEntry; | ||
warn(code, message, data = {}) { | ||
@@ -513,2 +516,3 @@ return warnMethod(this, code, message, data); | ||
this.noMtime = !!opt.noMtime; | ||
this.onWriteEntry = opt.onWriteEntry; | ||
this.readEntry = readEntry; | ||
@@ -557,2 +561,3 @@ const { type } = readEntry; | ||
this.blockRemain = readEntry.startBlockSize; | ||
this.onWriteEntry?.(this); | ||
this.header = new Header({ | ||
@@ -559,0 +564,0 @@ path: this[PREFIX](this.path), |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "7.4.2", | ||
"version": "7.4.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
1239499
11792