@types/tar 6.1.5 → 6.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. tar/LICENSE +0 -0
  2. tar/README.md +2 -3
  3. tar/index.d.ts +22 -25
  4. tar/package.json +7 -7
tar/LICENSE CHANGED
File without changes
tar/README.md CHANGED
@@ -8,9 +8,8 @@ This package contains type definitions for tar (https://github.com/npm/node-tar)
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 09 May 2023 22:02:56 GMT
12
- * Dependencies: [@types/minipass](https://npmjs.com/package/@types/minipass), [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
11
+ * Last updated: Wed, 18 Oct 2023 11:45:06 GMT
12
+ * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [minipass](https://npmjs.com/package/minipass)
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), and [Connor Peet](https://github.com/connor4312).
tar/index.d.ts CHANGED
@@ -1,14 +1,8 @@
1
- // Type definitions for tar 6.1
2
- // Project: https://github.com/npm/node-tar
3
- // Definitions by: Maxime LUCE <https://github.com/SomaticIT>, Connor Peet <https://github.com/connor4312>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- // TODO: When/if typings for [fstream](https://github.com/npm/fstream) are written, refactor this typing to use it for the various streams.
6
-
7
1
  /// <reference types="node" />
8
2
 
9
- import stream = require('stream');
10
- import zlib = require('zlib');
11
- import MiniPass = require('minipass');
3
+ import stream = require("stream");
4
+ import zlib = require("zlib");
5
+ import MiniPass = require("minipass");
12
6
 
13
7
  // #region Interfaces
14
8
 
@@ -101,8 +95,8 @@ export const fieldEnds: number[];
101
95
  */
102
96
  export const types: {
103
97
  0: string;
104
- '\0': string;
105
- '': string;
98
+ "\0": string;
99
+ "": string;
106
100
  1: string;
107
101
  2: string;
108
102
  3: string;
@@ -207,16 +201,16 @@ export interface ParseOptions {
207
201
  * A writable stream. Write tar data to it and it will emit entry events for each entry parsed from the tarball. This is used by tar.Extract.
208
202
  */
209
203
  export interface Parse extends ParseStream {
210
- on(event: 'end' | 'close', listener: () => void): this;
211
- on(event: 'entry', listener: (entry: ReadEntry) => void): this;
204
+ on(event: "end" | "close", listener: () => void): this;
205
+ on(event: "entry", listener: (entry: ReadEntry) => void): this;
212
206
  }
213
207
 
214
208
  export const Parse: {
215
- new (opt?: ParseOptions): Parse;
209
+ new(opt?: ParseOptions): Parse;
216
210
  };
217
- //#endregion
211
+ // #endregion
218
212
 
219
- //#region Global Methods
213
+ // #region Global Methods
220
214
 
221
215
  export interface PackOptions {
222
216
  /**
@@ -321,9 +315,9 @@ export interface PackOptions {
321
315
  * The optional properties object are used to set properties in the tar 'Global Extended Header'.
322
316
  */
323
317
  export class Pack extends MiniPass {
324
- linkCache: PackOptions['linkCache'];
325
- readdirCache: PackOptions['readdirCache'];
326
- statCache: PackOptions['statCache'];
318
+ linkCache: PackOptions["linkCache"];
319
+ readdirCache: PackOptions["readdirCache"];
320
+ statCache: PackOptions["statCache"];
327
321
 
328
322
  static Sync: typeof PackSync;
329
323
 
@@ -527,12 +521,12 @@ export interface ExtractOptions {
527
521
  /**
528
522
  * Alias for newer.
529
523
  */
530
- 'keep-newer'?: boolean | undefined;
524
+ "keep-newer"?: boolean | undefined;
531
525
 
532
526
  /**
533
527
  * Alias for newer.
534
528
  */
535
- 'keep-newer-files'?: boolean | undefined;
529
+ "keep-newer-files"?: boolean | undefined;
536
530
 
537
531
  /**
538
532
  * Do not overwrite existing files. In particular, if a file appears more
@@ -548,7 +542,7 @@ export interface ExtractOptions {
548
542
  /**
549
543
  * Alias for keep.
550
544
  */
551
- 'keep-existing'?: boolean | undefined;
545
+ "keep-existing"?: boolean | undefined;
552
546
 
553
547
  /**
554
548
  * Unlink files before creating them. Without this option, tar overwrites
@@ -568,7 +562,7 @@ export interface ExtractOptions {
568
562
  /**
569
563
  * Alias for strip.
570
564
  */
571
- 'strip-components'?: number | undefined;
565
+ "strip-components"?: number | undefined;
572
566
 
573
567
  /**
574
568
  * Alias for strip.
@@ -613,7 +607,7 @@ export interface ExtractOptions {
613
607
  */
614
608
  noMtime?: boolean | undefined;
615
609
  m?: boolean | undefined;
616
- 'no-mtime'?: boolean | undefined;
610
+ "no-mtime"?: boolean | undefined;
617
611
 
618
612
  /**
619
613
  * Provide a function that takes an entry object, and returns a stream,
@@ -891,7 +885,10 @@ export const x: typeof extract;
891
885
  * it.
892
886
  */
893
887
  export function list(options: ListOptions & RequiredFileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
894
- export function list(options: ListOptions & RequiredFileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void;
888
+ export function list(
889
+ options: ListOptions & RequiredFileOptions & { sync: true },
890
+ fileList?: ReadonlyArray<string>,
891
+ ): void;
895
892
  export function list(callback?: (err?: Error) => void): Parse;
896
893
  export function list(optionsOrFileList: ListOptions | ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
897
894
  export function list(options: ListOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
tar/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@types/tar",
3
- "version": "6.1.5",
3
+ "version": "6.1.7",
4
4
  "description": "TypeScript definitions for tar",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "Maxime LUCE",
10
- "url": "https://github.com/SomaticIT",
11
- "githubUsername": "SomaticIT"
10
+ "githubUsername": "SomaticIT",
11
+ "url": "https://github.com/SomaticIT"
12
12
  },
13
13
  {
14
14
  "name": "Connor Peet",
15
- "url": "https://github.com/connor4312",
16
- "githubUsername": "connor4312"
15
+ "githubUsername": "connor4312",
16
+ "url": "https://github.com/connor4312"
17
17
  }
18
18
  ],
19
19
  "main": "",
@@ -28,6 +28,6 @@
28
28
  "@types/node": "*",
29
29
  "minipass": "^4.0.0"
30
30
  },
31
- "typesPublisherContentHash": "e0e9c306b0a501a7d753543d5a95ddc55bef6a6be7f2423a03ba6f5de5adaf26",
32
- "typeScriptVersion": "4.3"
31
+ "typesPublisherContentHash": "622fa856702b962bf64cc49a8a80919a93a24c27b13b44655a8d3a6b9f5de6df",
32
+ "typeScriptVersion": "4.5"
33
33
  }