@tachybase/plugin-auth-wecom 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.
@@ -1,12 +1,10 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.20",
4
- "@ant-design/icons": "5.5.2",
3
+ "@tachybase/client": "1.3.22",
4
+ "@ant-design/icons": "5.6.1",
5
5
  "antd": "5.22.5",
6
6
  "react-router-dom": "6.28.1",
7
- "@tachybase/module-auth": "1.3.20",
8
- "@tachybase/server": "1.3.20",
9
- "@tachybase/auth": "1.3.20",
10
- "axios": "1.7.7",
11
- "@tachybase/actions": "1.3.20"
7
+ "@tachybase/module-auth": "1.3.22",
8
+ "@tego/server": "1.3.39",
9
+ "axios": "1.7.7"
12
10
  };
@@ -1,3 +1,3 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare const getAuthUrl: (ctx: Context, next: Next) => Promise<void>;
3
3
  export declare const redirect: (ctx: Context, next: Next) => Promise<void>;
@@ -21,7 +21,7 @@ __export(work_exports, {
21
21
  redirect: () => redirect
22
22
  });
23
23
  module.exports = __toCommonJS(work_exports);
24
- var import_server = require("@tachybase/server");
24
+ var import_server = require("@tego/server");
25
25
  const getAuthUrl = async (ctx, next) => {
26
26
  const { redirect: redirect2 } = ctx.action.params.values;
27
27
  const url = await ctx.auth.getAuthUrl(redirect2);
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginWorkWeChatServer extends Plugin {
3
3
  afterAdd(): Promise<void>;
4
4
  beforeLoad(): Promise<void>;
@@ -21,7 +21,7 @@ __export(plugin_exports, {
21
21
  default: () => plugin_default
22
22
  });
23
23
  module.exports = __toCommonJS(plugin_exports);
24
- var import_server = require("@tachybase/server");
24
+ var import_server = require("@tego/server");
25
25
  var import_constants = require("../constants");
26
26
  var import_work = require("./actions/work");
27
27
  var import_work_auth = require("./work-auth");
@@ -1,5 +1,5 @@
1
- import { AuthConfig, BaseAuth } from '@tachybase/auth';
2
- export { Model } from '@tachybase/database';
1
+ import { AuthConfig, BaseAuth } from '@tego/server';
2
+ export { Model } from '@tego/server';
3
3
  export declare class WorkAuth extends BaseAuth {
4
4
  constructor(config: AuthConfig);
5
5
  validate(): Promise<any>;
@@ -17,15 +17,15 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var work_auth_exports = {};
19
19
  __export(work_auth_exports, {
20
- Model: () => import_database.Model,
20
+ Model: () => import_server2.Model,
21
21
  WorkAuth: () => WorkAuth
22
22
  });
23
23
  module.exports = __toCommonJS(work_auth_exports);
24
- var import_auth = require("@tachybase/auth");
24
+ var import_server = require("@tego/server");
25
25
  var import_constants = require("../constants");
26
26
  var import_work_client = require("./work-client.js");
27
- var import_database = require("@tachybase/database");
28
- class WorkAuth extends import_auth.BaseAuth {
27
+ var import_server2 = require("@tego/server");
28
+ class WorkAuth extends import_server.BaseAuth {
29
29
  constructor(config) {
30
30
  const { ctx } = config;
31
31
  super({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-auth-wecom",
3
3
  "displayName": "Auth: WeCom",
4
- "version": "1.3.20",
4
+ "version": "1.3.22",
5
5
  "description": "work WeChat authentication.",
6
6
  "keywords": [
7
7
  "Authentication"
@@ -9,24 +9,18 @@
9
9
  "main": "dist/server/index.js",
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
- "@ant-design/icons": "^5.5.2",
12
+ "@ant-design/icons": "^5.6.1",
13
+ "@tachybase/test": "^1.3.39",
14
+ "@tego/client": "^1.3.39",
15
+ "@tego/server": "^1.3.39",
13
16
  "ahooks": "^3.9.0",
14
17
  "antd": "5.22.5",
15
18
  "axios": "1.7.7",
16
- "react-router-dom": "6.28.1"
17
- },
18
- "peerDependencies": {
19
- "@tachybase/actions": "1.3.20",
20
- "@tachybase/client": "1.3.20",
21
- "@tachybase/auth": "1.3.20",
22
- "@tachybase/database": "1.3.20",
23
- "@tachybase/server": "1.3.20",
24
- "@tachybase/module-auth": "1.3.20",
25
- "@tachybase/test": "1.3.20"
19
+ "react-router-dom": "6.28.1",
20
+ "@tachybase/client": "1.3.22",
21
+ "@tachybase/module-auth": "1.3.22"
26
22
  },
27
23
  "description.zh-CN": "提供企业微信的认证支持",
28
24
  "displayName.zh-CN": "认证:企业微信",
29
- "scripts": {
30
- "build": "tachybase-build --no-dts @tachybase/plugin-auth-wecom"
31
- }
25
+ "scripts": {}
32
26
  }