@parcel/utils 2.6.0 → 2.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/utils",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@parcel/codeframe": "2.6.0",
37
- "@parcel/diagnostic": "2.6.0",
38
- "@parcel/hash": "2.6.0",
39
- "@parcel/logger": "2.6.0",
40
- "@parcel/markdown-ansi": "2.6.0",
36
+ "@parcel/codeframe": "2.6.1",
37
+ "@parcel/diagnostic": "2.6.1",
38
+ "@parcel/hash": "2.6.1",
39
+ "@parcel/logger": "2.6.1",
40
+ "@parcel/markdown-ansi": "2.6.1",
41
41
  "@parcel/source-map": "^2.0.0",
42
42
  "chalk": "^4.1.0"
43
43
  },
@@ -63,5 +63,5 @@
63
63
  "./src/http-server.js": false,
64
64
  "./src/openInBrowser.js": false
65
65
  },
66
- "gitHead": "f2d0a3a27d6e493b23ddc2edbc8a4c0053ff34ab"
66
+ "gitHead": "b8b203da8302dfde6d875422c8c557a00b7d3c02"
67
67
  }
@@ -1,7 +1,15 @@
1
1
  // @flow strict-local
2
2
 
3
- import type {Server as HTTPOnlyServer} from 'http';
4
- import type {Server as HTTPSServer} from 'https';
3
+ import type {
4
+ Server as HTTPOnlyServer,
5
+ IncomingMessage as HTTPRequest,
6
+ ServerResponse as HTTPResponse,
7
+ } from 'http';
8
+ import type {
9
+ Server as HTTPSServer,
10
+ IncomingMessage as HTTPSRequest,
11
+ ServerResponse as HTTPSResponse,
12
+ } from 'https';
5
13
  import type {Socket} from 'net';
6
14
  import type {FilePath, HTTPSOptions} from '@parcel/types';
7
15
  import type {FileSystem} from '@parcel/fs';
@@ -12,12 +20,16 @@ import nullthrows from 'nullthrows';
12
20
  import {getCertificate, generateCertificate} from './';
13
21
 
14
22
  type CreateHTTPServerOpts = {|
15
- https: ?(HTTPSOptions | boolean),
16
- inputFS: FileSystem,
17
- outputFS: FileSystem,
18
- cacheDir: FilePath,
19
- listener?: (mixed, mixed) => void,
23
+ listener?: (HTTPRequest | HTTPSRequest, HTTPResponse | HTTPSResponse) => void,
20
24
  host?: string,
25
+ ...
26
+ | {|
27
+ https: ?(HTTPSOptions | boolean),
28
+ inputFS: FileSystem,
29
+ outputFS: FileSystem,
30
+ cacheDir: FilePath,
31
+ |}
32
+ | {||},
21
33
  |};
22
34
 
23
35
  export type HTTPServer = HTTPOnlyServer | HTTPSServer;