@mui/internal-code-infra 0.0.4-canary.68 → 0.0.4-canary.69

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.4-canary.68",
3
+ "version": "0.0.4-canary.69",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -83,7 +83,7 @@
83
83
  "babel-plugin-transform-remove-imports": "^1.8.1",
84
84
  "chalk": "^5.6.2",
85
85
  "clipboardy": "^5.3.1",
86
- "content-type": "^1.0.5",
86
+ "content-type": "^2.0.0",
87
87
  "env-ci": "^11.2.0",
88
88
  "es-toolkit": "^1.46.1",
89
89
  "eslint-config-prettier": "^10.1.8",
@@ -135,9 +135,9 @@
135
135
  "unist-util-visit": "^5.1.0",
136
136
  "yaml": "^2.9.0",
137
137
  "yargs": "^18.0.0",
138
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27",
139
138
  "@mui/internal-babel-plugin-display-name": "1.0.4-canary.20",
140
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36"
139
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36",
140
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27"
141
141
  },
142
142
  "peerDependencies": {
143
143
  "@next/eslint-plugin-next": "*",
@@ -158,7 +158,6 @@
158
158
  "@octokit/types": "16.0.0",
159
159
  "@types/babel__core": "7.20.5",
160
160
  "@types/babel__preset-env": "7.10.0",
161
- "@types/content-type": "1.1.9",
162
161
  "@types/env-ci": "3.1.4",
163
162
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
164
163
  "@types/estree": "1.0.9",
@@ -187,7 +186,7 @@
187
186
  "publishConfig": {
188
187
  "access": "public"
189
188
  },
190
- "gitSha": "ccebdde9e3c1125c20b2a6694425dd8912ebd464",
189
+ "gitSha": "8fa07fb68e1c06938b589899e0445b5daf8d26f0",
191
190
  "scripts": {
192
191
  "build": "tsgo -p tsconfig.build.json",
193
192
  "typescript": "tsgo -noEmit",
@@ -1,6 +1,6 @@
1
1
  import { workerData, parentPort } from 'node:worker_threads';
2
2
  import { parse } from 'node-html-parser';
3
- import contentType from 'content-type';
3
+ import { parse as parseContentType } from 'content-type';
4
4
  import { HtmlValidate, StaticConfigLoader, staticResolver } from 'html-validate';
5
5
  import { unified } from 'unified';
6
6
  import remarkParse from 'remark-parse';
@@ -111,7 +111,7 @@ let type = 'text/html';
111
111
 
112
112
  if (contentTypeHeader) {
113
113
  try {
114
- const parsed = contentType.parse(contentTypeHeader);
114
+ const parsed = parseContentType(contentTypeHeader);
115
115
  type = parsed.type;
116
116
  } catch {
117
117
  // invalid content-type, default to text/html