@ghom/orm 1.2.4 → 1.2.5
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/cjs/app/orm.js +0 -1
- package/dist/esm/app/orm.js +0 -1
- package/package.json +1 -1
- package/src/app/orm.ts +0 -2
package/dist/cjs/app/orm.js
CHANGED
|
@@ -30,7 +30,6 @@ const knex_1 = __importDefault(require("knex"));
|
|
|
30
30
|
const table_js_1 = require("./table.js");
|
|
31
31
|
const pack = JSON.parse(fs_1.default.readFileSync("./package.json", "utf8"));
|
|
32
32
|
const isCJS = pack.type === "commonjs" || pack.type == void 0;
|
|
33
|
-
console.log(pack);
|
|
34
33
|
class ORM extends handler_1.Handler {
|
|
35
34
|
/**
|
|
36
35
|
* @param ormConfig configuration for table handler or just tablePath (path to directory that contains js files of tables)
|
package/dist/esm/app/orm.js
CHANGED
|
@@ -5,7 +5,6 @@ import { default as knex } from "knex";
|
|
|
5
5
|
import { Table } from "./table.js";
|
|
6
6
|
const pack = JSON.parse(fs.readFileSync("./package.json", "utf8"));
|
|
7
7
|
const isCJS = pack.type === "commonjs" || pack.type == void 0;
|
|
8
|
-
console.log(pack);
|
|
9
8
|
export class ORM extends Handler {
|
|
10
9
|
db;
|
|
11
10
|
ormConfig;
|
package/package.json
CHANGED
package/src/app/orm.ts
CHANGED
|
@@ -7,8 +7,6 @@ import { MigrationData, Table } from "./table.js"
|
|
|
7
7
|
const pack = JSON.parse(fs.readFileSync("./package.json", "utf8"))
|
|
8
8
|
const isCJS = pack.type === "commonjs" || pack.type == void 0
|
|
9
9
|
|
|
10
|
-
console.log(pack)
|
|
11
|
-
|
|
12
10
|
export interface ORMLogger {
|
|
13
11
|
log: (message: string, section?: string) => void
|
|
14
12
|
error: (text: string | Error, _path: string, full?: boolean) => void
|