@tachybase/plugin-password-policy 1.3.20 → 1.3.22

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.
Files changed (42) hide show
  1. package/dist/externalVersion.js +3 -6
  2. package/dist/node_modules/geoip-lite/node_modules/.bin/rimraf +2 -2
  3. package/dist/node_modules/geoip-lite/package.json +1 -1
  4. package/dist/server/actions/IpFilterController.d.ts +1 -1
  5. package/dist/server/actions/IpFilterController.js +2 -2
  6. package/dist/server/actions/PasswordAttemptController.d.ts +1 -1
  7. package/dist/server/actions/PasswordAttemptController.js +2 -2
  8. package/dist/server/actions/PasswordPolicyController.d.ts +1 -1
  9. package/dist/server/actions/PasswordPolicyController.js +2 -2
  10. package/dist/server/actions/PasswordStrengthController.d.ts +1 -1
  11. package/dist/server/actions/PasswordStrengthController.js +2 -2
  12. package/dist/server/actions/SignInFailsController.d.ts +1 -1
  13. package/dist/server/actions/SignInFailsController.js +2 -2
  14. package/dist/server/actions/UserLocksController.d.ts +1 -1
  15. package/dist/server/actions/UserLocksController.js +2 -2
  16. package/dist/server/collections/ipFilter.d.ts +1 -1
  17. package/dist/server/collections/ipFilter.js +2 -2
  18. package/dist/server/collections/passwordAttempt.d.ts +1 -1
  19. package/dist/server/collections/passwordAttempt.js +2 -2
  20. package/dist/server/collections/passwordHistory.d.ts +1 -1
  21. package/dist/server/collections/passwordHistory.js +2 -2
  22. package/dist/server/collections/passwordPolicy.d.ts +1 -1
  23. package/dist/server/collections/passwordPolicy.js +2 -2
  24. package/dist/server/collections/passwordStrengthConfig.d.ts +1 -1
  25. package/dist/server/collections/passwordStrengthConfig.js +2 -2
  26. package/dist/server/collections/signInFail.d.ts +1 -1
  27. package/dist/server/collections/signInFail.js +2 -2
  28. package/dist/server/collections/userLocks.d.ts +1 -1
  29. package/dist/server/collections/userLocks.js +2 -2
  30. package/dist/server/collections/users.d.ts +1 -1
  31. package/dist/server/collections/users.js +2 -2
  32. package/dist/server/plugin.d.ts +1 -1
  33. package/dist/server/plugin.js +1 -1
  34. package/dist/server/services/IPFilterService.d.ts +1 -2
  35. package/dist/server/services/IPFilterService.js +2 -2
  36. package/dist/server/services/PasswordAttemptService.d.ts +1 -2
  37. package/dist/server/services/PasswordAttemptService.js +2 -2
  38. package/dist/server/services/PasswordPolicyService.d.ts +1 -2
  39. package/dist/server/services/PasswordPolicyService.js +2 -2
  40. package/dist/server/services/PasswordStrengthService.d.ts +1 -3
  41. package/dist/server/services/PasswordStrengthService.js +2 -2
  42. package/package.json +7 -11
@@ -1,10 +1,7 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.20",
4
- "@tachybase/schema": "1.3.20",
3
+ "@tachybase/client": "1.3.22",
4
+ "@tachybase/schema": "1.3.39",
5
5
  "antd": "5.22.5",
