@wxn0brp/db 0.41.0 → 0.41.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 wxn0brP
3
+ Copyright (c) 2026 wxn0brP
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -10,9 +10,7 @@ import Valthera from "./valthera.js";
10
10
  * @returns A new instance of DataBaseRemote or DataBase.
11
11
  */
12
12
  export function ValtheraAutoCreate(cfg) {
13
- if (typeof cfg === "object")
14
- return new ValtheraRemote(cfg);
15
- if (cfg.startsWith("http"))
13
+ if (typeof cfg === "object" || cfg.startsWith("http"))
16
14
  return new ValtheraRemote(cfg);
17
15
  return new Valthera(cfg);
18
16
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.41.0";
1
+ export const version = "0.41.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "A modular, embedded database for developers who want control over their data storage.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,9 +25,9 @@
25
25
  "lightweight"
26
26
  ],
27
27
  "dependencies": {
28
- "@wxn0brp/db-client": ">=0.2.3",
29
- "@wxn0brp/db-core": ">=0.3.0",
30
- "@wxn0brp/db-storage-dir": ">=0.1.4"
28
+ "@wxn0brp/db-client": ">=0.2.5",
29
+ "@wxn0brp/db-core": ">=0.4.0",
30
+ "@wxn0brp/db-storage-dir": ">=0.1.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "*",