| … | … | @@ -17,8 +17,8 @@ |
| 17 | 17 | |
| 18 | 18 | import * as dagCbor from '@ipld/dag-cbor' |
| 19 | 19 | import b4a from 'b4a' |
| 20 | import fs from 'node:fs' | |
| 21 | import { join } from 'node:path' | |
| 20 | import fs from '#node:fs' // dual-runtime: bare-fs under Bare (the daemon), builtin fs under Node (tests) | |
| 21 | import { join } from '#node:path' | |
| 22 | 22 | |
| 23 | 23 | const EXT = '.dagcbor' |
| 24 | 24 | const byteOrder = (a, b) => b4a.compare(b4a.from(a), b4a.from(b)) // match Hyperbee's key comparison exactly |
| … | … | @@ -1,7 +1,7 @@ |
| 1 | 1 | { |
| 2 | 2 | "name": "atproto-store", |
| 3 | "version": "0.0.2", | |
| 4 | "description": "Holepunch-native atproto repo store — records in a classic Hyperbee (collection/rkey -> DAG-CBOR). The P2P home; the atproto-repo module is the bridge serializer over it.", | |
| 3 | "version": "0.0.3", | |
| 4 | "description": "Holepunch-native atproto repo store \u2014 records in a classic Hyperbee (collection/rkey -> DAG-CBOR). The P2P home; the atproto-repo module is the bridge serializer over it.", | |
| 5 | 5 | "type": "module", |
| 6 | 6 | "main": "lib/repo-store.js", |
| 7 | 7 | "scripts": { |
| … | … | @@ -13,9 +13,21 @@ |
| 13 | 13 | "b4a": "^1.6.0", |
| 14 | 14 | "corestore": "^7.4.0", |
| 15 | 15 | "hyperbee": "^2.20.0", |
| 16 | "random-access-memory": "^6.2.0" | |
| 16 | "random-access-memory": "^6.2.0", | |
| 17 | "bare-fs": "^4.7.3", | |
| 18 | "bare-path": "^3.0.1" | |
| 17 | 19 | }, |
| 18 | 20 | "devDependencies": { |
| 19 | 21 | "brittle": "^4.0.2" |
| 22 | }, | |
| 23 | "imports": { | |
| 24 | "#node:fs": { | |
| 25 | "bare": "bare-fs", | |
| 26 | "default": "fs" | |
| 27 | }, | |
| 28 | "#node:path": { | |
| 29 | "bare": "bare-path", | |
| 30 | "default": "path" | |
| 31 | } | |
| 20 | 32 | } |
| 21 | 33 | } |