@logto/connector-feishu-web 1.2.0 → 1.2.1

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/lib/index.js CHANGED
@@ -180,7 +180,7 @@ function getUserInfo(getConfig) {
180
180
  avatar,
181
181
  email: conditional(email),
182
182
  userId: conditional(user_id),
183
- phone: conditional(mobile),
183
+ phone: conditional(mobile?.replace('+', '')),
184
184
  rawData: jsonGuard.parse(response.body),
185
185
  };
186
186
  }
package/lib/types.d.ts CHANGED
@@ -66,8 +66,8 @@ export declare const feishuUserInfoResponse: z.ZodObject<{
66
66
  employee_no: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
67
  mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
68
  }, "strip", z.ZodTypeAny, {
69
- name: string;
70
69
  sub: string;
70
+ name: string;
71
71
  picture: string;
72
72
  open_id: string;
73
73
  union_id: string;
@@ -82,8 +82,8 @@ export declare const feishuUserInfoResponse: z.ZodObject<{
82
82
  employee_no?: string | null | undefined;
83
83
  mobile?: string | null | undefined;
84
84
  }, {
85
- name: string;
86
85
  sub: string;
86
+ name: string;
87
87
  picture: string;
88
88
  open_id: string;
89
89
  union_id: string;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@logto/connector-feishu-web",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Feishu web connector.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "dependencies": {
7
- "@logto/connector-kit": "^3.0.0"
7
+ "@logto/connector-kit": "^4.0.0",
8
+ "@silverhand/essentials": "^2.9.1",
9
+ "got": "^14.0.0",
10
+ "snakecase-keys": "^8.0.0",
11
+ "zod": "^3.22.4"
8
12
  },
9
13
  "main": "./lib/index.js",
10
14
  "module": "./lib/index.js",
@@ -36,6 +40,26 @@
36
40
  "publishConfig": {
37
41
  "access": "public"
38
42
  },
43
+ "devDependencies": {
44
+ "@rollup/plugin-commonjs": "^26.0.0",
45
+ "@rollup/plugin-json": "^6.1.0",
46
+ "@rollup/plugin-node-resolve": "^15.2.3",
47
+ "@rollup/plugin-typescript": "^11.1.6",
48
+ "@silverhand/eslint-config": "6.0.1",
49
+ "@silverhand/ts-config": "6.0.0",
50
+ "@types/node": "^20.11.20",
51
+ "@types/supertest": "^6.0.2",
52
+ "@vitest/coverage-v8": "^1.4.0",
53
+ "eslint": "^8.56.0",
54
+ "lint-staged": "^15.0.2",
55
+ "nock": "^13.3.1",
56
+ "prettier": "^3.0.0",
57
+ "rollup": "^4.12.0",
58
+ "rollup-plugin-output-size": "^1.3.0",
59
+ "supertest": "^7.0.0",
60
+ "typescript": "^5.3.3",
61
+ "vitest": "^1.4.0"
62
+ },
39
63
  "scripts": {
40
64
  "precommit": "lint-staged",
41
65
  "build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap",