@logto/connector-google 1.0.0-beta.8 → 1.0.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.
- package/LICENSE +21 -373
- package/README.md +1 -70
- package/lib/{src/constant.d.ts → constant.d.ts} +1 -1
- package/lib/{src/index.d.ts → index.d.ts} +2 -2
- package/lib/index.js +89 -14417
- package/lib/{src/types.d.ts → types.d.ts} +5 -5
- package/logo.svg +4 -4
- package/package.json +42 -31
- package/docs/config-template.json +0 -4
- package/lib/jest.config.d.ts +0 -3
- package/lib/src/index.test.d.ts +0 -1
- /package/lib/{src/mock.d.ts → mock.d.ts} +0 -0
|
@@ -9,21 +9,21 @@ export declare const googleConfigGuard: z.ZodObject<{
|
|
|
9
9
|
clientId: string;
|
|
10
10
|
clientSecret: string;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export type GoogleConfig = z.infer<typeof googleConfigGuard>;
|
|
13
13
|
export declare const accessTokenResponseGuard: z.ZodObject<{
|
|
14
14
|
access_token: z.ZodString;
|
|
15
15
|
scope: z.ZodString;
|
|
16
16
|
token_type: z.ZodString;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
scope: string;
|
|
19
18
|
access_token: string;
|
|
19
|
+
scope: string;
|
|
20
20
|
token_type: string;
|
|
21
21
|
}, {
|
|
22
|
-
scope: string;
|
|
23
22
|
access_token: string;
|
|
23
|
+
scope: 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
|
sub: z.ZodString;
|
|
29
29
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -52,7 +52,7 @@ export declare const userInfoResponseGuard: z.ZodObject<{
|
|
|
52
52
|
locale?: string | undefined;
|
|
53
53
|
sub: string;
|
|
54
54
|
}>;
|
|
55
|
-
export
|
|
55
|
+
export type UserInfoResponse = z.infer<typeof userInfoResponseGuard>;
|
|
56
56
|
export declare const authResponseGuard: z.ZodObject<{
|
|
57
57
|
code: z.ZodString;
|
|
58
58
|
redirectUri: z.ZodString;
|
package/logo.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
5
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.52 12.2729C23.52 11.422 23.4436 10.6038 23.3018 9.81836H12V14.4602H18.4582C18.18 15.9602 17.3345 17.2311 16.0636 18.082V21.0929H19.9418C22.2109 19.0038 23.52 15.9275 23.52 12.2729Z" fill="#4285F4"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 23.9999C15.24 23.9999 17.9564 22.9254 19.9418 21.0926L16.0636 18.0817C14.9891 18.8017 13.6145 19.2272 12 19.2272C8.87455 19.2272 6.22909 17.1163 5.28546 14.2799H1.27637V17.389C3.25091 21.3108 7.30909 23.9999 12 23.9999Z" fill="#34A853"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.28545 14.2798C5.04545 13.5598 4.90909 12.7907 4.90909 11.9998C4.90909 11.2089 5.04545 10.4398 5.28545 9.71981V6.61072H1.27636C0.463636 8.23072 0 10.0634 0 11.9998C0 13.9362 0.463636 15.7689 1.27636 17.3889L5.28545 14.2798Z" fill="#FBBC05"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.77273C13.7618 4.77273 15.3436 5.37818 16.5873 6.56727L20.0291 3.12545C17.9509 1.18909 15.2345 0 12 0C7.30909 0 3.25091 2.68909 1.27637 6.61091L5.28546 9.72C6.22909 6.88364 8.87455 4.77273 12 4.77273Z" fill="#EA4335"/>
|
|
6
6
|
</svg>
|
package/package.json
CHANGED
|
@@ -1,51 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@logto/connector-google",
|
|
3
|
-
"version": "1.0.0-beta.8",
|
|
4
|
-
"description": "Google web connector implementation.",
|
|
5
2
|
"main": "./lib/index.js",
|
|
3
|
+
"module": "./lib/index.js",
|
|
6
4
|
"exports": "./lib/index.js",
|
|
7
|
-
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
8
5
|
"license": "MPL-2.0",
|
|
6
|
+
"type": "module",
|
|
9
7
|
"files": [
|
|
10
8
|
"lib",
|
|
11
9
|
"docs",
|
|
12
10
|
"logo.svg",
|
|
13
|
-
"
|
|
11
|
+
"logo-dark.svg"
|
|
14
12
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"precommit": "lint-staged",
|
|
17
|
-
"build": "rm -rf lib/ && ncc build src/index.ts -o lib",
|
|
18
|
-
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
|
|
19
|
-
"lint": "eslint --ext .ts src",
|
|
20
|
-
"lint:report": "pnpm lint --format json --output-file report.json",
|
|
21
|
-
"test": "jest",
|
|
22
|
-
"test:coverage": "jest --coverage --silent",
|
|
23
|
-
"prepack": "pnpm build"
|
|
24
|
-
},
|
|
25
13
|
"dependencies": {
|
|
26
|
-
"@logto/connector-
|
|
27
|
-
"@silverhand/essentials": "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"zod": "^3.
|
|
14
|
+
"@logto/connector-kit": "^1.0.0",
|
|
15
|
+
"@silverhand/essentials": "2.1.0",
|
|
16
|
+
"got": "^12.5.3",
|
|
17
|
+
"snakecase-keys": "^5.1.0",
|
|
18
|
+
"zod": "^3.20.2"
|
|
31
19
|
},
|
|
32
20
|
"devDependencies": {
|
|
33
|
-
"@jest/types": "^
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
21
|
+
"@jest/types": "^29.3.1",
|
|
22
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
23
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
24
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
25
|
+
"@rollup/plugin-typescript": "^10.0.1",
|
|
26
|
+
"@silverhand/eslint-config": "1.3.0",
|
|
27
|
+
"@silverhand/ts-config": "1.2.1",
|
|
28
|
+
"@silverhand/jest-config": "1.2.2",
|
|
29
|
+
"@types/jest": "^29.2.4",
|
|
37
30
|
"@types/node": "^16.3.1",
|
|
38
|
-
"@
|
|
31
|
+
"@types/supertest": "^2.0.11",
|
|
39
32
|
"eslint": "^8.21.0",
|
|
40
|
-
"jest": "^
|
|
33
|
+
"jest": "^29.3.1",
|
|
41
34
|
"jest-matcher-specific-error": "^1.0.0",
|
|
42
35
|
"lint-staged": "^13.0.0",
|
|
43
36
|
"nock": "^13.2.2",
|
|
44
|
-
"prettier": "^2.
|
|
45
|
-
"
|
|
37
|
+
"prettier": "^2.8.1",
|
|
38
|
+
"rollup": "^3.8.0",
|
|
39
|
+
"rollup-plugin-summary": "^2.0.0",
|
|
40
|
+
"supertest": "^6.2.2",
|
|
41
|
+
"typescript": "^4.9.4"
|
|
46
42
|
},
|
|
47
43
|
"engines": {
|
|
48
|
-
"node": "^16.0.0"
|
|
44
|
+
"node": "^16.13.0 || ^18.12.0"
|
|
49
45
|
},
|
|
50
46
|
"eslintConfig": {
|
|
51
47
|
"extends": "@silverhand"
|
|
@@ -54,5 +50,20 @@
|
|
|
54
50
|
"publishConfig": {
|
|
55
51
|
"access": "public"
|
|
56
52
|
},
|
|
57
|
-
"
|
|
58
|
-
|
|
53
|
+
"name": "@logto/connector-google",
|
|
54
|
+
"version": "1.0.0",
|
|
55
|
+
"description": "Google web connector implementation.",
|
|
56
|
+
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
57
|
+
"scripts": {
|
|
58
|
+
"package:sync": "cd ../../ && pnpm package:sync",
|
|
59
|
+
"package:update": "cd ../../ && pnpm package:update",
|
|
60
|
+
"precommit": "lint-staged",
|
|
61
|
+
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json",
|
|
62
|
+
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c",
|
|
63
|
+
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
|
|
64
|
+
"lint": "eslint --ext .ts src",
|
|
65
|
+
"lint:report": "pnpm lint --format json --output-file report.json",
|
|
66
|
+
"test": "pnpm build:test && NODE_OPTIONS=--experimental-vm-modules jest",
|
|
67
|
+
"test:coverage": "pnpm run test --coverage --silent"
|
|
68
|
+
}
|
|
69
|
+
}
|
package/lib/jest.config.d.ts
DELETED
package/lib/src/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|