webspresso 0.0.14 → 0.0.15

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/index.js CHANGED
@@ -63,6 +63,9 @@ module.exports = {
63
63
  // ORM
64
64
  ...orm,
65
65
 
66
+ // Direct zdb export (for convenience)
67
+ zdb: orm.zdb,
68
+
66
69
  // Plugins
67
70
  schemaExplorerPlugin,
68
71
  adminPanelPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webspresso",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Minimal, production-ready SSR framework for Node.js with file-based routing, Nunjucks templating, built-in i18n, and CLI tooling",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -4,8 +4,8 @@
4
4
  * @module plugins/admin-panel/admin-user-model
5
5
  */
6
6
 
7
- const { defineModel } = require('../../../core/orm/model');
8
- const { zdb } = require('../../../core/orm');
7
+ const { defineModel } = require('../../core/orm/model');
8
+ const { zdb } = require('../../core/orm');
9
9
 
10
10
  /**
11
11
  * AdminUser model schema
@@ -23,7 +23,7 @@ const AdminUserSchema = zdb.schema({
23
23
 
24
24
  /**
25
25
  * Create and register AdminUser model
26
- * @returns {import('../../../core/orm/types').ModelDefinition}
26
+ * @returns {import('../../core/orm/types').ModelDefinition}
27
27
  */
28
28
  function createAdminUserModel() {
29
29
  return defineModel({
@@ -4,7 +4,7 @@
4
4
  * @module plugins/admin-panel/api
5
5
  */
6
6
 
7
- const { getAllModels, getModel } = require('../../../core/orm/model');
7
+ const { getAllModels, getModel } = require('../../core/orm/model');
8
8
  const { checkAdminExists, setupAdmin, login, logout, requireAuth } = require('./auth');
9
9
 
10
10
  /**