@types/archiver
Advanced tools
Comparing version 1.3.4 to 2.0.0
@@ -1,20 +0,9 @@ | ||
// Type definitions for archiver 1.3 | ||
// Type definitions for archiver 2.0 | ||
// Project: https://github.com/archiverjs/node-archiver | ||
// Definitions by: Esri <https://github.com/archiverjs/node-archiver>, Dolan Miu <https://github.com/dolanmiu> | ||
// Definitions by: Esri <https://github.com/archiverjs/node-archiver>, Dolan Miu <https://github.com/dolanmiu>, Crevil <https://github.com/crevil> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/* =================== USAGE =================== | ||
import Archiver = require('archiver); | ||
var archiver = Archiver.create('zip'); | ||
archiver.pipe(fs.createWriteStream('xxx')); | ||
archiver.append(fs.createReadStream('xxx')); | ||
archiver.finalize(); | ||
=============================================== */ | ||
/// <reference types="node" /> | ||
import * as stream from 'stream'; | ||
import * as glob from 'glob'; | ||
import { ZlibOptions } from 'zlib'; | ||
@@ -39,4 +28,2 @@ declare function archiver(format: archiver.Format, options?: archiver.ArchiverOptions): archiver.Archiver; | ||
bulk(mappings: any): this; | ||
directory(dirpath: string, options: EntryData | string, data?: EntryData): this; | ||
@@ -46,3 +33,3 @@ | ||
glob(pattern: string, options?: glob.IOptions, data?: EntryData): this; | ||
finalize(): this; | ||
finalize(): Promise<void>; | ||
@@ -54,10 +41,33 @@ setFormat(format: string): this; | ||
use(plugin: Function): this; | ||
symlink(filepath: string, target: string): this; | ||
} | ||
interface ArchiverOptions { | ||
type ArchiverOptions = CoreOptions & TransformOptions & ZipOptions & TarOptions; | ||
interface CoreOptions { | ||
statConcurrency?: number; | ||
} | ||
interface TransformOptions { | ||
allowHalfOpen?: boolean; | ||
readableObjectMode?: boolean; | ||
writeableObjectMode?: boolean; | ||
decodeStrings?: boolean; | ||
encoding?: string; | ||
highWaterMark?: number; | ||
objectmode?: boolean; | ||
} | ||
interface ZipOptions { | ||
comment?: string; | ||
forceLocalTime?: boolean; | ||
forceZip64?: boolean; | ||
store?: boolean; | ||
zlib?: ZlibOptions; | ||
} | ||
interface TarOptions { | ||
gzip?: boolean; | ||
gzipOptions?: { | ||
level: number, | ||
}; | ||
gzipOptions?: ZlibOptions; | ||
} | ||
@@ -64,0 +74,0 @@ } |
{ | ||
"name": "@types/archiver", | ||
"version": "1.3.4", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for archiver", | ||
@@ -14,2 +14,6 @@ "license": "MIT", | ||
"url": "https://github.com/dolanmiu" | ||
}, | ||
{ | ||
"name": "Crevil", | ||
"url": "https://github.com/crevil" | ||
} | ||
@@ -24,8 +28,7 @@ ], | ||
"dependencies": { | ||
"@types/glob": "*", | ||
"@types/node": "*" | ||
"@types/glob": "*" | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "be4e339ebbf92a7275c9538518f7f83b19242026fde91a3587ad865cb179dc6a", | ||
"typesPublisherContentHash": "d20750ffc19c66270fbcb41b85eab7807bc4a610a90a0dd4b6efc4f81a07ae54", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 07 Jul 2017 17:16:03 GMT | ||
* Dependencies: stream, glob, node | ||
* Last updated: Mon, 17 Jul 2017 19:26:46 GMT | ||
* Dependencies: stream, glob, zlib | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Esri <https://github.com/archiverjs/node-archiver>, Dolan Miu <https://github.com/dolanmiu>. | ||
These definitions were written by Esri <https://github.com/archiverjs/node-archiver>, Dolan Miu <https://github.com/dolanmiu>, Crevil <https://github.com/crevil>. |
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
4797
1
56
- Removed@types/node@*