marko 5.35.15 → 5.35.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -139,7 +139,8 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
139
139
 
140
140
  if (typeof renderBody === "function" && renderBody.toJSON === w10ToJSON) {
141
141
  flags |= FLAG_HAS_RENDER_BODY;
142
- renderBody = input.renderBody = undefined;
142
+ renderBody = undefined;
143
+ if (input) input.renderBody = undefined;
143
144
  }
144
145
 
145
146
  var extra = {
@@ -139,33 +139,6 @@ componentId)
139
139
  keyedElements[key] = rootNode;
140
140
  }
141
141
  }
142
-
143
- // eslint-disable-next-line no-constant-condition
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
142
 
170
143
  exports._P_ = runtimeId;
171
144
  exports._l_ = componentLookup;
@@ -708,11 +708,6 @@ function morphdom(fromNode, toNode, host, componentsContext) {
708
708
  }
709
709
  } // END: morphEl(...)
710
710
 
711
- // eslint-disable-next-line no-constant-condition
712
-
713
-
714
-
715
-
716
711
  morphChildren(fromNode, toNode, toNode.s_);
717
712
 
718
713
  detachedNodes.forEach(function (node) {
@@ -736,11 +731,6 @@ function morphdom(fromNode, toNode, host, componentsContext) {
736
731
  }
737
732
  }
738
733
  });
739
-
740
- // eslint-disable-next-line no-constant-condition
741
-
742
-
743
-
744
734
  }
745
735
 
746
736
  module.exports = morphdom;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.35.15",
3
+ "version": "5.35.17",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -65,8 +65,8 @@
65
65
  "build": "babel ./src --out-dir ./dist --extensions .js --copy-files --config-file ../../babel.config.js --env-name=production"
66
66
  },
67
67
  "dependencies": {
68
- "@marko/compiler": "^5.37.10",
69
- "@marko/translator-default": "^6.0.12",
68
+ "@marko/compiler": "^5.37.12",
69
+ "@marko/translator-default": "^6.0.14",
70
70
  "app-module-path": "^2.2.0",
71
71
  "argly": "^1.2.0",
72
72
  "browser-refresh-client": "1.1.4",
@@ -139,7 +139,8 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
139
139
 
140
140
  if (typeof renderBody === "function" && renderBody.toJSON === w10ToJSON) {
141
141
  flags |= FLAG_HAS_RENDER_BODY;
142
- renderBody = input.renderBody = undefined;
142
+ renderBody = undefined;
143
+ if (input) input.renderBody = undefined;
143
144
  }
144
145
 
145
146
  var extra = {
@@ -140,33 +140,6 @@ function addComponentRootToKeyedElements(
140
140
  }
141
141
  }
142
142
 
143
- // eslint-disable-next-line no-constant-condition
144
- if ("MARKO_DEBUG") {
145
- var warnNodeRemoved = function (event) {
146
- var fragment = event.target.fragment;
147
- if (fragment) {
148
- var baseError = new Error(
149
- "Fragment boundary marker removed. This will cause an error when the fragment is updated."
150
- );
151
- fragment.___markersRemovedError = function (message) {
152
- var error = new Error(message + " Boundary markers missing.");
153
-
154
- baseError.stack = baseError.stack.replace(/.*warnNodeRemoved.*\n/, "");
155
-
156
-
157
- console.warn(baseError);
158
- return error;
159
- };
160
- }
161
- };
162
- exports.___startDOMManipulationWarning = function (host) {
163
- host.addEventListener("DOMNodeRemoved", warnNodeRemoved);
164
- };
165
- exports.___stopDOMManipulationWarning = function (host) {
166
- host.removeEventListener("DOMNodeRemoved", warnNodeRemoved);
167
- };
168
- }
169
-
170
143
  exports.___runtimeId = runtimeId;
171
144
  exports.___componentLookup = componentLookup;
172
145
  exports.___getComponentForEl = getComponentForEl;
@@ -708,11 +708,6 @@ function morphdom(fromNode, toNode, host, componentsContext) {
708
708
  }
709
709
  } // END: morphEl(...)
710
710
 
711
- // eslint-disable-next-line no-constant-condition
712
- if ("MARKO_DEBUG") {
713
- componentsUtil.___stopDOMManipulationWarning(host);
714
- }
715
-
716
711
  morphChildren(fromNode, toNode, toNode.___component);
717
712
 
718
713
  detachedNodes.forEach(function (node) {
@@ -736,11 +731,6 @@ function morphdom(fromNode, toNode, host, componentsContext) {
736
731
  }
737
732
  }
738
733
  });
739
-
740
- // eslint-disable-next-line no-constant-condition
741
- if ("MARKO_DEBUG") {
742
- componentsUtil.___startDOMManipulationWarning(host);
743
- }
744
734
  }
745
735
 
746
736
  module.exports = morphdom;