react-dom 16.12.0 → 16.13.0
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.
- package/build-info.json +4 -4
- package/cjs/react-dom-server.browser.development.js +331 -594
- package/cjs/react-dom-server.browser.production.min.js +37 -37
- package/cjs/react-dom-server.node.development.js +330 -593
- package/cjs/react-dom-server.node.production.min.js +38 -38
- package/cjs/react-dom-test-utils.development.js +171 -328
- package/cjs/react-dom-test-utils.production.min.js +17 -17
- package/cjs/react-dom-unstable-fizz.browser.development.js +3 -21
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +2 -2
- package/cjs/react-dom-unstable-fizz.node.development.js +2 -18
- package/cjs/react-dom-unstable-fizz.node.production.min.js +3 -3
- package/cjs/react-dom-unstable-native-dependencies.development.js +190 -305
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +23 -27
- package/cjs/react-dom.development.js +11227 -13976
- package/cjs/react-dom.production.min.js +280 -278
- package/cjs/react-dom.profiling.min.js +287 -284
- package/package.json +3 -8
- package/umd/react-dom-server.browser.development.js +3320 -3594
- package/umd/react-dom-server.browser.production.min.js +35 -35
- package/umd/react-dom-test-utils.development.js +1200 -1357
- package/umd/react-dom-test-utils.production.min.js +23 -23
- package/umd/react-dom-unstable-fizz.browser.development.js +105 -123
- package/umd/react-dom-unstable-fizz.browser.production.min.js +3 -3
- package/umd/react-dom-unstable-native-dependencies.development.js +1333 -1449
- package/umd/react-dom-unstable-native-dependencies.production.min.js +21 -22
- package/umd/react-dom.development.js +19953 -22713
- package/umd/react-dom.production.min.js +229 -232
- package/umd/react-dom.profiling.min.js +236 -239
- package/cjs/react-dom-unstable-flight-client.development.js +0 -357
- package/cjs/react-dom-unstable-flight-client.production.min.js +0 -16
- package/cjs/react-dom-unstable-flight-server.browser.development.js +0 -392
- package/cjs/react-dom-unstable-flight-server.browser.production.min.js +0 -16
- package/cjs/react-dom-unstable-flight-server.node.development.js +0 -415
- package/cjs/react-dom-unstable-flight-server.node.production.min.js +0 -16
- package/umd/react-dom-unstable-flight-client.development.js +0 -357
- package/umd/react-dom-unstable-flight-client.production.min.js +0 -14
- package/umd/react-dom-unstable-flight-server.browser.development.js +0 -390
- package/umd/react-dom-unstable-flight-server.browser.production.min.js +0 -14
- package/unstable-flight-client.js +0 -7
- package/unstable-flight-server.browser.js +0 -7
- package/unstable-flight-server.js +0 -3
- package/unstable-flight-server.node.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.0
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -17,19 +17,19 @@ null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagati
|
|
|
17
17
|
x.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;g(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=g({},e.Interface,a);c.extend=e.extend;y(c);return c};y(x);function z(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}
|
|
18
18
|
function A(a){if(!(a instanceof this))throw Error(p(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function y(a){a.eventPool=[];a.getPooled=z;a.release=A}var B=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function C(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}
|
|
19
19
|
var D={animationend:C("Animation","AnimationEnd"),animationiteration:C("Animation","AnimationIteration"),animationstart:C("Animation","AnimationStart"),transitionend:C("Transition","TransitionEnd")},E={},F={};B&&(F=document.createElement("div").style,"AnimationEvent"in window||(delete D.animationend.animation,delete D.animationiteration.animation,delete D.animationstart.animation),"TransitionEvent"in window||delete D.transitionend.transition);
|
|
20
|
-
function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
b){return
|
|
26
|
-
d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){
|
|
27
|
-
b){
|
|
28
|
-
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
function
|
|
32
|
-
[["abort","abort"],[H,"animationEnd"],[
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),I=G("animationiteration"),J=G("animationstart"),aa=G("transitionend"),K=null;function ba(a){if(null===K)try{var b=("require"+Math.random()).slice(0,7);K=(module&&module[b])("timers").setImmediate}catch(c){K=function(a){var b=new MessageChannel;b.port1.onmessage=a;b.port2.postMessage(void 0)}}return K(a)}
|
|
21
|
+
var L=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ca=L[11],M=L[12],da=m.unstable_batchedUpdates,N=q.IsSomeRendererActing,O="function"===typeof n.unstable_flushAllWithoutAsserting,P=n.unstable_flushAllWithoutAsserting||function(){for(var a=!1;ca();)a=!0;return a};function Q(a){try{P(),ba(function(){P()?Q(a):a()})}catch(b){a(b)}}var R=0,S=!1,ea=m.findDOMNode,T=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,fa=T[0],U=T[4],ha=T[5],ia=T[6],ja=T[7],ka=T[8],V=T[9],la=T[10];
|
|
22
|
+
function W(){}function ma(a,b){if(!a)return[];a=u(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}
|
|
23
|
+
function X(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(p(286,b,a));}}
|
|
24
|
+
var Y={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return Y.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
|
|
25
|
+
b){return Y.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){X(a,"findAllInRenderedTree");return a?ma(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){X(a,"scryRenderedDOMComponentsWithClass");return Y.findAllInRenderedTree(a,function(a){if(Y.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(p(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==
|
|
26
|
+
d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){X(a,"findRenderedDOMComponentWithClass");a=Y.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){X(a,"scryRenderedDOMComponentsWithTag");return Y.findAllInRenderedTree(a,function(a){return Y.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,
|
|
27
|
+
b){X(a,"findRenderedDOMComponentWithTag");a=Y.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){X(a,"scryRenderedComponentsWithType");return Y.findAllInRenderedTree(a,function(a){return Y.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){X(a,"findRenderedComponentWithType");a=Y.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
|
|
28
|
+
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){R--;N.current=c;M.current=e}!1===S&&(S=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));R++;var c=
|
|
29
|
+
N.current;var e=M.current;N.current=!0;M.current=!0;try{var d=da(a)}catch(f){throw b(),f;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1<R||!0===O&&!0===c?(b(),a()):Q(function(c){b();c?e(c):a()})},function(a){b();e(a)})}};try{1!==R||!1!==O&&!1!==c||P(),b()}catch(f){throw b(),f;}return{then:function(a){a()}}}};
|
|
30
|
+
function na(a){return function(b,c){if(k.isValidElement(b))throw Error(p(228));if(Y.isCompositeComponent(b))throw Error(p(229));var e=U[a],d=new W;d.target=b;d.type=a.toLowerCase();var f=fa(b),h=new x(e,f,d,b);h.persist();g(h,c);e.phasedRegistrationNames?ha(h):ia(h);m.unstable_batchedUpdates(function(){ja(b);la(h)});ka()}}Y.Simulate={};for(var Z in U)Y.Simulate[Z]=na(Z);
|
|
31
|
+
function oa(a,b){return function(c,e){var d=new W(a);g(d,e);Y.isDOMComponent(c)?(c=ea(c),d.target=c,V(b,1,document,d)):c.tagName&&(d.target=c,V(b,1,document,d))}}
|
|
32
|
+
[["abort","abort"],[H,"animationEnd"],[I,"animationIteration"],[J,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],
|
|
33
|
+
["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],
|
|
34
|
+
["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart",
|
|
35
|
+
"touchStart"],[aa,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];Y.SimulateNative[b]=oa(b,a[0])});module.exports=Y.default||Y;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.0
|
|
2
2
|
* react-dom-unstable-fizz.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -21,12 +21,10 @@ function scheduleWork(callback) {
|
|
|
21
21
|
function flushBuffered(destination) {// WHATWG Streams do not yet have a way to flush the underlying
|
|
22
22
|
// transform streams. https://github.com/whatwg/streams/issues/960
|
|
23
23
|
}
|
|
24
|
-
|
|
25
24
|
function writeChunk(destination, buffer) {
|
|
26
25
|
destination.enqueue(buffer);
|
|
27
26
|
return destination.desiredSize > 0;
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
function close(destination) {
|
|
31
29
|
destination.close();
|
|
32
30
|
}
|
|
@@ -54,13 +52,6 @@ function formatChunk(type, props) {
|
|
|
54
52
|
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
55
53
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
62
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
63
|
-
|
|
64
55
|
function createRequest(children, destination) {
|
|
65
56
|
return {
|
|
66
57
|
destination: destination,
|
|
@@ -98,13 +89,13 @@ function flushCompletedChunks(request) {
|
|
|
98
89
|
var destination = request.destination;
|
|
99
90
|
var chunks = request.completedChunks;
|
|
100
91
|
request.completedChunks = [];
|
|
92
|
+
|
|
101
93
|
try {
|
|
102
94
|
for (var i = 0; i < chunks.length; i++) {
|
|
103
95
|
var chunk = chunks[i];
|
|
104
96
|
writeChunk(destination, chunk);
|
|
105
97
|
}
|
|
106
98
|
} finally {
|
|
107
|
-
|
|
108
99
|
}
|
|
109
100
|
|
|
110
101
|
close(destination);
|
|
@@ -121,9 +112,6 @@ function startFlowing(request) {
|
|
|
121
112
|
flushCompletedChunks(request);
|
|
122
113
|
}
|
|
123
114
|
|
|
124
|
-
// This file intentionally does *not* have the Flow annotation.
|
|
125
|
-
// Don't add it. See `./inline-typed.js` for an explanation.
|
|
126
|
-
|
|
127
115
|
function renderToReadableStream(children) {
|
|
128
116
|
var request;
|
|
129
117
|
return new ReadableStream({
|
|
@@ -142,17 +130,11 @@ var ReactDOMFizzServerBrowser = {
|
|
|
142
130
|
renderToReadableStream: renderToReadableStream
|
|
143
131
|
};
|
|
144
132
|
|
|
145
|
-
var ReactDOMFizzServerBrowser$1 = Object.freeze({
|
|
146
|
-
default: ReactDOMFizzServerBrowser
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
var ReactDOMFizzServerBrowser$2 = ( ReactDOMFizzServerBrowser$1 && ReactDOMFizzServerBrowser ) || ReactDOMFizzServerBrowser$1;
|
|
150
|
-
|
|
151
133
|
// TODO: decide on the top-level export form.
|
|
152
134
|
// This is hacky but makes it work with both Rollup and Jest
|
|
153
135
|
|
|
154
136
|
|
|
155
|
-
var unstableFizz_browser = ReactDOMFizzServerBrowser
|
|
137
|
+
var unstableFizz_browser = ReactDOMFizzServerBrowser.default || ReactDOMFizzServerBrowser;
|
|
156
138
|
|
|
157
139
|
module.exports = unstableFizz_browser;
|
|
158
140
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.0
|
|
2
2
|
* react-dom-unstable-fizz.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';var e=new TextEncoder;function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return a+("</"+b+">")}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b<a.length;b++)c.enqueue(a[b]);c.close()}
|
|
11
|
-
var l={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(e.encode(g(f,d))),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}}
|
|
11
|
+
var l={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(e.encode(g(f,d))),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}};module.exports=l.default||l;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.0
|
|
2
2
|
* react-dom-unstable-fizz.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -73,13 +73,6 @@ function formatChunk(type, props) {
|
|
|
73
73
|
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
74
74
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
81
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
82
|
-
|
|
83
76
|
function createRequest(children, destination) {
|
|
84
77
|
return {
|
|
85
78
|
destination: destination,
|
|
@@ -142,9 +135,6 @@ function startFlowing(request) {
|
|
|
142
135
|
flushCompletedChunks(request);
|
|
143
136
|
}
|
|
144
137
|
|
|
145
|
-
// This file intentionally does *not* have the Flow annotation.
|
|
146
|
-
// Don't add it. See `./inline-typed.js` for an explanation.
|
|
147
|
-
|
|
148
138
|
function createDrainHandler(destination, request) {
|
|
149
139
|
return function () {
|
|
150
140
|
return startFlowing(request);
|
|
@@ -161,17 +151,11 @@ var ReactDOMFizzServerNode = {
|
|
|
161
151
|
pipeToNodeWritable: pipeToNodeWritable
|
|
162
152
|
};
|
|
163
153
|
|
|
164
|
-
var ReactDOMFizzServerNode$1 = Object.freeze({
|
|
165
|
-
default: ReactDOMFizzServerNode
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
var ReactDOMFizzServerNode$2 = ( ReactDOMFizzServerNode$1 && ReactDOMFizzServerNode ) || ReactDOMFizzServerNode$1;
|
|
169
|
-
|
|
170
154
|
// TODO: decide on the top-level export form.
|
|
171
155
|
// This is hacky but makes it work with both Rollup and Jest
|
|
172
156
|
|
|
173
157
|
|
|
174
|
-
var unstableFizz_node = ReactDOMFizzServerNode
|
|
158
|
+
var unstableFizz_node = ReactDOMFizzServerNode.default || ReactDOMFizzServerNode;
|
|
175
159
|
|
|
176
160
|
module.exports = unstableFizz_node;
|
|
177
161
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.0
|
|
2
2
|
* react-dom-unstable-fizz.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';function d(a,b){var c="<"+a+">";"string"===typeof b.children&&(c+=b.children);return c+("</"+a+">")}var e="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(a){var b=a.destination,c=a.completedChunks;a.completedChunks=[];"function"===typeof b.cork&&b.cork();try{for(a=0;a<c.length;a++)b.write(c[a])}finally{"function"===typeof b.uncork&&b.uncork()}b.end()}
|
|
11
|
-
function g(a){a.flowing=!0;setImmediate(function(){var b=a.children;a.children=null;if(!b||b.$$typeof===e){var c=b.type;b=b.props;"string"===typeof c&&(a.completedChunks.push(Buffer.from(d(c,b),"utf8")),a.flowing&&f(a),c=a.destination,"function"===typeof c.flush&&"function"!==typeof c.flushHeaders&&c.flush())}})}function h(a,b){return function(){b.flowing=!1;f(b)}}
|
|
12
|
-
|
|
11
|
+
function g(a){a.flowing=!0;setImmediate(function(){var b=a.children;a.children=null;if(!b||b.$$typeof===e){var c=b.type;b=b.props;"string"===typeof c&&(a.completedChunks.push(Buffer.from(d(c,b),"utf8")),a.flowing&&f(a),c=a.destination,"function"===typeof c.flush&&"function"!==typeof c.flushHeaders&&c.flush())}})}function h(a,b){return function(){b.flowing=!1;f(b)}}var k={pipeToNodeWritable:function(a,b){a={destination:b,children:a,completedChunks:[],flowing:!1};b.on("drain",h(b,a));g(a)}};
|
|
12
|
+
module.exports=k.default||k;
|