@everymatrix/player-bonus-history 1.19.5 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/player-bonus-history.js +2089 -1485
- package/dist/player-bonus-history.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +18 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/player-bonus-history",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.20.0",
|
4
4
|
"main": "dist/player-bonus-history",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"typescript": "^3.9.3"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@vaadin/vaadin-date-picker": "
|
31
|
+
"@vaadin/vaadin-date-picker": "^23.1.5",
|
32
32
|
"cross-env": "^7.0.3",
|
33
33
|
"sirv-cli": "^1.0.0",
|
34
34
|
"svelte": "^3.0.0"
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "cce8ceef88ab812968208af95253b28b94fc43d2"
|
40
40
|
}
|
package/src/index.ts
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
import PlayerBonusHistory from './PlayerBonusHistory.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);
|
3
21
|
!customElements.get('player-bonus-history') && customElements.define('player-bonus-history', PlayerBonusHistory);
|
4
22
|
export default PlayerBonusHistory;
|