@everymatrix/player-account-self-exclusion 1.22.6 → 1.22.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-self-exclusion",
3
- "version": "1.22.6",
3
+ "version": "1.22.8",
4
4
  "main": "dist/player-account-self-exclusion",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -28,7 +28,6 @@
28
28
  "typescript": "^3.9.3"
29
29
  },
30
30
  "dependencies": {
31
- "@vaadin/date-picker": "24.2.3",
32
31
  "cross-env": "^7.0.3",
33
32
  "sirv-cli": "^1.0.0",
34
33
  "svelte": "^3.0.0"
@@ -36,5 +35,5 @@
36
35
  "publishConfig": {
37
36
  "access": "public"
38
37
  },
39
- "gitHead": "83728b06bafc02370fe4a23a8cf59224f31b1599"
38
+ "gitHead": "3950da5f5790b1e4270c8674a930025443f50ff5"
40
39
  }
package/src/index.ts CHANGED
@@ -1,22 +1,4 @@
1
1
  import PlayerAccountSelfExclusion from './PlayerAccountSelfExclusion.svelte';
2
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')
12
- ) {
13
- return false;
14
- }
15
- throw error;
16
- }
17
- };
18
- }
19
-
20
- customElements.define = safeDecorator(customElements.define);
21
3
  !customElements.get('player-account-self-exclusion') && customElements.define('player-account-self-exclusion', PlayerAccountSelfExclusion);
22
4
  export default PlayerAccountSelfExclusion;