@ghom/orm 1.5.0 → 1.5.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.
@@ -47,6 +47,7 @@ class ORM {
47
47
  });
48
48
  this.handler = new handler_1.Handler(config.location, {
49
49
  loader: (filepath) => Promise.resolve(`${isCJS ? filepath : url_1.default.pathToFileURL(filepath).href}`).then(s => __importStar(require(s))).then((file) => file.default),
50
+ pattern: /\.js$/,
50
51
  });
51
52
  }
52
53
  async init() {
@@ -21,6 +21,7 @@ export class ORM {
21
21
  });
22
22
  this.handler = new Handler(config.location, {
23
23
  loader: (filepath) => import(isCJS ? filepath : url.pathToFileURL(filepath).href).then((file) => file.default),
24
+ pattern: /\.js$/,
24
25
  });
25
26
  }
26
27
  async init() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghom/orm",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -33,7 +33,7 @@
33
33
  "sqlite3": "^5.1.6"
34
34
  },
35
35
  "dependencies": {
36
- "@ghom/handler": "^1.2.0",
36
+ "@ghom/handler": "^1.3.0",
37
37
  "knex": "^2.4.2"
38
38
  }
39
39
  }
package/src/app/orm.ts CHANGED
@@ -61,6 +61,7 @@ export class ORM {
61
61
  import(isCJS ? filepath : url.pathToFileURL(filepath).href).then(
62
62
  (file) => file.default
63
63
  ),
64
+ pattern: /\.js$/,
64
65
  })
65
66
  }
66
67