@tachybase/plugin-auth-dingtalk 1.3.24 → 1.4.0

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 +1 @@
1
- {"name":"@alicloud/tea-util","version":"1.4.9","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Jackson Tian","license":"Apache-2.0","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^12.12.26","mocha":"^7.0.1","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.1","kitx":"^2.0.0"},"files":["dist","src"],"repository":"git@github.com:aliyun/tea-util.git","_lastModified":"2025-08-03T23:06:44.502Z"}
1
+ {"name":"@alicloud/tea-util","version":"1.4.10","description":"","main":"dist/client.js","scripts":{"test":"mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Jackson Tian","license":"Apache-2.0","devDependencies":{"@types/mocha":"^7.0.1","@types/node":"^12.12.26","mocha":"^7.0.1","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.5.1","@darabonba/typescript":"^1.0.0","kitx":"^2.0.0"},"files":["dist","src"],"repository":"git@github.com:aliyun/tea-util.git","_lastModified":"2025-11-10T07:34:14.772Z"}
@@ -1,95 +1,12 @@
1
1
  import { Readable } from 'stream';
2
+ import * as $dara from '@darabonba/typescript';
2
3
  import * as $tea from '@alicloud/tea-typescript';
3
4
  import * as kitx from 'kitx';
4
5
  import querystring from 'querystring';
5
6
  import { platform, arch } from 'os';
6
- const DEFAULT_USER_AGENT = `AlibabaCloud (${platform()}; ${arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/1`;
7
-
8
- export class ExtendsParameters extends $tea.Model {
9
- headers?: { [key: string]: string };
10
- queries?: { [key: string]: string };
11
- static names(): { [key: string]: string } {
12
- return {
13
- headers: 'headers',
14
- queries: 'queries',
15
- };
16
- }
17
-
18
- static types(): { [key: string]: any } {
19
- return {
20
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
- queries: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
22
- };
23
- }
24
-
25
- constructor(map?: { [key: string]: any }) {
26
- super(map);
27
- }
28
- }
7
+ const DEFAULT_USER_AGENT = `AlibabaCloud (${platform()}; ${arch()}) Node.js/${process.version} Core/1.0.1 TeaDSL/2`;
29
8
 
30
- export class RuntimeOptions extends $tea.Model {
31
- autoretry?: boolean;
32
- ignoreSSL?: boolean;
33
- key?: string;
34
- cert?: string;
35
- ca?: string;
36
- maxAttempts?: number;
37
- backoffPolicy?: string;
38
- backoffPeriod?: number;
39
- readTimeout?: number;
40
- connectTimeout?: number;
41
- httpProxy?: string;
42
- httpsProxy?: string;
43
- noProxy?: string;
44
- maxIdleConns?: number;
45
- keepAlive?: boolean;
46
- extendsParameters?: ExtendsParameters;
47
- static names(): { [key: string]: string } {
48
- return {
49
- autoretry: 'autoretry',
50
- ignoreSSL: 'ignoreSSL',
51
- key: 'key',
52
- cert: 'cert',
53
- ca: 'ca',
54
- maxAttempts: 'max_attempts',
55
- backoffPolicy: 'backoff_policy',
56
- backoffPeriod: 'backoff_period',
57
- readTimeout: 'readTimeout',
58
- connectTimeout: 'connectTimeout',
59
- httpProxy: 'httpProxy',
60
- httpsProxy: 'httpsProxy',
61
- noProxy: 'noProxy',
62
- maxIdleConns: 'maxIdleConns',
63
- keepAlive: 'keepAlive',
64
- extendsParameters: 'extendsParameters',
65
- };
66
- }
67
-
68
- static types(): { [key: string]: any } {
69
- return {
70
- autoretry: 'boolean',
71
- ignoreSSL: 'boolean',
72
- key: 'string',
73
- cert: 'string',
74
- ca: 'string',
75
- maxAttempts: 'number',
76
- backoffPolicy: 'string',
77
- backoffPeriod: 'number',
78
- readTimeout: 'number',
79
- connectTimeout: 'number',
80
- httpProxy: 'string',
81
- httpsProxy: 'string',
82
- noProxy: 'string',
83
- maxIdleConns: 'number',
84
- keepAlive: 'boolean',
85
- extendsParameters: ExtendsParameters,
86
- };
87
- }
88
-
89
- constructor(map?: { [key: string]: any }) {
90
- super(map);
91
- }
92
- }
9
+ export { ExtendsParameters, RuntimeOptions } from '@darabonba/typescript';
93
10
 
94
11
  function read(readable: Readable): Promise<Buffer> {
95
12
  return new Promise((resolve, reject) => {
@@ -303,7 +220,7 @@ export default class Client {
303
220
  }
304
221
 
305
222
  static toMap(inputModel: $tea.Model): { [key: string]: any } {
306
- return $tea.toMap(inputModel);
223
+ return $dara.toMap(inputModel);
307
224
  }
308
225
 
309
226
  static async sleep(millisecond: number): Promise<void> {
@@ -323,7 +240,7 @@ export default class Client {
323
240
  if (!model) {
324
241
  return;
325
242
  }
326
- ret.push($tea.toMap(model));
243
+ ret.push($dara.toMap(model));
327
244
  })
328
245
  return ret;
329
246
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-auth-dingtalk",
3
3
  "displayName": "Auth: Ding Talk",
4
- "version": "1.3.24",
4
+ "version": "1.4.0",
5
5
  "description": "dingding authentication.",
6
6
  "keywords": [
7
7
  "Authentication"
@@ -11,15 +11,15 @@
11
11
  "devDependencies": {
12
12
  "@alicloud/dingtalk": "^2.2.27",
13
13
  "@alicloud/openapi-client": "0.4.15",
14
- "@alicloud/tea-util": "1.4.9",
14
+ "@alicloud/tea-util": "1.4.10",
15
15
  "@ant-design/icons": "^5.6.1",
16
- "@tachybase/test": "^1.3.49",
17
- "@tego/client": "^1.3.49",
18
- "@tego/server": "^1.3.49",
16
+ "@tachybase/test": "*",
17
+ "@tego/client": "*",
18
+ "@tego/server": "*",
19
19
  "antd": "5.22.5",
20
20
  "react-router-dom": "6.28.1",
21
- "@tachybase/client": "1.3.24",
22
- "@tachybase/module-auth": "1.3.24"
21
+ "@tachybase/module-auth": "1.4.0",
22
+ "@tachybase/client": "1.4.0"
23
23
  },
24
24
  "description.zh-CN": "认证:钉钉",
25
25
  "displayName.zh-CN": "认证:钉钉",
@@ -1,20 +0,0 @@
1
- 2024-07-08 Version 1.4.9
2
- 1. Support extends query parameters
3
-
4
- 2024-05-13 Version 1.4.8
5
- 1. Support extends parameters
6
-
7
- 2023-06-28 Version: 1.4.7
8
- 1. Support static method `assertAsReadable()`
9
-
10
- 2023-06-26 Version: 1.4.6
11
- 1. Support static method `assertAsInteger()`
12
-
13
- 2022-11-16 Version: 1.4.5
14
- 1. Support ca params for server and client
15
-
16
- 2020-03-03 Version: 1.2.3
17
- 1. Release version 1.2.3
18
-
19
- 2020-02-10 Version: 1.0.0
20
- 1. Release version 1.0.0