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 CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
- import { run } from "../src/migrations/cli"
2
+ import { run } from "../dist/migrations/cli.js"
3
3
  await run()
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  __require
4
- } from "./index-z1w83f81.js";
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-haxz1c66.js");
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 };