@issue-reporter/core 0.1.1
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/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/assets.d.ts +5 -0
- package/dist/assets.js +20 -0
- package/dist/assets.js.map +1 -0
- package/dist/contracts.d.ts +58 -0
- package/dist/contracts.js +2 -0
- package/dist/contracts.js.map +1 -0
- package/dist/errors.d.ts +12 -0
- package/dist/errors.js +11 -0
- package/dist/errors.js.map +1 -0
- package/dist/formatting.d.ts +11 -0
- package/dist/formatting.js +26 -0
- package/dist/formatting.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +37 -0
- package/dist/schemas.js +31 -0
- package/dist/schemas.js.map +1 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andy Kaprii
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @issue-reporter/core
|
|
2
|
+
|
|
3
|
+
Shared contracts, schemas, and formatting helpers for IssueReporter.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @issue-reporter/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## What It Includes
|
|
12
|
+
|
|
13
|
+
- request and response contracts
|
|
14
|
+
- shared error codes
|
|
15
|
+
- Zod-backed schemas
|
|
16
|
+
- issue title/body formatting helpers
|
|
17
|
+
- asset URL helpers
|
|
18
|
+
|
|
19
|
+
## Smallest Useful Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
buildIssueReportBody,
|
|
24
|
+
buildIssueReportTitle,
|
|
25
|
+
issueReportSubmissionSchema,
|
|
26
|
+
} from '@issue-reporter/core';
|
|
27
|
+
|
|
28
|
+
const parsed = issueReportSubmissionSchema.parse(input);
|
|
29
|
+
const title = buildIssueReportTitle(parsed);
|
|
30
|
+
const body = buildIssueReportBody({
|
|
31
|
+
submission: parsed,
|
|
32
|
+
screenshotUrl: 'https://cdn.example.com/report.png',
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Limitations
|
|
37
|
+
|
|
38
|
+
This package is meant to support the `@issue-reporter/react` and `@issue-reporter/fastify` packages. It is not intended as a general-purpose issue-tracking toolkit.
|
|
39
|
+
|
|
40
|
+
## More
|
|
41
|
+
|
|
42
|
+
- Repo docs: <https://github.com/AndyK888/IssueReporter>
|
|
43
|
+
- React package: `@issue-reporter/react`
|
|
44
|
+
- Fastify package: `@issue-reporter/fastify`
|
package/dist/assets.d.ts
ADDED
package/dist/assets.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const ABSOLUTE_URL_PATTERN = /^[a-z][a-z\d+\-.]*:/i;
|
|
2
|
+
export function normalizeIssueReporterAssetBaseUrl(baseUrl) {
|
|
3
|
+
return baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
|
|
4
|
+
}
|
|
5
|
+
export function resolveIssueReporterAssetUrl(input) {
|
|
6
|
+
if (!input.assetUrl || ABSOLUTE_URL_PATTERN.test(input.assetUrl) || !input.assetUrl.startsWith('/')) {
|
|
7
|
+
return input.assetUrl;
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
const origin = new URL(input.pageUrl).origin;
|
|
11
|
+
const publicPath = input.assetUrl.startsWith('/api/') || !input.assetUrl.startsWith('/issue-reports/')
|
|
12
|
+
? input.assetUrl
|
|
13
|
+
: `/api${input.assetUrl}`;
|
|
14
|
+
return new URL(publicPath, `${origin}/`).toString();
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return input.assetUrl;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAEpD,MAAM,UAAU,kCAAkC,CAAC,OAAe;IAChE,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,KAG5C;IACC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACpG,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxB,CAAC;IAED,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;QAC7C,MAAM,UAAU,GACd,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACjF,CAAC,CAAC,KAAK,CAAC,QAAQ;YAChB,CAAC,CAAC,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;QAE9B,OAAO,IAAI,GAAG,CAAC,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;IACtD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Buffer } from 'node:buffer';
|
|
2
|
+
export type IssueReportStatusReason = 'missing_issue_sink_config' | 'missing_storage_config' | 'disabled';
|
|
3
|
+
export interface IssueReportStatus {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
reason?: IssueReportStatusReason;
|
|
6
|
+
}
|
|
7
|
+
export interface IssueReportViewport {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IssueReportSubmission {
|
|
12
|
+
note: string;
|
|
13
|
+
screenshotBase64: string;
|
|
14
|
+
screenshotMimeType: 'image/png';
|
|
15
|
+
pageUrl: string;
|
|
16
|
+
route: string;
|
|
17
|
+
viewport: IssueReportViewport;
|
|
18
|
+
userAgent: string;
|
|
19
|
+
appVersion: string;
|
|
20
|
+
occurredAt: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IssueReportResult {
|
|
23
|
+
issueNumber?: number;
|
|
24
|
+
issueUrl: string;
|
|
25
|
+
screenshotUrl: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IssueReportAsset {
|
|
28
|
+
contentType: string;
|
|
29
|
+
body: Buffer | Uint8Array;
|
|
30
|
+
}
|
|
31
|
+
export interface IssueContext {
|
|
32
|
+
pageUrl: string;
|
|
33
|
+
route: string;
|
|
34
|
+
viewport: IssueReportViewport;
|
|
35
|
+
userAgent: string;
|
|
36
|
+
appVersion: string;
|
|
37
|
+
occurredAt: string;
|
|
38
|
+
}
|
|
39
|
+
export type IssueContextProvider = () => IssueContext | Promise<IssueContext>;
|
|
40
|
+
export interface IssueSink {
|
|
41
|
+
createIssue(input: {
|
|
42
|
+
title: string;
|
|
43
|
+
body: string;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
issueNumber?: number;
|
|
46
|
+
issueUrl: string;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
export interface IssueStorage {
|
|
50
|
+
putAsset(input: {
|
|
51
|
+
asset: IssueReportAsset;
|
|
52
|
+
occurredAt: string;
|
|
53
|
+
}): Promise<{
|
|
54
|
+
key: string;
|
|
55
|
+
assetUrl: string;
|
|
56
|
+
}>;
|
|
57
|
+
getAsset(key: string): Promise<IssueReportAsset>;
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":""}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type IssueReporterErrorCode = 'disabled' | 'missing_issue_sink_config' | 'missing_storage_config' | 'missing_note' | 'note_too_long' | 'invalid_screenshot' | 'invalid_screenshot_type' | 'screenshot_too_large' | 'asset_not_found' | 'submission_failed' | 'service_unavailable';
|
|
2
|
+
export interface IssueReporterErrorOptions {
|
|
3
|
+
code: IssueReporterErrorCode;
|
|
4
|
+
message: string;
|
|
5
|
+
statusCode: number;
|
|
6
|
+
cause?: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare class IssueReporterError extends Error {
|
|
9
|
+
readonly code: IssueReporterErrorCode;
|
|
10
|
+
readonly statusCode: number;
|
|
11
|
+
constructor(options: IssueReporterErrorOptions);
|
|
12
|
+
}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class IssueReporterError extends Error {
|
|
2
|
+
code;
|
|
3
|
+
statusCode;
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options.message, { cause: options.cause });
|
|
6
|
+
this.name = 'IssueReporterError';
|
|
7
|
+
this.code = options.code;
|
|
8
|
+
this.statusCode = options.statusCode;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAoBA,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAClC,IAAI,CAAyB;IAC7B,UAAU,CAAS;IAE5B,YAAY,OAAkC;QAC5C,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IssueReportSubmission } from './contracts.js';
|
|
2
|
+
export interface BuildIssueReportTitleInput {
|
|
3
|
+
note: string;
|
|
4
|
+
route: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BuildIssueReportBodyInput {
|
|
7
|
+
submission: IssueReportSubmission;
|
|
8
|
+
screenshotUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function buildIssueReportTitle(input: BuildIssueReportTitleInput): string;
|
|
11
|
+
export declare function buildIssueReportBody(input: BuildIssueReportBodyInput): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function buildIssueReportTitle(input) {
|
|
2
|
+
const summary = input.note.trim().replace(/\s+/g, ' ').slice(0, 72) || input.route;
|
|
3
|
+
return `UI issue: ${summary}`;
|
|
4
|
+
}
|
|
5
|
+
export function buildIssueReportBody(input) {
|
|
6
|
+
const { submission, screenshotUrl } = input;
|
|
7
|
+
return [
|
|
8
|
+
'## User Report',
|
|
9
|
+
'',
|
|
10
|
+
submission.note.trim(),
|
|
11
|
+
'',
|
|
12
|
+
'## Screenshot',
|
|
13
|
+
'',
|
|
14
|
+
``,
|
|
15
|
+
'',
|
|
16
|
+
'## Context',
|
|
17
|
+
'',
|
|
18
|
+
`- Route: \`${submission.route}\``,
|
|
19
|
+
`- Page URL: \`${submission.pageUrl}\``,
|
|
20
|
+
`- App version: \`${submission.appVersion}\``,
|
|
21
|
+
`- Viewport: \`${submission.viewport.width}x${submission.viewport.height}\``,
|
|
22
|
+
`- Submitted at: \`${submission.occurredAt}\``,
|
|
23
|
+
`- User agent: \`${submission.userAgent}\``,
|
|
24
|
+
].join('\n');
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=formatting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../src/formatting.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,qBAAqB,CAAC,KAAiC;IACrE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC;IACnF,OAAO,aAAa,OAAO,EAAE,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE5C,OAAO;QACL,gBAAgB;QAChB,EAAE;QACF,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;QACtB,EAAE;QACF,eAAe;QACf,EAAE;QACF,0BAA0B,aAAa,GAAG;QAC1C,EAAE;QACF,YAAY;QACZ,EAAE;QACF,cAAc,UAAU,CAAC,KAAK,IAAI;QAClC,iBAAiB,UAAU,CAAC,OAAO,IAAI;QACvC,oBAAoB,UAAU,CAAC,UAAU,IAAI;QAC7C,iBAAiB,UAAU,CAAC,QAAQ,CAAC,KAAK,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,IAAI;QAC5E,qBAAqB,UAAU,CAAC,UAAU,IAAI;QAC9C,mBAAmB,UAAU,CAAC,SAAS,IAAI;KAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const issueReportStatusReasonSchema: z.ZodEnum<{
|
|
3
|
+
missing_issue_sink_config: "missing_issue_sink_config";
|
|
4
|
+
missing_storage_config: "missing_storage_config";
|
|
5
|
+
disabled: "disabled";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const issueReportStatusSchema: z.ZodObject<{
|
|
8
|
+
enabled: z.ZodBoolean;
|
|
9
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
missing_issue_sink_config: "missing_issue_sink_config";
|
|
11
|
+
missing_storage_config: "missing_storage_config";
|
|
12
|
+
disabled: "disabled";
|
|
13
|
+
}>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const issueReportViewportSchema: z.ZodObject<{
|
|
16
|
+
width: z.ZodNumber;
|
|
17
|
+
height: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const issueReportSubmissionSchema: z.ZodObject<{
|
|
20
|
+
note: z.ZodString;
|
|
21
|
+
screenshotBase64: z.ZodString;
|
|
22
|
+
screenshotMimeType: z.ZodLiteral<"image/png">;
|
|
23
|
+
pageUrl: z.ZodString;
|
|
24
|
+
route: z.ZodString;
|
|
25
|
+
viewport: z.ZodObject<{
|
|
26
|
+
width: z.ZodNumber;
|
|
27
|
+
height: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
userAgent: z.ZodString;
|
|
30
|
+
appVersion: z.ZodString;
|
|
31
|
+
occurredAt: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const issueReportResultSchema: z.ZodObject<{
|
|
34
|
+
issueNumber: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
issueUrl: z.ZodString;
|
|
36
|
+
screenshotUrl: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const issueReportStatusReasonSchema = z.enum([
|
|
3
|
+
'missing_issue_sink_config',
|
|
4
|
+
'missing_storage_config',
|
|
5
|
+
'disabled',
|
|
6
|
+
]);
|
|
7
|
+
export const issueReportStatusSchema = z.object({
|
|
8
|
+
enabled: z.boolean(),
|
|
9
|
+
reason: issueReportStatusReasonSchema.optional(),
|
|
10
|
+
});
|
|
11
|
+
export const issueReportViewportSchema = z.object({
|
|
12
|
+
width: z.number().finite(),
|
|
13
|
+
height: z.number().finite(),
|
|
14
|
+
});
|
|
15
|
+
export const issueReportSubmissionSchema = z.object({
|
|
16
|
+
note: z.string(),
|
|
17
|
+
screenshotBase64: z.string().min(1),
|
|
18
|
+
screenshotMimeType: z.literal('image/png'),
|
|
19
|
+
pageUrl: z.string().min(1),
|
|
20
|
+
route: z.string().min(1),
|
|
21
|
+
viewport: issueReportViewportSchema,
|
|
22
|
+
userAgent: z.string().min(1),
|
|
23
|
+
appVersion: z.string().min(1),
|
|
24
|
+
occurredAt: z.string().min(1),
|
|
25
|
+
});
|
|
26
|
+
export const issueReportResultSchema = z.object({
|
|
27
|
+
issueNumber: z.number().int().positive().optional(),
|
|
28
|
+
issueUrl: z.string().min(1),
|
|
29
|
+
screenshotUrl: z.string().min(1),
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,2BAA2B;IAC3B,wBAAwB;IACxB,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC1C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,QAAQ,EAAE,yBAAyB;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@issue-reporter/core",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Shared contracts, schemas, and formatting helpers for IssueReporter",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/AndyK888/IssueReporter.git",
|
|
9
|
+
"directory": "packages/core"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/AndyK888/IssueReporter/tree/main/packages/core",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/AndyK888/IssueReporter/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"issue-reporter",
|
|
17
|
+
"bug-reporting",
|
|
18
|
+
"contracts",
|
|
19
|
+
"zod",
|
|
20
|
+
"typescript"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=24.10.0",
|
|
38
|
+
"npm": ">=10.9.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "rm -f dist/.tsbuildinfo && tsc -p tsconfig.json",
|
|
45
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"clean": "rm -rf dist .tsbuildinfo"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"zod": "^4.1.12"
|
|
51
|
+
}
|
|
52
|
+
}
|