Skip to content

Commit 8865fec

Browse files
committed
Add more snapshots
1 parent 3719b60 commit 8865fec

20 files changed

+747
-0
lines changed
215 KB
Binary file not shown.
Binary file not shown.
429 KB
Binary file not shown.
43.9 KB
Binary file not shown.
3.46 KB
Binary file not shown.
5.86 KB
Binary file not shown.
Binary file not shown.
10.4 KB
Binary file not shown.
5.55 KB
Binary file not shown.
513 KB
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
3+
## Summary
4+
5+
```json
6+
[
7+
{
8+
"kind": "FalseExportDefault",
9+
"title": "Types incorrectly use default export",
10+
"messages": [
11+
{
12+
"messageText": "The types resolved at the package use `export default` where the implementation appears to use `module.exports =`. Node treats a default import of these constructs from an ES module differently, so these types will make TypeScript under the `node16` resolution mode think an extra `.default` property access is required, but that will likely fail at runtime in Node. These types should use `export =` instead of `export default`.",
13+
"messageHtml": "The types resolved at the package use <code>export default</code> where the implementation appears to use <code>module.exports =</code>. Node treats a default import of these constructs from an ES module differently, so these types will make TypeScript under the <code>node16</code> resolution mode think an extra <code>.default</code> property access is required, but that will likely fail at runtime in Node. These types should use <code>export =</code> instead of <code>export default</code>."
14+
}
15+
]
16+
}
17+
]
18+
```
19+
20+
## Problems
21+
22+
```json
23+
[
24+
{
25+
"kind": "FalseExportDefault",
26+
"entrypoint": ".",
27+
"resolutionKind": "node16-esm"
28+
}
29+
]
30+
```
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
3+
## Summary
4+
5+
```json
6+
[
7+
{
8+
"kind": "FalseCJS",
9+
"title": "Types are CJS, but implementation is ESM",
10+
"messages": [
11+
{
12+
"messageText": "Imports of the package under the `node16` module resolution setting when the importing module is ESM (its extension is `.mts` or `.mjs`, or it has a `.ts` or `.js` extension and is in scope of a `package.json` that contains `\"type\": \"module\"`) resolved to CJS types, but ESM implementations.",
13+
"messageHtml": "Imports of the package under the <code>node16</code> module resolution setting when the importing module is ESM (its extension is <code>.mts</code> or <code>.mjs</code>, or it has a <code>.ts</code> or <code>.js</code> extension and is in scope of a <code>package.json</code> that contains <code>\"type\"\"module\"</code>) resolved to CJS types, but ESM implementations."
14+
}
15+
]
16+
}
17+
]
18+
```
19+
20+
## Problems
21+
22+
```json
23+
[
24+
{
25+
"kind": "FalseCJS",
26+
"entrypoint": ".",
27+
"resolutionKind": "node16-esm"
28+
}
29+
]
30+
```
Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
2+
3+
## Summary
4+
5+
```json
6+
[
7+
{
8+
"kind": "Wildcard",
9+
"title": "Wildcards",
10+
"messages": [
11+
{
12+
"messageText": "Wildcards cannot yet be analyzed by this tool.",
13+
"messageHtml": "Wildcards cannot yet be analyzed by this tool."
14+
}
15+
]
16+
},
17+
{
18+
"kind": "NoResolution",
19+
"title": "Resolution failed",
20+
"messages": [
21+
{
22+
"messageText": "Imports of multiple entrypoints under the `node10` module resolution setting failed to resolve.",
23+
"messageHtml": "Imports of <strong>multiple entrypoints</strong> under the <code>node10</code> module resolution setting failed to resolve."
24+
}
25+
]
26+
},
27+
{
28+
"kind": "UntypedResolution",
29+
"title": "Could not find types",
30+
"messages": [
31+
{
32+
"messageText": "Imports of multiple entrypoints under the `node16` module resolution setting when the importing module is CJS (its extension is `.cts` or `.cjs`, or it has a `.ts` or `.js` extension and is in scope of a `package.json` that does not contain `\"type\": \"module\"`) resolved to JavaScript files, but no types.",
33+
"messageHtml": "Imports of <strong>multiple entrypoints</strong> under the <code>node16</code> module resolution setting when the importing module is CJS (its extension is <code>.cts</code> or <code>.cjs</code>, or it has a <code>.ts</code> or <code>.js</code> extension and is in scope of a <code>package.json</code> that does not contain <code>\"type\"\"module\"</code>) resolved to JavaScript files, but no types."
34+
},
35+
{
36+
"messageText": "Imports of multiple entrypoints under the `node16` module resolution setting when the importing module is ESM (its extension is `.mts` or `.mjs`, or it has a `.ts` or `.js` extension and is in scope of a `package.json` that contains `\"type\": \"module\"`) resolved to JavaScript files, but no types.",
37+
"messageHtml": "Imports of <strong>multiple entrypoints</strong> under the <code>node16</code> module resolution setting when the importing module is ESM (its extension is <code>.mts</code> or <code>.mjs</code>, or it has a <code>.ts</code> or <code>.js</code> extension and is in scope of a <code>package.json</code> that contains <code>\"type\"\"module\"</code>) resolved to JavaScript files, but no types."
38+
},
39+
{
40+
"messageText": "Imports of multiple entrypoints under the `bundler` module resolution setting resolved to JavaScript files, but no types.",
41+
"messageHtml": "Imports of <strong>multiple entrypoints</strong> under the <code>bundler</code> module resolution setting resolved to JavaScript files, but no types."
42+
}
43+
]
44+
},
45+
{
46+
"kind": "CJSResolvesToESM",
47+
"title": "Entrypoint is ESM-only",
48+
"messages": [
49+
{
50+
"messageText": "Imports of multiple entrypoints resolved to ES modules from a CJS importing module. CJS modules in Node will only be able to access this entrypoint with a dynamic import.",
51+
"messageHtml": "Imports of <strong>multiple entrypoints</strong> resolved to ES modules from a CJS importing module. CJS modules in Node will only be able to access this entrypoint with a dynamic import."
52+
}
53+
]
54+
}
55+
]
56+
```
57+
58+
## Problems
59+
60+
```json
61+
[
62+
{
63+
"kind": "Wildcard",
64+
"entrypoint": "./unsafe/*",
65+
"resolutionKind": "node10"
66+
},
67+
{
68+
"kind": "Wildcard",
69+
"entrypoint": "./unsafe/*",
70+
"resolutionKind": "node16-cjs"
71+
},
72+
{
73+
"kind": "Wildcard",
74+
"entrypoint": "./unsafe/*",
75+
"resolutionKind": "node16-esm"
76+
},
77+
{
78+
"kind": "Wildcard",
79+
"entrypoint": "./unsafe/*",
80+
"resolutionKind": "bundler"
81+
},
82+
{
83+
"kind": "NoResolution",
84+
"entrypoint": "./unsafe/core/settle.js",
85+
"resolutionKind": "node10"
86+
},
87+
{
88+
"kind": "UntypedResolution",
89+
"entrypoint": "./unsafe/core/settle.js",
90+
"resolutionKind": "node16-cjs"
91+
},
92+
{
93+
"kind": "CJSResolvesToESM",
94+
"entrypoint": "./unsafe/core/settle.js",
95+
"resolutionKind": "node16-cjs"
96+
},
97+
{
98+
"kind": "UntypedResolution",
99+
"entrypoint": "./unsafe/core/settle.js",
100+
"resolutionKind": "node16-esm"
101+
},
102+
{
103+
"kind": "UntypedResolution",
104+
"entrypoint": "./unsafe/core/settle.js",
105+
"resolutionKind": "bundler"
106+
},
107+
{
108+
"kind": "NoResolution",
109+
"entrypoint": "./unsafe/core/buildFullPath.js",
110+
"resolutionKind": "node10"
111+
},
112+
{
113+
"kind": "UntypedResolution",
114+
"entrypoint": "./unsafe/core/buildFullPath.js",
115+
"resolutionKind": "node16-cjs"
116+
},
117+
{
118+
"kind": "CJSResolvesToESM",
119+
"entrypoint": "./unsafe/core/buildFullPath.js",
120+
"resolutionKind": "node16-cjs"
121+
},
122+
{
123+
"kind": "UntypedResolution",
124+
"entrypoint": "./unsafe/core/buildFullPath.js",
125+
"resolutionKind": "node16-esm"
126+
},
127+
{
128+
"kind": "UntypedResolution",
129+
"entrypoint": "./unsafe/core/buildFullPath.js",
130+
"resolutionKind": "bundler"
131+
},
132+
{
133+
"kind": "NoResolution",
134+
"entrypoint": "./unsafe/helpers/isAbsoluteURL.js",
135+
"resolutionKind": "node10"
136+
},
137+
{
138+
"kind": "UntypedResolution",
139+
"entrypoint": "./unsafe/helpers/isAbsoluteURL.js",
140+
"resolutionKind": "node16-cjs"
141+
},
142+
{
143+
"kind": "CJSResolvesToESM",
144+
"entrypoint": "./unsafe/helpers/isAbsoluteURL.js",
145+
"resolutionKind": "node16-cjs"
146+
},
147+
{
148+
"kind": "UntypedResolution",
149+
"entrypoint": "./unsafe/helpers/isAbsoluteURL.js",
150+
"resolutionKind": "node16-esm"
151+
},
152+
{
153+
"kind": "UntypedResolution",
154+
"entrypoint": "./unsafe/helpers/isAbsoluteURL.js",
155+
"resolutionKind": "bundler"
156+
},
157+
{
158+
"kind": "NoResolution",
159+
"entrypoint": "./unsafe/helpers/buildURL.js",
160+
"resolutionKind": "node10"
161+
},
162+
{
163+
"kind": "UntypedResolution",
164+
"entrypoint": "./unsafe/helpers/buildURL.js",
165+
"resolutionKind": "node16-cjs"
166+
},
167+
{
168+
"kind": "CJSResolvesToESM",
169+
"entrypoint": "./unsafe/helpers/buildURL.js",
170+
"resolutionKind": "node16-cjs"
171+
},
172+
{
173+
"kind": "UntypedResolution",
174+
"entrypoint": "./unsafe/helpers/buildURL.js",
175+
"resolutionKind": "node16-esm"
176+
},
177+
{
178+
"kind": "UntypedResolution",
179+
"entrypoint": "./unsafe/helpers/buildURL.js",
180+
"resolutionKind": "bundler"
181+
},
182+
{
183+
"kind": "NoResolution",
184+
"entrypoint": "./unsafe/helpers/combineURLs.js",
185+
"resolutionKind": "node10"
186+
},
187+
{
188+
"kind": "UntypedResolution",
189+
"entrypoint": "./unsafe/helpers/combineURLs.js",
190+
"resolutionKind": "node16-cjs"
191+
},
192+
{
193+
"kind": "CJSResolvesToESM",
194+
"entrypoint": "./unsafe/helpers/combineURLs.js",
195+
"resolutionKind": "node16-cjs"
196+
},
197+
{
198+
"kind": "UntypedResolution",
199+
"entrypoint": "./unsafe/helpers/combineURLs.js",
200+
"resolutionKind": "node16-esm"
201+
},
202+
{
203+
"kind": "UntypedResolution",
204+
"entrypoint": "./unsafe/helpers/combineURLs.js",
205+
"resolutionKind": "bundler"
206+
},
207+
{
208+
"kind": "NoResolution",
209+
"entrypoint": "./unsafe/adapters/http.js",
210+
"resolutionKind": "node10"
211+
},
212+
{
213+
"kind": "UntypedResolution",
214+
"entrypoint": "./unsafe/adapters/http.js",
215+
"resolutionKind": "node16-cjs"
216+
},
217+
{
218+
"kind": "CJSResolvesToESM",
219+
"entrypoint": "./unsafe/adapters/http.js",
220+
"resolutionKind": "node16-cjs"
221+
},
222+
{
223+
"kind": "UntypedResolution",
224+
"entrypoint": "./unsafe/adapters/http.js",
225+
"resolutionKind": "node16-esm"
226+
},
227+
{
228+
"kind": "UntypedResolution",
229+
"entrypoint": "./unsafe/adapters/http.js",
230+
"resolutionKind": "bundler"
231+
},
232+
{
233+
"kind": "NoResolution",
234+
"entrypoint": "./unsafe/adapters/xhr.js",
235+
"resolutionKind": "node10"
236+
},
237+
{
238+
"kind": "UntypedResolution",
239+
"entrypoint": "./unsafe/adapters/xhr.js",
240+
"resolutionKind": "node16-cjs"
241+
},
242+
{
243+
"kind": "CJSResolvesToESM",
244+
"entrypoint": "./unsafe/adapters/xhr.js",
245+
"resolutionKind": "node16-cjs"
246+
},
247+
{
248+
"kind": "UntypedResolution",
249+
"entrypoint": "./unsafe/adapters/xhr.js",
250+
"resolutionKind": "node16-esm"
251+
},
252+
{
253+
"kind": "UntypedResolution",
254+
"entrypoint": "./unsafe/adapters/xhr.js",
255+
"resolutionKind": "bundler"
256+
},
257+
{
258+
"kind": "NoResolution",
259+
"entrypoint": "./unsafe/utils.js",
260+
"resolutionKind": "node10"
261+
},
262+
{
263+
"kind": "UntypedResolution",
264+
"entrypoint": "./unsafe/utils.js",
265+
"resolutionKind": "node16-cjs"
266+
},
267+
{
268+
"kind": "CJSResolvesToESM",
269+
"entrypoint": "./unsafe/utils.js",
270+
"resolutionKind": "node16-cjs"
271+
},
272+
{
273+
"kind": "UntypedResolution",
274+
"entrypoint": "./unsafe/utils.js",
275+
"resolutionKind": "node16-esm"
276+
},
277+
{
278+
"kind": "UntypedResolution",
279+
"entrypoint": "./unsafe/utils.js",
280+
"resolutionKind": "bundler"
281+
}
282+
]
283+
```

0 commit comments

Comments
 (0)