@seaverse/dataservice 1.0.0 → 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/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ TypeScript/JavaScript SDK for universal data storage with PostgREST.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @seaverse/
|
|
8
|
+
npm install @seaverse/dataservice
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { createClient } from '@seaverse/
|
|
14
|
+
import { createClient } from '@seaverse/dataservice';
|
|
15
15
|
|
|
16
16
|
// appId is automatically extracted from current URL
|
|
17
17
|
const client = createClient({
|
|
@@ -316,7 +316,7 @@ console.log(record.data.invalid); // ✗ TypeScript error
|
|
|
316
316
|
## Error Handling
|
|
317
317
|
|
|
318
318
|
```typescript
|
|
319
|
-
import { DataServiceError } from '@seaverse/
|
|
319
|
+
import { DataServiceError } from '@seaverse/dataservice';
|
|
320
320
|
|
|
321
321
|
try {
|
|
322
322
|
await collection.insert(data);
|
|
@@ -339,8 +339,8 @@ try {
|
|
|
339
339
|
### Setup
|
|
340
340
|
|
|
341
341
|
```bash
|
|
342
|
-
git clone https://github.com/seaverse/
|
|
343
|
-
cd
|
|
342
|
+
git clone https://github.com/seaverse/dataservice
|
|
343
|
+
cd dataservice
|
|
344
344
|
npm install
|
|
345
345
|
npm run build
|
|
346
346
|
```
|
|
@@ -384,6 +384,6 @@ MIT - See [LICENSE](LICENSE)
|
|
|
384
384
|
|
|
385
385
|
## Links
|
|
386
386
|
|
|
387
|
-
- [GitHub](https://github.com/seaverse/
|
|
388
|
-
- [Issues](https://github.com/seaverse/
|
|
387
|
+
- [GitHub](https://github.com/seaverse/dataservice)
|
|
388
|
+
- [Issues](https://github.com/seaverse/dataservice/issues)
|
|
389
389
|
- [AI Usage Guide](AI-USAGE-GUIDE.md)
|