@logto/connector-github 1.0.0-beta.15 → 1.0.0-beta.17

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.
File without changes
@@ -15,12 +15,12 @@ export declare const accessTokenResponseGuard: z.ZodObject<{
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
26
  export type AccessTokenResponse = z.infer<typeof accessTokenResponseGuard>;
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "main": "./lib/index.js",
3
+ "module": "./lib/index.js",
3
4
  "exports": "./lib/index.js",
4
5
  "license": "MPL-2.0",
6
+ "type": "module",
5
7
  "files": [
6
8
  "lib",
7
9
  "docs",
@@ -9,29 +11,33 @@
9
11
  "logo-dark.svg"
10
12
  ],
11
13
  "dependencies": {
12
- "@logto/connector-kit": "1.0.0-beta.30",
13
- "@silverhand/essentials": "^1.2.0",
14
- "got": "^11.8.2",
14
+ "@logto/connector-kit": "1.0.0-beta.33",
15
+ "@silverhand/essentials": "2.1.0",
16
+ "got": "^12.5.3",
15
17
  "snakecase-keys": "^5.1.0",
16
18
  "zod": "^3.20.2",
17
19
  "query-string": "^7.0.1"
18
20
  },
19
21
  "devDependencies": {
20
- "iconv-lite": "0.6.3",
21
22
  "@jest/types": "^29.3.1",
23
+ "@rollup/plugin-commonjs": "^24.0.0",
24
+ "@rollup/plugin-json": "^6.0.0",
25
+ "@rollup/plugin-node-resolve": "^15.0.1",
26
+ "@rollup/plugin-typescript": "^10.0.1",
22
27
  "@silverhand/eslint-config": "1.3.0",
23
28
  "@silverhand/ts-config": "1.2.1",
24
29
  "@silverhand/jest-config": "1.2.2",
25
30
  "@types/jest": "^29.2.4",
26
31
  "@types/node": "^16.3.1",
27
- "@vercel/ncc": "^0.36.0",
28
32
  "@types/supertest": "^2.0.11",
29
33
  "eslint": "^8.21.0",
30
34
  "jest": "^29.3.1",
31
35
  "jest-matcher-specific-error": "^1.0.0",
32
36
  "lint-staged": "^13.0.0",
33
37
  "nock": "^13.2.2",
34
- "prettier": "^2.7.1",
38
+ "prettier": "^2.8.1",
39
+ "rollup": "^3.8.0",
40
+ "rollup-plugin-summary": "^2.0.0",
35
41
  "supertest": "^6.2.2",
36
42
  "typescript": "^4.9.4"
37
43
  },
@@ -46,17 +52,19 @@
46
52
  "access": "public"
47
53
  },
48
54
  "name": "@logto/connector-github",
49
- "version": "1.0.0-beta.15",
55
+ "version": "1.0.0-beta.17",
50
56
  "description": "Github web connector implementation.",
51
57
  "author": "Silverhand Inc. <contact@silverhand.io>",
52
58
  "scripts": {
53
59
  "package:sync": "cd ../../ && pnpm package:sync",
60
+ "package:update": "cd ../../ && pnpm package:update",
54
61
  "precommit": "lint-staged",
55
- "build": "rm -rf lib/ && ncc build src/index.ts -o lib",
62
+ "build:test": "rm -rf lib/ && tsc -p tsconfig.test.json",
63
+ "build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c",
56
64
  "dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
57
65
  "lint": "eslint --ext .ts src",
58
66
  "lint:report": "pnpm lint --format json --output-file report.json",
59
- "test": "jest",
67
+ "test": "pnpm build:test && NODE_OPTIONS=--experimental-vm-modules jest",
60
68
  "test:coverage": "pnpm run test --coverage --silent"
61
69
  }
62
70
  }
@@ -1,3 +0,0 @@
1
- import type { Config } from '@silverhand/jest-config';
2
- declare const config: Config.InitialOptions;
3
- export default config;
@@ -1 +0,0 @@
1
- export {};