@logto/connector-apple 1.0.0-beta.11 → 1.0.0-beta.15

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,3 +1,3 @@
1
- import { Config } from '@silverhand/jest-config';
1
+ import type { Config } from '@silverhand/jest-config';
2
2
  declare const config: Config.InitialOptions;
3
3
  export default config;
@@ -1,4 +1,4 @@
1
- import { ConnectorMetadata } from '@logto/connector-kit';
1
+ import type { ConnectorMetadata } from '@logto/connector-kit';
2
2
  export declare const issuer = "https://appleid.apple.com";
3
3
  export declare const authorizationEndpoint: string;
4
4
  export declare const accessTokenEndpoint: string;
@@ -1,3 +1,3 @@
1
- import { CreateConnector, SocialConnector } from '@logto/connector-kit';
1
+ import type { CreateConnector, SocialConnector } from '@logto/connector-kit';
2
2
  declare const createAppleConnector: CreateConnector<SocialConnector>;
3
3
  export default createAppleConnector;
@@ -6,7 +6,7 @@ export declare const appleConfigGuard: z.ZodObject<{
6
6
  }, {
7
7
  clientId: string;
8
8
  }>;
9
- export declare type AppleConfig = z.infer<typeof appleConfigGuard>;
9
+ export type AppleConfig = z.infer<typeof appleConfigGuard>;
10
10
  export declare const dataGuard: z.ZodObject<{
11
11
  id_token: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
package/package.json CHANGED
@@ -1,53 +1,42 @@
1
1
  {
2
- "name": "@logto/connector-apple",
3
- "version": "1.0.0-beta.11",
4
- "description": "Apple web connector implementation.",
5
2
  "main": "./lib/index.js",
6
3
  "exports": "./lib/index.js",
7
- "author": "Silverhand Inc. <contact@silverhand.io>",
8
4
  "license": "MPL-2.0",
9
5
  "files": [
10
6
  "lib",
11
7
  "docs",
12
8
  "logo.svg",
13
- "README.md",
14
9
  "logo-dark.svg"
15
10
  ],
16
- "scripts": {
17
- "precommit": "lint-staged",
18
- "build": "rm -rf lib/ && ncc build src/index.ts -o lib",
19
- "dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
20
- "lint": "eslint --ext .ts src",
21
- "lint:report": "pnpm lint --format json --output-file report.json",
22
- "test": "jest",
23
- "test:coverage": "jest --coverage --silent",
24
- "prepack": "pnpm build"
25
- },
26
11
  "dependencies": {
27
- "@logto/connector-kit": "^1.0.0-beta.20",
12
+ "@logto/connector-kit": "1.0.0-beta.30",
28
13
  "@silverhand/essentials": "^1.2.0",
29
- "@silverhand/jest-config": "1.0.0",
30
14
  "got": "^11.8.2",
31
- "jose": "^4.3.8",
32
- "zod": "^3.14.3"
15
+ "snakecase-keys": "^5.1.0",
16
+ "zod": "^3.20.2",
17
+ "jose": "^4.3.8"
33
18
  },
34
19
  "devDependencies": {
35
- "@jest/types": "^28.1.3",
36
- "@silverhand/eslint-config": "1.0.0",
37
- "@silverhand/ts-config": "1.0.0",
38
- "@types/jest": "^28.1.6",
20
+ "iconv-lite": "0.6.3",
21
+ "@jest/types": "^29.3.1",
22
+ "@silverhand/eslint-config": "1.3.0",
23
+ "@silverhand/ts-config": "1.2.1",
24
+ "@silverhand/jest-config": "1.2.2",
25
+ "@types/jest": "^29.2.4",
39
26
  "@types/node": "^16.3.1",
40
- "@vercel/ncc": "^0.34.0",
27
+ "@vercel/ncc": "^0.36.0",
28
+ "@types/supertest": "^2.0.11",
41
29
  "eslint": "^8.21.0",
42
- "jest": "^28.1.3",
30
+ "jest": "^29.3.1",
43
31
  "jest-matcher-specific-error": "^1.0.0",
44
32
  "lint-staged": "^13.0.0",
45
33
  "nock": "^13.2.2",
46
34
  "prettier": "^2.7.1",
47
- "typescript": "^4.7.4"
35
+ "supertest": "^6.2.2",
36
+ "typescript": "^4.9.4"
48
37
  },
49
38
  "engines": {
50
- "node": "^16.0.0"
39
+ "node": "^16.13.0 || ^18.12.0"
51
40
  },
52
41
  "eslintConfig": {
53
42
  "extends": "@silverhand"
@@ -56,5 +45,17 @@
56
45
  "publishConfig": {
57
46
  "access": "public"
58
47
  },
59
- "gitHead": "62c344b3983e465958ff1210cc9e0ea959002510"
60
- }
48
+ "name": "@logto/connector-apple",
49
+ "version": "1.0.0-beta.15",
50
+ "description": "Apple web connector implementation.",
51
+ "scripts": {
52
+ "package:sync": "cd ../../ && pnpm package:sync",
53
+ "precommit": "lint-staged",
54
+ "build": "rm -rf lib/ && ncc build src/index.ts -o lib",
55
+ "dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
56
+ "lint": "eslint --ext .ts src",
57
+ "lint:report": "pnpm lint --format json --output-file report.json",
58
+ "test": "jest",
59
+ "test:coverage": "pnpm run test --coverage --silent"
60
+ }
61
+ }