@parcel/types-internal 2.14.5-canary.3441 → 2.14.5-canary.3442
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 -3
- package/package.json +4 -4
- package/src/index.js +3 -3
package/lib/index.d.ts
CHANGED
@@ -484,7 +484,7 @@ export type DependencyOptions = {
|
|
484
484
|
readonly isOptional?: boolean;
|
485
485
|
|
486
486
|
/** The location within the source file where the dependency was found. */
|
487
|
-
readonly loc?: SourceLocation;
|
487
|
+
readonly loc?: SourceLocation | null | undefined;
|
488
488
|
|
489
489
|
/** The environment of the dependency. */
|
490
490
|
readonly env?: EnvironmentOptions;
|
@@ -507,10 +507,10 @@ export type DependencyOptions = {
|
|
507
507
|
* The file path where the dependency should be resolved from.
|
508
508
|
* By default, this is the path of the source file where the dependency was specified.
|
509
509
|
*/
|
510
|
-
readonly resolveFrom?: FilePath;
|
510
|
+
readonly resolveFrom?: FilePath | null | undefined;
|
511
511
|
|
512
512
|
/** The semver version range expected for the dependency. */
|
513
|
-
readonly range?: SemverRange;
|
513
|
+
readonly range?: SemverRange | null | undefined;
|
514
514
|
|
515
515
|
/** The symbols within the resolved module that the source file depends on. */
|
516
516
|
readonly symbols?: ReadonlyMap<Symbol, {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/types-internal",
|
3
|
-
"version": "2.14.5-canary.
|
3
|
+
"version": "2.14.5-canary.3442+914335c16",
|
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.0.0-canary.
|
20
|
-
"@parcel/feature-flags": "2.14.5-canary.
|
19
|
+
"@parcel/diagnostic": "2.0.0-canary.1819+914335c16",
|
20
|
+
"@parcel/feature-flags": "2.14.5-canary.3442+914335c16",
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
22
22
|
"utility-types": "^3.10.0"
|
23
23
|
},
|
24
|
-
"gitHead": "
|
24
|
+
"gitHead": "914335c16417ca54c31cda5875000fd5ea7c26a6"
|
25
25
|
}
|
package/src/index.js
CHANGED
@@ -587,7 +587,7 @@ export type DependencyOptions = {|
|
|
587
587
|
/** Whether the dependency is optional. If the dependency cannot be resolved, this will not fail the build. */
|
588
588
|
+isOptional?: boolean,
|
589
589
|
/** The location within the source file where the dependency was found. */
|
590
|
-
+loc?: SourceLocation,
|
590
|
+
+loc?: ?SourceLocation,
|
591
591
|
/** The environment of the dependency. */
|
592
592
|
+env?: EnvironmentOptions,
|
593
593
|
/**
|
@@ -605,9 +605,9 @@ export type DependencyOptions = {|
|
|
605
605
|
* The file path where the dependency should be resolved from.
|
606
606
|
* By default, this is the path of the source file where the dependency was specified.
|
607
607
|
*/
|
608
|
-
+resolveFrom?: FilePath,
|
608
|
+
+resolveFrom?: ?FilePath,
|
609
609
|
/** The semver version range expected for the dependency. */
|
610
|
-
+range?: SemverRange,
|
610
|
+
+range?: ?SemverRange,
|
611
611
|
/** The symbols within the resolved module that the source file depends on. */
|
612
612
|
+symbols?: $ReadOnlyMap<
|
613
613
|
Symbol,
|