@wxn0brp/db-storage-csv 0.130.0 → 0.131.0
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/adapter.d.ts +1 -1
- package/dist/adapter.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +5 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/adapter.d.ts
CHANGED
package/dist/adapter.js
CHANGED
|
@@ -4,7 +4,7 @@ import { pathRepair } from "@wxn0brp/db-core/base/customFileCpu";
|
|
|
4
4
|
import { parse, stringify } from "csv/sync";
|
|
5
5
|
import { access, mkdir, readdir, readFile, rm, writeFile } from "fs/promises";
|
|
6
6
|
import { version } from "./version.js";
|
|
7
|
-
export class
|
|
7
|
+
export class AdapterCsv extends CustomAdapterBase {
|
|
8
8
|
opts;
|
|
9
9
|
version = version;
|
|
10
10
|
constructor(opts) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { ValtheraClass } from "@wxn0brp/db-core";
|
|
2
|
-
import { Opts } from "./adapter.js";
|
|
2
|
+
import { AdapterCsv, Opts } from "./adapter.js";
|
|
3
3
|
export declare function createCsvValthera(opts: Opts): ValtheraClass;
|
|
4
|
+
export declare const DYNAMIC: {
|
|
5
|
+
def: (opts: Opts) => AdapterCsv;
|
|
6
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ValtheraClass } from "@wxn0brp/db-core";
|
|
2
|
-
import {
|
|
2
|
+
import { AdapterCsv } from "./adapter.js";
|
|
3
3
|
export function createCsvValthera(opts) {
|
|
4
|
-
const csvStorage = new
|
|
4
|
+
const csvStorage = new AdapterCsv(opts);
|
|
5
5
|
return new ValtheraClass({
|
|
6
6
|
adapter: csvStorage,
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
+
export const DYNAMIC = {
|
|
10
|
+
def: (opts) => new AdapterCsv(opts),
|
|
11
|
+
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.131.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.
|
|
1
|
+
export const version = "0.131.0";
|