peta-orm 0.2.0 → 0.2.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/bin/peta +1 -1
- package/dist/{index-k44fz2f4.js → index-676a0j9y.js} +2 -2
- package/dist/index-k18nf2r7.js +18 -0
- package/dist/index-m8r7jkr4.js +2398 -0
- package/dist/{index-vnnmp06s.js → index-qwps5bne.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/migrations/cli.js +4079 -0
- package/dist/migrations/config.d.ts.map +1 -1
- package/dist/migrations/index.js +8 -2360
- package/dist/migrations/types.d.ts +1 -1
- package/dist/migrations/types.d.ts.map +1 -1
- package/dist/paginator-xrvkmdyk.js +8 -0
- package/dist/peta.d.ts +1 -0
- package/dist/peta.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/index-z1w83f81.js +0 -4
- package/dist/paginator-haxz1c66.js +0 -8
package/bin/peta
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
__require
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-k18nf2r7.js";
|
|
5
5
|
|
|
6
6
|
// node_modules/@ark/util/out/arrays.js
|
|
7
7
|
var liftArray = (data) => Array.isArray(data) ? data : [data];
|
|
@@ -8633,7 +8633,7 @@ class ModelQueryBuilder {
|
|
|
8633
8633
|
perPage = Math.max(1, Math.min(perPage, 1000));
|
|
8634
8634
|
const total = await this.clone().count();
|
|
8635
8635
|
const items = await this.clone().limit(perPage).offset((page - 1) * perPage).execute();
|
|
8636
|
-
const { Paginator } = await import("./paginator-
|
|
8636
|
+
const { Paginator } = await import("./paginator-xrvkmdyk.js");
|
|
8637
8637
|
return new Paginator(items, total, perPage, page);
|
|
8638
8638
|
}
|
|
8639
8639
|
with(...relations) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __returnValue = (v) => v;
|
|
4
|
+
function __exportSetter(name, newValue) {
|
|
5
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
6
|
+
}
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
set: __exportSetter.bind(all, name)
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var __require = import.meta.require;
|
|
17
|
+
|
|
18
|
+
export { __export, __require };
|