@types/archiver
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -24,2 +24,5 @@ // Type definitions for archiver 2.0 | ||
/** 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; | ||
interface Archiver extends stream.Transform { | ||
@@ -29,4 +32,4 @@ abort(): this; | ||
directory(dirpath: string, options: EntryData | string, data?: EntryData): this; | ||
/** if false is passed for destpath, the path of a chunk of data in the archive is set to the root */ | ||
directory(dirpath: string, destpath: false | string, data?: EntryData | EntryDataFunction): this; | ||
file(filename: string, data: EntryData): this; | ||
@@ -33,0 +36,0 @@ glob(pattern: string, options?: glob.IOptions, data?: EntryData): this; |
{ | ||
"name": "@types/archiver", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "TypeScript definitions for archiver", | ||
@@ -13,7 +13,9 @@ "license": "MIT", | ||
"name": "Dolan Miu", | ||
"url": "https://github.com/dolanmiu" | ||
"url": "https://github.com/dolanmiu", | ||
"githubUsername": "dolanmiu" | ||
}, | ||
{ | ||
"name": "Crevil", | ||
"url": "https://github.com/crevil" | ||
"url": "https://github.com/crevil", | ||
"githubUsername": "crevil" | ||
} | ||
@@ -30,5 +32,4 @@ ], | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d20750ffc19c66270fbcb41b85eab7807bc4a610a90a0dd4b6efc4f81a07ae54", | ||
"typesPublisherContentHash": "dde54db3b7b027add5b9af021dab5316e7e2bfc54cee63cffe5d53c9983ae02f", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 17 Jul 2017 19:26:46 GMT | ||
* Last updated: Wed, 11 Oct 2017 23:00:43 GMT | ||
* Dependencies: stream, glob, zlib | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
5318
59