@parcel/types-internal 2.16.3 → 2.16.4
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 +3 -0
- package/package.json +4 -4
- package/src/index.js +3 -0
package/lib/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export type RawParcelConfigPipeline = Array<PackageName>;
|
|
|
44
44
|
export type HMROptions = {
|
|
45
45
|
port?: number;
|
|
46
46
|
host?: string;
|
|
47
|
+
cors?: boolean;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
/** The format of .parcelrc */
|
|
@@ -306,6 +307,7 @@ export type InitialServerOptions = {
|
|
|
306
307
|
readonly host?: string;
|
|
307
308
|
readonly port: number;
|
|
308
309
|
readonly https?: HTTPSOptions | boolean;
|
|
310
|
+
readonly cors?: boolean;
|
|
309
311
|
};
|
|
310
312
|
export interface PluginOptions {
|
|
311
313
|
readonly mode: BuildMode;
|
|
@@ -331,6 +333,7 @@ export type ServerOptions = {
|
|
|
331
333
|
readonly port: number;
|
|
332
334
|
readonly https?: HTTPSOptions | boolean;
|
|
333
335
|
readonly publicUrl?: string;
|
|
336
|
+
readonly cors?: boolean;
|
|
334
337
|
};
|
|
335
338
|
export type HTTPSOptions = {
|
|
336
339
|
readonly cert: FilePath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/types-internal",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.4",
|
|
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.16.
|
|
20
|
-
"@parcel/feature-flags": "2.16.
|
|
19
|
+
"@parcel/diagnostic": "2.16.4",
|
|
20
|
+
"@parcel/feature-flags": "2.16.4",
|
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
|
22
22
|
"utility-types": "^3.11.0"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "59484858a1a0bcbb71f74088956bb437a2db6505"
|
|
25
25
|
}
|
package/src/index.js
CHANGED
|
@@ -103,6 +103,7 @@ export type RawParcelConfigPipeline = Array<PackageName>;
|
|
|
103
103
|
export type HMROptions = {
|
|
104
104
|
port?: number,
|
|
105
105
|
host?: string,
|
|
106
|
+
cors?: boolean,
|
|
106
107
|
...
|
|
107
108
|
};
|
|
108
109
|
|
|
@@ -405,6 +406,7 @@ export type InitialServerOptions = {|
|
|
|
405
406
|
+host?: string,
|
|
406
407
|
+port: number,
|
|
407
408
|
+https?: HTTPSOptions | boolean,
|
|
409
|
+
+cors?: boolean,
|
|
408
410
|
|};
|
|
409
411
|
|
|
410
412
|
export interface PluginOptions {
|
|
@@ -432,6 +434,7 @@ export type ServerOptions = {|
|
|
|
432
434
|
+port: number,
|
|
433
435
|
+https?: HTTPSOptions | boolean,
|
|
434
436
|
+publicUrl?: string,
|
|
437
|
+
+cors?: boolean,
|
|
435
438
|
|};
|
|
436
439
|
|
|
437
440
|
export type HTTPSOptions = {|
|