@umituz/react-native-ai-gemini-provider 1.10.1 → 1.10.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/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-gemini-provider",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Google Gemini AI provider for React Native applications",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"typecheck": "
|
|
9
|
-
"lint": "
|
|
8
|
+
"typecheck": "tsc --noEmit",
|
|
9
|
+
"lint": "eslint src --ext .ts,.tsx --max-warnings 0",
|
|
10
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
10
11
|
"version:patch": "npm version patch -m 'chore: release v%s'",
|
|
11
12
|
"version:minor": "npm version minor -m 'chore: release v%s'",
|
|
12
13
|
"version:major": "npm version major -m 'chore: release v%s'"
|
|
@@ -33,10 +34,13 @@
|
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@google/generative-ai": "^0.21.0",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
38
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
39
|
+
"eslint": "^8.57.0",
|
|
36
40
|
"@types/react": "~19.1.10",
|
|
37
41
|
"react": "19.1.0",
|
|
38
42
|
"react-native": "0.81.5",
|
|
39
|
-
"typescript": "
|
|
43
|
+
"typescript": "^5.3.0"
|
|
40
44
|
},
|
|
41
45
|
"publishConfig": {
|
|
42
46
|
"access": "public"
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
getQualityOptimizedConfig,
|
|
16
16
|
} from "./ProviderConfig";
|
|
17
17
|
|
|
18
|
-
declare const __DEV__: boolean;
|
|
19
18
|
|
|
20
19
|
export type OptimizationStrategy = "cost" | "quality" | "balanced";
|
|
21
20
|
|
|
@@ -49,15 +48,7 @@ class ProviderFactory {
|
|
|
49
48
|
|
|
50
49
|
this.currentConfig = config;
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
console.log("[ProviderFactory] Initializing with config:", {
|
|
54
|
-
tier: config.subscriptionTier,
|
|
55
|
-
strategy: options.strategy || "balanced",
|
|
56
|
-
textModel: config.textModel,
|
|
57
|
-
imageEditModel: config.imageEditModel,
|
|
58
|
-
maxRetries: config.maxRetries,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
51
|
+
this.currentConfig = config;
|
|
61
52
|
|
|
62
53
|
// Initialize Gemini client with resolved config
|
|
63
54
|
const geminiConfig: GeminiConfig = {
|
|
@@ -72,9 +63,7 @@ class ProviderFactory {
|
|
|
72
63
|
|
|
73
64
|
geminiClientCoreService.initialize(geminiConfig);
|
|
74
65
|
|
|
75
|
-
|
|
76
|
-
console.log("[ProviderFactory] Provider initialized successfully");
|
|
77
|
-
}
|
|
66
|
+
geminiClientCoreService.initialize(geminiConfig);
|
|
78
67
|
}
|
|
79
68
|
|
|
80
69
|
/**
|