@rolder/kit 3.0.0-alpha.91 → 3.0.0-alpha.92

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.
@@ -1,16 +1,12 @@
1
1
  import { createServerOnlyFn } from "@tanstack/react-start";
2
2
  import { getCookie } from "@tanstack/react-start/server";
3
- import { DateTime, Surreal, applyDiagnostics, createRemoteEngines } from "surrealdb";
3
+ import { DateTime, Surreal } from "surrealdb";
4
4
  let db = null;
5
5
  const getDB = createServerOnlyFn(async (params = {})=>{
6
- console.log('DB');
7
6
  if (db?.isConnected) return db;
8
7
  const locale = getCookie('locale') || 'ru-RU';
9
8
  const timeZone = getCookie('tz') || 'UTC';
10
9
  const instance = new Surreal({
11
- engines: applyDiagnostics(createRemoteEngines(), (event)=>{
12
- console.log(event);
13
- }),
14
10
  codecOptions: params.codecOptions || {
15
11
  valueDecodeVisitor (value) {
16
12
  if (value instanceof DateTime) return new Date(value.toDate()).toLocaleDateString(locale, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolder/kit",
3
- "version": "3.0.0-alpha.91",
3
+ "version": "3.0.0-alpha.92",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {