jg-github 0.0.0-stage → 0.2.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.
Files changed (84) hide show
  1. package/API.md +648 -0
  2. package/CHANGELOG.md +19 -0
  3. package/LICENSE +21 -0
  4. package/README.md +100 -2
  5. package/RECIPES.md +101 -0
  6. package/dist/app-auth/app-auth.d.ts +33 -0
  7. package/dist/app-auth/app-auth.js +95 -0
  8. package/dist/app-auth/app-auth.js.map +1 -0
  9. package/dist/app-auth/constants.d.ts +4 -0
  10. package/dist/app-auth/constants.js +10 -0
  11. package/dist/app-auth/constants.js.map +1 -0
  12. package/dist/app-auth/index.d.ts +2 -0
  13. package/dist/app-auth/index.js +3 -0
  14. package/dist/app-auth/index.js.map +1 -0
  15. package/dist/app-auth/types.d.ts +5 -0
  16. package/dist/app-auth/types.js +2 -0
  17. package/dist/app-auth/types.js.map +1 -0
  18. package/dist/index.d.ts +6 -0
  19. package/dist/index.js +13 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/installation-token/constants.d.ts +12 -0
  22. package/dist/installation-token/constants.js +30 -0
  23. package/dist/installation-token/constants.js.map +1 -0
  24. package/dist/installation-token/errors.d.ts +41 -0
  25. package/dist/installation-token/errors.js +94 -0
  26. package/dist/installation-token/errors.js.map +1 -0
  27. package/dist/installation-token/index.d.ts +2 -0
  28. package/dist/installation-token/index.js +3 -0
  29. package/dist/installation-token/index.js.map +1 -0
  30. package/dist/installation-token/installation-token.d.ts +57 -0
  31. package/dist/installation-token/installation-token.js +152 -0
  32. package/dist/installation-token/installation-token.js.map +1 -0
  33. package/dist/installation-token/types.d.ts +33 -0
  34. package/dist/installation-token/types.js +2 -0
  35. package/dist/installation-token/types.js.map +1 -0
  36. package/dist/installation-token/utilities.d.ts +36 -0
  37. package/dist/installation-token/utilities.js +93 -0
  38. package/dist/installation-token/utilities.js.map +1 -0
  39. package/dist/installation-token/validations.d.ts +35 -0
  40. package/dist/installation-token/validations.js +74 -0
  41. package/dist/installation-token/validations.js.map +1 -0
  42. package/dist/rate-limit/constants.d.ts +2 -0
  43. package/dist/rate-limit/constants.js +5 -0
  44. package/dist/rate-limit/constants.js.map +1 -0
  45. package/dist/rate-limit/index.d.ts +2 -0
  46. package/dist/rate-limit/index.js +3 -0
  47. package/dist/rate-limit/index.js.map +1 -0
  48. package/dist/rate-limit/rate-limit.d.ts +24 -0
  49. package/dist/rate-limit/rate-limit.js +88 -0
  50. package/dist/rate-limit/rate-limit.js.map +1 -0
  51. package/dist/rate-limit/types.d.ts +8 -0
  52. package/dist/rate-limit/types.js +2 -0
  53. package/dist/rate-limit/types.js.map +1 -0
  54. package/dist/shared/constants.d.ts +7 -0
  55. package/dist/shared/constants.js +15 -0
  56. package/dist/shared/constants.js.map +1 -0
  57. package/dist/shared/errors.d.ts +9 -0
  58. package/dist/shared/errors.js +11 -0
  59. package/dist/shared/errors.js.map +1 -0
  60. package/dist/shared/headers.d.ts +19 -0
  61. package/dist/shared/headers.js +37 -0
  62. package/dist/shared/headers.js.map +1 -0
  63. package/dist/shared/index.d.ts +6 -0
  64. package/dist/shared/index.js +11 -0
  65. package/dist/shared/index.js.map +1 -0
  66. package/dist/shared/types.d.ts +17 -0
  67. package/dist/shared/types.js +2 -0
  68. package/dist/shared/types.js.map +1 -0
  69. package/dist/shared/urls.d.ts +32 -0
  70. package/dist/shared/urls.js +110 -0
  71. package/dist/shared/urls.js.map +1 -0
  72. package/dist/shared/utilities.d.ts +20 -0
  73. package/dist/shared/utilities.js +25 -0
  74. package/dist/shared/utilities.js.map +1 -0
  75. package/dist/webhook/constants.d.ts +2 -0
  76. package/dist/webhook/constants.js +5 -0
  77. package/dist/webhook/constants.js.map +1 -0
  78. package/dist/webhook/index.d.ts +1 -0
  79. package/dist/webhook/index.js +3 -0
  80. package/dist/webhook/index.js.map +1 -0
  81. package/dist/webhook/webhook.d.ts +23 -0
  82. package/dist/webhook/webhook.js +35 -0
  83. package/dist/webhook/webhook.js.map +1 -0
  84. package/package.json +68 -3
package/package.json CHANGED
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "name": "jg-github",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "GitHub App authentication for Node.js: app tokens, scoped installation tokens, webhook signatures, and rate-limit retry times.",
5
+ "author": "Jesus Graterol",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "files": [
17
+ "dist",
18
+ "CHANGELOG.md",
19
+ "API.md",
20
+ "RECIPES.md"
21
+ ],
22
+ "sideEffects": false,
23
+ "engines": {
24
+ "node": ">=22.17.0"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/jesusgraterol/jg-packages.git",
32
+ "directory": "packages/jg-github"
33
+ },
34
+ "homepage": "https://jg-packages.jesusgraterol.dev/packages/jg-github/",
35
+ "bugs": {
36
+ "url": "https://github.com/jesusgraterol/jg-packages/issues"
37
+ },
38
+ "keywords": [
39
+ "node",
40
+ "github",
41
+ "github-app",
42
+ "installation-token",
43
+ "jwt",
44
+ "webhook",
45
+ "rate-limit"
46
+ ],
47
+ "dependencies": {
48
+ "jg-crypto": "^0.2.0",
49
+ "jg-exception": "^1.6.0",
50
+ "jg-fetch": "^0.4.0"
51
+ },
52
+ "devDependencies": {
53
+ "@jg-packages/eslint-config": "0.0.0",
54
+ "@jg-packages/tsconfig": "0.0.0",
55
+ "@jg-packages/vitest-config": "0.0.0",
56
+ "@types/node": "22.20.5",
57
+ "@vitest/coverage-v8": "5.0.5",
58
+ "eslint": "10.12.0",
59
+ "typescript": "6.0.3",
60
+ "vitest": "5.0.5"
61
+ },
62
+ "scripts": {
63
+ "build": "node ../../internal/build-tools/src/clean-dist.ts && tsc -p tsconfig.build.json && node ../../internal/api-reference/src/write-api-markdown.ts",
64
+ "lint": "eslint .",
65
+ "test": "pnpm test:unit && pnpm test:integration",
66
+ "test:coverage": "vitest run --coverage --project unit --project integration",
67
+ "test:integration": "vitest run --project integration",
68
+ "test:unit": "vitest run --project unit",
69
+ "typecheck": "tsc -p tsconfig.json"
70
+ }
6
71
  }