@everymatrix/player-bonus-history 1.22.7 → 1.22.8

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-bonus-history",
3
- "version": "1.22.7",
3
+ "version": "1.22.8",
4
4
  "main": "dist/player-bonus-history",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "7ebe9d4ab3a80846d28021ec202d1ea71c9b3c58"
38
+ "gitHead": "3950da5f5790b1e4270c8674a930025443f50ff5"
39
39
  }
package/src/index.ts CHANGED
@@ -1,22 +1,4 @@
1
1
  import PlayerBonusHistory from './PlayerBonusHistory.svelte';
2
-
3
- function safeDecorator(fn) {
4
- // eslint-disable-next-line func-names
5
- return function(...args) {
6
- try {
7
- return fn.apply(this, args);
8
- } catch (error) {
9
- if (
10
- error instanceof DOMException &&
11
- error.message.includes('has already been used with this registry') || error.message.includes('Cannot define multiple custom elements with the same tag name')
12
- ) {
13
- return false;
14
- }
15
- throw error;
16
- }
17
- };
18
- }
19
-
20
- customElements.define = safeDecorator(customElements.define);
2
+
21
3
  !customElements.get('player-bonus-history') && customElements.define('player-bonus-history', PlayerBonusHistory);
22
4
  export default PlayerBonusHistory;