@airnauts/comments-storage-fs 0.1.0 → 0.1.1
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/README.md +6 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,11 +12,15 @@ pnpm add @airnauts/comments-storage-fs
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```ts
|
|
15
|
-
import {
|
|
15
|
+
import { fileSystemStorage } from '@airnauts/comments-storage-fs'
|
|
16
16
|
|
|
17
|
-
const storage =
|
|
17
|
+
const storage = fileSystemStorage({ rootDir: './uploads' })
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
By default `put` returns `file://` URLs; set `baseUrl` (e.g. `'/uploads'`) to return
|
|
21
|
+
browser-served paths instead. The `FileSystemStorage` class is also exported if you
|
|
22
|
+
prefer `new FileSystemStorage(opts)`.
|
|
23
|
+
|
|
20
24
|
Pass `storage` to `createCommentsServer` from `@airnauts/comments-server`.
|
|
21
25
|
|
|
22
26
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airnauts/comments-storage-fs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Filesystem attachment-storage adapter for the Airnauts commenting tool server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"comments",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@airnauts/comments-core": "^0.
|
|
43
|
-
"@airnauts/comments-server": "^0.
|
|
42
|
+
"@airnauts/comments-core": "^0.2.0",
|
|
43
|
+
"@airnauts/comments-server": "^0.2.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@airnauts/comments-test-support": "0.0.0"
|