Comparing version 2.3.0 to 2.4.0
@@ -458,4 +458,4 @@ 'use strict'; | ||
}, { | ||
key: 'logError', | ||
value: function logError() { | ||
key: '_logError', | ||
value: function _logError() { | ||
var _console; | ||
@@ -485,4 +485,9 @@ | ||
})); | ||
} catch (e) { | ||
this.logError('Error while rendering ' + this.toString(), this, '\n', e); | ||
} catch (error) { | ||
var message = 'Error while rendering ' + this.toString(); | ||
this._logError(message, this, '\n', error); | ||
this.dispatchEvent(new CustomEvent('renderError', { | ||
detail: { message: message, error: error }, | ||
bubbles: true, composed: true | ||
})); | ||
} | ||
@@ -489,0 +494,0 @@ } |
@@ -387,3 +387,3 @@ import cuid from 'cuid'; | ||
logError() { | ||
_logError() { | ||
console.error(...arguments); | ||
@@ -409,4 +409,9 @@ } | ||
})); | ||
} catch (e) { | ||
this.logError(`Error while rendering ${this.toString()}`, this, `\n`, e); | ||
} catch (error) { | ||
const message = `Error while rendering ${this.toString()}`; | ||
this._logError(message, this, `\n`, error); | ||
this.dispatchEvent(new CustomEvent(`renderError`, { | ||
detail: {message, error}, | ||
bubbles: true, composed: true, | ||
})); | ||
} | ||
@@ -413,0 +418,0 @@ } |
{ | ||
"name": "panel", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Web Components with Virtual DOM: lightweight composable web apps", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
136710
2896