6
- "@tachybase/server": "1.3.20",
7
- "@tachybase/actions": "1.3.20",
8
- "@tachybase/utils": "1.3.20",
9
- "@tachybase/database": "1.3.20"
6
+ "@tego/server": "1.3.39"
10
7
  };
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/rimraf@2.7.1/node_modules/rimraf/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/rimraf@2.7.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/rimraf@2.7.1/node_modules/rimraf/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/rimraf@2.7.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/rimraf@2.7.1/node_modules/rimraf/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/rimraf@2.7.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/rimraf@2.7.1/node_modules/rimraf/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/rimraf@2.7.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../rimraf@2.7.1/node_modules/rimraf/bin.js" "$@"
@@ -1 +1 @@
1
- {"name":"geoip-lite","version":"1.4.10","description":"A light weight native JavaScript implementation of GeoIP API from MaxMind","keywords":["geo","geoip","ip","ipv4","ipv6","geolookup","maxmind","geolite"],"homepage":"https://github.com/geoip-lite/node-geoip","author":"Philip Tellis <philip@bluesmoon.info> (http://bluesmoon.info/)","files":["lib/","data/","test/","scripts/"],"main":"lib/geoip.js","repository":{"type":"git","url":"git://github.com/geoip-lite/node-geoip.git"},"engines":{"node":">=10.3.0"},"scripts":{"pretest":"eslint .","test":"nodeunit --reporter=minimal test/tests.js","updatedb":"node scripts/updatedb.js","updatedb-debug":"node scripts/updatedb.js debug","updatedb-force":"node scripts/updatedb.js force"},"dependencies":{"async":"2.1 - 2.6.4","chalk":"4.1 - 4.1.2","iconv-lite":"0.4.13 - 0.6.3","ip-address":"5.8.9 - 5.9.4","lazy":"1.0.11","rimraf":"2.5.2 - 2.7.1","yauzl":"2.9.2 - 2.10.0"},"config":{"update":true},"devDependencies":{"eslint":"^5.12.1","nodeunit":"^0.11.2"},"license":"Apache-2.0","_lastModified":"2025-07-24T06:22:39.874Z"}
1
+ {"name":"geoip-lite","version":"1.4.10","description":"A light weight native JavaScript implementation of GeoIP API from MaxMind","keywords":["geo","geoip","ip","ipv4","ipv6","geolookup","maxmind","geolite"],"homepage":"https://github.com/geoip-lite/node-geoip","author":"Philip Tellis <philip@bluesmoon.info> (http://bluesmoon.info/)","files":["lib/","data/","test/","scripts/"],"main":"lib/geoip.js","repository":{"type":"git","url":"git://github.com/geoip-lite/node-geoip.git"},"engines":{"node":">=10.3.0"},"scripts":{"pretest":"eslint .","test":"nodeunit --reporter=minimal test/tests.js","updatedb":"node scripts/updatedb.js","updatedb-debug":"node scripts/updatedb.js debug","updatedb-force":"node scripts/updatedb.js force"},"dependencies":{"async":"2.1 - 2.6.4","chalk":"4.1 - 4.1.2","iconv-lite":"0.4.13 - 0.6.3","ip-address":"5.8.9 - 5.9.4","lazy":"1.0.11","rimraf":"2.5.2 - 2.7.1","yauzl":"2.9.2 - 2.10.0"},"config":{"update":true},"devDependencies":{"eslint":"^5.12.1","nodeunit":"^0.11.2"},"license":"Apache-2.0","_lastModified":"2025-07-29T06:20:45.114Z"}
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  import { IPFilterService } from '../services/IPFilterService';
3
3
  export declare class IpFilterController {
4
4
  ipFilterService: IPFilterService;
@@ -65,10 +65,10 @@ __export(IpFilterController_exports, {
65
65
  IpFilterController: () => IpFilterController
66
66
  });
67
67
  module.exports = __toCommonJS(IpFilterController_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var import_IPFilterService = require("../services/IPFilterService");
70
70
  var _setConfig_dec, _getConfig_dec, _ipFilterService_dec, _IpFilterController_decorators, _init;
71
- _IpFilterController_decorators = [(0, import_utils.Controller)("ipFilter")], _ipFilterService_dec = [(0, import_utils.Inject)(() => import_IPFilterService.IPFilterService)], _getConfig_dec = [(0, import_utils.Action)("get")], _setConfig_dec = [(0, import_utils.Action)("put")];
71
+ _IpFilterController_decorators = [(0, import_server.Controller)("ipFilter")], _ipFilterService_dec = [(0, import_server.Inject)(() => import_IPFilterService.IPFilterService)], _getConfig_dec = [(0, import_server.Action)("get")], _setConfig_dec = [(0, import_server.Action)("put")];
72
72
  class IpFilterController {
73
73
  constructor() {
74
74
  __runInitializers(_init, 5, this);
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  import { PasswordAttemptService } from '../services/PasswordAttemptService';
3
3
  export declare class PasswordAttemptController {
4
4
  passwordAttemptService: PasswordAttemptService;
@@ -65,10 +65,10 @@ __export(PasswordAttemptController_exports, {
65
65
  PasswordAttemptController: () => PasswordAttemptController
66
66
  });
67
67
  module.exports = __toCommonJS(PasswordAttemptController_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var import_PasswordAttemptService = require("../services/PasswordAttemptService");
70
70
  var _setConfiguration_dec, _getConfig_dec, _passwordAttemptService_dec, _PasswordAttemptController_decorators, _init;
71
- _PasswordAttemptController_decorators = [(0, import_utils.Controller)("passwordAttempt")], _passwordAttemptService_dec = [(0, import_utils.Inject)(() => import_PasswordAttemptService.PasswordAttemptService)], _getConfig_dec = [(0, import_utils.Action)("get")], _setConfiguration_dec = [(0, import_utils.Action)("put")];
71
+ _PasswordAttemptController_decorators = [(0, import_server.Controller)("passwordAttempt")], _passwordAttemptService_dec = [(0, import_server.Inject)(() => import_PasswordAttemptService.PasswordAttemptService)], _getConfig_dec = [(0, import_server.Action)("get")], _setConfiguration_dec = [(0, import_server.Action)("put")];
72
72
  class PasswordAttemptController {
73
73
  constructor() {
74
74
  __runInitializers(_init, 5, this);
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  import { PasswordPolicyService } from '../services/PasswordPolicyService';
3
3
  export declare class PasswordPolicyController {
4
4
  passwordPolicyService: PasswordPolicyService;
@@ -65,11 +65,11 @@ __export(PasswordPolicyController_exports, {
65
65
  PasswordPolicyController: () => PasswordPolicyController
66
66
  });
67
67
  module.exports = __toCommonJS(PasswordPolicyController_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var import_constants = require("../../constants");
70
70
  var import_PasswordPolicyService = require("../services/PasswordPolicyService");
71
71
  var _setConfiguration_dec, _getConfig_dec, _passwordPolicyService_dec, _PasswordPolicyController_decorators, _init;
72
- _PasswordPolicyController_decorators = [(0, import_utils.Controller)(import_constants.COLLECTION_PASSWORD_POLICY)], _passwordPolicyService_dec = [(0, import_utils.Inject)(() => import_PasswordPolicyService.PasswordPolicyService)], _getConfig_dec = [(0, import_utils.Action)("get")], _setConfiguration_dec = [(0, import_utils.Action)("set")];
72
+ _PasswordPolicyController_decorators = [(0, import_server.Controller)(import_constants.COLLECTION_PASSWORD_POLICY)], _passwordPolicyService_dec = [(0, import_server.Inject)(() => import_PasswordPolicyService.PasswordPolicyService)], _getConfig_dec = [(0, import_server.Action)("get")], _setConfiguration_dec = [(0, import_server.Action)("set")];
73
73
  class PasswordPolicyController {
74
74
  constructor() {
75
75
  __runInitializers(_init, 5, this);
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  import { PasswordStrengthService } from '../services/PasswordStrengthService';
3
3
  export declare class PasswordStrengthController {
4
4
  passwordStrengthService: PasswordStrengthService;
@@ -65,10 +65,10 @@ __export(PasswordStrengthController_exports, {
65
65
  PasswordStrengthController: () => PasswordStrengthController
66
66
  });
67
67
  module.exports = __toCommonJS(PasswordStrengthController_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var import_PasswordStrengthService = require("../services/PasswordStrengthService");
70
70
  var _setConfiguration_dec, _getConfig_dec, _passwordStrengthService_dec, _PasswordStrengthController_decorators, _init;
71
- _PasswordStrengthController_decorators = [(0, import_utils.Controller)("passwordStrengthConfig")], _passwordStrengthService_dec = [(0, import_utils.Inject)(() => import_PasswordStrengthService.PasswordStrengthService)], _getConfig_dec = [(0, import_utils.Action)("get")], _setConfiguration_dec = [(0, import_utils.Action)("put")];
71
+ _PasswordStrengthController_decorators = [(0, import_server.Controller)("passwordStrengthConfig")], _passwordStrengthService_dec = [(0, import_server.Inject)(() => import_PasswordStrengthService.PasswordStrengthService)], _getConfig_dec = [(0, import_server.Action)("get")], _setConfiguration_dec = [(0, import_server.Action)("put")];
72
72
  class PasswordStrengthController {
73
73
  constructor() {
74
74
  __runInitializers(_init, 5, this);
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare class SignInFailsController {
3
3
  list(ctx: Context, next: Next): Promise<any>;
4
4
  get(ctx: Context, next: Next): Promise<any>;
@@ -65,9 +65,9 @@ __export(SignInFailsController_exports, {
65
65
  SignInFailsController: () => SignInFailsController
66
66
  });
67
67
  module.exports = __toCommonJS(SignInFailsController_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var _get_dec, _list_dec, _SignInFailsController_decorators, _init;
70
- _SignInFailsController_decorators = [(0, import_utils.Controller)("signInFails")], _list_dec = [(0, import_utils.Action)("list")], _get_dec = [(0, import_utils.Action)("get")];
70
+ _SignInFailsController_decorators = [(0, import_server.Controller)("signInFails")], _list_dec = [(0, import_server.Action)("list")], _get_dec = [(0, import_server.Action)("get")];
71
71
  class SignInFailsController {
72
72
  constructor() {
73
73
  __runInitializers(_init, 5, this);
@@ -1,4 +1,4 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare class UserLocksController {
3
3
  create(ctx: Context, next: Next): Promise<void>;
4
4
  }
@@ -65,9 +65,9 @@ __export(UserLocksController_exports, {
65
65
  UserLocksController: () => UserLocksController
66
66
  });
67
67
  module.exports = __toCommonJS(UserLocksController_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var _create_dec, _UserLocksController_decorators, _init;
70
- _UserLocksController_decorators = [(0, import_utils.Controller)("userLocks")], _create_dec = [(0, import_utils.Action)("create")];
70
+ _UserLocksController_decorators = [(0, import_server.Controller)("userLocks")], _create_dec = [(0, import_server.Action)("create")];
71
71
  class UserLocksController {
72
72
  constructor() {
73
73
  __runInitializers(_init, 5, this);
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(ipFilter_exports, {
20
20
  default: () => ipFilter_default
21
21
  });
22
22
  module.exports = __toCommonJS(ipFilter_exports);
23
- var import_database = require("@tachybase/database");
24
- var ipFilter_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var ipFilter_default = (0, import_server.defineCollection)({
25
25
  dumpRules: {
26
26
  group: "user"
27
27
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(passwordAttempt_exports, {
20
20
  default: () => passwordAttempt_default
21
21
  });
22
22
  module.exports = __toCommonJS(passwordAttempt_exports);
23
- var import_database = require("@tachybase/database");
24
- var passwordAttempt_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var passwordAttempt_default = (0, import_server.defineCollection)({
25
25
  dumpRules: {
26
26
  group: "user"
27
27
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(passwordHistory_exports, {
20
20
  default: () => passwordHistory_default
21
21
  });
22
22
  module.exports = __toCommonJS(passwordHistory_exports);
23
- var import_database = require("@tachybase/database");
24
- var passwordHistory_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var passwordHistory_default = (0, import_server.defineCollection)({
25
25
  dumpRules: {
26
26
  group: "user"
27
27
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,9 +20,9 @@ __export(passwordPolicy_exports, {
20
20
  default: () => passwordPolicy_default
21
21
  });
22
22
  module.exports = __toCommonJS(passwordPolicy_exports);
23
- var import_database = require("@tachybase/database");
23
+ var import_server = require("@tego/server");
24
24
  var import_constants = require("../../constants");
25
- var passwordPolicy_default = (0, import_database.defineCollection)({
25
+ var passwordPolicy_default = (0, import_server.defineCollection)({
26
26
  dumpRules: {
27
27
  group: "user"
28
28
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(passwordStrengthConfig_exports, {
20
20
  default: () => passwordStrengthConfig_default
21
21
  });
22
22
  module.exports = __toCommonJS(passwordStrengthConfig_exports);
23
- var import_database = require("@tachybase/database");
24
- var passwordStrengthConfig_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var passwordStrengthConfig_default = (0, import_server.defineCollection)({
25
25
  dumpRules: {
26
26
  group: "user"
27
27
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(signInFail_exports, {
20
20
  default: () => signInFail_default
21
21
  });
22
22
  module.exports = __toCommonJS(signInFail_exports);
23
- var import_database = require("@tachybase/database");
24
- var signInFail_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var signInFail_default = (0, import_server.defineCollection)({
25
25
  dumpRules: {
26
26
  group: "user"
27
27
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionOptions;
1
+ declare const _default: import("@tego/server").CollectionOptions;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(userLocks_exports, {
20
20
  default: () => userLocks_default
21
21
  });
22
22
  module.exports = __toCommonJS(userLocks_exports);
23
- var import_database = require("@tachybase/database");
24
- var userLocks_default = (0, import_database.defineCollection)({
23
+ var import_server = require("@tego/server");
24
+ var userLocks_default = (0, import_server.defineCollection)({
25
25
  dumpRules: {
26
26
  group: "user"
27
27
  },
@@ -1,2 +1,2 @@
1
- declare const _default: import("@tachybase/database").CollectionDef;
1
+ declare const _default: import("@tego/server").CollectionDef;
2
2
  export default _default;
@@ -20,8 +20,8 @@ __export(users_exports, {
20
20
  default: () => users_default
21
21
  });
22
22
  module.exports = __toCommonJS(users_exports);
23
- var import_database = require("@tachybase/database");
24
- var users_default = (0, import_database.extendCollection)({
23
+ var import_server = require("@tego/server");
24
+ var users_default = (0, import_server.extendCollection)({
25
25
  name: "users",
26
26
  fields: [
27
27
  {
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginPasswordPolicyServer extends Plugin {
3
3
  load(): Promise<void>;
4
4
  }
@@ -66,7 +66,7 @@ __export(plugin_exports, {
66
66
  default: () => plugin_default
67
67
  });
68
68
  module.exports = __toCommonJS(plugin_exports);
69
- var import_server = require("@tachybase/server");
69
+ var import_server = require("@tego/server");
70
70
  var import_IpFilterController = require("./actions/IpFilterController");
71
71
  var import_PasswordAttemptController = require("./actions/PasswordAttemptController");
72
72
  var import_PasswordPolicyController = require("./actions/PasswordPolicyController");
@@ -1,5 +1,4 @@
1
- import Database from '@tachybase/database';
2
- import { Application } from '@tachybase/server';
1
+ import { Application, Database } from '@tego/server';
3
2
  export declare class IPFilterService {
4
3
  db: Database;
5
4
  app: Application;
@@ -74,11 +74,11 @@ __export(IPFilterService_exports, {
74
74
  IPFilterService: () => IPFilterService
75
75
  });
76
76
  module.exports = __toCommonJS(IPFilterService_exports);
77
- var import_utils = require("@tachybase/utils");
77
+ var import_server = require("@tego/server");
78
78
  var ipaddr = __toESM(require("ipaddr.js"));
79
79
  var import_constants = require("../../constants");
80
80
  var _logger_dec, _app_dec, _db_dec, _IPFilterService_decorators, _init;
81
- _IPFilterService_decorators = [(0, import_utils.Service)()], _db_dec = [(0, import_utils.Db)()], _app_dec = [(0, import_utils.App)()], _logger_dec = [(0, import_utils.InjectLog)()];
81
+ _IPFilterService_decorators = [(0, import_server.Service)()], _db_dec = [(0, import_server.Db)()], _app_dec = [(0, import_server.App)()], _logger_dec = [(0, import_server.InjectLog)()];
82
82
  class IPFilterService {
83
83
  constructor() {
84
84
  this.db = __runInitializers(_init, 8, this), __runInitializers(_init, 11, this);
@@ -1,5 +1,4 @@
1
- import Database from '@tachybase/database';
2
- import { Application } from '@tachybase/server';
1
+ import { Application, Database } from '@tego/server';
3
2
  export declare class PasswordAttemptService {
4
3
  db: Database;
5
4
  app: Application;
@@ -74,11 +74,11 @@ __export(PasswordAttemptService_exports, {
74
74
  PasswordAttemptService: () => PasswordAttemptService
75
75
  });
76
76
  module.exports = __toCommonJS(PasswordAttemptService_exports);
77
- var import_utils = require("@tachybase/utils");
77
+ var import_server = require("@tego/server");
78
78
  var geoip = __toESM(require("geoip-lite"));
79
79
  var import_constants = require("../../constants");
80
80
  var _logger_dec, _app_dec, _db_dec, _PasswordAttemptService_decorators, _init;
81
- _PasswordAttemptService_decorators = [(0, import_utils.Service)()], _db_dec = [(0, import_utils.Db)()], _app_dec = [(0, import_utils.App)()], _logger_dec = [(0, import_utils.InjectLog)()];
81
+ _PasswordAttemptService_decorators = [(0, import_server.Service)()], _db_dec = [(0, import_server.Db)()], _app_dec = [(0, import_server.App)()], _logger_dec = [(0, import_server.InjectLog)()];
82
82
  class PasswordAttemptService {
83
83
  constructor() {
84
84
  this.db = __runInitializers(_init, 8, this), __runInitializers(_init, 11, this);
@@ -1,5 +1,4 @@
1
- import Database from '@tachybase/database';
2
- import { Application } from '@tachybase/server';
1
+ import { Application, Database } from '@tego/server';
3
2
  export declare class PasswordPolicyService {
4
3
  db: Database;
5
4
  app: Application;
@@ -74,11 +74,11 @@ __export(PasswordPolicyService_exports, {
74
74
  PasswordPolicyService: () => PasswordPolicyService
75
75
  });
76
76
  module.exports = __toCommonJS(PasswordPolicyService_exports);
77
- var import_utils = require("@tachybase/utils");
77
+ var import_server = require("@tego/server");
78
78
  var geoip = __toESM(require("geoip-lite"));
79
79
  var import_constants = require("../../constants");
80
80
  var _logger_dec, _app_dec, _db_dec, _PasswordPolicyService_decorators, _init;
81
- _PasswordPolicyService_decorators = [(0, import_utils.Service)()], _db_dec = [(0, import_utils.Db)()], _app_dec = [(0, import_utils.App)()], _logger_dec = [(0, import_utils.InjectLog)()];
81
+ _PasswordPolicyService_decorators = [(0, import_server.Service)()], _db_dec = [(0, import_server.Db)()], _app_dec = [(0, import_server.App)()], _logger_dec = [(0, import_server.InjectLog)()];
82
82
  class PasswordPolicyService {
83
83
  constructor() {
84
84
  this.db = __runInitializers(_init, 8, this), __runInitializers(_init, 11, this);
@@ -1,6 +1,4 @@
1
- import { Context } from '@tachybase/actions';
2
- import Database from '@tachybase/database';
3
- import { Application } from '@tachybase/server';
1
+ import { Application, Context, Database } from '@tego/server';
4
2
  export declare class PasswordStrengthService {
5
3
  db: Database;
6
4
  app: Application;
@@ -65,10 +65,10 @@ __export(PasswordStrengthService_exports, {
65
65
  PasswordStrengthService: () => PasswordStrengthService
66
66
  });
67
67
  module.exports = __toCommonJS(PasswordStrengthService_exports);
68
- var import_utils = require("@tachybase/utils");
68
+ var import_server = require("@tego/server");
69
69
  var import_constants = require("../../constants");
70
70
  var _logger_dec, _app_dec, _db_dec, _PasswordStrengthService_decorators, _init;
71
- _PasswordStrengthService_decorators = [(0, import_utils.Service)()], _db_dec = [(0, import_utils.Db)()], _app_dec = [(0, import_utils.App)()], _logger_dec = [(0, import_utils.InjectLog)()];
71
+ _PasswordStrengthService_decorators = [(0, import_server.Service)()], _db_dec = [(0, import_server.Db)()], _app_dec = [(0, import_server.App)()], _logger_dec = [(0, import_server.InjectLog)()];
72
72
  class PasswordStrengthService {
73
73
  constructor() {
74
74
  this.db = __runInitializers(_init, 8, this), __runInitializers(_init, 11, this);
package/package.json CHANGED
@@ -1,25 +1,21 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-password-policy",
3
3
  "displayName": "Password policy",
4
- "version": "1.3.20",
4
+ "version": "1.3.22",
5
5
  "description": "Password policy, including password strength, password attempt limit, password lock time, ip whitelist/blacklist, etc.",
6
6
  "keywords": [
7
7
  "Security"
8
8
  ],
9
9
  "main": "dist/server/index.js",
10
10
  "devDependencies": {
11
- "@ant-design/icons": "^5.5.2",
11
+ "@ant-design/icons": "^5.6.1",
12
+ "@tachybase/schema": "^1.3.39",
13
+ "@tego/client": "^1.3.39",
14
+ "@tego/server": "^1.3.39",
12
15
  "antd": "5.22.5",
13
16
  "geoip-lite": "^1.4.9",
14
- "ipaddr.js": "^2.1.0"
15
- },
16
- "peerDependencies": {
17
- "@tachybase/actions": "1.3.20",
18
- "@tachybase/client": "1.3.20",
19
- "@tachybase/server": "1.3.20",
20
- "@tachybase/database": "1.3.20",
21
- "@tachybase/utils": "1.3.20",
22
- "@tachybase/schema": "1.3.20"
17
+ "ipaddr.js": "^2.1.0",
18
+ "@tachybase/client": "1.3.22"
23
19
  },
24
20
  "description.zh-CN": "密码策略, 包含密码强度、密码尝试次数限制、密码锁定时间、ip黑白名单等",
25
21
  "displayName.zh-CN": "密码策略"