@tomei/sso 0.51.3 → 0.51.5

Sign up to get free protection for your applications and to get access to all the features.
package/eslint.config.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import eslintPlugin from "@typescript-eslint/eslint-plugin";
2
2
  import parser from "@typescript-eslint/parser";
3
+ import importPlugin from 'eslint-plugin-import'
3
4
 
4
5
  export default [
5
6
  {
@@ -10,6 +11,7 @@ export default [
10
11
  },
11
12
  plugins: {
12
13
  "@typescript-eslint": eslintPlugin,
14
+ import: importPlugin
13
15
  },
14
16
  rules: {
15
17
  "no-console": "off",
@@ -31,6 +33,16 @@ export default [
31
33
  "@typescript-eslint/no-unsafe-return": "off",
32
34
  "@typescript-eslint/restrict-template-expressions": "off",
33
35
  "no-useless-escape": "off",
36
+ // Disallow absolute paths
37
+ "import/no-absolute-path": "error",
38
+ // Enforce relative imports within the same parent directory
39
+ 'no-restricted-imports': [
40
+ 'error',
41
+ {
42
+ paths: [],
43
+ patterns: ['*/src/*'], // Replace this with your base path if different
44
+ },
45
+ ],
34
46
  },
35
47
  ignores: ["node_modules", "dist"],
36
48
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.51.3",
3
+ "version": "0.51.5",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -41,6 +41,7 @@
41
41
  "dotenv": "^16.4.5",
42
42
  "eslint": "^9.15.0",
43
43
  "eslint-config-prettier": "^9.1.0",
44
+ "eslint-plugin-import": "^2.31.0",
44
45
  "eslint-plugin-prettier": "^5.2.1",
45
46
  "globals": "^15.12.0",
46
47
  "husky": "^9.1.7",
@@ -62,10 +63,10 @@
62
63
  "access": "public"
63
64
  },
64
65
  "peerDependencies": {
65
- "@tomei/activity-history": "^0.2.21",
66
- "@tomei/config": "^0.3.19",
67
- "@tomei/general": "^0.21.0",
68
- "@tomei/mailer": "^0.5.19",
66
+ "@tomei/activity-history": "^0.2.22",
67
+ "@tomei/config": "^0.3.20",
68
+ "@tomei/general": "^0.21.2",
69
+ "@tomei/mailer": "^0.5.20",
69
70
  "argon2": "^0.41.1",
70
71
  "redis": "^4.7.0",
71
72
  "reflect-metadata": "^0.2.2",
@@ -1,7 +1,7 @@
1
1
  import { ClassError, ObjectBase, TreeNodeBase } from '@tomei/general';
2
2
  import { GroupRepository } from './group.repository';
3
3
  import { IGroupAttr } from '../../interfaces/group.interface';
4
- import { GroupTypeEnum } from 'enum';
4
+ import { GroupTypeEnum } from '../../enum';
5
5
  import { LoginUser } from '../login-user/login-user';
6
6
  import { IGroupSearchAttr } from '../../interfaces/group-search-attr.interface';
7
7
  import { ApplicationConfig } from '@tomei/config';
@@ -1,5 +1,3 @@
1
- import { GroupTypeEnum } from 'enum';
2
-
3
1
  export interface IGroupReportingUserAttr {
4
2
  GroupReportingUserId: number;
5
3
  GroupCode: string;