@onekeyfe/react-native-cloud-fs 3.0.179-alpha.2026101502 → 3.0.179-alpha.302

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +19 -2
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -36,13 +36,26 @@ See [src/NativeCloudFs.ts](src/NativeCloudFs.ts) for complete option/result shap
36
36
  A successful availability check does not establish that a later transfer has
37
37
  completed or that every requested scope is permitted.
38
38
 
39
+ ## Provider option and result shapes
40
+
41
+ `listFiles({ scope, targetPath? })` returns an object with a `files` array.
42
+ Entries include `id`, `name`, `lastModified` and optional `isFile`.
43
+ `copyToCloud` takes `scope`, `sourcePath: { path?, uri? }`, `targetPath` and
44
+ optional `mimetype`; it returns a string through a promise.
45
+
46
+ `fileExists` accepts optional `fileId`, `targetPath` and `scope` fields, while
47
+ `deleteFromCloud` takes an item with `id` and optional `path`. Choose the fields
48
+ for the configured provider rather than treating cloud IDs as local paths.
49
+ `getCurrentlySignedInUserData()` can return `null`; when present its `avatarUrl`
50
+ can also be `null`. Use `CloudFsSpec` for adapter typing.
51
+
39
52
  ## Upstream attribution
40
53
 
41
54
  First, a sincere thank-you to the
42
55
  `react-native-cloud-fs` maintainers for their excellent work 🙏
43
56
 
44
57
  This package is built on, and inspired by,
45
- [nicola/react-native-cloud-fs](https://github.com/nicola/react-native-cloud-fs).
58
+ [npomfret/react-native-cloud-fs](https://github.com/npomfret/react-native-cloud-fs).
46
59
 
47
60
  Our original plan was to keep our customizations as patches on top of upstream
48
61
  `react-native-cloud-fs`.
@@ -56,7 +69,7 @@ development and delivery stable.
56
69
 
57
70
  ## Upstream Project
58
71
 
59
- - Repository: [nicola/react-native-cloud-fs](https://github.com/nicola/react-native-cloud-fs)
72
+ - Repository: [npomfret/react-native-cloud-fs](https://github.com/npomfret/react-native-cloud-fs)
60
73
  - License: MIT
61
74
 
62
75
  ## Notes
@@ -67,3 +80,7 @@ development and delivery stable.
67
80
 
68
81
  Thank you again to everyone who contributes to
69
82
  `react-native-cloud-fs` 💙
83
+
84
+ The upstream MIT notice is preserved verbatim in [LICENSE](LICENSE). Its
85
+ copyright line retains upstream year/name placeholders; no replacement author
86
+ or year is inferred here.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-cloud-fs",
3
- "version": "3.0.179-alpha.2026101502",
3
+ "version": "3.0.179-alpha.302",
4
4
  "description": "react-native-cloud-fs TurboModule for OneKey",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",