surrealised
Advanced tools
Comparing version 0.2.14 to 0.3.0
@@ -1,4 +0,3 @@ | ||
import * as surrealdb_js_script_types from 'surrealdb.js/script/types'; | ||
import { Surreal } from 'surrealdb.js'; | ||
import { LiveQueryResponse } from 'surrealdb.js/script/types'; | ||
import { Surreal } from 'surrealdb.js'; | ||
@@ -201,3 +200,5 @@ type OrderByField = Record<string, "ASC" | "DESC">; | ||
*/ | ||
delete(key: string): Promise<any>; | ||
delete(key: string): Promise<{ | ||
[x: string]: any; | ||
}>; | ||
/** | ||
@@ -218,3 +219,3 @@ * Execute a raw query, return the native SurrealDB Library Result | ||
begin(): Promise<void>; | ||
commit(): Promise<surrealdb_js_script_types.RawQueryResult[]>; | ||
commit(): Promise<unknown[]>; | ||
close(): Promise<void>; | ||
@@ -221,0 +222,0 @@ live(table: string, callback: (data: LiveQueryResponse<Record<string, any>>) => any): Promise<void>; |
@@ -294,2 +294,3 @@ var __defProp = Object.defineProperty; | ||
// src/index.ts | ||
var import_embedded = require("surrealdb.node/lib/embedded"); | ||
var SurrealClient = class { | ||
@@ -323,3 +324,5 @@ HOST; | ||
} | ||
this.client = new import_surrealdb.Surreal(); | ||
this.client = new import_surrealdb.Surreal({ | ||
engines: (0, import_embedded.surrealdbNodeEngines)() | ||
}); | ||
this.debugMessage("[SurrealClient] Client created"); | ||
@@ -326,0 +329,0 @@ } |
{ | ||
"name": "surrealised", | ||
"version": "0.2.14", | ||
"version": "0.3.0", | ||
"description": "Another SurrealDB Library for NodeJS", | ||
@@ -36,3 +36,4 @@ "main": "./dist/index.js", | ||
"node": "18", | ||
"surrealdb.js": "0.11.1" | ||
"surrealdb.js": "^1.0.0-beta.9", | ||
"surrealdb.node": "^1.0.0-beta.1" | ||
}, | ||
@@ -39,0 +40,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110295
1228
4
+ Addedsurrealdb.node@^1.0.0-beta.1
+ Added@deno/shim-deno@0.16.1(transitive)
+ Added@deno/shim-deno-test@0.4.0(transitive)
+ Added@icholy/duration@5.1.0(transitive)
+ Addedcbor-redux@1.0.0(transitive)
+ Addeddecimal.js@10.4.3(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisows@1.0.6(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsurrealdb.js@1.0.0(transitive)
+ Addedsurrealdb.node@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-android-arm64@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-darwin-arm64@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-darwin-universal@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-darwin-x64@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-linux-arm64-gnu@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-linux-x64-gnu@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-linux-x64-musl@1.0.0-beta.1(transitive)
+ Addedsurrealdb.node-win32-x64-msvc@1.0.0-beta.1(transitive)
+ Addedutf-8-validate@6.0.5(transitive)
+ Addeduuidv7@0.6.3(transitive)
+ Addedwhich@2.0.2(transitive)
- Removedsurrealdb.js@0.11.1(transitive)
- Removedunws@0.2.4(transitive)
Updatedsurrealdb.js@^1.0.0-beta.9