@merkur/plugin-error 0.32.0 → 0.34.0

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
@@ -20,7 +20,7 @@ var core = require('@merkur/core');
20
20
  */
21
21
  function ExtensibleError(
22
22
  message,
23
- dropInternalStackFrames = true
23
+ dropInternalStackFrames = true,
24
24
  ) {
25
25
  if (!(this instanceof ExtensibleError)) {
26
26
  throw new TypeError('Cannot call a class as a function');
@@ -28,7 +28,7 @@ function ExtensibleError(
28
28
  if (this.constructor === ExtensibleError) {
29
29
  throw new TypeError(
30
30
  'The ExtensibleError is an abstract class and ' +
31
- 'must be extended before it can be instantiated.'
31
+ 'must be extended before it can be instantiated.',
32
32
  );
33
33
  }
34
34
 
@@ -170,12 +170,12 @@ function errorPlugin() {
170
170
  if (ENV === DEV) {
171
171
  if (!widget.$in.component) {
172
172
  throw new Error(
173
- 'You must install missing plugin: npm i @merkur/plugin-component'
173
+ 'You must install missing plugin: npm i @merkur/plugin-component',
174
174
  );
175
175
  }
176
176
  if (!widget.$in.eventEmitter) {
177
177
  throw new Error(
178
- 'You must install missing plugin: npm i @merkur/plugin-event-emitter'
178
+ 'You must install missing plugin: npm i @merkur/plugin-event-emitter',
179
179
  );
180
180
  }
181
181
  }
package/lib/index.js CHANGED
@@ -20,7 +20,7 @@ var core = require('@merkur/core');
20
20
  */
21
21
  function ExtensibleError(
22
22
  message,
23
- dropInternalStackFrames = true
23
+ dropInternalStackFrames = true,
24
24
  ) {
25
25
  if (!(this instanceof ExtensibleError)) {
26
26
  throw new TypeError('Cannot call a class as a function');
@@ -28,7 +28,7 @@ function ExtensibleError(
28
28
  if (this.constructor === ExtensibleError) {
29
29
  throw new TypeError(
30
30
  'The ExtensibleError is an abstract class and ' +
31
- 'must be extended before it can be instantiated.'
31
+ 'must be extended before it can be instantiated.',
32
32
  );
33
33
  }
34
34
 
@@ -170,12 +170,12 @@ function errorPlugin() {
170
170
  if (ENV === DEV) {
171
171
  if (!widget.$in.component) {
172
172
  throw new Error(
173
- 'You must install missing plugin: npm i @merkur/plugin-component'
173
+ 'You must install missing plugin: npm i @merkur/plugin-component',
174
174
  );
175
175
  }
176
176
  if (!widget.$in.eventEmitter) {
177
177
  throw new Error(
178
- 'You must install missing plugin: npm i @merkur/plugin-event-emitter'
178
+ 'You must install missing plugin: npm i @merkur/plugin-event-emitter',
179
179
  );
180
180
  }
181
181
  }
package/lib/index.mjs CHANGED
@@ -18,7 +18,7 @@ import { hookMethod } from '@merkur/core';
18
18
  */
19
19
  function ExtensibleError(
20
20
  message,
21
- dropInternalStackFrames = true
21
+ dropInternalStackFrames = true,
22
22
  ) {
23
23
  if (!(this instanceof ExtensibleError)) {
24
24
  throw new TypeError('Cannot call a class as a function');
@@ -26,7 +26,7 @@ function ExtensibleError(
26
26
  if (this.constructor === ExtensibleError) {
27
27
  throw new TypeError(
28
28
  'The ExtensibleError is an abstract class and ' +
29
- 'must be extended before it can be instantiated.'
29
+ 'must be extended before it can be instantiated.',
30
30
  );
31
31
  }
32
32
 
@@ -168,12 +168,12 @@ function errorPlugin() {
168
168
  if (ENV === DEV) {
169
169
  if (!widget.$in.component) {
170
170
  throw new Error(
171
- 'You must install missing plugin: npm i @merkur/plugin-component'
171
+ 'You must install missing plugin: npm i @merkur/plugin-component',
172
172
  );
173
173
  }
174
174
  if (!widget.$in.eventEmitter) {
175
175
  throw new Error(
176
- 'You must install missing plugin: npm i @merkur/plugin-event-emitter'
176
+ 'You must install missing plugin: npm i @merkur/plugin-event-emitter',
177
177
  );
178
178
  }
179
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkur/plugin-error",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Merkur plugin for error handling.",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
@@ -50,12 +50,12 @@
50
50
  },
51
51
  "homepage": "https://merkur.js.org/",
52
52
  "devDependencies": {
53
- "@merkur/core": "^0.32.0",
54
- "@merkur/plugin-component": "^0.32.0"
53
+ "@merkur/core": "^0.34.0",
54
+ "@merkur/plugin-component": "^0.34.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@merkur/core": "*",
58
58
  "@merkur/plugin-component": "*"
59
59
  },
60
- "gitHead": "c45ffe12725e3c4afcf7f13869a25a96f6807055"
60
+ "gitHead": "3bc4a1efb8f8d5cee6bcf5f1454809747904153c"
61
61
  }