@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.56.0",
3
+ "version": "3.56.1",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -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("-")[3]);
220
+ const index = Number(ref.split("-").pop());
217
221
  if (isNaN(index)) {
218
222
  return;
219
223
  }
@@ -152,7 +152,7 @@ function getMonsterVersion() {
152
152
  }
153
153
 
154
154
  /** don't touch, replaced by make with package.json version */
155
- monsterVersion = new Version("3.56.0");
155
+ monsterVersion = new Version("3.56.1");
156
156
 
157
157
  return monsterVersion;
158
158
  }
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.56.0")
10
+ monsterVersion = new Version("3.56.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13