@umituz/react-native-r2-storage 1.0.3 → 1.1.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-r2-storage",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Cloudflare R2 storage integration for React Native apps with URL building, asset management, and configurable storage paths.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -49,8 +49,9 @@ class R2ConfigService {
49
49
 
50
50
  /**
51
51
  * Get configuration from environment variables
52
+ * Public method for external use (e.g., initR2FromEnv)
52
53
  */
53
- private getConfigFromEnv(): R2Config {
54
+ getConfigFromEnv(): R2Config {
54
55
  const accountId =
55
56
  process.env.EXPO_PUBLIC_R2_ACCOUNT_ID ||
56
57
  process.env.R2_ACCOUNT_ID ||