@h3ravel/database 11.2.5 → 11.2.7
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/index.cjs +51 -12532
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -12503
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/dist/chunk-BncF-t-1.cjs +0 -48
- package/dist/chunk-qJlxXUkR.js +0 -33
- package/dist/find-up-simple-B1oThawZ.cjs +0 -36
- package/dist/find-up-simple-B1oThawZ.cjs.map +0 -1
- package/dist/find-up-simple-B98mZ0CB.js +0 -32
- package/dist/find-up-simple-B98mZ0CB.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/database",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.7",
|
|
4
4
|
"description": "Modeling data and migration system for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"sqlite3": "^5.1.7"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@h3ravel/
|
|
44
|
-
"@h3ravel/
|
|
45
|
-
"@h3ravel/support": "^0.10.
|
|
43
|
+
"@h3ravel/filesystem": "^0.4.0",
|
|
44
|
+
"@h3ravel/core": "^1.11.0",
|
|
45
|
+
"@h3ravel/support": "^0.10.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^5.9.2"
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"dev": "tsx watch src/index.ts",
|
|
54
54
|
"start": "node dist/index.js",
|
|
55
55
|
"lint": "eslint . --ext .ts",
|
|
56
|
-
"test": "jest --passWithNoTests"
|
|
56
|
+
"test": "jest --passWithNoTests",
|
|
57
|
+
"version-patch": "pnpm version patch"
|
|
57
58
|
}
|
|
58
59
|
}
|
package/dist/chunk-BncF-t-1.cjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __commonJS = (cb, mod) => function() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
-
key = keys[i];
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
-
get: ((k) => from[k]).bind(null, key),
|
|
19
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
25
|
-
value: mod,
|
|
26
|
-
enumerable: true
|
|
27
|
-
}) : target, mod));
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
|
|
31
|
-
Object.defineProperty(exports, '__commonJS', {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return __commonJS;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, '__esm', {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return __esm;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, '__toESM', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return __toESM;
|
|
47
|
-
}
|
|
48
|
-
});
|
package/dist/chunk-qJlxXUkR.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __esm = (fn, res) => function() {
|
|
11
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
-
};
|
|
13
|
-
var __commonJS = (cb, mod) => function() {
|
|
14
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
-
};
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
18
|
-
key = keys[i];
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
20
|
-
get: ((k) => from[k]).bind(null, key),
|
|
21
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
27
|
-
value: mod,
|
|
28
|
-
enumerable: true
|
|
29
|
-
}) : target, mod));
|
|
30
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
export { __commonJS, __esm, __require, __toESM };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-BncF-t-1.cjs');
|
|
2
|
-
let node_process = require("node:process");
|
|
3
|
-
node_process = require_chunk.__toESM(node_process);
|
|
4
|
-
let node_path = require("node:path");
|
|
5
|
-
node_path = require_chunk.__toESM(node_path);
|
|
6
|
-
let node_fs_promises = require("node:fs/promises");
|
|
7
|
-
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
8
|
-
let node_url = require("node:url");
|
|
9
|
-
node_url = require_chunk.__toESM(node_url);
|
|
10
|
-
require("node:fs");
|
|
11
|
-
|
|
12
|
-
//#region ../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
|
|
13
|
-
async function findUp(name, { cwd = node_process.default.cwd(), type = "file", stopAt } = {}) {
|
|
14
|
-
let directory = node_path.default.resolve(toPath(cwd) ?? "");
|
|
15
|
-
const { root } = node_path.default.parse(directory);
|
|
16
|
-
stopAt = node_path.default.resolve(directory, toPath(stopAt ?? root));
|
|
17
|
-
const isAbsoluteName = node_path.default.isAbsolute(name);
|
|
18
|
-
while (directory) {
|
|
19
|
-
const filePath = isAbsoluteName ? name : node_path.default.join(directory, name);
|
|
20
|
-
try {
|
|
21
|
-
const stats = await node_fs_promises.default.stat(filePath);
|
|
22
|
-
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) return filePath;
|
|
23
|
-
} catch {}
|
|
24
|
-
if (directory === stopAt || directory === root) break;
|
|
25
|
-
directory = node_path.default.dirname(directory);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
var toPath;
|
|
29
|
-
var init_find_up_simple = require_chunk.__esm({ "../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js": (() => {
|
|
30
|
-
toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
31
|
-
}) });
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
init_find_up_simple();
|
|
35
|
-
exports.findUp = findUp;
|
|
36
|
-
//# sourceMappingURL=find-up-simple-B1oThawZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-up-simple-B1oThawZ.cjs","names":["process","path","fsPromises"],"sources":["../../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js"],"sourcesContent":["import process from 'node:process';\nimport fsPromises from 'node:fs/promises';\nimport {fileURLToPath} from 'node:url';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function findUp(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt ?? root));\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\t\ttry {\n\t\t\tconst stats = await fsPromises.stat(filePath); // eslint-disable-line no-await-in-loop\n\t\t\tif ((type === 'file' && stats.isFile()) || (type === 'directory' && stats.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n\nexport function findUpSync(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt) ?? root);\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\n\t\ttry {\n\t\t\tconst stats = fs.statSync(filePath, {throwIfNoEntry: false});\n\t\t\tif ((type === 'file' && stats?.isFile()) || (type === 'directory' && stats?.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAQA,eAAsB,OAAO,MAAM,EAClC,MAAMA,qBAAQ,KAAK,EACnB,OAAO,QACP,WACG,EAAE,EAAE;CACP,IAAI,YAAYC,kBAAK,QAAQ,OAAO,IAAI,IAAI,GAAG;CAC/C,MAAM,EAAC,SAAQA,kBAAK,MAAM,UAAU;AACpC,UAASA,kBAAK,QAAQ,WAAW,OAAO,UAAU,KAAK,CAAC;CACxD,MAAM,iBAAiBA,kBAAK,WAAW,KAAK;AAE5C,QAAO,WAAW;EACjB,MAAM,WAAW,iBAAiB,OAAOA,kBAAK,KAAK,WAAW,KAAK;AACnE,MAAI;GACH,MAAM,QAAQ,MAAMC,yBAAW,KAAK,SAAS;AAC7C,OAAK,SAAS,UAAU,MAAM,QAAQ,IAAM,SAAS,eAAe,MAAM,aAAa,CACtF,QAAO;UAED;AAER,MAAI,cAAc,UAAU,cAAc,KACzC;AAGD,cAAYD,kBAAK,QAAQ,UAAU;;;;;CAzB/B,UAAS,cAAa,qBAAqB,kCAAoB,UAAU,GAAG"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { __esm } from "./chunk-qJlxXUkR.js";
|
|
2
|
-
import process from "node:process";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import fsPromises from "node:fs/promises";
|
|
5
|
-
import { fileURLToPath } from "node:url";
|
|
6
|
-
import "node:fs";
|
|
7
|
-
|
|
8
|
-
//#region ../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
|
|
9
|
-
async function findUp(name, { cwd = process.cwd(), type = "file", stopAt } = {}) {
|
|
10
|
-
let directory = path.resolve(toPath(cwd) ?? "");
|
|
11
|
-
const { root } = path.parse(directory);
|
|
12
|
-
stopAt = path.resolve(directory, toPath(stopAt ?? root));
|
|
13
|
-
const isAbsoluteName = path.isAbsolute(name);
|
|
14
|
-
while (directory) {
|
|
15
|
-
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
16
|
-
try {
|
|
17
|
-
const stats = await fsPromises.stat(filePath);
|
|
18
|
-
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) return filePath;
|
|
19
|
-
} catch {}
|
|
20
|
-
if (directory === stopAt || directory === root) break;
|
|
21
|
-
directory = path.dirname(directory);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
var toPath;
|
|
25
|
-
var init_find_up_simple = __esm({ "../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js": (() => {
|
|
26
|
-
toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
27
|
-
}) });
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
init_find_up_simple();
|
|
31
|
-
export { findUp };
|
|
32
|
-
//# sourceMappingURL=find-up-simple-B98mZ0CB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-up-simple-B98mZ0CB.js","names":[],"sources":["../../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js"],"sourcesContent":["import process from 'node:process';\nimport fsPromises from 'node:fs/promises';\nimport {fileURLToPath} from 'node:url';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function findUp(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt ?? root));\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\t\ttry {\n\t\t\tconst stats = await fsPromises.stat(filePath); // eslint-disable-line no-await-in-loop\n\t\t\tif ((type === 'file' && stats.isFile()) || (type === 'directory' && stats.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n\nexport function findUpSync(name, {\n\tcwd = process.cwd(),\n\ttype = 'file',\n\tstopAt,\n} = {}) {\n\tlet directory = path.resolve(toPath(cwd) ?? '');\n\tconst {root} = path.parse(directory);\n\tstopAt = path.resolve(directory, toPath(stopAt) ?? root);\n\tconst isAbsoluteName = path.isAbsolute(name);\n\n\twhile (directory) {\n\t\tconst filePath = isAbsoluteName ? name : path.join(directory, name);\n\n\t\ttry {\n\t\t\tconst stats = fs.statSync(filePath, {throwIfNoEntry: false});\n\t\t\tif ((type === 'file' && stats?.isFile()) || (type === 'directory' && stats?.isDirectory())) {\n\t\t\t\treturn filePath;\n\t\t\t}\n\t\t} catch {}\n\n\t\tif (directory === stopAt || directory === root) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAQA,eAAsB,OAAO,MAAM,EAClC,MAAM,QAAQ,KAAK,EACnB,OAAO,QACP,WACG,EAAE,EAAE;CACP,IAAI,YAAY,KAAK,QAAQ,OAAO,IAAI,IAAI,GAAG;CAC/C,MAAM,EAAC,SAAQ,KAAK,MAAM,UAAU;AACpC,UAAS,KAAK,QAAQ,WAAW,OAAO,UAAU,KAAK,CAAC;CACxD,MAAM,iBAAiB,KAAK,WAAW,KAAK;AAE5C,QAAO,WAAW;EACjB,MAAM,WAAW,iBAAiB,OAAO,KAAK,KAAK,WAAW,KAAK;AACnE,MAAI;GACH,MAAM,QAAQ,MAAM,WAAW,KAAK,SAAS;AAC7C,OAAK,SAAS,UAAU,MAAM,QAAQ,IAAM,SAAS,eAAe,MAAM,aAAa,CACtF,QAAO;UAED;AAER,MAAI,cAAc,UAAU,cAAc,KACzC;AAGD,cAAY,KAAK,QAAQ,UAAU;;;;;CAzB/B,UAAS,cAAa,qBAAqB,MAAM,cAAc,UAAU,GAAG"}
|