From ecf69b21e2c7687ff24b7516e0595232b4741359 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Sat, 19 Oct 2024 17:16:06 +0300 Subject: [PATCH 1/2] fix vue integration type --- package.json | 2 +- src/base/event/addons/index.ts | 1 - src/base/event/addons/javascript.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 494130a..cc16d2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hawk.so/types", - "version": "0.1.19", + "version": "0.1.20", "description": "TypeScript definitions for Hawk", "types": "build/index.d.ts", "main": "build/index.js", diff --git a/src/base/event/addons/index.ts b/src/base/event/addons/index.ts index e724915..3c95a52 100644 --- a/src/base/event/addons/index.ts +++ b/src/base/event/addons/index.ts @@ -29,5 +29,4 @@ export { NodeJSAddons, GoAddons, PythonAddons, - DefaultAddons } diff --git a/src/base/event/addons/javascript.ts b/src/base/event/addons/javascript.ts index e96df11..fa09b4f 100644 --- a/src/base/event/addons/javascript.ts +++ b/src/base/event/addons/javascript.ts @@ -92,7 +92,7 @@ export interface VueIntegrationAddons { /** * Component name where error occurred */ - component: string; + component: string | null; /** * Component props From c1ea589dddcf579b21b925526205fdd6430e9461 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 19 Oct 2024 14:20:58 +0000 Subject: [PATCH 2/2] Lint and build --- build/src/base/event/addons/index.d.ts | 4 ++-- build/src/base/event/addons/javascript.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/src/base/event/addons/index.d.ts b/build/src/base/event/addons/index.d.ts index ad4d1b6..40901b8 100644 --- a/build/src/base/event/addons/index.d.ts +++ b/build/src/base/event/addons/index.d.ts @@ -7,5 +7,5 @@ import { DefaultAddons } from './default'; /** * Union Type describing all catcher-specific additional data */ -declare type EventAddons = JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons | DefaultAddons; -export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, EventAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, DefaultAddons }; +declare type EventAddons = DefaultAddons | JavaScriptAddons | PhpAddons | NodeJSAddons | GoAddons | PythonAddons | DefaultAddons; +export { WindowData, VueIntegrationAddons, BeautifiedUserAgent, EventAddons, DefaultAddons, JavaScriptAddons, PhpAddons, NodeJSAddons, GoAddons, PythonAddons, }; diff --git a/build/src/base/event/addons/javascript.d.ts b/build/src/base/event/addons/javascript.d.ts index b0803a6..26285e4 100644 --- a/build/src/base/event/addons/javascript.d.ts +++ b/build/src/base/event/addons/javascript.d.ts @@ -77,7 +77,7 @@ export interface VueIntegrationAddons { /** * Component name where error occurred */ - component: string; + component: string | null; /** * Component props */