@logto/connector-google 1.0.0-beta.12 → 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.
- package/lib/index.js +1291 -846
- package/lib/jest.config.d.ts +1 -1
- package/lib/src/types.d.ts +3 -3
- package/package.json +29 -26
package/lib/jest.config.d.ts
CHANGED
package/lib/src/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ 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;
|
|
@@ -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
|
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/package.json
CHANGED
|
@@ -1,51 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@logto/connector-google",
|
|
3
|
-
"version": "1.0.0-beta.12",
|
|
4
|
-
"description": "Google 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
|
-
"
|
|
9
|
+
"logo-dark.svg"
|
|
14
10
|
],
|
|
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
11
|
"dependencies": {
|
|
26
|
-
"@logto/connector-kit": "
|
|
12
|
+
"@logto/connector-kit": "1.0.0-beta.30",
|
|
27
13
|
"@silverhand/essentials": "^1.2.0",
|
|
28
|
-
"@silverhand/jest-config": "1.2.2",
|
|
29
14
|
"got": "^11.8.2",
|
|
30
|
-
"
|
|
15
|
+
"snakecase-keys": "^5.1.0",
|
|
16
|
+
"zod": "^3.20.2"
|
|
31
17
|
},
|
|
32
18
|
"devDependencies": {
|
|
33
|
-
"
|
|
19
|
+
"iconv-lite": "0.6.3",
|
|
20
|
+
"@jest/types": "^29.3.1",
|
|
34
21
|
"@silverhand/eslint-config": "1.3.0",
|
|
35
22
|
"@silverhand/ts-config": "1.2.1",
|
|
36
|
-
"@
|
|
23
|
+
"@silverhand/jest-config": "1.2.2",
|
|
24
|
+
"@types/jest": "^29.2.4",
|
|
37
25
|
"@types/node": "^16.3.1",
|
|
38
|
-
"@vercel/ncc": "^0.
|
|
26
|
+
"@vercel/ncc": "^0.36.0",
|
|
27
|
+
"@types/supertest": "^2.0.11",
|
|
39
28
|
"eslint": "^8.21.0",
|
|
40
|
-
"jest": "^
|
|
29
|
+
"jest": "^29.3.1",
|
|
41
30
|
"jest-matcher-specific-error": "^1.0.0",
|
|
42
31
|
"lint-staged": "^13.0.0",
|
|
43
32
|
"nock": "^13.2.2",
|
|
44
33
|
"prettier": "^2.7.1",
|
|
45
|
-
"
|
|
34
|
+
"supertest": "^6.2.2",
|
|
35
|
+
"typescript": "^4.9.4"
|
|
46
36
|
},
|
|
47
37
|
"engines": {
|
|
48
|
-
"node": "^16.0.0"
|
|
38
|
+
"node": "^16.13.0 || ^18.12.0"
|
|
49
39
|
},
|
|
50
40
|
"eslintConfig": {
|
|
51
41
|
"extends": "@silverhand"
|
|
@@ -54,5 +44,18 @@
|
|
|
54
44
|
"publishConfig": {
|
|
55
45
|
"access": "public"
|
|
56
46
|
},
|
|
57
|
-
"
|
|
58
|
-
|
|
47
|
+
"name": "@logto/connector-google",
|
|
48
|
+
"version": "1.0.0-beta.15",
|
|
49
|
+
"description": "Google web connector implementation.",
|
|
50
|
+
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
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
|
+
}
|