@schukai/monster 3.13.0 → 3.13.1

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": "@schukai/monster",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -465,7 +465,6 @@ function transform(value) {
465
465
 
466
466
  case "i18n":
467
467
  case "translation":
468
-
469
468
  translations = getDocumentTranslations();
470
469
  if (!(translations instanceof Translations)) {
471
470
  throw new Error("missing translations");
@@ -614,7 +614,7 @@ function runUpdateContent(container, parts, subject) {
614
614
  parts.pop();
615
615
 
616
616
  // Unfortunately, static data is always changed as well, since it is not possible to react to changes here.
617
- const query = `[${ATTRIBUTE_UPDATER_REPLACE}^="path:${current}"], [${ATTRIBUTE_UPDATER_REPLACE}^="static:"]`;
617
+ const query = `[${ATTRIBUTE_UPDATER_REPLACE}^="path:${current}"], [${ATTRIBUTE_UPDATER_REPLACE}^="static:"], [${ATTRIBUTE_UPDATER_REPLACE}^="i18n:"]`;
618
618
  const e = container.querySelectorAll(`${query}`);
619
619
 
620
620
  const iterator = new Set([...e]);
@@ -702,7 +702,7 @@ function runUpdateAttributes(container, parts, subject) {
702
702
 
703
703
  let iterator = new Set();
704
704
 
705
- const query = `[${ATTRIBUTE_UPDATER_SELECT_THIS}], [${ATTRIBUTE_UPDATER_ATTRIBUTES}*="path:${current}"], [${ATTRIBUTE_UPDATER_ATTRIBUTES}^="static:"]`;
705
+ const query = `[${ATTRIBUTE_UPDATER_SELECT_THIS}], [${ATTRIBUTE_UPDATER_ATTRIBUTES}*="path:${current}"], [${ATTRIBUTE_UPDATER_ATTRIBUTES}^="static:"], [${ATTRIBUTE_UPDATER_ATTRIBUTES}^="i18n:"]`;
706
706
 
707
707
  const e = container.querySelectorAll(query);
708
708
 
@@ -142,7 +142,7 @@ function getMonsterVersion() {
142
142
  }
143
143
 
144
144
  /** don't touch, replaced by make with package.json version */
145
- monsterVersion = new Version("3.13.0");
145
+ monsterVersion = new Version("3.13.1");
146
146
 
147
147
  return monsterVersion;
148
148
  }
@@ -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.13.0")
10
+ monsterVersion = new Version("3.13.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13