@bernierllc/github-parser 1.3.0 → 1.5.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.
@@ -0,0 +1,11 @@
1
+ export type GithubParserErrorCode = 'GITHUB_PARSER_ERROR' | 'INVALID_INPUT' | 'OPERATION_FAILED';
2
+ export interface GithubParserErrorOptions {
3
+ cause?: Error;
4
+ code?: GithubParserErrorCode;
5
+ context?: Record<string, unknown>;
6
+ }
7
+ export declare class GithubParserError extends Error {
8
+ readonly code: GithubParserErrorCode;
9
+ readonly context?: Record<string, unknown>;
10
+ constructor(message: string, options?: GithubParserErrorOptions);
11
+ }
package/dist/errors.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ Copyright (c) 2025 Bernier LLC
4
+
5
+ This file is licensed to the client under a limited-use license.
6
+ The client may use and modify this code only within the scope of the project it was delivered for.
7
+ Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.GithubParserError = void 0;
11
+ class GithubParserError extends Error {
12
+ code;
13
+ context;
14
+ constructor(message, options) {
15
+ super(message, options?.cause ? { cause: options.cause } : undefined);
16
+ this.name = 'GithubParserError';
17
+ this.code = options?.code ?? 'GITHUB_PARSER_ERROR';
18
+ if (options?.context !== undefined) {
19
+ this.context = options.context;
20
+ }
21
+ Error.captureStackTrace?.(this, this.constructor);
22
+ }
23
+ }
24
+ exports.GithubParserError = GithubParserError;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { GitHubParser } from './github-parser';
2
2
  export type { GitHubWebhookPayload, ParsedWebhookEvent, ParsedCommit, ParsedRepository } from './types';
3
+ export { GithubParserError, type GithubParserErrorCode, type GithubParserErrorOptions } from './errors';
package/dist/index.js CHANGED
@@ -7,6 +7,8 @@ The client may use and modify this code *only within the scope of the project it
7
7
  Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.GitHubParser = void 0;
10
+ exports.GithubParserError = exports.GitHubParser = void 0;
11
11
  var github_parser_1 = require("./github-parser");
12
12
  Object.defineProperty(exports, "GitHubParser", { enumerable: true, get: function () { return github_parser_1.GitHubParser; } });
