@atlaspack/reporter-dev-server 2.14.21-typescript-08dcc1c9b.0 → 2.14.21-typescript-0c2081aca.0
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/HMRServer.js +4 -0
- package/package.json +6 -7
- package/src/HMRServer.ts +9 -2
package/lib/HMRServer.js
CHANGED
|
@@ -50,6 +50,10 @@ function _utils() {
|
|
|
50
50
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
51
|
// @ts-expect-error TS7016
|
|
52
52
|
|
|
53
|
+
// flow-to-ts helpers
|
|
54
|
+
|
|
55
|
+
// /flow-to-ts helpers
|
|
56
|
+
|
|
53
57
|
const FS_CONCURRENCY = 64;
|
|
54
58
|
const HMR_ENDPOINT = '/__parcel_hmr';
|
|
55
59
|
const BROADCAST_MAX_ASSETS = 10000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/reporter-dev-server",
|
|
3
|
-
"version": "2.14.21-typescript-
|
|
3
|
+
"version": "2.14.21-typescript-0c2081aca.0",
|
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaspack/plugin": "2.14.21-typescript-
|
|
29
|
-
"@atlaspack/types": "2.15.11-typescript-
|
|
30
|
-
"@atlaspack/utils": "2.17.3-typescript-
|
|
28
|
+
"@atlaspack/plugin": "2.14.21-typescript-0c2081aca.0",
|
|
29
|
+
"@atlaspack/types": "2.15.11-typescript-0c2081aca.0",
|
|
30
|
+
"@atlaspack/utils": "2.17.3-typescript-0c2081aca.0",
|
|
31
31
|
"connect": "^3.7.0",
|
|
32
32
|
"ejs": "^3.1.6",
|
|
33
33
|
"fresh": "^0.5.2",
|
|
@@ -39,12 +39,11 @@
|
|
|
39
39
|
"ws": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@atlaspack/babel-preset": "2.14.2-typescript-
|
|
43
|
-
"flow-to-typescript-codemod": "^0.0.1"
|
|
42
|
+
"@atlaspack/babel-preset": "2.14.2-typescript-0c2081aca.0"
|
|
44
43
|
},
|
|
45
44
|
"scripts": {
|
|
46
45
|
"check-ts": "tsc --noEmit"
|
|
47
46
|
},
|
|
48
47
|
"types": "src/ServerReporter.ts",
|
|
49
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0c2081aca1b5696646874aee2f776d43f1dbe894"
|
|
50
49
|
}
|
package/src/HMRServer.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {Flow} from 'flow-to-typescript-codemod';
|
|
2
1
|
import type {
|
|
3
2
|
Asset,
|
|
4
3
|
BundleGraph,
|
|
@@ -31,6 +30,14 @@ import {
|
|
|
31
30
|
PromiseQueue,
|
|
32
31
|
} from '@atlaspack/utils';
|
|
33
32
|
|
|
33
|
+
// flow-to-ts helpers
|
|
34
|
+
export type SetComplement<A, B extends A> = A extends B ? never : A;
|
|
35
|
+
export type Diff<T extends U, U extends object> = Pick<
|
|
36
|
+
T,
|
|
37
|
+
SetComplement<keyof T, keyof U>
|
|
38
|
+
>;
|
|
39
|
+
// /flow-to-ts helpers
|
|
40
|
+
|
|
34
41
|
export type HMRAsset = {
|
|
35
42
|
id: string;
|
|
36
43
|
url: string;
|
|
@@ -59,7 +66,7 @@ export type HMRMessage =
|
|
|
59
66
|
ansi: Array<AnsiDiagnosticResult>;
|
|
60
67
|
html: Array<
|
|
61
68
|
Partial<
|
|
62
|
-
|
|
69
|
+
Diff<
|
|
63
70
|
AnsiDiagnosticResult,
|
|
64
71
|
{
|
|
65
72
|
codeframe: string;
|