marko 5.38.1 → 5.38.3

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.
@@ -0,0 +1,5 @@
1
+ /** File for types only, not actual implementation **/
2
+
3
+ export interface Input extends Marko.HTML.Script {
4
+ value?(): unknown;
5
+ }
@@ -45,10 +45,12 @@ exports.p = function (htmlCompat) {
45
45
 
46
46
  if (componentDefs) {
47
47
  scripts = _h_($global, componentDefs);
48
- htmlCompat.ensureState($global).walkOnNextFlush = true;
48
+ if (scripts) {
49
+ htmlCompat.ensureState($global).walkOnNextFlush = true;
49
50
 
50
- if (!tagsAPI.length) {
51
- scripts = concatScripts(htmlCompat.flushScript($global), scripts);
51
+ if (!tagsAPI.length) {
52
+ scripts = concatScripts(htmlCompat.flushScript($global), scripts);
53
+ }
52
54
  }
53
55
  }
54
56
 
@@ -404,6 +404,9 @@ var translateWhile = _interopRequireWildcard(require("./translate-while"));funct
404
404
  rawOpenTag: true
405
405
  }
406
406
  },
407
+ "<script>": {
408
+ types: "marko/src/core-tags/core/script.d.marko"
409
+ },
407
410
  "<*>": {
408
411
  "@key": {
409
412
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.38.1",
3
+ "version": "5.38.3",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -0,0 +1,5 @@
1
+ /** File for types only, not actual implementation **/
2
+
3
+ export interface Input extends Marko.HTML.Script {
4
+ value?(): unknown;
5
+ }
@@ -45,10 +45,12 @@ exports.p = function (htmlCompat) {
45
45
 
46
46
  if (componentDefs) {
47
47
  scripts = ___getInitComponentsCodeForDefs($global, componentDefs);
48
- htmlCompat.ensureState($global).walkOnNextFlush = true;
48
+ if (scripts) {
49
+ htmlCompat.ensureState($global).walkOnNextFlush = true;
49
50
 
50
- if (!tagsAPI.length) {
51
- scripts = concatScripts(htmlCompat.flushScript($global), scripts);
51
+ if (!tagsAPI.length) {
52
+ scripts = concatScripts(htmlCompat.flushScript($global), scripts);
53
+ }
52
54
  }
53
55
  }
54
56
 
@@ -404,6 +404,9 @@ export default {
404
404
  rawOpenTag: true,
405
405
  },
406
406
  },
407
+ "<script>": {
408
+ types: "marko/src/core-tags/core/script.d.marko",
409
+ },
407
410
  "<*>": {
408
411
  "@key": {
409
412
  type: "string",