@types/tar 6.1.4 → 6.1.6

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 (3) hide show
  1. tar/README.md +1 -1
  2. tar/index.d.ts +31 -28
  3. tar/package.json +3 -3
tar/README.md CHANGED
@@ -8,7 +8,7 @@ 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: Thu, 16 Feb 2023 06:02:34 GMT
11
+ * Last updated: Tue, 12 Sep 2023 12:34:30 GMT
12
12
  * Dependencies: [@types/minipass](https://npmjs.com/package/@types/minipass), [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
tar/index.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
 
7
7
  /// <reference types="node" />
8
8
 
9
- import stream = require('stream');
10
- import zlib = require('zlib');
11
- import MiniPass = require('minipass');
9
+ import stream = require("stream");
10
+ import zlib = require("zlib");
11
+ import MiniPass = require("minipass");
12
12
 
13
13
  // #region Interfaces
14
14
 
@@ -101,8 +101,8 @@ export const fieldEnds: number[];
101
101
  */
102
102
  export const types: {
103
103
  0: string;
104
- '\0': string;
105
- '': string;
104
+ "\0": string;
105
+ "": string;
106
106
  1: string;
107
107
  2: string;
108
108
  3: string;
@@ -207,16 +207,16 @@ export interface ParseOptions {
207
207
  * 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
208
  */
209
209
  export interface Parse extends ParseStream {
210
- on(event: 'end' | 'close', listener: () => void): this;
211
- on(event: 'entry', listener: (entry: ReadEntry) => void): this;
210
+ on(event: "end" | "close", listener: () => void): this;
211
+ on(event: "entry", listener: (entry: ReadEntry) => void): this;
212
212
  }
213
213
 
214
214
  export const Parse: {
215
- new (opt?: ParseOptions): Parse;
215
+ new(opt?: ParseOptions): Parse;
216
216
  };
217
- //#endregion
217
+ // #endregion
218
218
 
219
- //#region Global Methods
219
+ // #region Global Methods
220
220
 
221
221
  export interface PackOptions {
222
222
  /**
@@ -321,9 +321,9 @@ export interface PackOptions {
321
321
  * The optional properties object are used to set properties in the tar 'Global Extended Header'.
322
322
  */
323
323
  export class Pack extends MiniPass {
324
- linkCache: PackOptions['linkCache'];
325
- readdirCache: PackOptions['readdirCache'];
326
- statCache: PackOptions['statCache'];
324
+ linkCache: PackOptions["linkCache"];
325
+ readdirCache: PackOptions["readdirCache"];
326
+ statCache: PackOptions["statCache"];
327
327
 
328
328
  static Sync: typeof PackSync;
329
329
 
@@ -396,10 +396,10 @@ export interface ReadEntry extends MiniPass, HeaderProperties {
396
396
 
397
397
  export interface CreateOptions {
398
398
  /**
399
- * A function that will get called with (message, data)
400
- * for any warnings encountered.
399
+ * A function that will get called with (code, message, data) for any
400
+ * warnings encountered. (See "Warnings and Errors")
401
401
  */
402
- onwarn?(message: string, data: Buffer): void;
402
+ onwarn?(code: string, message: string, data: Buffer): void;
403
403
 
404
404
  /**
405
405
  * Treat warnings as crash-worthy errors. Default false.
@@ -491,10 +491,10 @@ export interface CreateOptions {
491
491
 
492
492
  export interface ExtractOptions {
493
493
  /**
494
- * A function that will get called with (message, data)
495
- * for any warnings encountered.
494
+ * A function that will get called with (code, message, data) for any
495
+ * warnings encountered. (See "Warnings and Errors")
496
496
  */
497
- onwarn?(message: string, data: Buffer): void;
497
+ onwarn?(code: string, message: string, data: Buffer): void;
498
498
 
499
499
  /**
500
500
  * Treat warnings as crash-worthy errors. Default false.
@@ -527,12 +527,12 @@ export interface ExtractOptions {
527
527
  /**
528
528
  * Alias for newer.
529
529
  */
530
- 'keep-newer'?: boolean | undefined;
530
+ "keep-newer"?: boolean | undefined;
531
531
 
532
532
  /**
533
533
  * Alias for newer.
534
534
  */
535
- 'keep-newer-files'?: boolean | undefined;
535
+ "keep-newer-files"?: boolean | undefined;
536
536
 
537
537
  /**
538
538
  * Do not overwrite existing files. In particular, if a file appears more
@@ -548,7 +548,7 @@ export interface ExtractOptions {
548
548
  /**
549
549
  * Alias for keep.
550
550
  */
551
- 'keep-existing'?: boolean | undefined;
551
+ "keep-existing"?: boolean | undefined;
552
552
 
553
553
  /**
554
554
  * Unlink files before creating them. Without this option, tar overwrites
@@ -568,7 +568,7 @@ export interface ExtractOptions {
568
568
  /**
569
569
  * Alias for strip.
570
570
  */
571
- 'strip-components'?: number | undefined;
571
+ "strip-components"?: number | undefined;
572
572
 
573
573
  /**
574
574
  * Alias for strip.
@@ -613,7 +613,7 @@ export interface ExtractOptions {
613
613
  */
614
614
  noMtime?: boolean | undefined;
615
615
  m?: boolean | undefined;
616
- 'no-mtime'?: boolean | undefined;
616
+ "no-mtime"?: boolean | undefined;
617
617
 
618
618
  /**
619
619
  * Provide a function that takes an entry object, and returns a stream,
@@ -709,10 +709,10 @@ export interface ReplaceOptions {
709
709
  sync?: boolean | undefined;
710
710
 
711
711
  /**
712
- * A function that will get called with (message, data)
713
- * for any warnings encountered.
712
+ * A function that will get called with (code, message, data) for any
713
+ * warnings encountered. (See "Warnings and Errors")
714
714
  */
715
- onwarn?(message: string, data: Buffer): void;
715
+ onwarn?(code: string, message: string, data: Buffer): void;
716
716
 
717
717
  /**
718
718
  * Treat warnings as crash-worthy errors. Default false.
@@ -891,7 +891,10 @@ export const x: typeof extract;
891
891
  * it.
892
892
  */
893
893
  export function list(options: ListOptions & RequiredFileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
894
- export function list(options: ListOptions & RequiredFileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void;
894
+ export function list(
895
+ options: ListOptions & RequiredFileOptions & { sync: true },
896
+ fileList?: ReadonlyArray<string>,
897
+ ): void;
895
898
  export function list(callback?: (err?: Error) => void): Parse;
896
899
  export function list(optionsOrFileList: ListOptions | ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
897
900
  export function list(options: ListOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
tar/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/tar",
3
- "version": "6.1.4",
3
+ "version": "6.1.6",
4
4
  "description": "TypeScript definitions for tar",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar",
6
6
  "license": "MIT",
@@ -28,6 +28,6 @@
28
28
  "@types/node": "*",
29
29
  "minipass": "^4.0.0"
30
30
  },
31
- "typesPublisherContentHash": "e903d71c2ec53ea8e04cbb1125f7386388c26c9152c68db383d78496fa362b97",
32
- "typeScriptVersion": "4.2"
31
+ "typesPublisherContentHash": "4065914f29cd646640ddaebd234ed76cb5ab458fbb475ff60250404bd13f561c",
32
+ "typeScriptVersion": "4.3"
33
33
  }