@types/tar 6.1.12 → 6.1.13

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 +27 -15
  3. tar/package.json +2 -2
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: Wed, 03 Apr 2024 22:35:26 GMT
11
+ * Last updated: Thu, 18 Apr 2024 00:23:15 GMT
12
12
  * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [minipass](https://npmjs.com/package/minipass)
13
13
 
14
14
  # Credits
tar/index.d.ts CHANGED
@@ -482,6 +482,19 @@ export interface CreateOptions {
482
482
  */
483
483
  noPax?: boolean | undefined;
484
484
 
485
+ /**
486
+ * Set to true to omit writing mtime values for entries. Note that this prevents using other mtime-based features
487
+ * like `tar.update` or the `keepNewer` option with the resulting tar archive. [Alias: m, no-mtime]
488
+ */
489
+ noMtime?: boolean | undefined;
490
+ m?: boolean | undefined;
491
+ "no-mtime"?: boolean | undefined;
492
+
493
+ /**
494
+ * Set to a Date object to force a specific mtime for everything added to the archive. Overridden by noMtime.
495
+ */
496
+ mtime?: Date;
497
+
485
498
  /**
486
499
  * A path portion to prefix onto the entries in the archive.
487
500
  */
@@ -805,17 +818,19 @@ export interface FileOptions {
805
818
  f?: string | undefined;
806
819
  }
807
820
 
808
- export type RequiredFileOptions = {
809
- /**
810
- * Uses the given file as the input or output of this function.
811
- */
812
- file: string;
813
- } | {
814
- /**
815
- * Alias for file.
816
- */
817
- f: string;
818
- };
821
+ export type RequiredFileOptions =
822
+ | {
823
+ /**
824
+ * Uses the given file as the input or output of this function.
825
+ */
826
+ file: string;
827
+ }
828
+ | {
829
+ /**
830
+ * Alias for file.
831
+ */
832
+ f: string;
833
+ };
819
834
 
820
835
  /**
821
836
  * Create a tarball archive. The fileList is an array of paths to add to the
@@ -898,10 +913,7 @@ export const x: typeof extract;
898
913
  * it.
899
914
  */
900
915
  export function list(options: ListOptions & RequiredFileOptions, fileList?: readonly string[]): Promise<void>;
901
- export function list(
902
- options: ListOptions & RequiredFileOptions & { sync: true },
903
- fileList?: readonly string[],
904
- ): void;
916
+ export function list(options: ListOptions & RequiredFileOptions & { sync: true }, fileList?: readonly string[]): void;
905
917
  export function list(callback?: (err?: Error) => void): Parse;
906
918
  export function list(optionsOrFileList: ListOptions | readonly string[], callback?: (err?: Error) => void): Parse;
907
919
  export function list(options: ListOptions, fileList: readonly 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.12",
3
+ "version": "6.1.13",
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": "12af6944cac285eaefd8363264b57fc47d3060b01086375fcca3a960b5c7ba48",
31
+ "typesPublisherContentHash": "21bfcbacede4f9d98d455e762fb5bf22078fee340a2b25bd1241d7a9f8c44784",
32
32
  "typeScriptVersion": "4.7"
33
33
  }