@b9g/filesystem 0.1.2 → 0.1.4

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,14 +1,20 @@
1
1
  {
2
2
  "name": "@b9g/filesystem",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Universal File System Access API implementations for all platforms",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
- "@b9g/libuild": "^0.1.10",
7
+ "@b9g/libuild": "^0.1.11",
8
8
  "@types/bun": "^1.2.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@types/wicg-file-system-access": "^2023.10.7"
11
+ "@types/wicg-file-system-access": "^2023.10.7",
12
+ "@types/node": "^18.0.0"
13
+ },
14
+ "peerDependenciesMeta": {
15
+ "@types/node": {
16
+ "optional": true
17
+ }
12
18
  },
13
19
  "type": "module",
14
20
  "types": "src/index.d.ts",
@@ -7,9 +7,9 @@ import type { Bucket } from "./types.js";
7
7
  * Example usage:
8
8
  * ```typescript
9
9
  * const buckets = new BucketStorage((name) => {
10
- * if (name === 'uploads') return new S3FileSystemAdapter('my-bucket');
11
- * if (name === 'temp') return new NodeFileSystemAdapter('/tmp');
12
- * return new NodeFileSystemAdapter('./dist'); // Default to dist
10
+ * if (name === 'uploads') return new S3Bucket('my-bucket');
11
+ * if (name === 'temp') return new LocalBucket('/tmp');
12
+ * return new LocalBucket('./dist'); // Default to dist
13
13
  * });
14
14
  * ```
15
15
  */