@logto/connector-github 1.0.0-beta.12 → 1.0.0-beta.16
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/README.md +2 -2
- package/lib/index.js +1298 -835
- package/lib/jest.config.d.ts +1 -1
- package/lib/src/types.d.ts +3 -3
- package/package.json +29 -27
package/lib/jest.config.d.ts
CHANGED
package/lib/src/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const githubConfigGuard: z.ZodObject<{
|
|
|
9
9
|
clientId: string;
|
|
10
10
|
clientSecret: string;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export type GithubConfig = z.infer<typeof githubConfigGuard>;
|
|
13
13
|
export declare const accessTokenResponseGuard: z.ZodObject<{
|
|
14
14
|
access_token: z.ZodString;
|
|
15
15
|
scope: z.ZodString;
|
|
@@ -23,7 +23,7 @@ export declare const accessTokenResponseGuard: z.ZodObject<{
|
|
|
23
23
|
access_token: string;
|
|
24
24
|
token_type: string;
|
|
25
25
|
}>;
|
|
26
|
-
export
|
|
26
|
+
export type AccessTokenResponse = z.infer<typeof accessTokenResponseGuard>;
|
|
27
27
|
export declare const userInfoResponseGuard: z.ZodObject<{
|
|
28
28
|
id: z.ZodNumber;
|
|
29
29
|
avatar_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -40,7 +40,7 @@ export declare const userInfoResponseGuard: z.ZodObject<{
|
|
|
40
40
|
name?: string | null | undefined;
|
|
41
41
|
id: number;
|
|
42
42
|
}>;
|
|
43
|
-
export
|
|
43
|
+
export type UserInfoResponse = z.infer<typeof userInfoResponseGuard>;
|
|
44
44
|
export declare const authorizationCallbackErrorGuard: z.ZodObject<{
|
|
45
45
|
error: z.ZodString;
|
|
46
46
|
error_description: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,53 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@logto/connector-github",
|
|
3
|
-
"version": "1.0.0-beta.12",
|
|
4
|
-
"description": "Github 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": "
|
|
12
|
+
"@logto/connector-kit": "1.0.0-beta.32",
|
|
28
13
|
"@silverhand/essentials": "^1.2.0",
|
|
29
|
-
"@silverhand/jest-config": "1.2.2",
|
|
30
14
|
"got": "^11.8.2",
|
|
31
|
-
"
|
|
32
|
-
"zod": "^3.
|
|
15
|
+
"snakecase-keys": "^5.1.0",
|
|
16
|
+
"zod": "^3.20.2",
|
|
17
|
+
"query-string": "^7.0.1"
|
|
33
18
|
},
|
|
34
19
|
"devDependencies": {
|
|
35
|
-
"
|
|
20
|
+
"iconv-lite": "0.6.3",
|
|
21
|
+
"@jest/types": "^29.3.1",
|
|
36
22
|
"@silverhand/eslint-config": "1.3.0",
|
|
37
23
|
"@silverhand/ts-config": "1.2.1",
|
|
38
|
-
"@
|
|
24
|
+
"@silverhand/jest-config": "1.2.2",
|
|
25
|
+
"@types/jest": "^29.2.4",
|
|
39
26
|
"@types/node": "^16.3.1",
|
|
40
|
-
"@vercel/ncc": "^0.
|
|
27
|
+
"@vercel/ncc": "^0.36.0",
|
|
28
|
+
"@types/supertest": "^2.0.11",
|
|
41
29
|
"eslint": "^8.21.0",
|
|
42
|
-
"jest": "^
|
|
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
|
-
"
|
|
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,18 @@
|
|
|
56
45
|
"publishConfig": {
|
|
57
46
|
"access": "public"
|
|
58
47
|
},
|
|
59
|
-
"
|
|
60
|
-
|
|
48
|
+
"name": "@logto/connector-github",
|
|
49
|
+
"version": "1.0.0-beta.16",
|
|
50
|
+
"description": "Github web connector implementation.",
|
|
51
|
+
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
52
|
+
"scripts": {
|
|
53
|
+
"package:sync": "cd ../../ && pnpm package:sync",
|
|
54
|
+
"precommit": "lint-staged",
|
|
55
|
+
"build": "rm -rf lib/ && ncc build src/index.ts -o lib",
|
|
56
|
+
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
|
|
57
|
+
"lint": "eslint --ext .ts src",
|
|
58
|
+
"lint:report": "pnpm lint --format json --output-file report.json",
|
|
59
|
+
"test": "jest",
|
|
60
|
+
"test:coverage": "pnpm run test --coverage --silent"
|
|
61
|
+
}
|
|
62
|
+
}
|