@mui/internal-code-infra 0.0.3-canary.61 → 0.0.3-canary.62
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.3-canary.
|
|
3
|
+
"version": "0.0.3-canary.62",
|
|
4
4
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
"stylelint-config-standard": "^39.0.1",
|
|
104
104
|
"typescript-eslint": "^8.49.0",
|
|
105
105
|
"yargs": "^18.0.0",
|
|
106
|
-
"@mui/internal-babel-plugin-
|
|
106
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.13",
|
|
107
107
|
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.28",
|
|
108
|
-
"@mui/internal-babel-plugin-
|
|
108
|
+
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.8"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@next/eslint-plugin-next": "*",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"publishConfig": {
|
|
143
143
|
"access": "public"
|
|
144
144
|
},
|
|
145
|
-
"gitSha": "
|
|
145
|
+
"gitSha": "d9cf3df228aa4a3e7a7b1663bad0d7167f40d22c",
|
|
146
146
|
"scripts": {
|
|
147
147
|
"build": "tsc -p tsconfig.build.json",
|
|
148
148
|
"typescript": "tsc -p tsconfig.json",
|
|
@@ -144,9 +144,16 @@ export default async function extractErrorCodes(args) {
|
|
|
144
144
|
Object.entries(existingErrorCodes).map(([key, value]) => [value, Number(key)]),
|
|
145
145
|
);
|
|
146
146
|
const originalErrorCount = inverseLookupCode.size;
|
|
147
|
+
let newErrorCodeStart = Math.max(...Array.from(inverseLookupCode.values()));
|
|
148
|
+
if (newErrorCodeStart !== originalErrorCount) {
|
|
149
|
+
console.warn(
|
|
150
|
+
`⚠️ Warning: Detected a gap in the error codes. Current max code is ${newErrorCodeStart}, but there are only ${originalErrorCount} existing codes.\nThis can happen when codes have been removed. New codes will continue from the highest existing code.`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
147
153
|
Array.from(errors).forEach((error) => {
|
|
148
154
|
if (!inverseLookupCode.has(error)) {
|
|
149
|
-
inverseLookupCode.set(error,
|
|
155
|
+
inverseLookupCode.set(error, newErrorCodeStart + 1);
|
|
156
|
+
newErrorCodeStart += 1;
|
|
150
157
|
}
|
|
151
158
|
});
|
|
152
159
|
const finalErrorCodes = Array.from(inverseLookupCode.entries()).reduce((acc, [message, code]) => {
|