@kingstinct/react-native-healthkit 4.3.0 → 4.4.2
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/ios/ReactNativeHealthkit.swift +2 -2
- package/lib/commonjs/index.ios.js +123 -104
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/commonjs/index.js +50 -37
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/native-types.js +127 -106
- package/lib/commonjs/native-types.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/index.ios.js +124 -105
- package/lib/module/index.ios.js.map +1 -1
- package/lib/module/index.js +51 -37
- package/lib/module/index.js.map +1 -1
- package/lib/module/native-types.js +118 -103
- package/lib/module/native-types.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/native-types.d.ts +452 -217
- package/lib/typescript/src/types.d.ts +85 -83
- package/package.json +21 -35
- package/src/index.ios.tsx +299 -273
- package/src/index.tsx +63 -46
- package/src/native-types.ts +310 -301
- package/src/types.ts +113 -107
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import type { HKAuthorizationRequestStatus, HKBiologicalSex, HKBloodType, HKCategorySampleRaw, HKCategoryTypeIdentifier, HKCategoryValueForIdentifier,
|
|
1
|
+
import type { HealthkitReadAuthorization, HealthkitWriteAuthorization, HKAuthorizationRequestStatus, HKBiologicalSex, HKBloodType, HKCategorySampleRaw, HKCategoryTypeIdentifier, HKCategoryValueForIdentifier, HKCorrelationRaw, HKCorrelationTypeIdentifier, HKFitzpatrickSkinType, HKQuantitySampleRaw, HKQuantityTypeIdentifier, HKStatisticsOptions, HKUnit, HKUnitSI, HKUnitSIPrefix, HKUpdateFrequency, HKWheelchairUse, HKWorkoutActivityType, HKWorkoutMetadata, HKWorkoutRaw, MetadataMapperForCategoryIdentifier, MetadataMapperForCorrelationIdentifier, MetadataMapperForQuantityIdentifier, QueryStatisticsResponseRaw, SampleTypeIdentifier, WorkoutRoute } from './native-types';
|
|
2
2
|
export interface QueryWorkoutsOptions<TEnergy extends HKUnit, TDistance extends HKUnit> extends GenericQueryOptions {
|
|
3
|
-
energyUnit?: TEnergy;
|
|
4
|
-
distanceUnit?: TDistance;
|
|
3
|
+
readonly energyUnit?: TEnergy;
|
|
4
|
+
readonly distanceUnit?: TDistance;
|
|
5
5
|
}
|
|
6
|
-
export interface HKCategorySample<T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier> extends Omit<HKCategorySampleRaw<T>, '
|
|
7
|
-
startDate: Date;
|
|
8
|
-
endDate: Date;
|
|
6
|
+
export interface HKCategorySample<T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier> extends Omit<HKCategorySampleRaw<T>, 'endDate' | 'startDate'> {
|
|
7
|
+
readonly startDate: Date;
|
|
8
|
+
readonly endDate: Date;
|
|
9
9
|
}
|
|
10
10
|
export declare type GenericQueryOptions = {
|
|
11
|
-
from?: Date;
|
|
12
|
-
to?: Date;
|
|
13
|
-
limit?:
|
|
14
|
-
ascending?: boolean;
|
|
11
|
+
readonly from?: Date;
|
|
12
|
+
readonly to?: Date;
|
|
13
|
+
readonly limit?: number;
|
|
14
|
+
readonly ascending?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export interface HKWorkout<TEnergy extends HKUnit = HKUnit, TDistance extends HKUnit = HKUnit> extends Omit<HKWorkoutRaw<TEnergy, TDistance>, '
|
|
17
|
-
startDate: Date;
|
|
18
|
-
endDate: Date;
|
|
16
|
+
export interface HKWorkout<TEnergy extends HKUnit = HKUnit, TDistance extends HKUnit = HKUnit> extends Omit<HKWorkoutRaw<TEnergy, TDistance>, 'endDate' | 'startDate'> {
|
|
17
|
+
readonly startDate: Date;
|
|
18
|
+
readonly endDate: Date;
|
|
19
19
|
}
|
|
20
|
-
export interface HKQuantitySample<TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier, TUnit extends HKUnit = HKUnit> extends Omit<HKQuantitySampleRaw<TIdentifier, TUnit>, '
|
|
21
|
-
startDate: Date;
|
|
22
|
-
endDate: Date;
|
|
20
|
+
export interface HKQuantitySample<TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier, TUnit extends HKUnit = HKUnit> extends Omit<HKQuantitySampleRaw<TIdentifier, TUnit>, 'endDate' | 'startDate'> {
|
|
21
|
+
readonly startDate: Date;
|
|
22
|
+
readonly endDate: Date;
|
|
23
23
|
}
|
|
24
24
|
export interface QueryStatisticsResponse<T extends HKUnit = HKUnit> extends Omit<QueryStatisticsResponseRaw<T>, 'mostRecentQuantityDateInterval'> {
|
|
25
|
-
mostRecentQuantityDateInterval?: {
|
|
26
|
-
from: Date;
|
|
27
|
-
to: Date;
|
|
25
|
+
readonly mostRecentQuantityDateInterval?: {
|
|
26
|
+
readonly from: Date;
|
|
27
|
+
readonly to: Date;
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
declare type UnsubscribeFunction = () => Promise<boolean>;
|
|
@@ -34,85 +34,87 @@ export declare type GetDateOfBirthFn = () => Promise<Date>;
|
|
|
34
34
|
export declare type GetBiologicalSexFn = () => Promise<HKBiologicalSex>;
|
|
35
35
|
export declare type GetWheelchairUseFn = () => Promise<HKWheelchairUse>;
|
|
36
36
|
export declare type GetFitzpatrickSkinTypeFn = () => Promise<HKFitzpatrickSkinType>;
|
|
37
|
-
export declare type QueryStatisticsForQuantityFn = <TUnit extends HKUnit>(identifier: HKQuantityTypeIdentifier, options: HKStatisticsOptions[], from: Date, to?: Date, unit?: TUnit) => Promise<QueryStatisticsResponse<TUnit>>;
|
|
38
|
-
export declare type QueryWorkoutsFn = <TEnergy extends HKUnit, TDistance extends HKUnit>(options: QueryWorkoutsOptions<TEnergy, TDistance>) => Promise<HKWorkout<TEnergy, TDistance>[]>;
|
|
39
|
-
export declare type AuthorizationStatusForFn = (type:
|
|
40
|
-
export declare type QueryCategorySamplesFn = <T extends HKCategoryTypeIdentifier>(identifier: T, options: GenericQueryOptions) => Promise<HKCategorySample<T>[]>;
|
|
41
|
-
export declare type GetRequestStatusForAuthorizationFn = (read:
|
|
42
|
-
export declare type RequestAuthorizationFn = (read:
|
|
37
|
+
export declare type QueryStatisticsForQuantityFn = <TUnit extends HKUnit>(identifier: HKQuantityTypeIdentifier, options: readonly HKStatisticsOptions[], from: Date, to?: Date, unit?: TUnit) => Promise<QueryStatisticsResponse<TUnit>>;
|
|
38
|
+
export declare type QueryWorkoutsFn = <TEnergy extends HKUnit, TDistance extends HKUnit>(options: QueryWorkoutsOptions<TEnergy, TDistance>) => Promise<readonly HKWorkout<TEnergy, TDistance>[]>;
|
|
39
|
+
export declare type AuthorizationStatusForFn = (type: HealthkitReadAuthorization) => Promise<boolean>;
|
|
40
|
+
export declare type QueryCategorySamplesFn = <T extends HKCategoryTypeIdentifier>(identifier: T, options: GenericQueryOptions) => Promise<readonly HKCategorySample<T>[]>;
|
|
41
|
+
export declare type GetRequestStatusForAuthorizationFn = (read: readonly HealthkitReadAuthorization[], write?: readonly HealthkitWriteAuthorization[]) => Promise<HKAuthorizationRequestStatus>;
|
|
42
|
+
export declare type RequestAuthorizationFn = (read: readonly HealthkitReadAuthorization[], write?: readonly HealthkitWriteAuthorization[]) => Promise<boolean>;
|
|
43
43
|
export declare type SaveQuantitySampleFn = <TUnit extends HKQuantityTypeIdentifier>(identifier: TUnit, unit: HKUnit, value: number, options?: {
|
|
44
|
-
start?: Date;
|
|
45
|
-
end?: Date;
|
|
46
|
-
metadata?: MetadataMapperForQuantityIdentifier<TUnit>;
|
|
44
|
+
readonly start?: Date;
|
|
45
|
+
readonly end?: Date;
|
|
46
|
+
readonly metadata?: MetadataMapperForQuantityIdentifier<TUnit>;
|
|
47
47
|
}) => Promise<boolean>;
|
|
48
48
|
export declare type QueryQuantitySamplesFn = <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends HKUnit = HKUnit>(identifier: TIdentifier, options: GenericQueryOptions & {
|
|
49
|
-
unit?: TUnit;
|
|
50
|
-
}) => Promise<HKQuantitySample<TIdentifier, TUnit>[]>;
|
|
51
|
-
export declare type SubscribeToChangesFn = (identifier:
|
|
49
|
+
readonly unit?: TUnit;
|
|
50
|
+
}) => Promise<readonly HKQuantitySample<TIdentifier, TUnit>[]>;
|
|
51
|
+
export declare type SubscribeToChangesFn = (identifier: SampleTypeIdentifier, callback: () => void) => Promise<UnsubscribeFunction>;
|
|
52
52
|
export declare type SaveCategorySampleFn = <T extends HKCategoryTypeIdentifier>(identifier: T, value: HKCategoryValueForIdentifier<T>, options?: {
|
|
53
|
-
start?: Date;
|
|
54
|
-
end?: Date;
|
|
55
|
-
metadata?: MetadataMapperForCategoryIdentifier<T>;
|
|
53
|
+
readonly start?: Date;
|
|
54
|
+
readonly end?: Date;
|
|
55
|
+
readonly metadata?: MetadataMapperForCategoryIdentifier<T>;
|
|
56
56
|
}) => Promise<boolean>;
|
|
57
57
|
export declare type GetMostRecentCategorySampleFn = <T extends HKCategoryTypeIdentifier>(identifier: T) => Promise<HKCategorySample<T> | null>;
|
|
58
58
|
export declare type MostRecentCategorySampleHook = <T extends HKCategoryTypeIdentifier>(identifier: T) => HKCategorySample<T> | null;
|
|
59
59
|
export declare type MostRecentCorrelationSampleHook = <T extends HKCorrelationTypeIdentifier>(identifer: T) => HKCorrelation<T> | null;
|
|
60
|
-
export declare type GetMostRecentQuantitySampleFn = <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends HKUnit>(identifier: TIdentifier, unit?: TUnit) => Promise<HKQuantitySample<TIdentifier, TUnit
|
|
60
|
+
export declare type GetMostRecentQuantitySampleFn = <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends HKUnit>(identifier: TIdentifier, unit?: TUnit) => Promise<HKQuantitySample<TIdentifier, TUnit> | null>;
|
|
61
61
|
export declare type MostRecentQuantitySampleHook = <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends HKUnit>(identifier: TIdentifier, unit?: TUnit) => HKQuantitySample<TIdentifier, TUnit> | null;
|
|
62
62
|
export declare type GetMostRecentWorkoutFn = <TEnergy extends HKUnit, TDistance extends HKUnit>(options?: Pick<QueryWorkoutsOptions<TEnergy, TDistance>, 'distanceUnit' | 'energyUnit'>) => Promise<HKWorkout<TEnergy, TDistance> | null>;
|
|
63
63
|
export declare type MostRecentWorkoutHook = <TEnergy extends HKUnit, TDistance extends HKUnit>(options?: Pick<QueryWorkoutsOptions<TEnergy, TDistance>, 'distanceUnit' | 'energyUnit'>) => HKWorkout<TEnergy, TDistance> | null;
|
|
64
|
-
export declare type GetPreferredUnitsFn = (identifiers: HKQuantityTypeIdentifier[]) => Promise<HKUnit[]>;
|
|
64
|
+
export declare type GetPreferredUnitsFn = (identifiers: readonly HKQuantityTypeIdentifier[]) => Promise<readonly HKUnit[]>;
|
|
65
65
|
export declare type GetPreferredUnitFn = (identifier: HKQuantityTypeIdentifier) => Promise<HKUnit>;
|
|
66
|
-
export declare type SaveCorrelationSampleFn = <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, samples: (Omit<HKCategorySample, '
|
|
67
|
-
start?: Date;
|
|
68
|
-
end?: Date;
|
|
69
|
-
metadata?: MetadataMapperForCorrelationIdentifier<TIdentifier>;
|
|
66
|
+
export declare type SaveCorrelationSampleFn = <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, samples: readonly (Omit<HKCategorySample, 'device' | 'endDate' | 'startDate' | 'uuid'> | Omit<HKQuantitySample, 'device' | 'endDate' | 'startDate' | 'uuid'>)[], options?: {
|
|
67
|
+
readonly start?: Date;
|
|
68
|
+
readonly end?: Date;
|
|
69
|
+
readonly metadata?: MetadataMapperForCorrelationIdentifier<TIdentifier>;
|
|
70
70
|
}) => Promise<boolean>;
|
|
71
|
-
export declare type SaveWorkoutSampleFn = (typeIdentifier: HKWorkoutActivityType, quantities: Omit<HKQuantitySample, '
|
|
72
|
-
end?: Date;
|
|
73
|
-
metadata?: HKWorkoutMetadata;
|
|
71
|
+
export declare type SaveWorkoutSampleFn = (typeIdentifier: HKWorkoutActivityType, quantities: readonly Omit<HKQuantitySample, 'device' | 'endDate' | 'startDate' | 'uuid'>[], start: Date, options?: {
|
|
72
|
+
readonly end?: Date;
|
|
73
|
+
readonly metadata?: HKWorkoutMetadata;
|
|
74
74
|
}) => Promise<boolean>;
|
|
75
|
-
export interface HKCorrelation<TIdentifier extends HKCorrelationTypeIdentifier> extends Omit<HKCorrelationRaw<TIdentifier>, '
|
|
76
|
-
objects: (
|
|
77
|
-
startDate: Date;
|
|
78
|
-
endDate: Date;
|
|
75
|
+
export interface HKCorrelation<TIdentifier extends HKCorrelationTypeIdentifier> extends Omit<HKCorrelationRaw<TIdentifier>, 'endDate' | 'objects' | 'startDate'> {
|
|
76
|
+
readonly objects: readonly (HKCategorySample | HKQuantitySample)[];
|
|
77
|
+
readonly startDate: Date;
|
|
78
|
+
readonly endDate: Date;
|
|
79
79
|
}
|
|
80
|
-
export declare type QueryCorrelationSamplesFn = <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, options: Omit<GenericQueryOptions, '
|
|
81
|
-
export declare type SubscribeToChangesHook = <TIdentifier extends
|
|
82
|
-
export declare type GetWorkoutRoutesFn = (workoutUUID: string) => Promise<WorkoutRoute[]>;
|
|
80
|
+
export declare type QueryCorrelationSamplesFn = <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, options: Omit<GenericQueryOptions, 'ascending' | 'limit'>) => Promise<readonly HKCorrelation<TIdentifier>[]>;
|
|
81
|
+
export declare type SubscribeToChangesHook = <TIdentifier extends SampleTypeIdentifier>(identifier: TIdentifier, onChange: () => void, runInitialUpdate?: boolean) => void;
|
|
82
|
+
export declare type GetWorkoutRoutesFn = (workoutUUID: string) => Promise<readonly WorkoutRoute[]>;
|
|
83
83
|
export declare type ReactNativeHealthkit = {
|
|
84
|
-
authorizationStatusFor: AuthorizationStatusForFn;
|
|
85
|
-
getBiologicalSex: GetBiologicalSexFn;
|
|
86
|
-
getBloodType: GetBloodTypeFn;
|
|
87
|
-
getDateOfBirth: GetDateOfBirthFn;
|
|
88
|
-
getFitzpatrickSkinType: GetFitzpatrickSkinTypeFn;
|
|
89
|
-
getMostRecentQuantitySample: GetMostRecentQuantitySampleFn;
|
|
90
|
-
getMostRecentCategorySample: GetMostRecentCategorySampleFn;
|
|
91
|
-
getMostRecentWorkout: GetMostRecentWorkoutFn;
|
|
92
|
-
getPreferredUnit: GetPreferredUnitFn;
|
|
93
|
-
getPreferredUnits: GetPreferredUnitsFn;
|
|
94
|
-
getRequestStatusForAuthorization: GetRequestStatusForAuthorizationFn;
|
|
95
|
-
getWheelchairUse: GetWheelchairUseFn;
|
|
96
|
-
getWorkoutRoutes: GetWorkoutRoutesFn;
|
|
97
|
-
buildUnitWithPrefix: (prefix: HKUnitSIPrefix, unit: HKUnitSI) => HKUnit;
|
|
98
|
-
isHealthDataAvailable: IsHealthDataAvailableFn;
|
|
99
|
-
queryCategorySamples: QueryCategorySamplesFn;
|
|
100
|
-
queryQuantitySamples: QueryQuantitySamplesFn;
|
|
101
|
-
queryStatisticsForQuantity: QueryStatisticsForQuantityFn;
|
|
102
|
-
queryWorkouts: QueryWorkoutsFn;
|
|
103
|
-
queryCorrelationSamples: QueryCorrelationSamplesFn;
|
|
104
|
-
requestAuthorization: RequestAuthorizationFn;
|
|
105
|
-
saveCategorySample: SaveCategorySampleFn;
|
|
106
|
-
saveQuantitySample: SaveQuantitySampleFn;
|
|
107
|
-
saveCorrelationSample: SaveCorrelationSampleFn;
|
|
108
|
-
saveWorkoutSample: SaveWorkoutSampleFn;
|
|
109
|
-
enableBackgroundDelivery: (typeIdentifier:
|
|
110
|
-
disableBackgroundDelivery: (typeIdentifier:
|
|
111
|
-
disableAllBackgroundDelivery: () => Promise<boolean>;
|
|
112
|
-
subscribeToChanges: SubscribeToChangesFn;
|
|
113
|
-
useMostRecentWorkout: MostRecentWorkoutHook;
|
|
114
|
-
useMostRecentCategorySample: MostRecentCategorySampleHook;
|
|
115
|
-
useMostRecentQuantitySample: MostRecentQuantitySampleHook;
|
|
116
|
-
useSubscribeToChanges: SubscribeToChangesHook;
|
|
84
|
+
readonly authorizationStatusFor: AuthorizationStatusForFn;
|
|
85
|
+
readonly getBiologicalSex: GetBiologicalSexFn;
|
|
86
|
+
readonly getBloodType: GetBloodTypeFn;
|
|
87
|
+
readonly getDateOfBirth: GetDateOfBirthFn;
|
|
88
|
+
readonly getFitzpatrickSkinType: GetFitzpatrickSkinTypeFn;
|
|
89
|
+
readonly getMostRecentQuantitySample: GetMostRecentQuantitySampleFn;
|
|
90
|
+
readonly getMostRecentCategorySample: GetMostRecentCategorySampleFn;
|
|
91
|
+
readonly getMostRecentWorkout: GetMostRecentWorkoutFn;
|
|
92
|
+
readonly getPreferredUnit: GetPreferredUnitFn;
|
|
93
|
+
readonly getPreferredUnits: GetPreferredUnitsFn;
|
|
94
|
+
readonly getRequestStatusForAuthorization: GetRequestStatusForAuthorizationFn;
|
|
95
|
+
readonly getWheelchairUse: GetWheelchairUseFn;
|
|
96
|
+
readonly getWorkoutRoutes: GetWorkoutRoutesFn;
|
|
97
|
+
readonly buildUnitWithPrefix: (prefix: HKUnitSIPrefix, unit: HKUnitSI) => HKUnit;
|
|
98
|
+
readonly isHealthDataAvailable: IsHealthDataAvailableFn;
|
|
99
|
+
readonly queryCategorySamples: QueryCategorySamplesFn;
|
|
100
|
+
readonly queryQuantitySamples: QueryQuantitySamplesFn;
|
|
101
|
+
readonly queryStatisticsForQuantity: QueryStatisticsForQuantityFn;
|
|
102
|
+
readonly queryWorkouts: QueryWorkoutsFn;
|
|
103
|
+
readonly queryCorrelationSamples: QueryCorrelationSamplesFn;
|
|
104
|
+
readonly requestAuthorization: RequestAuthorizationFn;
|
|
105
|
+
readonly saveCategorySample: SaveCategorySampleFn;
|
|
106
|
+
readonly saveQuantitySample: SaveQuantitySampleFn;
|
|
107
|
+
readonly saveCorrelationSample: SaveCorrelationSampleFn;
|
|
108
|
+
readonly saveWorkoutSample: SaveWorkoutSampleFn;
|
|
109
|
+
readonly enableBackgroundDelivery: (typeIdentifier: SampleTypeIdentifier, updateFrequency: HKUpdateFrequency) => Promise<boolean>;
|
|
110
|
+
readonly disableBackgroundDelivery: (typeIdentifier: SampleTypeIdentifier) => Promise<boolean>;
|
|
111
|
+
readonly disableAllBackgroundDelivery: () => Promise<boolean>;
|
|
112
|
+
readonly subscribeToChanges: SubscribeToChangesFn;
|
|
113
|
+
readonly useMostRecentWorkout: MostRecentWorkoutHook;
|
|
114
|
+
readonly useMostRecentCategorySample: MostRecentCategorySampleHook;
|
|
115
|
+
readonly useMostRecentQuantitySample: MostRecentQuantitySampleHook;
|
|
116
|
+
readonly useSubscribeToChanges: SubscribeToChangesHook;
|
|
117
|
+
readonly useIsHealthDataAvailable: () => boolean | null;
|
|
118
|
+
readonly useHealthkitAuthorization: (read: readonly HealthkitReadAuthorization[], write?: readonly HealthkitWriteAuthorization[]) => readonly [authorizationStatus: HKAuthorizationRequestStatus | null, request: () => Promise<HKAuthorizationRequestStatus | null>];
|
|
117
119
|
};
|
|
118
120
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingstinct/react-native-healthkit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "React Native bindings for HealthKit",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"test": "jest",
|
|
24
|
-
"
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
25
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
26
26
|
"prepare": "bob build",
|
|
27
27
|
"release": "release-it",
|
|
@@ -45,25 +45,36 @@
|
|
|
45
45
|
"homepage": "https://github.com/kingstinct/react-native-healthkit#readme",
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@commitlint/config-conventional": "12",
|
|
48
|
-
"@
|
|
48
|
+
"@graphql-eslint/eslint-plugin": ">=3",
|
|
49
49
|
"@release-it/conventional-changelog": "2",
|
|
50
|
-
"@types/jest": "
|
|
50
|
+
"@types/jest": ">=26",
|
|
51
51
|
"@types/react": "17",
|
|
52
52
|
"@types/react-native": "0.67",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": ">=5",
|
|
54
|
+
"@typescript-eslint/parser": ">=5",
|
|
53
55
|
"commitlint": "12",
|
|
54
|
-
"eslint": "
|
|
55
|
-
"eslint-config-
|
|
56
|
-
"eslint-
|
|
56
|
+
"eslint": ">=8",
|
|
57
|
+
"eslint-config-airbnb-base": ">=15",
|
|
58
|
+
"eslint-config-kingstinct": "5.1.1",
|
|
59
|
+
"eslint-import-resolver-typescript": ">=3",
|
|
60
|
+
"eslint-plugin-comment-length": ">=0",
|
|
61
|
+
"eslint-plugin-functional": ">=4",
|
|
62
|
+
"eslint-plugin-import": ">=2",
|
|
63
|
+
"eslint-plugin-jest": ">=26",
|
|
64
|
+
"eslint-plugin-jsonc": ">=2",
|
|
65
|
+
"eslint-plugin-unicorn": ">=43",
|
|
66
|
+
"eslint-plugin-yml": ">=1",
|
|
67
|
+
"graphql": ">=16",
|
|
57
68
|
"husky": "^4.2.5",
|
|
58
|
-
"jest": "
|
|
69
|
+
"jest": ">=26",
|
|
59
70
|
"metro-react-native-babel-preset": "^0.70.3",
|
|
60
71
|
"pod-install": "^0.1.0",
|
|
61
|
-
"prettier": "^2.0.5",
|
|
62
72
|
"react": "17",
|
|
63
73
|
"react-native": "0.68",
|
|
64
74
|
"react-native-builder-bob": "^0.18.1",
|
|
65
75
|
"release-it": "14",
|
|
66
|
-
"
|
|
76
|
+
"type-fest": "^2.18.0",
|
|
77
|
+
"typescript": ">=4"
|
|
67
78
|
},
|
|
68
79
|
"peerDependencies": {
|
|
69
80
|
"react": "*",
|
|
@@ -108,35 +119,10 @@
|
|
|
108
119
|
}
|
|
109
120
|
}
|
|
110
121
|
},
|
|
111
|
-
"eslintConfig": {
|
|
112
|
-
"extends": [
|
|
113
|
-
"@react-native-community",
|
|
114
|
-
"prettier"
|
|
115
|
-
],
|
|
116
|
-
"rules": {
|
|
117
|
-
"prettier/prettier": [
|
|
118
|
-
"error",
|
|
119
|
-
{
|
|
120
|
-
"quoteProps": "consistent",
|
|
121
|
-
"singleQuote": true,
|
|
122
|
-
"tabWidth": 2,
|
|
123
|
-
"trailingComma": "es5",
|
|
124
|
-
"useTabs": false
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
122
|
"eslintIgnore": [
|
|
130
123
|
"node_modules/",
|
|
131
124
|
"lib/"
|
|
132
125
|
],
|
|
133
|
-
"prettier": {
|
|
134
|
-
"quoteProps": "consistent",
|
|
135
|
-
"singleQuote": true,
|
|
136
|
-
"tabWidth": 2,
|
|
137
|
-
"trailingComma": "es5",
|
|
138
|
-
"useTabs": false
|
|
139
|
-
},
|
|
140
126
|
"react-native-builder-bob": {
|
|
141
127
|
"source": "src",
|
|
142
128
|
"output": "lib",
|