adminforth 2.0.3 → 2.0.5-next.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.
@@ -1,6 +1,5 @@
1
- import AdminForth, { AdminForthDataTypes, AdminForthResourceInput, AdminForthResource, AdminUser } from 'adminforth';
2
-
3
- import type { AdminUser } from 'adminforth';
1
+ import AdminForth, { AdminForthDataTypes } from 'adminforth';
2
+ import type { AdminForthResourceInput, AdminForthResource, AdminUser } from 'adminforth';
4
3
 
5
4
  async function canModifyUsers({ adminUser }: { adminUser: AdminUser }): Promise<boolean> {
6
5
  return adminUser.dbUser.role === 'superadmin';
@@ -1,6 +1,6 @@
1
1
  import express from 'express';
2
- import AdminForth, { Filters } from 'adminforth';
3
- import usersResource from "./resources/adminuser";
2
+ import AdminForth from 'adminforth';
3
+ import usersResource from "./resources/adminuser.js";
4
4
 
5
5
  const ADMIN_BASE_URL = '';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.0.3",
3
+ "version": "2.0.5-next.1",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",