react-server-dom-webpack
Advanced tools
Comparing version 0.0.0-experimental-3310209d0 to 0.0.0-experimental-4c019585e
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-node-register.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-plugin.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-writer.browser.development.server.js | ||
@@ -182,5 +182,3 @@ * | ||
request.pendingChunks++; | ||
var rootSegment = createSegment(request, function () { | ||
return model; | ||
}); | ||
var rootSegment = createSegment(request, model); | ||
pingedSegments.push(rootSegment); | ||
@@ -258,7 +256,7 @@ return request; | ||
function createSegment(request, query) { | ||
function createSegment(request, model) { | ||
var id = request.nextChunkId++; | ||
var segment = { | ||
id: id, | ||
query: query, | ||
model: model, | ||
ping: function () { | ||
@@ -485,5 +483,3 @@ return pingSegment(request, segment); | ||
request.pendingChunks++; | ||
var newSegment = createSegment(request, function () { | ||
return value; | ||
}); | ||
var newSegment = createSegment(request, value); | ||
var ping = newSegment.ping; | ||
@@ -672,22 +668,16 @@ x.then(ping, ping); | ||
function retrySegment(request, segment) { | ||
var query = segment.query; | ||
var value; | ||
try { | ||
value = query(); | ||
var _value3 = segment.model; | ||
while (typeof value === 'object' && value !== null && value.$$typeof === REACT_ELEMENT_TYPE) { | ||
while (typeof _value3 === 'object' && _value3 !== null && _value3.$$typeof === REACT_ELEMENT_TYPE) { | ||
// TODO: Concatenate keys of parents onto children. | ||
var element = value; // Attempt to render the server component. | ||
var element = _value3; // Attempt to render the server component. | ||
// Doing this here lets us reuse this same segment if the next component | ||
// also suspends. | ||
segment.query = function () { | ||
return value; | ||
}; | ||
value = attemptResolveElement(element.type, element.key, element.ref, element.props); | ||
segment.model = _value3; | ||
_value3 = attemptResolveElement(element.type, element.key, element.ref, element.props); | ||
} | ||
var processedChunk = processModelChunk(request, segment.id, value); | ||
var processedChunk = processModelChunk(request, segment.id, _value3); | ||
request.completedJSONChunks.push(processedChunk); | ||
@@ -836,8 +826,4 @@ } catch (x) { | ||
useDebugValue: function () {}, | ||
useDeferredValue: function (value) { | ||
return value; | ||
}, | ||
useTransition: function () { | ||
return [function () {}, false]; | ||
}, | ||
useDeferredValue: unsupportedHook, | ||
useTransition: unsupportedHook, | ||
getCacheForType: function (resourceType) { | ||
@@ -844,0 +830,0 @@ if (!currentCache) { |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-writer.browser.production.min.server.js | ||
@@ -9,16 +9,16 @@ * | ||
*/ | ||
'use strict';var g=require("react");function k(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(a,c){a.enqueue(c);return 0<a.desiredSize}var n=new TextEncoder,q=JSON.stringify; | ||
function r(a,c,d){a=q(d,a.toJSON);c="J"+c.toString(16)+":"+a+"\n";return n.encode(c)}var t=Symbol.for("react.module.reference"),u=60103,v=60107,x=60112,y=60115,z=60116;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;u=A("react.element");v=A("react.fragment");x=A("react.forward_ref");y=A("react.memo");z=A("react.lazy")}var B=Array.isArray,D=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher; | ||
function E(a,c,d){var b=[],e={destination:c,bundlerConfig:d,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:b,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,flowing:!1,toJSON:function(a,b){return F(e,this,a,b)}};e.pendingChunks++;c=G(e,function(){return a});b.push(c);return e} | ||
function H(a,c,d,b){if(null!==d&&void 0!==d)throw Error(k(379));if("function"===typeof a)return a(b);if("string"===typeof a)return[u,a,c,b];if("symbol"===typeof a)return a===v?b.children:[u,a,c,b];if(null!=a&&"object"===typeof a){if(a.$$typeof===t)return[u,a,c,b];switch(a.$$typeof){case x:return a=a.render,a(b,void 0);case y:return H(a.type,c,d,b)}}throw Error(k(351,I(a)));} | ||
function G(a,c){var d={id:a.nextChunkId++,query:c,ping:function(){var b=a.pingedSegments;b.push(d);1===b.length&&J(a)}};return d}function K(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function L(a){var c=JSON.stringify(a);return'"'+a+'"'===c?a:c} | ||
function I(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(B(a))return"[...]";a=K(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function M(a,c){if(B(a)){for(var d="[",b=0;b<a.length;b++){0<b&&(d+=", ");if(6<b){d+="...";break}var e=a[b];d=""+b===c&&"object"===typeof e&&null!==e?d+M(e):d+I(e)}return d+"]"}d="{";b=Object.keys(a);for(e=0;e<b.length;e++){0<e&&(d+=", ");if(6<e){d+="...";break}var f=b[e];d+=L(f)+": ";var m=a[f];d=f===c&&"object"===typeof m&&null!==m?d+M(m):d+I(m)}return d+"}"} | ||
function F(a,c,d,b){switch(b){case u:return"$";case z:throw Error(k(352));}for(;"object"===typeof b&&null!==b&&b.$$typeof===u;){var e=b;try{b=H(e.type,e.key,e.ref,e.props)}catch(p){if("object"===typeof p&&null!==p&&"function"===typeof p.then)return a.pendingChunks++,a=G(a,function(){return b}),c=a.ping,p.then(c,c),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;N(a,c,p);return"@"+c.toString(16)}}if(null===b)return null;if("object"===typeof b){if(b.$$typeof===t){e=b;var f=e.filepath+"#"+ | ||
e.name,m=a.writtenModules,C=m.get(f);if(void 0!==C)return c[0]===u&&"1"===d?"@"+C.toString(16):"$"+C.toString(16);try{var w=a.bundlerConfig[e.filepath][e.name];a.pendingChunks++;var h=a.nextChunkId++;O(a,h,w);m.set(f,h);return c[0]===u&&"1"===d?"@"+h.toString(16):"$"+h.toString(16)}catch(p){return a.pendingChunks++,c=a.nextChunkId++,N(a,c,p),"$"+c.toString(16)}}return b}if("string"===typeof b)return a="$"===b[0]||"@"===b[0]?"$"+b:b,a;if("boolean"===typeof b||"number"===typeof b||"undefined"===typeof b)return b; | ||
if("function"===typeof b){if(/^on[A-Z]/.test(d))throw Error(k(374,L(d),M(c)));throw Error(k(375,L(d),b.displayName||b.name||"function",M(c)));}if("symbol"===typeof b){w=a.writtenSymbols;h=w.get(b);if(void 0!==h)return"$"+h.toString(16);h=b.description;if(Symbol.for(h)!==b)throw Error(k(376,b.description,L(d),M(c)));a.pendingChunks++;c=a.nextChunkId++;P(a,c,h);w.set(b,c);return"$"+c.toString(16)}if("bigint"===typeof b)throw Error(k(377,b,L(d),M(c)));throw Error(k(378,typeof b,L(d),M(c)));} | ||
function N(a,c,d){var b="";try{if(d instanceof Error){var e=""+d.message;b=""+d.stack}else e="Error: "+d}catch(f){e="An error occurred but serializing the error message failed."}d={message:e,stack:b};c="E"+c.toString(16)+":"+q(d)+"\n";c=n.encode(c);a.completedErrorChunks.push(c)}function O(a,c,d){d=q(d);c="M"+c.toString(16)+":"+d+"\n";c=n.encode(c);a.completedModuleChunks.push(c)}function P(a,c,d){d=q(d);c="S"+c.toString(16)+":"+d+"\n";c=n.encode(c);a.completedModuleChunks.push(c)} | ||
function Q(a,c){var d=c.query,b;try{for(b=d();"object"===typeof b&&null!==b&&b.$$typeof===u;)d=b,c.query=function(){return b},b=H(d.type,d.key,d.ref,d.props);var e=r(a,c.id,b);a.completedJSONChunks.push(e)}catch(f){"object"===typeof f&&null!==f&&"function"===typeof f.then?(a=c.ping,f.then(a,a)):N(a,c.id,f)}}function J(a){var c=D.current,d=R;D.current=S;R=a.cache;var b=a.pingedSegments;a.pingedSegments=[];for(var e=0;e<b.length;e++)Q(a,b[e]);a.flowing&&T(a);D.current=c;R=d}var U=!1; | ||
function T(a){if(!U){U=!0;var c=a.destination;try{for(var d=a.completedModuleChunks,b=0;b<d.length;b++)if(a.pendingChunks--,!l(c,d[b])){a.flowing=!1;b++;break}d.splice(0,b);var e=a.completedJSONChunks;for(b=0;b<e.length;b++)if(a.pendingChunks--,!l(c,e[b])){a.flowing=!1;b++;break}e.splice(0,b);var f=a.completedErrorChunks;for(b=0;b<f.length;b++)if(a.pendingChunks--,!l(c,f[b])){a.flowing=!1;b++;break}f.splice(0,b)}finally{U=!1}0===a.pendingChunks&&c.close()}}function V(){throw Error(k(373));} | ||
function W(){if(!R)throw Error(k(384));}var R=null,S={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:function(a){return a},useTransition:function(){return[function(){},!1]},getCacheForType:function(a){if(!R)throw Error(k(380));var c=R.get(a);void 0===c&&(c=a(),R.set(a,c));return c},readContext:V,useContext:V,useReducer:V,useRef:V,useState:V,useLayoutEffect:V,useImperativeHandle:V,useEffect:V,useOpaqueIdentifier:V,useMutableSource:V,useCacheRefresh:function(){return W}}; | ||
exports.renderToReadableStream=function(a,c){var d;return new ReadableStream({start:function(b){b=d=E(a,b,c);b.flowing=!0;J(b)},pull:function(){var a=d;a.flowing=!0;T(a)},cancel:function(){}})}; | ||
'use strict';var l=require("react");function m(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(a,c){a.enqueue(c);return 0<a.desiredSize} | ||
var q=new TextEncoder,r=JSON.stringify,t=Symbol.for("react.module.reference"),u=60103,w=60107,x=60112,y=60115,z=60116;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;u=A("react.element");w=A("react.fragment");x=A("react.forward_ref");y=A("react.memo");z=A("react.lazy")}var B=Array.isArray,C=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher; | ||
function G(a,c,d){var b=[],e={destination:c,bundlerConfig:d,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:b,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,flowing:!1,toJSON:function(a,b){return H(e,this,a,b)}};e.pendingChunks++;a=I(e,a);b.push(a);return e} | ||
function J(a,c,d,b){if(null!==d&&void 0!==d)throw Error(m(379));if("function"===typeof a)return a(b);if("string"===typeof a)return[u,a,c,b];if("symbol"===typeof a)return a===w?b.children:[u,a,c,b];if(null!=a&&"object"===typeof a){if(a.$$typeof===t)return[u,a,c,b];switch(a.$$typeof){case x:return a=a.render,a(b,void 0);case y:return J(a.type,c,d,b)}}throw Error(m(351,K(a)));} | ||
function I(a,c){var d={id:a.nextChunkId++,model:c,ping:function(){var b=a.pingedSegments;b.push(d);1===b.length&&L(a)}};return d}function M(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function N(a){var c=JSON.stringify(a);return'"'+a+'"'===c?a:c} | ||
function K(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(B(a))return"[...]";a=M(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function O(a,c){if(B(a)){for(var d="[",b=0;b<a.length;b++){0<b&&(d+=", ");if(6<b){d+="...";break}var e=a[b];d=""+b===c&&"object"===typeof e&&null!==e?d+O(e):d+K(e)}return d+"]"}d="{";b=Object.keys(a);for(e=0;e<b.length;e++){0<e&&(d+=", ");if(6<e){d+="...";break}var f=b[e];d+=N(f)+": ";var h=a[f];d=f===c&&"object"===typeof h&&null!==h?d+O(h):d+K(h)}return d+"}"} | ||
function H(a,c,d,b){switch(b){case u:return"$";case z:throw Error(m(352));}for(;"object"===typeof b&&null!==b&&b.$$typeof===u;){var e=b;try{b=J(e.type,e.key,e.ref,e.props)}catch(p){if("object"===typeof p&&null!==p&&"function"===typeof p.then)return a.pendingChunks++,a=I(a,b),c=a.ping,p.then(c,c),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;P(a,c,p);return"@"+c.toString(16)}}if(null===b)return null;if("object"===typeof b){if(b.$$typeof===t){e=b.filepath+"#"+b.name;var f=a.writtenModules, | ||
h=f.get(e);if(void 0!==h)return c[0]===u&&"1"===d?"@"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[b.filepath][b.name];a.pendingChunks++;var g=a.nextChunkId++,D=r(k),E="M"+g.toString(16)+":"+D+"\n";var F=q.encode(E);a.completedModuleChunks.push(F);f.set(e,g);return c[0]===u&&"1"===d?"@"+g.toString(16):"$"+g.toString(16)}catch(p){return a.pendingChunks++,c=a.nextChunkId++,P(a,c,p),"$"+c.toString(16)}}return b}if("string"===typeof b)return a="$"===b[0]||"@"===b[0]?"$"+b:b,a;if("boolean"=== | ||
typeof b||"number"===typeof b||"undefined"===typeof b)return b;if("function"===typeof b){if(/^on[A-Z]/.test(d))throw Error(m(374,N(d),O(c)));throw Error(m(375,N(d),b.displayName||b.name||"function",O(c)));}if("symbol"===typeof b){k=a.writtenSymbols;g=k.get(b);if(void 0!==g)return"$"+g.toString(16);g=b.description;if(Symbol.for(g)!==b)throw Error(m(376,b.description,N(d),O(c)));a.pendingChunks++;c=a.nextChunkId++;d=r(g);d="S"+c.toString(16)+":"+d+"\n";d=q.encode(d);a.completedModuleChunks.push(d); | ||
k.set(b,c);return"$"+c.toString(16)}if("bigint"===typeof b)throw Error(m(377,b,N(d),O(c)));throw Error(m(378,typeof b,N(d),O(c)));}function P(a,c,d){var b="";try{if(d instanceof Error){var e=""+d.message;b=""+d.stack}else e="Error: "+d}catch(f){e="An error occurred but serializing the error message failed."}d={message:e,stack:b};c="E"+c.toString(16)+":"+r(d)+"\n";c=q.encode(c);a.completedErrorChunks.push(c)} | ||
function L(a){var c=C.current,d=Q;C.current=R;Q=a.cache;var b=a.pingedSegments;a.pingedSegments=[];for(var e=0;e<b.length;e++){var f=b[e];var h=a;try{for(var k=f.model;"object"===typeof k&&null!==k&&k.$$typeof===u;){var g=k;f.model=k;k=J(g.type,g.key,g.ref,g.props)}var D=f.id,E=r(k,h.toJSON),F="J"+D.toString(16)+":"+E+"\n";var p=q.encode(F);h.completedJSONChunks.push(p)}catch(v){"object"===typeof v&&null!==v&&"function"===typeof v.then?(f=f.ping,v.then(f,f)):P(h,f.id,v)}}a.flowing&&S(a);C.current= | ||
c;Q=d}var T=!1;function S(a){if(!T){T=!0;var c=a.destination;try{for(var d=a.completedModuleChunks,b=0;b<d.length;b++)if(a.pendingChunks--,!n(c,d[b])){a.flowing=!1;b++;break}d.splice(0,b);var e=a.completedJSONChunks;for(b=0;b<e.length;b++)if(a.pendingChunks--,!n(c,e[b])){a.flowing=!1;b++;break}e.splice(0,b);var f=a.completedErrorChunks;for(b=0;b<f.length;b++)if(a.pendingChunks--,!n(c,f[b])){a.flowing=!1;b++;break}f.splice(0,b)}finally{T=!1}0===a.pendingChunks&&c.close()}} | ||
function U(){throw Error(m(373));}function V(){if(!Q)throw Error(m(384));}var Q=null,R={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:U,useTransition:U,getCacheForType:function(a){if(!Q)throw Error(m(380));var c=Q.get(a);void 0===c&&(c=a(),Q.set(a,c));return c},readContext:U,useContext:U,useReducer:U,useRef:U,useState:U,useLayoutEffect:U,useImperativeHandle:U,useEffect:U,useOpaqueIdentifier:U,useMutableSource:U,useCacheRefresh:function(){return V}}; | ||
exports.renderToReadableStream=function(a,c){var d;return new ReadableStream({start:function(b){b=d=G(a,b,c);b.flowing=!0;L(b)},pull:function(){var a=d;a.flowing=!0;S(a)},cancel:function(){}})}; |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-writer.node.development.server.js | ||
@@ -206,5 +206,3 @@ * | ||
request.pendingChunks++; | ||
var rootSegment = createSegment(request, function () { | ||
return model; | ||
}); | ||
var rootSegment = createSegment(request, model); | ||
pingedSegments.push(rootSegment); | ||
@@ -282,7 +280,7 @@ return request; | ||
function createSegment(request, query) { | ||
function createSegment(request, model) { | ||
var id = request.nextChunkId++; | ||
var segment = { | ||
id: id, | ||
query: query, | ||
model: model, | ||
ping: function () { | ||
@@ -509,5 +507,3 @@ return pingSegment(request, segment); | ||
request.pendingChunks++; | ||
var newSegment = createSegment(request, function () { | ||
return value; | ||
}); | ||
var newSegment = createSegment(request, value); | ||
var ping = newSegment.ping; | ||
@@ -696,22 +692,16 @@ x.then(ping, ping); | ||
function retrySegment(request, segment) { | ||
var query = segment.query; | ||
var value; | ||
try { | ||
value = query(); | ||
var _value3 = segment.model; | ||
while (typeof value === 'object' && value !== null && value.$$typeof === REACT_ELEMENT_TYPE) { | ||
while (typeof _value3 === 'object' && _value3 !== null && _value3.$$typeof === REACT_ELEMENT_TYPE) { | ||
// TODO: Concatenate keys of parents onto children. | ||
var element = value; // Attempt to render the server component. | ||
var element = _value3; // Attempt to render the server component. | ||
// Doing this here lets us reuse this same segment if the next component | ||
// also suspends. | ||
segment.query = function () { | ||
return value; | ||
}; | ||
value = attemptResolveElement(element.type, element.key, element.ref, element.props); | ||
segment.model = _value3; | ||
_value3 = attemptResolveElement(element.type, element.key, element.ref, element.props); | ||
} | ||
var processedChunk = processModelChunk(request, segment.id, value); | ||
var processedChunk = processModelChunk(request, segment.id, _value3); | ||
request.completedJSONChunks.push(processedChunk); | ||
@@ -864,8 +854,4 @@ } catch (x) { | ||
useDebugValue: function () {}, | ||
useDeferredValue: function (value) { | ||
return value; | ||
}, | ||
useTransition: function () { | ||
return [function () {}, false]; | ||
}, | ||
useDeferredValue: unsupportedHook, | ||
useTransition: unsupportedHook, | ||
getCacheForType: function (resourceType) { | ||
@@ -872,0 +858,0 @@ if (!currentCache) { |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-writer.node.production.min.server.js | ||
@@ -9,17 +9,17 @@ * | ||
*/ | ||
'use strict';var g=require("react");function k(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)b+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=JSON.stringify;function n(a,b,d){a=l(d,a.toJSON);b="J"+b.toString(16)+":"+a+"\n";return Buffer.from(b,"utf8")} | ||
var q=Symbol.for("react.module.reference"),r=60103,t=60107,u=60112,w=60115,x=60116;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element");t=y("react.fragment");u=y("react.forward_ref");w=y("react.memo");x=y("react.lazy")}var z=Array.isArray,B=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher; | ||
function C(a,b,d){var c=[],e={destination:b,bundlerConfig:d,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:c,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,flowing:!1,toJSON:function(a,b){return D(e,this,a,b)}};e.pendingChunks++;b=E(e,function(){return a});c.push(b);return e} | ||
function F(a,b,d,c){if(null!==d&&void 0!==d)throw Error(k(379));if("function"===typeof a)return a(c);if("string"===typeof a)return[r,a,b,c];if("symbol"===typeof a)return a===t?c.children:[r,a,b,c];if(null!=a&&"object"===typeof a){if(a.$$typeof===q)return[r,a,b,c];switch(a.$$typeof){case u:return a=a.render,a(c,void 0);case w:return F(a.type,b,d,c)}}throw Error(k(351,G(a)));}function H(a,b){var d=a.pingedSegments;d.push(b);1===d.length&&setImmediate(function(){return I(a)})} | ||
function E(a,b){var d={id:a.nextChunkId++,query:b,ping:function(){return H(a,d)}};return d}function J(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function K(a){var b=JSON.stringify(a);return'"'+a+'"'===b?a:b}function G(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(z(a))return"[...]";a=J(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function L(a,b){if(z(a)){for(var d="[",c=0;c<a.length;c++){0<c&&(d+=", ");if(6<c){d+="...";break}var e=a[c];d=""+c===b&&"object"===typeof e&&null!==e?d+L(e):d+G(e)}return d+"]"}d="{";c=Object.keys(a);for(e=0;e<c.length;e++){0<e&&(d+=", ");if(6<e){d+="...";break}var f=c[e];d+=K(f)+": ";var m=a[f];d=f===b&&"object"===typeof m&&null!==m?d+L(m):d+G(m)}return d+"}"} | ||
function D(a,b,d,c){switch(c){case r:return"$";case x:throw Error(k(352));}for(;"object"===typeof c&&null!==c&&c.$$typeof===r;){var e=c;try{c=F(e.type,e.key,e.ref,e.props)}catch(p){if("object"===typeof p&&null!==p&&"function"===typeof p.then)return a.pendingChunks++,a=E(a,function(){return c}),b=a.ping,p.then(b,b),"@"+a.id.toString(16);a.pendingChunks++;b=a.nextChunkId++;M(a,b,p);return"@"+b.toString(16)}}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===q){e=c;var f=e.filepath+"#"+ | ||
e.name,m=a.writtenModules,A=m.get(f);if(void 0!==A)return b[0]===r&&"1"===d?"@"+A.toString(16):"$"+A.toString(16);try{var v=a.bundlerConfig[e.filepath][e.name];a.pendingChunks++;var h=a.nextChunkId++;N(a,h,v);m.set(f,h);return b[0]===r&&"1"===d?"@"+h.toString(16):"$"+h.toString(16)}catch(p){return a.pendingChunks++,b=a.nextChunkId++,M(a,b,p),"$"+b.toString(16)}}return c}if("string"===typeof c)return a="$"===c[0]||"@"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c||"undefined"===typeof c)return c; | ||
if("function"===typeof c){if(/^on[A-Z]/.test(d))throw Error(k(374,K(d),L(b)));throw Error(k(375,K(d),c.displayName||c.name||"function",L(b)));}if("symbol"===typeof c){v=a.writtenSymbols;h=v.get(c);if(void 0!==h)return"$"+h.toString(16);h=c.description;if(Symbol.for(h)!==c)throw Error(k(376,c.description,K(d),L(b)));a.pendingChunks++;b=a.nextChunkId++;O(a,b,h);v.set(c,b);return"$"+b.toString(16)}if("bigint"===typeof c)throw Error(k(377,c,K(d),L(b)));throw Error(k(378,typeof c,K(d),L(b)));} | ||
function M(a,b,d){var c="";try{if(d instanceof Error){var e=""+d.message;c=""+d.stack}else e="Error: "+d}catch(f){e="An error occurred but serializing the error message failed."}d={message:e,stack:c};b="E"+b.toString(16)+":"+l(d)+"\n";b=Buffer.from(b,"utf8");a.completedErrorChunks.push(b)}function N(a,b,d){d=l(d);b="M"+b.toString(16)+":"+d+"\n";b=Buffer.from(b,"utf8");a.completedModuleChunks.push(b)} | ||
function O(a,b,d){d=l(d);b="S"+b.toString(16)+":"+d+"\n";b=Buffer.from(b,"utf8");a.completedModuleChunks.push(b)}function P(a,b){var d=b.query,c;try{for(c=d();"object"===typeof c&&null!==c&&c.$$typeof===r;)d=c,b.query=function(){return c},c=F(d.type,d.key,d.ref,d.props);var e=n(a,b.id,c);a.completedJSONChunks.push(e)}catch(f){"object"===typeof f&&null!==f&&"function"===typeof f.then?(a=b.ping,f.then(a,a)):M(a,b.id,f)}} | ||
function I(a){var b=B.current,d=Q;B.current=R;Q=a.cache;var c=a.pingedSegments;a.pingedSegments=[];for(var e=0;e<c.length;e++)P(a,c[e]);a.flowing&&S(a);B.current=b;Q=d}var T=!1; | ||
function S(a){if(!T){T=!0;var b=a.destination;"function"===typeof b.cork&&b.cork();try{for(var d=a.completedModuleChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!b.write(d[c])){a.flowing=!1;c++;break}d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)if(a.pendingChunks--,!b.write(e[c])){a.flowing=!1;c++;break}e.splice(0,c);var f=a.completedErrorChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!b.write(f[c])){a.flowing=!1;c++;break}f.splice(0,c)}finally{T=!1,"function"===typeof b.uncork&& | ||
b.uncork()}"function"===typeof b.flush&&"function"!==typeof b.flushHeaders&&b.flush();0===a.pendingChunks&&b.end()}}function U(a){a.flowing=!0;setImmediate(function(){return I(a)})}function V(){throw Error(k(373));}function W(){if(!Q)throw Error(k(384));} | ||
var Q=null,R={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:function(a){return a},useTransition:function(){return[function(){},!1]},getCacheForType:function(a){if(!Q)throw Error(k(380));var b=Q.get(a);void 0===b&&(b=a(),Q.set(a,b));return b},readContext:V,useContext:V,useReducer:V,useRef:V,useState:V,useLayoutEffect:V,useImperativeHandle:V,useEffect:V,useOpaqueIdentifier:V,useMutableSource:V,useCacheRefresh:function(){return W}}; | ||
function X(a,b){return function(){b.flowing=!0;S(b)}}exports.pipeToNodeWritable=function(a,b,d){a=C(a,b,d);b.on("drain",X(b,a));U(a)}; | ||
'use strict';var l=require("react");function m(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=JSON.stringify,q=Symbol.for("react.module.reference"),r=60103,t=60107,u=60112,w=60115,x=60116; | ||
if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element");t=y("react.fragment");u=y("react.forward_ref");w=y("react.memo");x=y("react.lazy")}var z=Array.isArray,A=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher; | ||
function E(a,c,d){var b=[],e={destination:c,bundlerConfig:d,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:b,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,flowing:!1,toJSON:function(a,b){return F(e,this,a,b)}};e.pendingChunks++;a=G(e,a);b.push(a);return e} | ||
function H(a,c,d,b){if(null!==d&&void 0!==d)throw Error(m(379));if("function"===typeof a)return a(b);if("string"===typeof a)return[r,a,c,b];if("symbol"===typeof a)return a===t?b.children:[r,a,c,b];if(null!=a&&"object"===typeof a){if(a.$$typeof===q)return[r,a,c,b];switch(a.$$typeof){case u:return a=a.render,a(b,void 0);case w:return H(a.type,c,d,b)}}throw Error(m(351,I(a)));}function J(a,c){var d=a.pingedSegments;d.push(c);1===d.length&&setImmediate(function(){return K(a)})} | ||
function G(a,c){var d={id:a.nextChunkId++,model:c,ping:function(){return J(a,d)}};return d}function L(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function M(a){var c=JSON.stringify(a);return'"'+a+'"'===c?a:c}function I(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(z(a))return"[...]";a=L(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} | ||
function N(a,c){if(z(a)){for(var d="[",b=0;b<a.length;b++){0<b&&(d+=", ");if(6<b){d+="...";break}var e=a[b];d=""+b===c&&"object"===typeof e&&null!==e?d+N(e):d+I(e)}return d+"]"}d="{";b=Object.keys(a);for(e=0;e<b.length;e++){0<e&&(d+=", ");if(6<e){d+="...";break}var f=b[e];d+=M(f)+": ";var h=a[f];d=f===c&&"object"===typeof h&&null!==h?d+N(h):d+I(h)}return d+"}"} | ||
function F(a,c,d,b){switch(b){case r:return"$";case x:throw Error(m(352));}for(;"object"===typeof b&&null!==b&&b.$$typeof===r;){var e=b;try{b=H(e.type,e.key,e.ref,e.props)}catch(p){if("object"===typeof p&&null!==p&&"function"===typeof p.then)return a.pendingChunks++,a=G(a,b),c=a.ping,p.then(c,c),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;O(a,c,p);return"@"+c.toString(16)}}if(null===b)return null;if("object"===typeof b){if(b.$$typeof===q){e=b.filepath+"#"+b.name;var f=a.writtenModules, | ||
h=f.get(e);if(void 0!==h)return c[0]===r&&"1"===d?"@"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[b.filepath][b.name];a.pendingChunks++;var g=a.nextChunkId++,B=n(k),C="M"+g.toString(16)+":"+B+"\n";var D=Buffer.from(C,"utf8");a.completedModuleChunks.push(D);f.set(e,g);return c[0]===r&&"1"===d?"@"+g.toString(16):"$"+g.toString(16)}catch(p){return a.pendingChunks++,c=a.nextChunkId++,O(a,c,p),"$"+c.toString(16)}}return b}if("string"===typeof b)return a="$"===b[0]||"@"===b[0]?"$"+b:b,a; | ||
if("boolean"===typeof b||"number"===typeof b||"undefined"===typeof b)return b;if("function"===typeof b){if(/^on[A-Z]/.test(d))throw Error(m(374,M(d),N(c)));throw Error(m(375,M(d),b.displayName||b.name||"function",N(c)));}if("symbol"===typeof b){k=a.writtenSymbols;g=k.get(b);if(void 0!==g)return"$"+g.toString(16);g=b.description;if(Symbol.for(g)!==b)throw Error(m(376,b.description,M(d),N(c)));a.pendingChunks++;c=a.nextChunkId++;d=n(g);d="S"+c.toString(16)+":"+d+"\n";d=Buffer.from(d,"utf8");a.completedModuleChunks.push(d); | ||
k.set(b,c);return"$"+c.toString(16)}if("bigint"===typeof b)throw Error(m(377,b,M(d),N(c)));throw Error(m(378,typeof b,M(d),N(c)));}function O(a,c,d){var b="";try{if(d instanceof Error){var e=""+d.message;b=""+d.stack}else e="Error: "+d}catch(f){e="An error occurred but serializing the error message failed."}d={message:e,stack:b};c="E"+c.toString(16)+":"+n(d)+"\n";c=Buffer.from(c,"utf8");a.completedErrorChunks.push(c)} | ||
function K(a){var c=A.current,d=P;A.current=Q;P=a.cache;var b=a.pingedSegments;a.pingedSegments=[];for(var e=0;e<b.length;e++){var f=b[e];var h=a;try{for(var k=f.model;"object"===typeof k&&null!==k&&k.$$typeof===r;){var g=k;f.model=k;k=H(g.type,g.key,g.ref,g.props)}var B=f.id,C=n(k,h.toJSON),D="J"+B.toString(16)+":"+C+"\n";var p=Buffer.from(D,"utf8");h.completedJSONChunks.push(p)}catch(v){"object"===typeof v&&null!==v&&"function"===typeof v.then?(f=f.ping,v.then(f,f)):O(h,f.id,v)}}a.flowing&&R(a); | ||
A.current=c;P=d}var S=!1; | ||
function R(a){if(!S){S=!0;var c=a.destination;"function"===typeof c.cork&&c.cork();try{for(var d=a.completedModuleChunks,b=0;b<d.length;b++)if(a.pendingChunks--,!c.write(d[b])){a.flowing=!1;b++;break}d.splice(0,b);var e=a.completedJSONChunks;for(b=0;b<e.length;b++)if(a.pendingChunks--,!c.write(e[b])){a.flowing=!1;b++;break}e.splice(0,b);var f=a.completedErrorChunks;for(b=0;b<f.length;b++)if(a.pendingChunks--,!c.write(f[b])){a.flowing=!1;b++;break}f.splice(0,b)}finally{S=!1,"function"===typeof c.uncork&& | ||
c.uncork()}"function"===typeof c.flush&&"function"!==typeof c.flushHeaders&&c.flush();0===a.pendingChunks&&c.end()}}function T(a){a.flowing=!0;setImmediate(function(){return K(a)})}function U(){throw Error(m(373));}function V(){if(!P)throw Error(m(384));} | ||
var P=null,Q={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:U,useTransition:U,getCacheForType:function(a){if(!P)throw Error(m(380));var c=P.get(a);void 0===c&&(c=a(),P.set(a,c));return c},readContext:U,useContext:U,useReducer:U,useRef:U,useState:U,useLayoutEffect:U,useImperativeHandle:U,useEffect:U,useOpaqueIdentifier:U,useMutableSource:U,useCacheRefresh:function(){return V}};function W(a,c){return function(){c.flowing=!0;R(c)}} | ||
exports.pipeToNodeWritable=function(a,c,d){a=E(a,c,d);c.on("drain",W(c,a));T(a)}; |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack.development.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack.production.min.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-node-loader.js | ||
@@ -3,0 +3,0 @@ * |
{ | ||
"name": "react-server-dom-webpack", | ||
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.", | ||
"version": "0.0.0-experimental-3310209d0", | ||
"version": "0.0.0-experimental-4c019585e", | ||
"keywords": [ | ||
@@ -51,4 +51,4 @@ "react" | ||
"peerDependencies": { | ||
"react": "0.0.0-experimental-3310209d0", | ||
"react-dom": "0.0.0-experimental-3310209d0", | ||
"react": "0.0.0-experimental-4c019585e", | ||
"react-dom": "0.0.0-experimental-4c019585e", | ||
"webpack": "^4.43.0" | ||
@@ -67,2 +67,2 @@ }, | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-writer.browser.development.server.js | ||
@@ -179,5 +179,3 @@ * | ||
request.pendingChunks++; | ||
var rootSegment = createSegment(request, function () { | ||
return model; | ||
}); | ||
var rootSegment = createSegment(request, model); | ||
pingedSegments.push(rootSegment); | ||
@@ -255,7 +253,7 @@ return request; | ||
function createSegment(request, query) { | ||
function createSegment(request, model) { | ||
var id = request.nextChunkId++; | ||
var segment = { | ||
id: id, | ||
query: query, | ||
model: model, | ||
ping: function () { | ||
@@ -482,5 +480,3 @@ return pingSegment(request, segment); | ||
request.pendingChunks++; | ||
var newSegment = createSegment(request, function () { | ||
return value; | ||
}); | ||
var newSegment = createSegment(request, value); | ||
var ping = newSegment.ping; | ||
@@ -669,22 +665,16 @@ x.then(ping, ping); | ||
function retrySegment(request, segment) { | ||
var query = segment.query; | ||
var value; | ||
try { | ||
value = query(); | ||
var _value3 = segment.model; | ||
while (typeof value === 'object' && value !== null && value.$$typeof === REACT_ELEMENT_TYPE) { | ||
while (typeof _value3 === 'object' && _value3 !== null && _value3.$$typeof === REACT_ELEMENT_TYPE) { | ||
// TODO: Concatenate keys of parents onto children. | ||
var element = value; // Attempt to render the server component. | ||
var element = _value3; // Attempt to render the server component. | ||
// Doing this here lets us reuse this same segment if the next component | ||
// also suspends. | ||
segment.query = function () { | ||
return value; | ||
}; | ||
value = attemptResolveElement(element.type, element.key, element.ref, element.props); | ||
segment.model = _value3; | ||
_value3 = attemptResolveElement(element.type, element.key, element.ref, element.props); | ||
} | ||
var processedChunk = processModelChunk(request, segment.id, value); | ||
var processedChunk = processModelChunk(request, segment.id, _value3); | ||
request.completedJSONChunks.push(processedChunk); | ||
@@ -833,8 +823,4 @@ } catch (x) { | ||
useDebugValue: function () {}, | ||
useDeferredValue: function (value) { | ||
return value; | ||
}, | ||
useTransition: function () { | ||
return [function () {}, false]; | ||
}, | ||
useDeferredValue: unsupportedHook, | ||
useTransition: unsupportedHook, | ||
getCacheForType: function (resourceType) { | ||
@@ -841,0 +827,0 @@ if (!currentCache) { |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack-writer.browser.production.min.server.js | ||
@@ -9,15 +9,15 @@ * | ||
*/ | ||
(function(){'use strict';(function(k,t){"object"===typeof exports&&"undefined"!==typeof module?t(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],t):(k=k||self,t(k.ReactServerDOMWriter={},k.React))})(this,function(k,t){function g(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
function x(a,c){a.enqueue(c);return 0<a.desiredSize}function M(a,c,d){a=v(d,a.toJSON);c="J"+c.toString(16)+":"+a+"\n";return w.encode(c)}function N(a,c,d){var b=[],e={destination:c,bundlerConfig:d,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:b,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,flowing:!1,toJSON:function(a,b){return O(e,this,a,b)}};e.pendingChunks++;c=D(e,function(){return a});b.push(c);return e}function y(a, | ||
c,d,b){if(null!==d&&void 0!==d)throw Error(g(379));if("function"===typeof a)return a(b);if("string"===typeof a)return[n,a,c,b];if("symbol"===typeof a)return a===E?b.children:[n,a,c,b];if(null!=a&&"object"===typeof a){if(a.$$typeof===F)return[n,a,c,b];switch(a.$$typeof){case G:return a=a.render,a(b,void 0);case H:return y(a.type,c,d,b)}}throw Error(g(351,z(a)));}function D(a,c){var d={id:a.nextChunkId++,query:c,ping:function(){var b=a.pingedSegments;b.push(d);1===b.length&&I(a)}};return d}function P(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/, | ||
function(a,d){return d})}function r(a){var c=JSON.stringify(a);return'"'+a+'"'===c?a:c}function z(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(J(a))return"[...]";a=P(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function p(a,c){if(J(a)){for(var d="[",b=0;b<a.length;b++){0<b&&(d+=", ");if(6<b){d+="...";break}var e=a[b];d=""+b===c&&"object"===typeof e&&null!==e?d+p(e):d+z(e)}return d+"]"}d= | ||
"{";b=Object.keys(a);for(e=0;e<b.length;e++){0<e&&(d+=", ");if(6<e){d+="...";break}var f=b[e];d+=r(f)+": ";var g=a[f];d=f===c&&"object"===typeof g&&null!==g?d+p(g):d+z(g)}return d+"}"}function O(a,c,d,b){switch(b){case n:return"$";case K:throw Error(g(352));}for(;"object"===typeof b&&null!==b&&b.$$typeof===n;){var e=b;try{b=y(e.type,e.key,e.ref,e.props)}catch(q){if("object"===typeof q&&null!==q&&"function"===typeof q.then)return a.pendingChunks++,a=D(a,function(){return b}),c=a.ping,q.then(c,c),"@"+ | ||
a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;A(a,c,q);return"@"+c.toString(16)}}if(null===b)return null;if("object"===typeof b){if(b.$$typeof===F){e=b;var f=e.filepath+"#"+e.name,h=a.writtenModules,l=h.get(f);if(void 0!==l)return c[0]===n&&"1"===d?"@"+l.toString(16):"$"+l.toString(16);try{var k=a.bundlerConfig[e.filepath][e.name];a.pendingChunks++;var m=a.nextChunkId++;Q(a,m,k);h.set(f,m);return c[0]===n&&"1"===d?"@"+m.toString(16):"$"+m.toString(16)}catch(q){return a.pendingChunks++,c=a.nextChunkId++, | ||
A(a,c,q),"$"+c.toString(16)}}return b}if("string"===typeof b)return a="$"===b[0]||"@"===b[0]?"$"+b:b,a;if("boolean"===typeof b||"number"===typeof b||"undefined"===typeof b)return b;if("function"===typeof b){if(/^on[A-Z]/.test(d))throw Error(g(374,r(d),p(c)));throw Error(g(375,r(d),b.displayName||b.name||"function",p(c)));}if("symbol"===typeof b){k=a.writtenSymbols;m=k.get(b);if(void 0!==m)return"$"+m.toString(16);m=b.description;if(Symbol.for(m)!==b)throw Error(g(376,b.description,r(d),p(c)));a.pendingChunks++; | ||
c=a.nextChunkId++;R(a,c,m);k.set(b,c);return"$"+c.toString(16)}if("bigint"===typeof b)throw Error(g(377,b,r(d),p(c)));throw Error(g(378,typeof b,r(d),p(c)));}function A(a,c,d){var b="";try{if(d instanceof Error){var e=""+d.message;b=""+d.stack}else e="Error: "+d}catch(f){e="An error occurred but serializing the error message failed."}d={message:e,stack:b};c="E"+c.toString(16)+":"+v(d)+"\n";c=w.encode(c);a.completedErrorChunks.push(c)}function Q(a,c,d){d=v(d);c="M"+c.toString(16)+":"+d+"\n";c=w.encode(c); | ||
a.completedModuleChunks.push(c)}function R(a,c,d){d=v(d);c="S"+c.toString(16)+":"+d+"\n";c=w.encode(c);a.completedModuleChunks.push(c)}function S(a,c){var d=c.query,b;try{for(b=d();"object"===typeof b&&null!==b&&b.$$typeof===n;)d=b,c.query=function(){return b},b=y(d.type,d.key,d.ref,d.props);var e=M(a,c.id,b);a.completedJSONChunks.push(e)}catch(f){"object"===typeof f&&null!==f&&"function"===typeof f.then?(a=c.ping,f.then(a,a)):A(a,c.id,f)}}function I(a){var c=B.current,d=l;B.current=T;l=a.cache;var b= | ||
a.pingedSegments;a.pingedSegments=[];for(var e=0;e<b.length;e++)S(a,b[e]);a.flowing&&L(a);B.current=c;l=d}function L(a){if(!C){C=!0;var c=a.destination;try{for(var d=a.completedModuleChunks,b=0;b<d.length;b++)if(a.pendingChunks--,!x(c,d[b])){a.flowing=!1;b++;break}d.splice(0,b);var e=a.completedJSONChunks;for(b=0;b<e.length;b++)if(a.pendingChunks--,!x(c,e[b])){a.flowing=!1;b++;break}e.splice(0,b);var f=a.completedErrorChunks;for(b=0;b<f.length;b++)if(a.pendingChunks--,!x(c,f[b])){a.flowing=!1;b++; | ||
break}f.splice(0,b)}finally{C=!1}0===a.pendingChunks&&c.close()}}function h(){throw Error(g(373));}function U(){if(!l)throw Error(g(384));}var w=new TextEncoder,v=JSON.stringify,F=Symbol.for("react.module.reference"),n=60103,E=60107,G=60112,H=60115,K=60116;if("function"===typeof Symbol&&Symbol.for){var u=Symbol.for;n=u("react.element");E=u("react.fragment");G=u("react.forward_ref");H=u("react.memo");K=u("react.lazy")}var J=Array.isArray,B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher, | ||
C=!1,l=null,T={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:function(a){return a},useTransition:function(){return[function(){},!1]},getCacheForType:function(a){if(!l)throw Error(g(380));var c=l.get(a);void 0===c&&(c=a(),l.set(a,c));return c},readContext:h,useContext:h,useReducer:h,useRef:h,useState:h,useLayoutEffect:h,useImperativeHandle:h,useEffect:h,useOpaqueIdentifier:h,useMutableSource:h,useCacheRefresh:function(){return U}};k.renderToReadableStream= | ||
function(a,c){var d;return new ReadableStream({start:function(b){b=d=N(a,b,c);b.flowing=!0;I(b)},pull:function(a){a=d;a.flowing=!0;L(a)},cancel:function(a){}})}}); | ||
(function(){'use strict';(function(l,m){"object"===typeof exports&&"undefined"!==typeof module?m(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],m):(l=l||self,m(l.ReactServerDOMWriter={},l.React))})(this,function(l,m){function g(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=1;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
function z(a,c){a.enqueue(c);return 0<a.desiredSize}function O(a,c,d){var b=[],e={destination:c,bundlerConfig:d,cache:new Map,nextChunkId:0,pendingChunks:0,pingedSegments:b,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,flowing:!1,toJSON:function(a,b){return P(e,this,a,b)}};e.pendingChunks++;a=F(e,a);b.push(a);return e}function A(a,c,d,b){if(null!==d&&void 0!==d)throw Error(g(379));if("function"===typeof a)return a(b);if("string"=== | ||
typeof a)return[n,a,c,b];if("symbol"===typeof a)return a===G?b.children:[n,a,c,b];if(null!=a&&"object"===typeof a){if(a.$$typeof===H)return[n,a,c,b];switch(a.$$typeof){case I:return a=a.render,a(b,void 0);case J:return A(a.type,c,d,b)}}throw Error(g(351,B(a)));}function F(a,c){var d={id:a.nextChunkId++,model:c,ping:function(){var b=a.pingedSegments;b.push(d);1===b.length&&K(a)}};return d}function Q(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function u(a){var c= | ||
JSON.stringify(a);return'"'+a+'"'===c?a:c}function B(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(L(a))return"[...]";a=Q(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function p(a,c){if(L(a)){for(var d="[",b=0;b<a.length;b++){0<b&&(d+=", ");if(6<b){d+="...";break}var e=a[b];d=""+b===c&&"object"===typeof e&&null!==e?d+p(e):d+B(e)}return d+"]"}d="{";b=Object.keys(a);for(e=0;e<b.length;e++){0< | ||
e&&(d+=", ");if(6<e){d+="...";break}var t=b[e];d+=u(t)+": ";var f=a[t];d=t===c&&"object"===typeof f&&null!==f?d+p(f):d+B(f)}return d+"}"}function P(a,c,d,b){switch(b){case n:return"$";case M:throw Error(g(352));}for(;"object"===typeof b&&null!==b&&b.$$typeof===n;){var e=b;try{b=A(e.type,e.key,e.ref,e.props)}catch(q){if("object"===typeof q&&null!==q&&"function"===typeof q.then)return a.pendingChunks++,a=F(a,b),c=a.ping,q.then(c,c),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;C(a,c,q); | ||
return"@"+c.toString(16)}}if(null===b)return null;if("object"===typeof b){if(b.$$typeof===H){e=b.filepath+"#"+b.name;var t=a.writtenModules,f=t.get(e);if(void 0!==f)return c[0]===n&&"1"===d?"@"+f.toString(16):"$"+f.toString(16);try{var k=a.bundlerConfig[b.filepath][b.name];a.pendingChunks++;var h=a.nextChunkId++,r=x(k),l="M"+h.toString(16)+":"+r+"\n";var m=y.encode(l);a.completedModuleChunks.push(m);t.set(e,h);return c[0]===n&&"1"===d?"@"+h.toString(16):"$"+h.toString(16)}catch(q){return a.pendingChunks++, | ||
c=a.nextChunkId++,C(a,c,q),"$"+c.toString(16)}}return b}if("string"===typeof b)return a="$"===b[0]||"@"===b[0]?"$"+b:b,a;if("boolean"===typeof b||"number"===typeof b||"undefined"===typeof b)return b;if("function"===typeof b){if(/^on[A-Z]/.test(d))throw Error(g(374,u(d),p(c)));throw Error(g(375,u(d),b.displayName||b.name||"function",p(c)));}if("symbol"===typeof b){k=a.writtenSymbols;h=k.get(b);if(void 0!==h)return"$"+h.toString(16);h=b.description;if(Symbol.for(h)!==b)throw Error(g(376,b.description, | ||
u(d),p(c)));a.pendingChunks++;c=a.nextChunkId++;d=x(h);d="S"+c.toString(16)+":"+d+"\n";d=y.encode(d);a.completedModuleChunks.push(d);k.set(b,c);return"$"+c.toString(16)}if("bigint"===typeof b)throw Error(g(377,b,u(d),p(c)));throw Error(g(378,typeof b,u(d),p(c)));}function C(a,c,d){var b="";try{if(d instanceof Error){var e=""+d.message;b=""+d.stack}else e="Error: "+d}catch(t){e="An error occurred but serializing the error message failed."}d={message:e,stack:b};c="E"+c.toString(16)+":"+x(d)+"\n";c= | ||
y.encode(c);a.completedErrorChunks.push(c)}function K(a){var c=D.current,d=r;D.current=R;r=a.cache;var b=a.pingedSegments;a.pingedSegments=[];for(var e=0;e<b.length;e++){var f=b[e];var g=a;try{for(var k=f.model;"object"===typeof k&&null!==k&&k.$$typeof===n;){var h=k;f.model=k;k=A(h.type,h.key,h.ref,h.props)}var l=f.id,m=x(k,g.toJSON),p="J"+l.toString(16)+":"+m+"\n";var q=y.encode(p);g.completedJSONChunks.push(q)}catch(v){"object"===typeof v&&null!==v&&"function"===typeof v.then?(f=f.ping,v.then(f, | ||
f)):C(g,f.id,v)}}a.flowing&&N(a);D.current=c;r=d}function N(a){if(!E){E=!0;var c=a.destination;try{for(var d=a.completedModuleChunks,b=0;b<d.length;b++)if(a.pendingChunks--,!z(c,d[b])){a.flowing=!1;b++;break}d.splice(0,b);var e=a.completedJSONChunks;for(b=0;b<e.length;b++)if(a.pendingChunks--,!z(c,e[b])){a.flowing=!1;b++;break}e.splice(0,b);var f=a.completedErrorChunks;for(b=0;b<f.length;b++)if(a.pendingChunks--,!z(c,f[b])){a.flowing=!1;b++;break}f.splice(0,b)}finally{E=!1}0===a.pendingChunks&&c.close()}} | ||
function f(){throw Error(g(373));}function S(){if(!r)throw Error(g(384));}var y=new TextEncoder,x=JSON.stringify,H=Symbol.for("react.module.reference"),n=60103,G=60107,I=60112,J=60115,M=60116;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element");G=w("react.fragment");I=w("react.forward_ref");J=w("react.memo");M=w("react.lazy")}var L=Array.isArray,D=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,E=!1,r=null,R={useMemo:function(a){return a()}, | ||
useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:f,useTransition:f,getCacheForType:function(a){if(!r)throw Error(g(380));var c=r.get(a);void 0===c&&(c=a(),r.set(a,c));return c},readContext:f,useContext:f,useReducer:f,useRef:f,useState:f,useLayoutEffect:f,useImperativeHandle:f,useEffect:f,useOpaqueIdentifier:f,useMutableSource:f,useCacheRefresh:function(){return S}};l.renderToReadableStream=function(a,c){var d;return new ReadableStream({start:function(b){b=d=O(a,b,c);b.flowing= | ||
!0;K(b)},pull:function(a){a=d;a.flowing=!0;N(a)},cancel:function(a){}})}}); | ||
})(); |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack.development.js | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-experimental-3310209d0 | ||
/** @license React vundefined | ||
* react-server-dom-webpack.production.min.js | ||
@@ -3,0 +3,0 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
167242
23
3959