@omg-dev/db-collection 0.4.24
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/dist/index.mjs +15 -0
- package/package.json +25 -0
- package/src/index.ts +26 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Returns TanStack DB collection configuration options for a Vibes collection.
|
|
4
|
+
* This is a stub — full TanStack DB integration to be implemented.
|
|
5
|
+
*/
|
|
6
|
+
function vibesCollectionOptions(opts) {
|
|
7
|
+
return {
|
|
8
|
+
id: opts.id,
|
|
9
|
+
schema: opts.schema,
|
|
10
|
+
api: opts.api,
|
|
11
|
+
ws: opts.ws
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { vibesCollectionOptions };
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@omg-dev/db-collection",
|
|
3
|
+
"version": "0.4.24",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./src/index.ts",
|
|
8
|
+
"default": "./dist/index.mjs"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/BennyKok/vibes.git"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://docs.omg.dev",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"src"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public",
|
|
23
|
+
"registry": "https://registry.npmjs.org/"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @omg-dev/db-collection — TanStack DB glue (stub for MVP)
|
|
2
|
+
|
|
3
|
+
export interface CollectionOptions {
|
|
4
|
+
id: string
|
|
5
|
+
schema: unknown
|
|
6
|
+
api: string
|
|
7
|
+
ws: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Returns TanStack DB collection configuration options for a Vibes collection.
|
|
12
|
+
* This is a stub — full TanStack DB integration to be implemented.
|
|
13
|
+
*/
|
|
14
|
+
export function vibesCollectionOptions(opts: {
|
|
15
|
+
id: string
|
|
16
|
+
schema: unknown
|
|
17
|
+
api: string
|
|
18
|
+
ws: string
|
|
19
|
+
}): CollectionOptions {
|
|
20
|
+
return {
|
|
21
|
+
id: opts.id,
|
|
22
|
+
schema: opts.schema,
|
|
23
|
+
api: opts.api,
|
|
24
|
+
ws: opts.ws,
|
|
25
|
+
}
|
|
26
|
+
}
|