expo-doctor 1.17.3 → 1.17.5
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/build/expo-doctor/src/checks/AutolinkingDependencyDuplicatesCheck.d.ts +5 -2
- package/build/expo-doctor/src/checks/PeerDependencyChecks.d.ts +5 -2
- package/build/expo-doctor/src/checks/ReactNativeDirectoryCheck.d.ts +6 -2
- package/build/expo-doctor/src/checks/checks.types.d.ts +6 -2
- package/build/expo-doctor/src/utils/autolinkingResolutions.d.ts +12 -0
- package/build/expo-doctor/src/utils/versionedNativeModules.d.ts +7 -1
- package/build/index.js +5 -5
- package/package.json +7 -7
- package/build/expo-doctor/src/utils/autolinkingExportsLoader.d.ts +0 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DoctorCheck, DoctorCheckParams, DoctorCheckResult } from './checks.types';
|
|
2
|
-
|
|
2
|
+
import { AutolinkingResolutionsCache } from '../utils/autolinkingResolutions';
|
|
3
|
+
type DoctorCache = AutolinkingResolutionsCache;
|
|
4
|
+
export declare class AutolinkingDependencyDuplicatesCheck implements DoctorCheck<DoctorCache> {
|
|
3
5
|
description: string;
|
|
4
6
|
sdkVersionRange: string;
|
|
5
|
-
runAsync({ projectRoot, exp }: DoctorCheckParams): Promise<DoctorCheckResult>;
|
|
7
|
+
runAsync({ projectRoot, exp }: DoctorCheckParams, cache: DoctorCache): Promise<DoctorCheckResult>;
|
|
6
8
|
}
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { DoctorCheck, DoctorCheckParams, DoctorCheckResult } from './checks.types';
|
|
2
|
-
|
|
2
|
+
import { VersionedNativeModuleNamesCache } from '../utils/versionedNativeModules';
|
|
3
|
+
type DoctorCache = VersionedNativeModuleNamesCache;
|
|
4
|
+
export declare class PeerDependencyChecks implements DoctorCheck<DoctorCache> {
|
|
3
5
|
description: string;
|
|
4
6
|
sdkVersionRange: string;
|
|
5
|
-
runAsync({ pkg, projectRoot, exp }: DoctorCheckParams): Promise<DoctorCheckResult>;
|
|
7
|
+
runAsync({ pkg, projectRoot, exp }: DoctorCheckParams, cache: DoctorCache): Promise<DoctorCheckResult>;
|
|
6
8
|
private checkPackagePeerDependencies;
|
|
7
9
|
}
|
|
10
|
+
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { DoctorCheck, DoctorCheckParams, DoctorCheckResult } from './checks.types';
|
|
2
|
+
import { AutolinkingResolutionsCache } from '../utils/autolinkingResolutions';
|
|
3
|
+
import { VersionedNativeModuleNamesCache } from '../utils/versionedNativeModules';
|
|
2
4
|
export declare const DEFAULT_PACKAGES_TO_IGNORE: (string | RegExp)[];
|
|
3
5
|
export declare function filterPackages(packages: string[], ignoredPackages: (RegExp | string)[]): string[];
|
|
4
|
-
|
|
6
|
+
type DoctorCache = AutolinkingResolutionsCache & VersionedNativeModuleNamesCache;
|
|
7
|
+
export declare class ReactNativeDirectoryCheck implements DoctorCheck<DoctorCache> {
|
|
5
8
|
description: string;
|
|
6
9
|
sdkVersionRange: string;
|
|
7
|
-
runAsync({ pkg }: DoctorCheckParams): Promise<DoctorCheckResult>;
|
|
10
|
+
runAsync({ projectRoot, pkg, exp }: DoctorCheckParams, cache: DoctorCache): Promise<DoctorCheckResult>;
|
|
8
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { ExpoConfig, PackageJSONConfig } from '@expo/config';
|
|
2
|
-
export interface DoctorCheck {
|
|
2
|
+
export interface DoctorCheck<CacheType extends {
|
|
3
|
+
[prop: string]: any;
|
|
4
|
+
} = {
|
|
5
|
+
[prop: string]: any;
|
|
6
|
+
}> {
|
|
3
7
|
description: string;
|
|
4
8
|
sdkVersionRange: string;
|
|
5
|
-
runAsync
|
|
9
|
+
runAsync(params: DoctorCheckParams, cache: CacheType): Promise<DoctorCheckResult>;
|
|
6
10
|
}
|
|
7
11
|
export interface DoctorCheckResult {
|
|
8
12
|
isSuccessful: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DependencyResolution } from 'expo-modules-autolinking/exports';
|
|
2
|
+
import { VersionedNativeModuleNamesCache } from './versionedNativeModules';
|
|
3
|
+
export declare function importAutolinkingExportsFromProject(projectDir: string): typeof import('expo/internal/unstable-autolinking-exports');
|
|
4
|
+
export declare class ExpoExportMissingError extends Error {
|
|
5
|
+
}
|
|
6
|
+
export interface AutolinkingResolutionsCache extends VersionedNativeModuleNamesCache {
|
|
7
|
+
resolutions?: Promise<Map<string, DependencyResolution>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const scanNativeModuleResolutions: (cache: AutolinkingResolutionsCache, params: {
|
|
10
|
+
projectRoot: string;
|
|
11
|
+
sdkVersion: string | undefined;
|
|
12
|
+
}) => Promise<Map<string, DependencyResolution>>;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface VersionedNativeModuleNamesCache {
|
|
2
|
+
nativeModuleNames?: Promise<string[] | null>;
|
|
3
|
+
}
|
|
4
|
+
export declare const getVersionedNativeModuleNamesAsync: (cache: VersionedNativeModuleNamesCache, params: {
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
sdkVersion: string | undefined;
|
|
7
|
+
}) => Promise<string[] | null>;
|