mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[compiler] Improve display of errors on multi-line expressions (#34963)
When a longer function or expression is identified as the source of an
error, we currently print the entire expression in our error message.
This is because we delegate to a Babel helper to print codeframes. Here,
we add some checking and abbreviate the result if it spans too many
lines.
DiffTrain build for [408b38ef73](https://github.com/facebook/react/commit/408b38ef7304faf022d2a37110c57efce12c6bad)
This commit is contained in:
@@ -1 +1 @@
|
||||
19.3.0-native-fb-09056abd-20251023
|
||||
19.3.0-native-fb-408b38ef-20251023
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<118f3c06b8b4aeb9f13b64bc16ed22f3>>
|
||||
* @generated SignedSource<<7091fabeff3133a034d503a8010cc2c6>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -404,5 +404,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<779658acfa1ac7e7938b927ac22e0283>>
|
||||
* @generated SignedSource<<c2fa393bfca5ed623ddafb57633dea03>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<779658acfa1ac7e7938b927ac22e0283>>
|
||||
* @generated SignedSource<<c2fa393bfca5ed623ddafb57633dea03>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<93a69cd1aaf360de2a2ec24f30df822e>>
|
||||
* @generated SignedSource<<5a99938df592aa5ae74cb73ec733ed48>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -30117,11 +30117,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-native-fb-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.3.0-native-fb-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30158,10 +30158,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -30311,5 +30311,5 @@ __DEV__ &&
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js
Vendored
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7557b944029fec489eac540d9c79dfe2>>
|
||||
* @generated SignedSource<<0dca7200a73ea0c3d46cd3baaf4b247a>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17581,14 +17581,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2060 = React.version;
|
||||
if (
|
||||
"19.3.0-native-fb-09056abd-20251023" !==
|
||||
"19.3.0-native-fb-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2060
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2060,
|
||||
"19.3.0-native-fb-09056abd-20251023"
|
||||
"19.3.0-native-fb-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17610,10 +17610,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2637 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2638 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17720,4 +17720,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ef6afccc139ed8538e5f9be8726b6576>>
|
||||
* @generated SignedSource<<6878cd4259a4076d18e82296013b1608>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -19703,14 +19703,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2375 = React.version;
|
||||
if (
|
||||
"19.3.0-native-fb-09056abd-20251023" !==
|
||||
"19.3.0-native-fb-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2375
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2375,
|
||||
"19.3.0-native-fb-09056abd-20251023"
|
||||
"19.3.0-native-fb-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19732,10 +19732,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2382 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023",
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$332 = 0;
|
||||
@@ -19858,4 +19858,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c11fd15aa3683193321b01ee551fa725>>
|
||||
* @generated SignedSource<<b36ff351278df6c6e0af06da24bff1d4>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -30173,11 +30173,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-native-fb-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.3.0-native-fb-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30214,10 +30214,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -30683,7 +30683,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<33d72a9b761223634b62669a988ac7e0>>
|
||||
* @generated SignedSource<<153ceabc05cbc0ec384c78eb590ce4fe>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -17592,14 +17592,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2061 = React.version;
|
||||
if (
|
||||
"19.3.0-native-fb-09056abd-20251023" !==
|
||||
"19.3.0-native-fb-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2061
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2061,
|
||||
"19.3.0-native-fb-09056abd-20251023"
|
||||
"19.3.0-native-fb-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17621,10 +17621,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2640 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2641 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17884,4 +17884,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
+6
-6
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<34bbed86aa4050805490899ea624b911>>
|
||||
* @generated SignedSource<<0475fd15ab449de977c7c586bd695bc7>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -19718,14 +19718,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2376 = React.version;
|
||||
if (
|
||||
"19.3.0-native-fb-09056abd-20251023" !==
|
||||
"19.3.0-native-fb-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2376
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2376,
|
||||
"19.3.0-native-fb-09056abd-20251023"
|
||||
"19.3.0-native-fb-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19747,10 +19747,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
};
|
||||
var internals$jscomp$inline_2383 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023",
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$332 = 0;
|
||||
@@ -20026,7 +20026,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<1140da0ff78cbd77804d0e4a98ed406e>>
|
||||
* @generated SignedSource<<0756cb428cb2550d8b559749ade2dc56>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -16021,10 +16021,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -16170,5 +16170,5 @@ __DEV__ &&
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<269c61c3e82af4c0d6bd48f204d1e272>>
|
||||
* @generated SignedSource<<e208623024e60cc3f482afa4c0000362>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -10110,10 +10110,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1494 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1495 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10249,4 +10249,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<d272e05aef187b562b4f513056a13c47>>
|
||||
* @generated SignedSource<<44becc503d45f02d9ff82b70fcfcecb1>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -10731,10 +10731,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1275 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023",
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$147 = 0;
|
||||
@@ -10885,4 +10885,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0f791d8f536968ec647f77871eb4d09f>>
|
||||
* @generated SignedSource<<2d6002bd79da092f81288cd02e4a22d6>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1414,7 +1414,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7fb86ab066da8dd4a3d0f6a466d9b3eb>>
|
||||
* @generated SignedSource<<c606e0521229229fb919a1eaa663722c>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -586,4 +586,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<3669b0ae6d811da28570a61687ef65ca>>
|
||||
* @generated SignedSource<<4ff3218717065728877a452811c32876>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-native-fb-09056abd-20251023";
|
||||
exports.version = "19.3.0-native-fb-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
09056abde76c464f4632f322a0ac30cd3984cee6
|
||||
408b38ef7304faf022d2a37110c57efce12c6bad
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<2edb6d09427e038eb4dd357918a09c40>>
|
||||
* @generated SignedSource<<23ebd600e89c090d10845e1f58a5b299>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -20085,10 +20085,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0bab4d1c8723b4db4531220368ae5792>>
|
||||
* @generated SignedSource<<2606f088bc031a5b0d63c5fc3eff88a1>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11269,10 +11269,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1321 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1321.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<5a8b58828837e0feda0e21f11f9d122c>>
|
||||
* @generated SignedSource<<a7dab014abbc42bcbb3c453b0e4097d6>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13334,10 +13334,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1629 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1629.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<f7f2c2d55ebb17aeda4b8e2390ce6814>>
|
||||
* @generated SignedSource<<aaf2773030cf758719569983c5a176ae>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -20354,11 +20354,11 @@ __DEV__ &&
|
||||
shouldSuspendImpl = newShouldSuspendImpl;
|
||||
};
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-native-fb-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.3.0-native-fb-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -20384,10 +20384,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ec99e56d64fbac7572b04e9216a7d4d3>>
|
||||
* @generated SignedSource<<75c7fb1f90a950522209b87f2b3cd699>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11430,11 +11430,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-native-fb-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.3.0-native-fb-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11484,10 +11484,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1327 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1327.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<70b7160908f869b0304d468c85af0acb>>
|
||||
* @generated SignedSource<<47b3c0bea1d5da7b3237b9486a77f633>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13488,11 +13488,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-native-fb-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-native-fb-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-native-renderer: 19.3.0-native-fb-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.3.0-native-fb-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -13542,10 +13542,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1635 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-native-fb-09056abd-20251023",
|
||||
version: "19.3.0-native-fb-408b38ef-20251023",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-native-fb-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-native-fb-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1635.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+18
-2
@@ -12,7 +12,7 @@
|
||||
* @lightSyntaxTransform
|
||||
* @preventMunge
|
||||
* @oncall react_core
|
||||
* @generated SignedSource<<694b1cccaa293ccb0cc31bb088856d08>>
|
||||
* @generated SignedSource<<e5dc5d589a514d01f676ec1db6311f30>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -17655,6 +17655,10 @@ function hasOwnProperty$1(obj, key) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||
}
|
||||
|
||||
const CODEFRAME_LINES_ABOVE = 2;
|
||||
const CODEFRAME_LINES_BELOW = 3;
|
||||
const CODEFRAME_MAX_LINES = 10;
|
||||
const CODEFRAME_ABBREVIATED_SOURCE_LINES = 5;
|
||||
var ErrorSeverity;
|
||||
(function (ErrorSeverity) {
|
||||
ErrorSeverity["Error"] = "Error";
|
||||
@@ -17971,7 +17975,7 @@ class CompilerError extends Error {
|
||||
}
|
||||
}
|
||||
function printCodeFrame(source, loc, message) {
|
||||
return libExports.codeFrameColumns(source, {
|
||||
const printed = libExports.codeFrameColumns(source, {
|
||||
start: {
|
||||
line: loc.start.line,
|
||||
column: loc.start.column + 1,
|
||||
@@ -17982,7 +17986,19 @@ function printCodeFrame(source, loc, message) {
|
||||
},
|
||||
}, {
|
||||
message,
|
||||
linesAbove: CODEFRAME_LINES_ABOVE,
|
||||
linesBelow: CODEFRAME_LINES_BELOW,
|
||||
});
|
||||
const lines = printed.split(/\r?\n/);
|
||||
if (loc.end.line - loc.start.line < CODEFRAME_MAX_LINES) {
|
||||
return printed;
|
||||
}
|
||||
const pipeIndex = lines[0].indexOf('|');
|
||||
return [
|
||||
...lines.slice(0, CODEFRAME_LINES_ABOVE + CODEFRAME_ABBREVIATED_SOURCE_LINES),
|
||||
' '.repeat(pipeIndex) + '…',
|
||||
...lines.slice(-(CODEFRAME_LINES_BELOW + CODEFRAME_ABBREVIATED_SOURCE_LINES)),
|
||||
].join('\n');
|
||||
}
|
||||
function printErrorSummary(category, message) {
|
||||
let heading;
|
||||
|
||||
+18
-2
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @generated SignedSource<<6c5d60fcee25d3edc89e3843d28e01d0>>
|
||||
* @generated SignedSource<<23983e7be8972a9bff35258a78f2fc7f>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -17640,6 +17640,10 @@ function hasOwnProperty$1(obj, key) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||
}
|
||||
|
||||
const CODEFRAME_LINES_ABOVE = 2;
|
||||
const CODEFRAME_LINES_BELOW = 3;
|
||||
const CODEFRAME_MAX_LINES = 10;
|
||||
const CODEFRAME_ABBREVIATED_SOURCE_LINES = 5;
|
||||
var ErrorSeverity;
|
||||
(function (ErrorSeverity) {
|
||||
ErrorSeverity["Error"] = "Error";
|
||||
@@ -17956,7 +17960,7 @@ class CompilerError extends Error {
|
||||
}
|
||||
}
|
||||
function printCodeFrame(source, loc, message) {
|
||||
return libExports.codeFrameColumns(source, {
|
||||
const printed = libExports.codeFrameColumns(source, {
|
||||
start: {
|
||||
line: loc.start.line,
|
||||
column: loc.start.column + 1,
|
||||
@@ -17967,7 +17971,19 @@ function printCodeFrame(source, loc, message) {
|
||||
},
|
||||
}, {
|
||||
message,
|
||||
linesAbove: CODEFRAME_LINES_ABOVE,
|
||||
linesBelow: CODEFRAME_LINES_BELOW,
|
||||
});
|
||||
const lines = printed.split(/\r?\n/);
|
||||
if (loc.end.line - loc.start.line < CODEFRAME_MAX_LINES) {
|
||||
return printed;
|
||||
}
|
||||
const pipeIndex = lines[0].indexOf('|');
|
||||
return [
|
||||
...lines.slice(0, CODEFRAME_LINES_ABOVE + CODEFRAME_ABBREVIATED_SOURCE_LINES),
|
||||
' '.repeat(pipeIndex) + '…',
|
||||
...lines.slice(-(CODEFRAME_LINES_BELOW + CODEFRAME_ABBREVIATED_SOURCE_LINES)),
|
||||
].join('\n');
|
||||
}
|
||||
function printErrorSummary(category, message) {
|
||||
let heading;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "eslint-plugin-react-hooks",
|
||||
"description": "ESLint rules for React Hooks",
|
||||
"version": "0.0.0-experimental-09056abd-20251023",
|
||||
"version": "0.0.0-experimental-408b38ef-20251023",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/react.git",
|
||||
|
||||
Reference in New Issue
Block a user