@parcel/types-internal 2.12.1-dev.3335 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/FileSystem.d.ts +4 -0
- package/lib/index.d.ts +0 -2
- package/package.json +4 -4
- package/src/FileSystem.js +4 -0
- package/src/index.js +5 -4
package/lib/FileSystem.d.ts
CHANGED
@@ -46,6 +46,8 @@ export interface FileSystem {
|
|
46
46
|
copyFile(source: FilePath, destination: FilePath, flags?: number): Promise<void>;
|
47
47
|
stat(filePath: FilePath): Promise<Stats>;
|
48
48
|
statSync(filePath: FilePath): Stats;
|
49
|
+
lstat(filePath: FilePath): Promise<Stats>;
|
50
|
+
lstatSync(filePath: FilePath): Stats;
|
49
51
|
readdir(path: FilePath, opts?: {
|
50
52
|
withFileTypes?: false;
|
51
53
|
}): Promise<FilePath[]>;
|
@@ -62,6 +64,8 @@ export interface FileSystem {
|
|
62
64
|
unlink(path: FilePath): Promise<void>;
|
63
65
|
realpath(path: FilePath): Promise<FilePath>;
|
64
66
|
realpathSync(path: FilePath): FilePath;
|
67
|
+
readlink(path: FilePath): Promise<FilePath>;
|
68
|
+
readlinkSync(path: FilePath): FilePath;
|
65
69
|
exists(path: FilePath): Promise<boolean>;
|
66
70
|
existsSync(path: FilePath): boolean;
|
67
71
|
mkdirp(path: FilePath): Promise<void>;
|
package/lib/index.d.ts
CHANGED
@@ -1726,7 +1726,6 @@ export type Namer<ConfigType> = {
|
|
1726
1726
|
tracer: PluginTracer;
|
1727
1727
|
}): Async<FilePath | null | undefined>;
|
1728
1728
|
};
|
1729
|
-
type RuntimeAssetPriority = "sync" | "parallel";
|
1730
1729
|
|
1731
1730
|
/**
|
1732
1731
|
* A "synthetic" asset that will be inserted into the bundle graph.
|
@@ -1738,7 +1737,6 @@ export type RuntimeAsset = {
|
|
1738
1737
|
readonly dependency?: Dependency;
|
1739
1738
|
readonly isEntry?: boolean;
|
1740
1739
|
readonly env?: EnvironmentOptions;
|
1741
|
-
readonly priority?: RuntimeAssetPriority;
|
1742
1740
|
};
|
1743
1741
|
|
1744
1742
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/types-internal",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.13.0",
|
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.
|
20
|
-
"@parcel/feature-flags": "2.
|
19
|
+
"@parcel/diagnostic": "2.13.0",
|
20
|
+
"@parcel/feature-flags": "2.13.0",
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
22
22
|
"utility-types": "^3.10.0"
|
23
23
|
},
|
24
|
-
"gitHead": "
|
24
|
+
"gitHead": "a53f8f3ba1025c7ea8653e9719e0a61ef9717079"
|
25
25
|
}
|
package/src/FileSystem.js
CHANGED
@@ -70,6 +70,8 @@ export interface FileSystem {
|
|
70
70
|
): Promise<void>;
|
71
71
|
stat(filePath: FilePath): Promise<Stats>;
|
72
72
|
statSync(filePath: FilePath): Stats;
|
73
|
+
lstat(filePath: FilePath): Promise<Stats>;
|
74
|
+
lstatSync(filePath: FilePath): Stats;
|
73
75
|
readdir(
|
74
76
|
path: FilePath,
|
75
77
|
opts?: {withFileTypes?: false, ...},
|
@@ -81,6 +83,8 @@ export interface FileSystem {
|
|
81
83
|
unlink(path: FilePath): Promise<void>;
|
82
84
|
realpath(path: FilePath): Promise<FilePath>;
|
83
85
|
realpathSync(path: FilePath): FilePath;
|
86
|
+
readlink(path: FilePath): Promise<FilePath>;
|
87
|
+
readlinkSync(path: FilePath): FilePath;
|
84
88
|
exists(path: FilePath): Promise<boolean>;
|
85
89
|
existsSync(path: FilePath): boolean;
|
86
90
|
mkdirp(path: FilePath): Promise<void>;
|
package/src/index.js
CHANGED
@@ -100,7 +100,11 @@ export type GlobMap<T> = {[Glob]: T, ...};
|
|
100
100
|
|
101
101
|
export type RawParcelConfigPipeline = Array<PackageName>;
|
102
102
|
|
103
|
-
export type HMROptions = {
|
103
|
+
export type HMROptions = {
|
104
|
+
port?: number,
|
105
|
+
host?: string,
|
106
|
+
...
|
107
|
+
};
|
104
108
|
|
105
109
|
/** The format of .parcelrc */
|
106
110
|
export type RawParcelConfig = {|
|
@@ -1707,8 +1711,6 @@ export type Namer<ConfigType> = {|
|
|
1707
1711
|
|}): Async<?FilePath>,
|
1708
1712
|
|};
|
1709
1713
|
|
1710
|
-
type RuntimeAssetPriority = 'sync' | 'parallel';
|
1711
|
-
|
1712
1714
|
/**
|
1713
1715
|
* A "synthetic" asset that will be inserted into the bundle graph.
|
1714
1716
|
* @section runtime
|
@@ -1719,7 +1721,6 @@ export type RuntimeAsset = {|
|
|
1719
1721
|
+dependency?: Dependency,
|
1720
1722
|
+isEntry?: boolean,
|
1721
1723
|
+env?: EnvironmentOptions,
|
1722
|
-
+priority?: RuntimeAssetPriority,
|
1723
1724
|
|};
|
1724
1725
|
|
1725
1726
|
/**
|