adminforth 1.3.26 → 1.3.27

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/auth.ts CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
2
  import jwt from 'jsonwebtoken';
3
-
4
3
  import crypto from 'crypto';
5
4
  import AdminForth from './index.js';
6
5
 
@@ -1,5 +1,4 @@
1
- import { error } from 'console';
2
- import { IAdminForthFilter, IAdminForthSort, IOperationalResource, IAdminForthDataSourceConnectorBase, AdminForthResource, IAdminForth } from '../types/AdminForthConfig.js';
1
+ import { IAdminForthFilter, IAdminForthSort, IOperationalResource, IAdminForthDataSourceConnectorBase, AdminForthResource } from '../types/AdminForthConfig.js';
3
2
 
4
3
 
5
4
  function filtersIfFilter(filter: IAdminForthFilter | IAdminForthFilter[] | undefined): IAdminForthFilter[] {
@@ -362,8 +362,6 @@ export default class AdminForthRestAPI {
362
362
  }
363
363
  const { limit, offset, filters, sort } = body;
364
364
 
365
-
366
-
367
365
  for (const filter of (filters || [])) {
368
366
  if (!Object.values(AdminForthFilterOperators).includes(filter.operator)) {
369
367
  throw new Error(`Operator '${filter.operator}' is not allowed`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.3.26",
3
+ "version": "1.3.27",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,4 @@
1
1
  import type { Express } from 'express';
2
- import OperationalResource from '../modules/operationalResource.js';
3
2
 
4
3
  export interface ICodeInjector {
5
4
  srcFoldersToSync: Object;