@atlaspack/runtime-browser-hmr 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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, HMR_USE_SSE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */
|
|
4
|
+
|
|
4
5
|
/*::
|
|
5
6
|
import type {
|
|
6
7
|
HMRAsset,
|
|
@@ -48,6 +49,11 @@ declare var __parcel__importScripts__: (string) => Promise<void>;
|
|
|
48
49
|
declare var globalThis: typeof self;
|
|
49
50
|
declare var ServiceWorkerGlobalScope: Object;
|
|
50
51
|
*/
|
|
52
|
+
|
|
53
|
+
// flow-to-ts helpers
|
|
54
|
+
|
|
55
|
+
// /flow-to-ts helpers
|
|
56
|
+
|
|
51
57
|
var OVERLAY_ID = '__parcel__error__overlay__';
|
|
52
58
|
|
|
53
59
|
// @ts-expect-error TS2339
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/runtime-browser-hmr",
|
|
3
|
-
"version": "2.14.21-typescript-
|
|
3
|
+
"version": "2.14.21-typescript-0c2081aca.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"node": ">= 16.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@atlaspack/plugin": "2.14.21-typescript-
|
|
19
|
-
"@atlaspack/utils": "2.17.3-typescript-
|
|
18
|
+
"@atlaspack/plugin": "2.14.21-typescript-0c2081aca.0",
|
|
19
|
+
"@atlaspack/utils": "2.17.3-typescript-0c2081aca.0"
|
|
20
20
|
},
|
|
21
21
|
"type": "commonjs",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"check-ts": "tsc --noEmit"
|
|
24
24
|
},
|
|
25
25
|
"types": "src/HMRRuntime.ts",
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "0c2081aca1b5696646874aee2f776d43f1dbe894"
|
|
27
27
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {Flow} from 'flow-to-typescript-codemod';
|
|
2
1
|
/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, HMR_USE_SSE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */
|
|
3
2
|
|
|
4
3
|
/*::
|
|
@@ -49,6 +48,14 @@ declare var globalThis: typeof self;
|
|
|
49
48
|
declare var ServiceWorkerGlobalScope: Object;
|
|
50
49
|
*/
|
|
51
50
|
|
|
51
|
+
// flow-to-ts helpers
|
|
52
|
+
export type SetComplement<A, B extends A> = A extends B ? never : A;
|
|
53
|
+
export type Diff<T extends U, U extends object> = Pick<
|
|
54
|
+
T,
|
|
55
|
+
SetComplement<keyof T, keyof U>
|
|
56
|
+
>;
|
|
57
|
+
// /flow-to-ts helpers
|
|
58
|
+
|
|
52
59
|
var OVERLAY_ID = '__parcel__error__overlay__';
|
|
53
60
|
|
|
54
61
|
// @ts-expect-error TS2339
|
|
@@ -279,7 +286,7 @@ function removeErrorOverlay() {
|
|
|
279
286
|
function createErrorOverlay(
|
|
280
287
|
diagnostics: Array<
|
|
281
288
|
Partial<
|
|
282
|
-
|
|
289
|
+
Diff<
|
|
283
290
|
// @ts-expect-error TS2304
|
|
284
291
|
AnsiDiagnosticResult,
|
|
285
292
|
{
|