@bernierllc/github-parser 1.2.5 → 1.4.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/dist/errors.d.ts +11 -0
- package/dist/errors.js +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/package.json +7 -2
- package/.eslintrc.cjs +0 -33
- package/CHANGELOG.md +0 -99
- package/__tests__/github-parser.test.ts +0 -865
- package/jest.config.cjs +0 -30
- package/src/github-parser.ts +0 -213
- package/src/index.ts +0 -16
- package/src/types.ts +0 -89
- package/tsconfig.json +0 -23
package/dist/errors.d.ts
ADDED
|
@@ -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
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
|
+
"version": "1.4.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.
|
|
21
|
+
"@bernierllc/logger": "1.6.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,99 +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.2.5](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.4...@bernierllc/github-parser@1.2.5) (2026-05-19)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @bernierllc/github-parser
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [1.2.4](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.3...@bernierllc/github-parser@1.2.4) (2026-05-19)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @bernierllc/github-parser
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [1.2.3](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.2...@bernierllc/github-parser@1.2.3) (2026-03-30)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @bernierllc/github-parser
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [1.2.2](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.1...@bernierllc/github-parser@1.2.2) (2026-03-09)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @bernierllc/github-parser
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [1.2.1](https://github.com/bernierllc/tools/compare/@bernierllc/github-parser@1.2.0...@bernierllc/github-parser@1.2.1) (2026-03-03)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @bernierllc/github-parser
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# 1.2.0 (2025-12-25)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
### Bug Fixes
|
|
50
|
-
|
|
51
|
-
* **ci:** add lerna version step before publish ([3d20300](https://github.com/bernierllc/tools/commit/3d203002143bf353fffafe4f8a78a99009567347))
|
|
52
|
-
* **ci:** fix release workflow + convert internal deps to workspace:* ([01c078b](https://github.com/bernierllc/tools/commit/01c078b49d6025f7eef750f79207a1c71c8d85dc))
|
|
53
|
-
* update neverhub-adapter deps to workspace:* and publish 0.1.2 ([f0e3d04](https://github.com/bernierllc/tools/commit/f0e3d04d8d4f094e3bb899ddf81e93243d16e2c2))
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Features
|
|
57
|
-
|
|
58
|
-
* add 4 new core packages ([3726d4c](https://github.com/bernierllc/tools/commit/3726d4cc31d60c7c6d65edb526e7e4835287d426))
|
|
59
|
-
* enhance core and suite packages (batch 11) ([1f7ef67](https://github.com/bernierllc/tools/commit/1f7ef674796994d39e9117d01cb26b55cf9f25ae))
|
|
60
|
-
* enhance webhook-receiver, github-parser, ai-social-generator ([572b9ef](https://github.com/bernierllc/tools/commit/572b9efad05c1efe6c0a5364835cb05516ed8f46))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
# 1.1.0 (2025-12-25)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Bug Fixes
|
|
70
|
-
|
|
71
|
-
* **ci:** fix release workflow + convert internal deps to workspace:* ([01c078b](https://github.com/bernierllc/tools/commit/01c078b49d6025f7eef750f79207a1c71c8d85dc))
|
|
72
|
-
* update neverhub-adapter deps to workspace:* and publish 0.1.2 ([f0e3d04](https://github.com/bernierllc/tools/commit/f0e3d04d8d4f094e3bb899ddf81e93243d16e2c2))
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
* add 4 new core packages ([3726d4c](https://github.com/bernierllc/tools/commit/3726d4cc31d60c7c6d65edb526e7e4835287d426))
|
|
78
|
-
* enhance core and suite packages (batch 11) ([1f7ef67](https://github.com/bernierllc/tools/commit/1f7ef674796994d39e9117d01cb26b55cf9f25ae))
|
|
79
|
-
* enhance webhook-receiver, github-parser, ai-social-generator ([572b9ef](https://github.com/bernierllc/tools/commit/572b9efad05c1efe6c0a5364835cb05516ed8f46))
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
# @bernierllc/github-parser
|
|
86
|
-
|
|
87
|
-
## 1.0.2
|
|
88
|
-
|
|
89
|
-
### Patch Changes
|
|
90
|
-
|
|
91
|
-
- Updated dependencies [[`73c1d1e`](https://github.com/bernierllc/tools/commit/73c1d1e46114cf2ccfd5b74b83743361247f4502)]:
|
|
92
|
-
- @bernierllc/logger@1.1.0
|
|
93
|
-
|
|
94
|
-
## 1.0.1
|
|
95
|
-
|
|
96
|
-
### Patch Changes
|
|
97
|
-
|
|
98
|
-
- Updated dependencies [[`24899fa`](https://github.com/bernierllc/tools/commit/24899fa4eaf80ae329f7bd74483cf97a132f5d4c)]:
|
|
99
|
-
- @bernierllc/logger@1.0.4
|