@next/codemod 16.2.1-canary.4 → 16.2.1-canary.41
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": "@next/codemod",
|
|
3
|
-
"version": "16.2.1-canary.
|
|
3
|
+
"version": "16.2.1-canary.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"@types/jscodeshift": "0.11.0",
|
|
41
41
|
"@types/prompts": "2.4.2",
|
|
42
42
|
"@types/semver": "7.3.1",
|
|
43
|
-
"typescript": "
|
|
43
|
+
"typescript": "6.0.2"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -149,7 +149,10 @@ class CraTransform {
|
|
|
149
149
|
return children
|
|
150
150
|
.map((child) => {
|
|
151
151
|
if (child.type === 'text') {
|
|
152
|
-
|
|
152
|
+
// `data` only exists on Data nodes according to types so this is sus.
|
|
153
|
+
// @ts-expect-error - Found when upgrading to TypeScript 6.0.
|
|
154
|
+
const text = child.data;
|
|
155
|
+
return text;
|
|
153
156
|
}
|
|
154
157
|
return '';
|
|
155
158
|
})
|