Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/archiver

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/archiver - npm Package Compare versions

Comparing version 1.3.4 to 2.0.0

52

archiver/index.d.ts

@@ -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>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc