@logto/connector-feishu-web 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +4 -5
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { got, HTTPError } from 'got';
2
- import { ConnectorPlatform, ConnectorConfigFormItemType, validateConfig, ConnectorError, ConnectorErrorCodes, ConnectorType } from '@logto/connector-kit';
2
+ import { ConnectorPlatform, ConnectorConfigFormItemType, validateConfig, ConnectorError, ConnectorErrorCodes, jsonGuard, ConnectorType } from '@logto/connector-kit';
3
3
  import { z } from 'zod';
4
4
 
5
5
  // https://github.com/facebook/jest/issues/7547
@@ -181,6 +181,7 @@ function getUserInfo(getConfig) {
181
181
  email: conditional(email),
182
182
  userId: conditional(user_id),
183
183
  phone: conditional(mobile),
184
+ rawData: jsonGuard.parse(response.body),
184
185
  };
185
186
  }
186
187
  catch (error) {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@logto/connector-feishu-web",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Feishu web connector.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "dependencies": {
7
- "@logto/connector-kit": "^2.1.0"
7
+ "@logto/connector-kit": "^3.0.0"
8
8
  },
9
9
  "main": "./lib/index.js",
10
10
  "module": "./lib/index.js",
@@ -43,8 +43,7 @@
43
43
  "dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
44
44
  "lint": "eslint --ext .ts src",
45
45
  "lint:report": "pnpm lint --format json --output-file report.json",
46
- "test:only": "NODE_OPTIONS=--experimental-vm-modules jest",
47
- "test": "pnpm build:test && pnpm test:only",
48
- "test:ci": "pnpm test:only --silent --coverage"
46
+ "test": "vitest src",
47
+ "test:ci": "pnpm run test --silent --coverage"
49
48
  }
50
49
  }