adonisjs-server-stats 1.11.2 → 1.11.3

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.
@@ -114,9 +114,8 @@ export default class DebugController {
114
114
  }
115
115
  if (!this.cachedAdonisVersion) {
116
116
  try {
117
- const { createRequire } = await import('node:module');
118
- const req = createRequire(import.meta.url);
119
- const adonisPkg = req('@adonisjs/core/package.json');
117
+ const { appImport } = await import('../utils/app_import.js');
118
+ const adonisPkg = await appImport('@adonisjs/core/package.json');
120
119
  this.cachedAdonisVersion = adonisPkg.version;
121
120
  }
122
121
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adonisjs-server-stats",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "Real-time server monitoring for AdonisJS v6 applications",
5
5
  "keywords": [
6
6
  "adonisjs",