@merkur/integration-react 0.34.0 → 0.34.2

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/lib/index.cjs CHANGED
@@ -190,7 +190,8 @@ class MerkurWidget extends AbstractMerkurWidget {
190
190
  constructor(props) {
191
191
  super(props);
192
192
  this._widget = null;
193
- this._handleClientError = this._handleError.bind(this);
193
+ // emitter has widget as first argument, error as second
194
+ this._handleClientError = (_widget, error) => this._handleError(error);
194
195
  this.state = {
195
196
  encounteredError: false,
196
197
  assetsLoaded: false,
package/lib/index.es9.cjs CHANGED
@@ -204,7 +204,8 @@ class MerkurWidget extends AbstractMerkurWidget {
204
204
  constructor(props) {
205
205
  super(props);
206
206
  this._widget = null;
207
- this._handleClientError = this._handleError.bind(this);
207
+ // emitter has widget as first argument, error as second
208
+ this._handleClientError = (_widget, error) => this._handleError(error);
208
209
  this.state = {
209
210
  encounteredError: false,
210
211
  assetsLoaded: false,
package/lib/index.es9.mjs CHANGED
@@ -202,7 +202,8 @@ class MerkurWidget extends AbstractMerkurWidget {
202
202
  constructor(props) {
203
203
  super(props);
204
204
  this._widget = null;
205
- this._handleClientError = this._handleError.bind(this);
205
+ // emitter has widget as first argument, error as second
206
+ this._handleClientError = (_widget, error) => this._handleError(error);
206
207
  this.state = {
207
208
  encounteredError: false,
208
209
  assetsLoaded: false,
package/lib/index.js CHANGED
@@ -190,7 +190,8 @@ class MerkurWidget extends AbstractMerkurWidget {
190
190
  constructor(props) {
191
191
  super(props);
192
192
  this._widget = null;
193
- this._handleClientError = this._handleError.bind(this);
193
+ // emitter has widget as first argument, error as second
194
+ this._handleClientError = (_widget, error) => this._handleError(error);
194
195
  this.state = {
195
196
  encounteredError: false,
196
197
  assetsLoaded: false,
package/lib/index.mjs CHANGED
@@ -188,7 +188,8 @@ class MerkurWidget extends AbstractMerkurWidget {
188
188
  constructor(props) {
189
189
  super(props);
190
190
  this._widget = null;
191
- this._handleClientError = this._handleError.bind(this);
191
+ // emitter has widget as first argument, error as second
192
+ this._handleClientError = (_widget, error) => this._handleError(error);
192
193
  this.state = {
193
194
  encounteredError: false,
194
195
  assetsLoaded: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkur/integration-react",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "Merkur module for easy integration with react.",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
@@ -66,5 +66,5 @@
66
66
  "dependencies": {
67
67
  "@merkur/integration": "^0.34.0"
68
68
  },
69
- "gitHead": "3bc4a1efb8f8d5cee6bcf5f1454809747904153c"
69
+ "gitHead": "ffcdb4d7370b644a8462f431583bf19ee9007b03"
70
70
  }