@schukai/monster 3.56.0 → 3.56.1
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
|
2
|
+
## [3.56.1] - 2024-02-26
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
- [3] is not the right way [#151](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/151)
|
7
|
+
|
2
8
|
## [3.56.0] - 2024-02-26
|
3
9
|
|
4
10
|
### Add Features
|
@@ -6,6 +12,7 @@
|
|
6
12
|
- update datatable controls [#150](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/150) [#149](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/149) [#148](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/148) [#147](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/147) [#146](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/146) [#145](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/145)
|
7
13
|
### Changes
|
8
14
|
|
15
|
+
- release and publish to npm new version 3.56.0
|
9
16
|
- format
|
10
17
|
- format
|
11
18
|
- [#144](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/144)
|
package/package.json
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
|
6
6
|
import { instanceSymbol } from "../../constants.mjs";
|
7
7
|
import { diff } from "../../data/diff.mjs";
|
8
|
+
import {addAttributeToken} from "../../dom/attributes.mjs";
|
9
|
+
import {ATTRIBUTE_ERRORMESSAGE} from "../../dom/constants.mjs";
|
8
10
|
import {
|
9
11
|
assembleMethodSymbol,
|
10
12
|
CustomElement,
|
@@ -205,15 +207,17 @@ function getIndex() {
|
|
205
207
|
|
206
208
|
const row = this.closest("[data-monster-insert-reference]");
|
207
209
|
if (!row) {
|
210
|
+
addAttributeToken(this, ATTRIBUTE_ERRORMESSAGE, "no reference found");
|
208
211
|
return;
|
209
212
|
}
|
210
213
|
|
211
214
|
const ref = row.getAttribute("data-monster-insert-reference");
|
212
215
|
if (!ref) {
|
216
|
+
addAttributeToken(this, ATTRIBUTE_ERRORMESSAGE, "reference is missing or empty");
|
213
217
|
return;
|
214
218
|
}
|
215
219
|
|
216
|
-
const index = Number(ref.split("-")
|
220
|
+
const index = Number(ref.split("-").pop());
|
217
221
|
if (isNaN(index)) {
|
218
222
|
return;
|
219
223
|
}
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED