Commit e17db8f
esm: improve typings and code coverage
PR-URL: #42305
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Darshan Sen <raisinten@gmail.com>1 parent 08e2d8a commit e17db8fCopy full SHA for e17db8f
File tree
Expand file treeCollapse file tree
4 files changed
+35
-2
lines changedOpen diff view settings
Filter options
- lib/internal/modules/esm
- test/es-module
Expand file treeCollapse file tree
4 files changed
+35
-2
lines changedOpen diff view settings
Collapse file
lib/internal/modules/esm/formats.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/formats.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
32 | 36 | |
33 | 37 | |
34 | 38 | |
|
Collapse file
lib/internal/modules/esm/get_format.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/get_format.js+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
35 | 39 | |
36 | 40 | |
37 | 41 | |
| ||
41 | 45 | |
42 | 46 | |
43 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
44 | 54 | |
45 | 55 | |
46 | 56 | |
| ||
59 | 69 | |
60 | 70 | |
61 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
62 | 77 | |
63 | 78 | |
64 | 79 | |
| ||
70 | 85 | |
71 | 86 | |
72 | 87 | |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
73 | 93 | |
74 | 94 | |
75 | 95 | |
76 | 96 | |
77 | 97 | |
78 | 98 | |
79 | 99 | |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
80 | 105 | |
81 | 106 | |
82 | 107 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
| 82 | + |
82 | 83 | |
83 | 84 | |
84 | 85 | |
|
Collapse file
test/es-module/test-esm-basic-imports.mjs
Copy file name to clipboard+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
5 | 7 | |
6 | 8 | |
7 | | - |
| 9 | + |
| 10 | + |
0 commit comments