@types/tar 6.1.4 → 6.1.5

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 +9 -9
  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, 09 May 2023 22:02:56 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
@@ -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.
@@ -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.
tar/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/tar",
3
- "version": "6.1.4",
3
+ "version": "6.1.5",
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": "e0e9c306b0a501a7d753543d5a95ddc55bef6a6be7f2423a03ba6f5de5adaf26",
32
+ "typeScriptVersion": "4.3"
33
33
  }