@types/archiver
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -27,5 +27,22 @@ // Type definitions for archiver 2.1 | ||
interface ProgressData { | ||
entries: { | ||
total: number; | ||
processed: number; | ||
}; | ||
fs: { | ||
totalBytes: number; | ||
processedBytes: number; | ||
}; | ||
} | ||
/** A function that lets you either opt out of including an entry (by returning false), or modify the contents of an entry as it is added (by returning an EntryData) */ | ||
type EntryDataFunction = (entry: EntryData) => false | EntryData; | ||
class ArchiverError extends Error { | ||
code: string; // Since archiver format support is modular, we cannot enumerate all possible error codes, as the modules can throw arbitrary ones. | ||
data: any; | ||
constructor(code: string, data: any); | ||
} | ||
interface Archiver extends stream.Transform { | ||
@@ -48,2 +65,9 @@ abort(): this; | ||
symlink(filepath: string, target: string): this; | ||
on(event: 'error' | 'warning', listener: (error: ArchiverError) => void): this; | ||
on(event: 'data', listener: (data: EntryData) => void): this; | ||
on(event: 'progress', listener: (progress: ProgressData) => void): this; | ||
on(event: 'close' | 'drain' | 'finish', listener: () => void): this; | ||
on(event: 'pipe' | 'unpipe', listener: (src: stream.Readable) => void): this; | ||
on(event: string, listener: (...args: any[]) => void): this; | ||
} | ||
@@ -50,0 +74,0 @@ |
{ | ||
"name": "@types/archiver", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "TypeScript definitions for archiver", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
@@ -32,4 +32,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "5de8d6ba9583125753214d33ba08449e46b0542e51a0f6efae49a805876b60b2", | ||
"typesPublisherContentHash": "05f66fc4d7ff85eef9545b6bb8389f87e32dd0eee657c5afdbc076243fb8bca3", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/archiver | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/archiver | ||
Additional Details | ||
* Last updated: Tue, 27 Mar 2018 18:51:52 GMT | ||
* Last updated: Sat, 30 Jun 2018 02:47:51 GMT | ||
* Dependencies: fs, stream, glob, zlib | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
6250
83