From c4580ee2ca8fb883c5357546edad94bc93026248 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 21 Aug 2022 01:00:27 -0700 Subject: Rename reactdom-bun -> react-dom-server.bun --- test/bun.js/reactdom-bun.js | 1885 ------------------------------------------- 1 file changed, 1885 deletions(-) delete mode 100644 test/bun.js/reactdom-bun.js (limited to 'test/bun.js/reactdom-bun.js') diff --git a/test/bun.js/reactdom-bun.js b/test/bun.js/reactdom-bun.js deleted file mode 100644 index c489314fb..000000000 --- a/test/bun.js/reactdom-bun.js +++ /dev/null @@ -1,1885 +0,0 @@ -/** - * @license React - * react-dom-server.browser.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -const escapeHTML = Bun.escapeHTML; -var aa = require("react"); -function k(a) { - for ( - var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; - c < arguments.length; - c++ - ) - b += "&args[]=" + encodeURIComponent(arguments[c]); - 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 = null, - n = 0; -function p(controller, b) { - if (0 !== b.length) controller.write(b); -} -function t(a, b) { - p(a, b); - return !0; -} -function ba(a) { - // a.flush(false); -} -var ca = new TextEncoder(); -function u(a) { - return a; -} -function v(a) { - return a; -} -function da(a, b) { - "function" === typeof a.error ? a.close(b) : a.end(b); -} -var w = Object.prototype.hasOwnProperty, - ea = - /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - fa = {}, - ha = {}; -function ia(a) { - if (w.call(ha, a)) return !0; - if (w.call(fa, a)) return !1; - if (ea.test(a)) return (ha[a] = !0); - fa[a] = !0; - return !1; -} -function x(a, b, c, d, f, e, g) { - this.acceptsBooleans = 2 === b || 3 === b || 4 === b; - this.attributeName = d; - this.attributeNamespace = f; - this.mustUseProperty = c; - this.propertyName = a; - this.type = b; - this.sanitizeURL = e; - this.removeEmptyString = g; -} -var y = {}; -"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style" - .split(" ") - .forEach(function (a) { - y[a] = new x(a, 0, !1, a, null, !1, !1); - }); -[ - ["acceptCharset", "accept-charset"], - ["className", "class"], - ["htmlFor", "for"], - ["httpEquiv", "http-equiv"], -].forEach(function (a) { - var b = a[0]; - y[b] = new x(b, 1, !1, a[1], null, !1, !1); -}); -["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) { - y[a] = new x(a, 2, !1, a.toLowerCase(), null, !1, !1); -}); -[ - "autoReverse", - "externalResourcesRequired", - "focusable", - "preserveAlpha", -].forEach(function (a) { - y[a] = new x(a, 2, !1, a, null, !1, !1); -}); -"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope" - .split(" ") - .forEach(function (a) { - y[a] = new x(a, 3, !1, a.toLowerCase(), null, !1, !1); - }); -["checked", "multiple", "muted", "selected"].forEach(function (a) { - y[a] = new x(a, 3, !0, a, null, !1, !1); -}); -["capture", "download"].forEach(function (a) { - y[a] = new x(a, 4, !1, a, null, !1, !1); -}); -["cols", "rows", "size", "span"].forEach(function (a) { - y[a] = new x(a, 6, !1, a, null, !1, !1); -}); -["rowSpan", "start"].forEach(function (a) { - y[a] = new x(a, 5, !1, a.toLowerCase(), null, !1, !1); -}); -var ja = /[\-:]([a-z])/g; -function ka(a) { - return a[1].toUpperCase(); -} -"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height" - .split(" ") - .forEach(function (a) { - var b = a.replace(ja, ka); - y[b] = new x(b, 1, !1, a, null, !1, !1); - }); -"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type" - .split(" ") - .forEach(function (a) { - var b = a.replace(ja, ka); - y[b] = new x(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1); - }); -["xml:base", "xml:lang", "xml:space"].forEach(function (a) { - var b = a.replace(ja, ka); - y[b] = new x(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1); -}); -["tabIndex", "crossOrigin"].forEach(function (a) { - y[a] = new x(a, 1, !1, a.toLowerCase(), null, !1, !1); -}); -y.xlinkHref = new x( - "xlinkHref", - 1, - !1, - "xlink:href", - "http://www.w3.org/1999/xlink", - !0, - !1 -); -["src", "href", "action", "formAction"].forEach(function (a) { - y[a] = new x(a, 1, !1, a.toLowerCase(), null, !0, !0); -}); -var z = { - animationIterationCount: !0, - aspectRatio: !0, - borderImageOutset: !0, - borderImageSlice: !0, - borderImageWidth: !0, - boxFlex: !0, - boxFlexGroup: !0, - boxOrdinalGroup: !0, - columnCount: !0, - columns: !0, - flex: !0, - flexGrow: !0, - flexPositive: !0, - flexShrink: !0, - flexNegative: !0, - flexOrder: !0, - gridArea: !0, - gridRow: !0, - gridRowEnd: !0, - gridRowSpan: !0, - gridRowStart: !0, - gridColumn: !0, - gridColumnEnd: !0, - gridColumnSpan: !0, - gridColumnStart: !0, - fontWeight: !0, - lineClamp: !0, - lineHeight: !0, - opacity: !0, - order: !0, - orphans: !0, - tabSize: !0, - widows: !0, - zIndex: !0, - zoom: !0, - fillOpacity: !0, - floodOpacity: !0, - stopOpacity: !0, - strokeDasharray: !0, - strokeDashoffset: !0, - strokeMiterlimit: !0, - strokeOpacity: !0, - strokeWidth: !0, - }, - la = ["Webkit", "ms", "Moz", "O"]; -Object.keys(z).forEach(function (a) { - la.forEach(function (b) { - b = b + a.charAt(0).toUpperCase() + a.substring(1); - z[b] = z[a]; - }); -}); -var ma = /["'&<>]/; -function A(a) { - if ("boolean" === typeof a || "number" === typeof a) return "" + a; - return escapeHTML(a); -} -var na = /([A-Z])/g, - oa = /^ms-/, - pa = Array.isArray, - qa = v("