marko 5.22.1 → 5.22.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,13 @@ StringWriter.prototype = {
27
27
 
28
28
  merge: function (otherWriter) {
29
29
  this._content += otherWriter._content;
30
- this._scripts += otherWriter._scripts;
30
+
31
+ if (otherWriter._scripts) {
32
+ this._scripts = this._scripts ?
33
+ this._scripts + ";" + otherWriter._scripts :
34
+ otherWriter._scripts;
35
+ }
36
+
31
37
  if (otherWriter._data) {
32
38
  if (this._data) {
33
39
  for (const key in otherWriter._data) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.22.1",
3
+ "version": "5.22.2",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
7
- "@marko/compiler": "^5.23.1",
8
- "@marko/translator-default": "^5.22.1",
7
+ "@marko/compiler": "^5.23.2",
8
+ "@marko/translator-default": "^5.22.2",
9
9
  "app-module-path": "^2.2.0",
10
10
  "argly": "^1.2.0",
11
11
  "browser-refresh-client": "1.1.4",
@@ -27,7 +27,13 @@ StringWriter.prototype = {
27
27
 
28
28
  merge: function (otherWriter) {
29
29
  this._content += otherWriter._content;
30
- this._scripts += otherWriter._scripts;
30
+
31
+ if (otherWriter._scripts) {
32
+ this._scripts = this._scripts
33
+ ? this._scripts + ";" + otherWriter._scripts
34
+ : otherWriter._scripts;
35
+ }
36
+
31
37
  if (otherWriter._data) {
32
38
  if (this._data) {
33
39
  for (const key in otherWriter._data) {