@parcel/types-internal 2.13.4-canary.3387 → 2.13.4-canary.3389

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.
package/lib/index.d.ts CHANGED
@@ -1432,6 +1432,16 @@ export interface PackagedBundle extends NamedBundle {
1432
1432
 
1433
1433
  /** Statistics about the bundle. */
1434
1434
  readonly stats: Stats;
1435
+
1436
+ /** A list of all of the files written for this bundle. */
1437
+ readonly files: Array<PackagedBundleFile>;
1438
+ }
1439
+ export interface PackagedBundleFile {
1440
+ /** The absolute file path of the written file, including the final content hash if any. */
1441
+ readonly filePath: FilePath;
1442
+
1443
+ /** Statistics about the file. */
1444
+ readonly stats: Stats;
1435
1445
  }
1436
1446
 
1437
1447
  /**
@@ -1796,7 +1806,7 @@ export type Packager<ConfigType, BundleConfigType> = {
1796
1806
  contents: Blob;
1797
1807
  }>;
1798
1808
  getSourceMapReference: (map: SourceMap | null | undefined) => Async<string | null | undefined>;
1799
- }): Async<BundleResult>;
1809
+ }): Async<BundleResult | BundleResult[]>;
1800
1810
  };
1801
1811
 
1802
1812
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/types-internal",
3
- "version": "2.13.4-canary.3387+8a15d0c64",
3
+ "version": "2.13.4-canary.3389+3d91d155a",
4
4
  "license": "MIT",
5
5
  "main": "src/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -16,10 +16,10 @@
16
16
  "check-ts": "tsc --noEmit lib/index.d.ts"
17
17
  },
18
18
  "dependencies": {
19
- "@parcel/diagnostic": "2.0.0-canary.1764+8a15d0c64",
20
- "@parcel/feature-flags": "2.13.4-canary.3387+8a15d0c64",
19
+ "@parcel/diagnostic": "2.0.0-canary.1766+3d91d155a",
20
+ "@parcel/feature-flags": "2.13.4-canary.3389+3d91d155a",
21
21
  "@parcel/source-map": "^2.1.1",
22
22
  "utility-types": "^3.10.0"
23
23
  },
24
- "gitHead": "8a15d0c64fc95a151bcf8b3f0428acc4cda745ee"
24
+ "gitHead": "3d91d155a53e5195a6bc0e4f02c9c916ac2357e4"
25
25
  }
package/src/index.js CHANGED
@@ -1448,6 +1448,15 @@ export interface PackagedBundle extends NamedBundle {
1448
1448
  +filePath: FilePath;
1449
1449
  /** Statistics about the bundle. */
1450
1450
  +stats: Stats;
1451
+ /** A list of all of the files written for this bundle. */
1452
+ +files: Array<PackagedBundleFile>;
1453
+ }
1454
+
1455
+ export interface PackagedBundleFile {
1456
+ /** The absolute file path of the written file, including the final content hash if any. */
1457
+ +filePath: FilePath;
1458
+ /** Statistics about the file. */
1459
+ +stats: Stats;
1451
1460
  }
1452
1461
 
1453
1462
  /**
@@ -1781,7 +1790,7 @@ export type Packager<ConfigType, BundleConfigType> = {|
1781
1790
  BundleGraph<NamedBundle>,
1782
1791
  ) => Async<{|contents: Blob|}>,
1783
1792
  getSourceMapReference: (map: ?SourceMap) => Async<?string>,
1784
- |}): Async<BundleResult>,
1793
+ |}): Async<BundleResult | BundleResult[]>,
1785
1794
  |};
1786
1795
 
1787
1796
  /**