13
+ var errors_1 = require("./errors");
14
+ Object.defineProperty(exports, "GithubParserError", { enumerable: true, get: function () { return errors_1.GithubParserError; } });
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@bernierllc/github-parser",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "GitHub webhook payload parser and transformer",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist/**/*",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
7
12
  "keywords": [
8
13
  "github",
9
14
  "webhook",
@@ -13,7 +18,7 @@
13
18
  "author": "Bernier LLC",
14
19
  "license": "SEE LICENSE IN LICENSE",
15
20
  "dependencies": {
16
- "@bernierllc/logger": "1.6.0"
21
+ "@bernierllc/logger": "1.7.0"
17
22
  },
18
23
  "devDependencies": {
19
24
  "@types/jest": "^29.5.0",
package/.eslintrc.cjs DELETED
@@ -1,33 +0,0 @@
1
- /*
2
- Copyright (c) 2025 Bernier LLC
3
-
4
- This file is licensed to the client under a limited-use license.
5
- The client may use and modify this code *only within the scope of the project it was delivered for*.
6
- Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
7
- */
8
-
9
- module.exports = {
10
- parser: '@typescript-eslint/parser',
11
- extends: [
12
- 'eslint:recommended',
13
- 'plugin:@typescript-eslint/recommended'
14
- ],
15
- plugins: ['@typescript-eslint'],
16
- parserOptions: {
17
- ecmaVersion: 2020,
18
- sourceType: 'module',
19
- project: './tsconfig.json'
20
- },
21
- env: {
22
- node: true,
23
- es6: true
24
- },
25
- rules: {
26
- '@typescript-eslint/explicit-function-return-type': 'off',
27
- '@typescript-eslint/no-explicit-any': 'error',
28
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
29
- '@typescript-eslint/no-non-null-assertion': 'warn'
30
- },
31
- ignorePatterns: ['dist/', 'node_modules/', '*.cjs']
32
- };
33
-
package/CHANGELOG.md DELETED
@@ -1,110 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # 1.3.0 (2026-05-20)
7
-
8
-
9
- ### Features
10
-
11
- * **contentful-types:** es2022, errors.ts with error.cause ([b74c636](https://github.com/bernierllc/tools/commit/b74c636e9c4675885c9386dcd413c5163a166ef8))
12
-
13
-
14
-
15
-
16
-
17
- ## [1.2.5](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.4...@bernierllc/github-parser@1.2.5) (2026-05-19)
18
-
19
- **Note:** Version bump only for package @bernierllc/github-parser
20
-
21
-
22
-
23
-
24
-
25
- ## [1.2.4](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.3...@bernierllc/github-parser@1.2.4) (2026-05-19)
26
-
27
- **Note:** Version bump only for package @bernierllc/github-parser
28
-
29
-
30
-
31
-
32
-
33
- ## [1.2.3](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.2...@bernierllc/github-parser@1.2.3) (2026-03-30)
34
-
35
- **Note:** Version bump only for package @bernierllc/github-parser
36
-
37
-
38
-
39
-
40
-
41
- ## [1.2.2](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.1...@bernierllc/github-parser@1.2.2) (2026-03-09)
42
-
43
- **Note:** Version bump only for package @bernierllc/github-parser
44
-
45
-
46
-
47
-
48
-
49
- ## [1.2.1](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.0...@bernierllc/github-parser@1.2.1) (2026-03-03)
50
-
51
- **Note:** Version bump only for package @bernierllc/github-parser
52
-
53
-
54
-
55
-
56
-
57
- # 1.2.0 (2025-12-25)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * **ci:** add lerna version step before publish ([3d20300](https://github.com/bernierllc/tools/commit/3d203002143bf353fffafe4f8a78a99009567347))
63
- * **ci:** fix release workflow + convert internal deps to workspace:* ([01c078b](https://github.com/bernierllc/tools/commit/01c078b49d6025f7eef750f79207a1c71c8d85dc))
64
- * update neverhub-adapter deps to workspace:* and publish 0.1.2 ([f0e3d04](https://github.com/bernierllc/tools/commit/f0e3d04d8d4f094e3bb899ddf81e93243d16e2c2))
65
-
66
-
67
- ### Features
68
-
69
- * add 4 new core packages ([3726d4c](https://github.com/bernierllc/tools/commit/3726d4cc31d60c7c6d65edb526e7e4835287d426))
70
- * enhance core and suite packages (batch 11) ([1f7ef67](https://github.com/bernierllc/tools/commit/1f7ef674796994d39e9117d01cb26b55cf9f25ae))
71
- * enhance webhook-receiver, github-parser, ai-social-generator ([572b9ef](https://github.com/bernierllc/tools/commit/572b9efad05c1efe6c0a5364835cb05516ed8f46))
72
-
73
-
74
-
75
-
76
-
77
- # 1.1.0 (2025-12-25)
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * **ci:** fix release workflow + convert internal deps to workspace:* ([01c078b](https://github.com/bernierllc/tools/commit/01c078b49d6025f7eef750f79207a1c71c8d85dc))
83
- * update neverhub-adapter deps to workspace:* and publish 0.1.2 ([f0e3d04](https://github.com/bernierllc/tools/commit/f0e3d04d8d4f094e3bb899ddf81e93243d16e2c2))
84
-
85
-
86
- ### Features
87
-
88
- * add 4 new core packages ([3726d4c](https://github.com/bernierllc/tools/commit/3726d4cc31d60c7c6d65edb526e7e4835287d426))
89
- * enhance core and suite packages (batch 11) ([1f7ef67](https://github.com/bernierllc/tools/commit/1f7ef674796994d39e9117d01cb26b55cf9f25ae))
90
- * enhance webhook-receiver, github-parser, ai-social-generator ([572b9ef](https://github.com/bernierllc/tools/commit/572b9efad05c1efe6c0a5364835cb05516ed8f46))
91
-
92
-
93
-
94
-
95
-
96
- # @bernierllc/github-parser
97
-
98
- ## 1.0.2
99
-
100
- ### Patch Changes
101
-
102
- - Updated dependencies [[`73c1d1e`](https://github.com/bernierllc/tools/commit/73c1d1e46114cf2ccfd5b74b83743361247f4502)]:
103
- - @bernierllc/logger@1.1.0
104
-
105
- ## 1.0.1
106
-
107
- ### Patch Changes
108
-
109
- - Updated dependencies [[`24899fa`](https://github.com/bernierllc/tools/commit/24899fa4eaf80ae329f7bd74483cf97a132f5d4c)]:
110
- - @bernierllc/logger@1.0.4