@logto/connector-apple 1.2.0 → 1.3.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,4 +1,4 @@
1
- import { ConnectorPlatform, ConnectorConfigFormItemType, ConnectorType, validateConfig, ConnectorError, ConnectorErrorCodes } from '@logto/connector-kit';
1
+ import { ConnectorPlatform, ConnectorConfigFormItemType, ConnectorType, validateConfig, ConnectorError, ConnectorErrorCodes, jsonGuard } from '@logto/connector-kit';
2
2
  import * as crypto from 'node:crypto';
3
3
  import crypto__default, { KeyObject, createPrivateKey, createPublicKey, constants, createSecretKey } from 'node:crypto';
4
4
  import { z } from 'zod';
@@ -1334,6 +1334,7 @@ const getUserInfo = (getConfig) => async (data, getSession) => {
1334
1334
  email: user?.email ??
1335
1335
  (payload.email && payload.email_verified === true ? String(payload.email) : undefined),
1336
1336
  name: [user?.name?.firstName, user?.name?.lastName].filter(Boolean).join(' ') || undefined,
1337
+ rawData: jsonGuard.parse(data),
1337
1338
  };
1338
1339
  }
1339
1340
  catch {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@logto/connector-apple",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Apple web connector implementation.",
5
5
  "dependencies": {
6
- "@logto/connector-kit": "^2.1.0",
6
+ "@logto/connector-kit": "^3.0.0",
7
7
  "@logto/shared": "^3.1.0",
8
8
  "jose": "^5.0.0"
9
9
  },
@@ -44,8 +44,7 @@
44
44
  "dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
45
45
  "lint": "eslint --ext .ts src",
46
46
  "lint:report": "pnpm lint --format json --output-file report.json",
47
- "test:only": "NODE_OPTIONS=--experimental-vm-modules jest",
48
- "test": "pnpm build:test && pnpm test:only",
49
- "test:ci": "pnpm test:only --silent --coverage"
47
+ "test": "vitest src",
48
+ "test:ci": "pnpm run test --silent --coverage"
50
49
  }
51
50
  }