@foretag/tanstack-db-surrealdb 0.1.3 → 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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -26,6 +26,6 @@ type SurrealCollectionConfig<T extends SurrealObject<object>> = {
|
|
|
26
26
|
|
|
27
27
|
declare function surrealCollectionOptions<T extends SyncedRow, S extends Record<string, Container> = {
|
|
28
28
|
[k: string]: never;
|
|
29
|
-
}>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T,
|
|
29
|
+
}>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T, string | number, never, UtilsRecord>;
|
|
30
30
|
|
|
31
31
|
export { surrealCollectionOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,6 @@ type SurrealCollectionConfig<T extends SurrealObject<object>> = {
|
|
|
26
26
|
|
|
27
27
|
declare function surrealCollectionOptions<T extends SyncedRow, S extends Record<string, Container> = {
|
|
28
28
|
[k: string]: never;
|
|
29
|
-
}>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T,
|
|
29
|
+
}>({ id, useLoro, onError, db, ...config }: SurrealCollectionConfig<T>): CollectionConfig<T, string | number, never, UtilsRecord>;
|
|
30
30
|
|
|
31
31
|
export { surrealCollectionOptions };
|
package/dist/index.js
CHANGED
|
@@ -292,7 +292,7 @@ function surrealCollectionOptions({
|
|
|
292
292
|
if (offLive) offLive();
|
|
293
293
|
};
|
|
294
294
|
};
|
|
295
|
-
const now = () => Date
|
|
295
|
+
const now = () => /* @__PURE__ */ new Date();
|
|
296
296
|
const onInsert = async (p) => {
|
|
297
297
|
const resultRows = [];
|
|
298
298
|
for (const m of p.transaction.mutations) {
|
package/dist/index.mjs
CHANGED
|
@@ -274,7 +274,7 @@ function surrealCollectionOptions({
|
|
|
274
274
|
if (offLive) offLive();
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
|
-
const now = () => Date
|
|
277
|
+
const now = () => /* @__PURE__ */ new Date();
|
|
278
278
|
const onInsert = async (p) => {
|
|
279
279
|
const resultRows = [];
|
|
280
280
|
for (const m of p.transaction.mutations) {
|