Skip to content

Commit

Permalink
Merge pull request #586 from spatie/support-context
Browse files Browse the repository at this point in the history
Support Laravel context
  • Loading branch information
freekmurze authored Mar 28, 2024
2 parents 06739e1 + 472df42 commit e385d77
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typecheck": "tsc -w --preserveWatchOutput"
},
"dependencies": {
"@flareapp/ignition-ui": "^4.9.4",
"@flareapp/ignition-ui": "^4.10.0",
"@fortawesome/fontawesome-common-types": "^6.1.1",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
Expand Down
10 changes: 5 additions & 5 deletions resources/compiled/ignition.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions resources/js/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function transformIgnitionError({report, solutions}: IgniteData): ErrorOccurrenc
exception,
arguments: args,
job,
laravel_context,
...custom_context
} = report.context;

Expand All @@ -58,6 +59,7 @@ function transformIgnitionError({report, solutions}: IgniteData): ErrorOccurrenc
queries: queries || null,
dumps: dumps || null,
logs: logs || null,
laravel_context: laravel_context || null,
headers: headers || null,
cookies: cookies || null,
session: session || null,
Expand Down
1 change: 1 addition & 0 deletions resources/js/shareClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function filterReport(report: IgnitionErrorOccurrence, sections: SectionName[]):
report.context.cookies = {};
report.context.session = {};
report.context.route = null;
report.context.laravel_context = null;
report.context.user = null;
delete report.context.git;
delete report.context.livewire;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1036,10 +1036,10 @@
dependencies:
error-stack-parser "^2.0.2"

"@flareapp/ignition-ui@^4.9.4":
version "4.9.4"
resolved "https://registry.yarnpkg.com/@flareapp/ignition-ui/-/ignition-ui-4.9.4.tgz#03817ce8e8f971e7d446872f2f0f3f4fa20cf2d7"
integrity sha512-Nr7iQUhPQKvVF5qSc0eQ3a9s82YXIFSi2m5GBQTdbKRkeZbm/cv4swU8ol05+IcNdGit7RYbV/Ht98foYPAziw==
"@flareapp/ignition-ui@^4.10.0":
version "4.10.0"
resolved "https://registry.yarnpkg.com/@flareapp/ignition-ui/-/ignition-ui-4.10.0.tgz#7a47a742f29c4f66797843b92283411271bb9304"
integrity sha512-iVCEwwmIbitJJyilNGJvDvi4LTCtCRMiPvz/T6e7LuONikwuoAgJFlGnk6NhPKwZ+rscPOvEUMMo8xqhKrKhww==
dependencies:
"@fortawesome/fontawesome-common-types" "^6.1.1"
"@fortawesome/fontawesome-svg-core" "^6.1.1"
Expand Down

0 comments on commit e385d77

Please sign in to comment.