piral-blazor
Advanced tools
Comparing version 1.3.0-beta.6001 to 1.3.0-beta.6010
@@ -51,3 +51,9 @@ import { __awaiter } from "tslib"; | ||
const args = ev.detail.arg; | ||
processEvent(type, args); | ||
try { | ||
JSON.stringify(args); | ||
processEvent(type, args); | ||
} | ||
catch (_a) { | ||
console.warn(`The event "${type}" could not be serialized and will not be handled by Blazor.`); | ||
} | ||
} | ||
@@ -54,0 +60,0 @@ return eventDispatcher.call(this, ev); |
@@ -54,3 +54,9 @@ "use strict"; | ||
const args = ev.detail.arg; | ||
(0, interop_1.processEvent)(type, args); | ||
try { | ||
JSON.stringify(args); | ||
(0, interop_1.processEvent)(type, args); | ||
} | ||
catch (_a) { | ||
console.warn(`The event "${type}" could not be serialized and will not be handled by Blazor.`); | ||
} | ||
} | ||
@@ -57,0 +63,0 @@ return eventDispatcher.call(this, ev); |
{ | ||
"name": "piral-blazor", | ||
"version": "1.3.0-beta.6001", | ||
"version": "1.3.0-beta.6010", | ||
"description": "Plugin for integrating Blazor components in Piral.", | ||
@@ -70,5 +70,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"piral-core": "1.3.0-beta.6001" | ||
"piral-core": "1.3.0-beta.6010" | ||
}, | ||
"gitHead": "ea22bb317f7bfb648f0fe8ed747c6a13faff54e5" | ||
"gitHead": "feee5736c1755e88998926678b1c42be5f792956" | ||
} |
@@ -103,3 +103,9 @@ import type { BaseComponentProps, Disposable, ForeignComponent } from 'piral-core'; | ||
const args = ev.detail.arg; | ||
processEvent(type, args); | ||
try { | ||
JSON.stringify(args); | ||
processEvent(type, args); | ||
} catch { | ||
console.warn(`The event "${type}" could not be serialized and will not be handled by Blazor.`); | ||
} | ||
} | ||
@@ -106,0 +112,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193701
3065