module-replacements 2.0.0-beta.3 → 2.0.0-beta.4
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.
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleReplacements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "simple",
|
|
5
|
+
"moduleName": "is-number",
|
|
6
|
+
"replacement": "Use typeof v === \"number\"",
|
|
7
|
+
"category": "micro-utilities"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "simple",
|
|
11
|
+
"moduleName": "is-plain-object",
|
|
12
|
+
"replacement": "Use typeof v === \"object\" && v !== null && v.constructor === Object",
|
|
13
|
+
"category": "micro-utilities"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "simple",
|
|
17
|
+
"moduleName": "is-primitve",
|
|
18
|
+
"replacement": "Use v === null || (typeof v !== \"function\" && typeof v !== \"object\")",
|
|
19
|
+
"category": "micro-utilities"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "simple",
|
|
23
|
+
"moduleName": "is-regexp",
|
|
24
|
+
"replacement": "Use v instanceof RegExp, or if cross-realm, use Object.prototype.toString.call(v) === \"[object RegExp]\"",
|
|
25
|
+
"category": "micro-utilities"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "simple",
|
|
29
|
+
"moduleName": "is-travis",
|
|
30
|
+
"replacement": "Use (\"TRAVIS\" in process.env)",
|
|
31
|
+
"category": "micro-utilities"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "simple",
|
|
35
|
+
"moduleName": "is-npm",
|
|
36
|
+
"replacement": "Use process.env.npm_config_user_agent?.startsWith(\"npm\")",
|
|
37
|
+
"category": "micro-utilities"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "simple",
|
|
41
|
+
"moduleName": "clone-regexp",
|
|
42
|
+
"replacement": "Use new RegExp(regexpToCopy)",
|
|
43
|
+
"category": "micro-utilities"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "simple",
|
|
47
|
+
"moduleName": "split-lines",
|
|
48
|
+
"replacement": "Use str.split(/\\r?\\n/)",
|
|
49
|
+
"category": "micro-utilities"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "simple",
|
|
53
|
+
"moduleName": "is-windows",
|
|
54
|
+
"replacement": "Use process.platform === \"win32\"",
|
|
55
|
+
"category": "micro-utilities"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "simple",
|
|
59
|
+
"moduleName": "is-whitespace",
|
|
60
|
+
"replacement": "Use str.trim() === \"\" or /^\\s*$/.test(str)",
|
|
61
|
+
"category": "micro-utilities"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "simple",
|
|
65
|
+
"moduleName": "is-string",
|
|
66
|
+
"replacement": "Use typeof str === \"string\"",
|
|
67
|
+
"category": "micro-utilities"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "simple",
|
|
71
|
+
"moduleName": "is-odd",
|
|
72
|
+
"replacement": "Use (n % 2) === 1",
|
|
73
|
+
"category": "micro-utilities"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "simple",
|
|
77
|
+
"moduleName": "is-even",
|
|
78
|
+
"replacement": "Use (n % 2) === 0",
|
|
79
|
+
"category": "micro-utilities"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleReplacements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "native",
|
|
5
|
+
"moduleName": "object.entries",
|
|
6
|
+
"nodeVersion": "7.0.0",
|
|
7
|
+
"replacement": "Object.entries",
|
|
8
|
+
"mdnPath": "Global_Objects/Object/entries",
|
|
9
|
+
"category": "native"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "native",
|
|
13
|
+
"moduleName": "date",
|
|
14
|
+
"nodeVersion": "0.10.0",
|
|
15
|
+
"replacement": "Date",
|
|
16
|
+
"mdnPath": "Global_Objects/Date",
|
|
17
|
+
"category": "native"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "native",
|
|
21
|
+
"moduleName": "for-each",
|
|
22
|
+
"nodeVersion": "0.12.0",
|
|
23
|
+
"replacement": "for...of (using \"Object.entries\" if dealing with objects)",
|
|
24
|
+
"mdnPath": "Statements/for...of",
|
|
25
|
+
"category": "native"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "native",
|
|
29
|
+
"moduleName": "array.of",
|
|
30
|
+
"nodeVersion": "4.0.0",
|
|
31
|
+
"replacement": "Array.of",
|
|
32
|
+
"mdnPath": "Global_Objects/Array/of",
|
|
33
|
+
"category": "native"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "native",
|
|
37
|
+
"moduleName": "number.isnan",
|
|
38
|
+
"nodeVersion": "0.10.0",
|
|
39
|
+
"replacement": "Number.isNaN",
|
|
40
|
+
"mdnPath": "Global_Objects/Number/isNaN",
|
|
41
|
+
"category": "native"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "native",
|
|
45
|
+
"moduleName": "array.prototype.findindex",
|
|
46
|
+
"nodeVersion": "4.0.0",
|
|
47
|
+
"replacement": "Array.prototype.findIndex",
|
|
48
|
+
"mdnPath": "Global_Objects/Array/findIndex",
|
|
49
|
+
"category": "native"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "native",
|
|
53
|
+
"moduleName": "array.from",
|
|
54
|
+
"nodeVersion": "4.0.0",
|
|
55
|
+
"replacement": "Array.from",
|
|
56
|
+
"mdnPath": "Global_Objects/Array/from",
|
|
57
|
+
"category": "native"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "native",
|
|
61
|
+
"moduleName": "object-is",
|
|
62
|
+
"nodeVersion": "0.10.0",
|
|
63
|
+
"replacement": "Object.is",
|
|
64
|
+
"mdnPath": "Global_Objects/Object/is",
|
|
65
|
+
"category": "native"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "native",
|
|
69
|
+
"moduleName": "hasown",
|
|
70
|
+
"nodeVersion": "0.10.0",
|
|
71
|
+
"replacement":
|
|
72
|
+
"Object.prototype.hasOwnProperty.call(obj, prop) (or in later versions of node, \"Object.hasOwn(obj, prop)\")",
|
|
73
|
+
"mdnPath": "Global_Objects/Object/hasOwnProperty",
|
|
74
|
+
"category": "native"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "native",
|
|
78
|
+
"moduleName": "has-own-prop",
|
|
79
|
+
"nodeVersion": "0.10.0",
|
|
80
|
+
"replacement":
|
|
81
|
+
"Object.prototype.hasOwnProperty.call(obj, prop) (or in later versions of node, \"Object.hasOwn(obj, prop)\")",
|
|
82
|
+
"mdnPath": "Global_Objects/Object/hasOwnProperty",
|
|
83
|
+
"category": "native"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "native",
|
|
87
|
+
"moduleName": "array-map",
|
|
88
|
+
"nodeVersion": "0.10.0",
|
|
89
|
+
"replacement": "Array.prototype.map",
|
|
90
|
+
"mdnPath": "Global_Objects/Array/map",
|
|
91
|
+
"category": "native"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "native",
|
|
95
|
+
"moduleName": "is-nan",
|
|
96
|
+
"nodeVersion": "0.10.0",
|
|
97
|
+
"replacement": "Number.isNaN",
|
|
98
|
+
"mdnPath": "Global_Objects/Number/isNaN",
|
|
99
|
+
"category": "native"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "native",
|
|
103
|
+
"moduleName": "node.extend",
|
|
104
|
+
"nodeVersion": "4.0.0",
|
|
105
|
+
"replacement":
|
|
106
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
107
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
108
|
+
"category": "native"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "native",
|
|
112
|
+
"moduleName": "extend-shallow",
|
|
113
|
+
"nodeVersion": "4.0.0",
|
|
114
|
+
"replacement":
|
|
115
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
116
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
117
|
+
"category": "native"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "native",
|
|
121
|
+
"moduleName": "xtend",
|
|
122
|
+
"nodeVersion": "4.0.0",
|
|
123
|
+
"replacement":
|
|
124
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
125
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
126
|
+
"category": "native"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "native",
|
|
130
|
+
"moduleName": "defaults",
|
|
131
|
+
"nodeVersion": "4.0.0",
|
|
132
|
+
"replacement":
|
|
133
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
134
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
135
|
+
"category": "native"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "native",
|
|
139
|
+
"moduleName": "function-bind",
|
|
140
|
+
"nodeVersion": "0.10.0",
|
|
141
|
+
"replacement": "Function.prototype.bind",
|
|
142
|
+
"mdnPath": "Global_Objects/Function/bind",
|
|
143
|
+
"category": "native"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "native",
|
|
147
|
+
"moduleName": "regexp.prototype.flags",
|
|
148
|
+
"nodeVersion": "6.0.0",
|
|
149
|
+
"replacement": "RegExp.prototype.flags (e.g. \"/foo/g.flags\")",
|
|
150
|
+
"mdnPath": "Global_Objects/RegExp/flags",
|
|
151
|
+
"category": "native"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "native",
|
|
155
|
+
"moduleName": "array.prototype.find",
|
|
156
|
+
"nodeVersion": "4.0.0",
|
|
157
|
+
"replacement": "Array.prototype.find",
|
|
158
|
+
"mdnPath": "Global_Objects/Array/find",
|
|
159
|
+
"category": "native"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "native",
|
|
163
|
+
"moduleName": "object-keys",
|
|
164
|
+
"nodeVersion": "0.10.0",
|
|
165
|
+
"replacement": "Object.keys(obj)",
|
|
166
|
+
"mdnPath": "Global_Objects/Object/keys",
|
|
167
|
+
"category": "native"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "native",
|
|
171
|
+
"moduleName": "define-properties",
|
|
172
|
+
"nodeVersion": "0.10.0",
|
|
173
|
+
"replacement": "Object.defineProperties",
|
|
174
|
+
"mdnPath": "Global_Objects/Object/defineProperties",
|
|
175
|
+
"category": "native"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "native",
|
|
179
|
+
"moduleName": "left-pad",
|
|
180
|
+
"nodeVersion": "8.0.0",
|
|
181
|
+
"replacement": "String.prototype.padStart",
|
|
182
|
+
"mdnPath": "Global_Objects/String/padStart",
|
|
183
|
+
"category": "native"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "native",
|
|
187
|
+
"moduleName": "pad-left",
|
|
188
|
+
"nodeVersion": "8.0.0",
|
|
189
|
+
"replacement": "String.prototype.padStart",
|
|
190
|
+
"mdnPath": "Global_Objects/String/padStart",
|
|
191
|
+
"category": "native"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "native",
|
|
195
|
+
"moduleName": "filter-array",
|
|
196
|
+
"nodeVersion": "0.10.0",
|
|
197
|
+
"replacement": "Array.prototype.filter",
|
|
198
|
+
"mdnPath": "Global_Objects/Array/filter",
|
|
199
|
+
"category": "native"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "native",
|
|
203
|
+
"moduleName": "array-every",
|
|
204
|
+
"nodeVersion": "0.10.0",
|
|
205
|
+
"replacement": "Array.prototype.every",
|
|
206
|
+
"mdnPath": "Global_Objects/Array/every",
|
|
207
|
+
"category": "native"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "native",
|
|
211
|
+
"moduleName": "index-of",
|
|
212
|
+
"nodeVersion": "0.10.0",
|
|
213
|
+
"replacement": "Array.prototype.indexOf",
|
|
214
|
+
"mdnPath": "Global_Objects/Array/indexOf",
|
|
215
|
+
"category": "native"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "native",
|
|
219
|
+
"moduleName": "last-index-of",
|
|
220
|
+
"nodeVersion": "0.10.0",
|
|
221
|
+
"replacement": "Array.prototype.lastIndexOf",
|
|
222
|
+
"mdnPath": "Global_Objects/Array/lastIndexOf",
|
|
223
|
+
"category": "native"
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleReplacements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "documented",
|
|
5
|
+
"moduleName": "npm-run-all",
|
|
6
|
+
"docPath": "npm-run-all",
|
|
7
|
+
"category": "preferred"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "documented",
|
|
11
|
+
"moduleName": "cpx",
|
|
12
|
+
"docPath": "cpx",
|
|
13
|
+
"category": "preferred"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "documented",
|
|
17
|
+
"moduleName": "is-builtin-module",
|
|
18
|
+
"docPath": "is-builtin-module",
|
|
19
|
+
"category": "preferred"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "documented",
|
|
23
|
+
"moduleName": "builtin-modules",
|
|
24
|
+
"docPath": "is-builtin-module",
|
|
25
|
+
"category": "preferred"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "documented",
|
|
29
|
+
"moduleName": "eslint-plugin-react",
|
|
30
|
+
"docPath": "eslint-plugin-react",
|
|
31
|
+
"category": "preferred"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "documented",
|
|
35
|
+
"moduleName": "eslint-plugin-import",
|
|
36
|
+
"docPath": "eslint-plugin-import",
|
|
37
|
+
"category": "preferred"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "documented",
|
|
41
|
+
"moduleName": "eslint-plugin-node",
|
|
42
|
+
"docPath": "eslint-plugin-node",
|
|
43
|
+
"category": "preferred"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleReplacements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "simple",
|
|
5
|
+
"moduleName": "is-number",
|
|
6
|
+
"replacement": "Use typeof v === \"number\"",
|
|
7
|
+
"category": "micro-utilities"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "simple",
|
|
11
|
+
"moduleName": "is-plain-object",
|
|
12
|
+
"replacement": "Use typeof v === \"object\" && v !== null && v.constructor === Object",
|
|
13
|
+
"category": "micro-utilities"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "simple",
|
|
17
|
+
"moduleName": "is-primitve",
|
|
18
|
+
"replacement": "Use v === null || (typeof v !== \"function\" && typeof v !== \"object\")",
|
|
19
|
+
"category": "micro-utilities"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "simple",
|
|
23
|
+
"moduleName": "is-regexp",
|
|
24
|
+
"replacement": "Use v instanceof RegExp, or if cross-realm, use Object.prototype.toString.call(v) === \"[object RegExp]\"",
|
|
25
|
+
"category": "micro-utilities"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "simple",
|
|
29
|
+
"moduleName": "is-travis",
|
|
30
|
+
"replacement": "Use (\"TRAVIS\" in process.env)",
|
|
31
|
+
"category": "micro-utilities"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "simple",
|
|
35
|
+
"moduleName": "is-npm",
|
|
36
|
+
"replacement": "Use process.env.npm_config_user_agent?.startsWith(\"npm\")",
|
|
37
|
+
"category": "micro-utilities"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "simple",
|
|
41
|
+
"moduleName": "clone-regexp",
|
|
42
|
+
"replacement": "Use new RegExp(regexpToCopy)",
|
|
43
|
+
"category": "micro-utilities"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "simple",
|
|
47
|
+
"moduleName": "split-lines",
|
|
48
|
+
"replacement": "Use str.split(/\\r?\\n/)",
|
|
49
|
+
"category": "micro-utilities"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "simple",
|
|
53
|
+
"moduleName": "is-windows",
|
|
54
|
+
"replacement": "Use process.platform === \"win32\"",
|
|
55
|
+
"category": "micro-utilities"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "simple",
|
|
59
|
+
"moduleName": "is-whitespace",
|
|
60
|
+
"replacement": "Use str.trim() === \"\" or /^\\s*$/.test(str)",
|
|
61
|
+
"category": "micro-utilities"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "simple",
|
|
65
|
+
"moduleName": "is-string",
|
|
66
|
+
"replacement": "Use typeof str === \"string\"",
|
|
67
|
+
"category": "micro-utilities"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "simple",
|
|
71
|
+
"moduleName": "is-odd",
|
|
72
|
+
"replacement": "Use (n % 2) === 1",
|
|
73
|
+
"category": "micro-utilities"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "simple",
|
|
77
|
+
"moduleName": "is-even",
|
|
78
|
+
"replacement": "Use (n % 2) === 0",
|
|
79
|
+
"category": "micro-utilities"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleReplacements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "native",
|
|
5
|
+
"moduleName": "object.entries",
|
|
6
|
+
"nodeVersion": "7.0.0",
|
|
7
|
+
"replacement": "Object.entries",
|
|
8
|
+
"mdnPath": "Global_Objects/Object/entries",
|
|
9
|
+
"category": "native"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "native",
|
|
13
|
+
"moduleName": "date",
|
|
14
|
+
"nodeVersion": "0.10.0",
|
|
15
|
+
"replacement": "Date",
|
|
16
|
+
"mdnPath": "Global_Objects/Date",
|
|
17
|
+
"category": "native"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "native",
|
|
21
|
+
"moduleName": "for-each",
|
|
22
|
+
"nodeVersion": "0.12.0",
|
|
23
|
+
"replacement": "for...of (using \"Object.entries\" if dealing with objects)",
|
|
24
|
+
"mdnPath": "Statements/for...of",
|
|
25
|
+
"category": "native"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "native",
|
|
29
|
+
"moduleName": "array.of",
|
|
30
|
+
"nodeVersion": "4.0.0",
|
|
31
|
+
"replacement": "Array.of",
|
|
32
|
+
"mdnPath": "Global_Objects/Array/of",
|
|
33
|
+
"category": "native"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "native",
|
|
37
|
+
"moduleName": "number.isnan",
|
|
38
|
+
"nodeVersion": "0.10.0",
|
|
39
|
+
"replacement": "Number.isNaN",
|
|
40
|
+
"mdnPath": "Global_Objects/Number/isNaN",
|
|
41
|
+
"category": "native"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "native",
|
|
45
|
+
"moduleName": "array.prototype.findindex",
|
|
46
|
+
"nodeVersion": "4.0.0",
|
|
47
|
+
"replacement": "Array.prototype.findIndex",
|
|
48
|
+
"mdnPath": "Global_Objects/Array/findIndex",
|
|
49
|
+
"category": "native"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "native",
|
|
53
|
+
"moduleName": "array.from",
|
|
54
|
+
"nodeVersion": "4.0.0",
|
|
55
|
+
"replacement": "Array.from",
|
|
56
|
+
"mdnPath": "Global_Objects/Array/from",
|
|
57
|
+
"category": "native"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "native",
|
|
61
|
+
"moduleName": "object-is",
|
|
62
|
+
"nodeVersion": "0.10.0",
|
|
63
|
+
"replacement": "Object.is",
|
|
64
|
+
"mdnPath": "Global_Objects/Object/is",
|
|
65
|
+
"category": "native"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "native",
|
|
69
|
+
"moduleName": "hasown",
|
|
70
|
+
"nodeVersion": "0.10.0",
|
|
71
|
+
"replacement":
|
|
72
|
+
"Object.prototype.hasOwnProperty.call(obj, prop) (or in later versions of node, \"Object.hasOwn(obj, prop)\")",
|
|
73
|
+
"mdnPath": "Global_Objects/Object/hasOwnProperty",
|
|
74
|
+
"category": "native"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "native",
|
|
78
|
+
"moduleName": "has-own-prop",
|
|
79
|
+
"nodeVersion": "0.10.0",
|
|
80
|
+
"replacement":
|
|
81
|
+
"Object.prototype.hasOwnProperty.call(obj, prop) (or in later versions of node, \"Object.hasOwn(obj, prop)\")",
|
|
82
|
+
"mdnPath": "Global_Objects/Object/hasOwnProperty",
|
|
83
|
+
"category": "native"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "native",
|
|
87
|
+
"moduleName": "array-map",
|
|
88
|
+
"nodeVersion": "0.10.0",
|
|
89
|
+
"replacement": "Array.prototype.map",
|
|
90
|
+
"mdnPath": "Global_Objects/Array/map",
|
|
91
|
+
"category": "native"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "native",
|
|
95
|
+
"moduleName": "is-nan",
|
|
96
|
+
"nodeVersion": "0.10.0",
|
|
97
|
+
"replacement": "Number.isNaN",
|
|
98
|
+
"mdnPath": "Global_Objects/Number/isNaN",
|
|
99
|
+
"category": "native"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "native",
|
|
103
|
+
"moduleName": "node.extend",
|
|
104
|
+
"nodeVersion": "4.0.0",
|
|
105
|
+
"replacement":
|
|
106
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
107
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
108
|
+
"category": "native"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "native",
|
|
112
|
+
"moduleName": "extend-shallow",
|
|
113
|
+
"nodeVersion": "4.0.0",
|
|
114
|
+
"replacement":
|
|
115
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
116
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
117
|
+
"category": "native"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "native",
|
|
121
|
+
"moduleName": "xtend",
|
|
122
|
+
"nodeVersion": "4.0.0",
|
|
123
|
+
"replacement":
|
|
124
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
125
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
126
|
+
"category": "native"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "native",
|
|
130
|
+
"moduleName": "defaults",
|
|
131
|
+
"nodeVersion": "4.0.0",
|
|
132
|
+
"replacement":
|
|
133
|
+
"Object.assign, or if deep clones are needed, use structuredClone",
|
|
134
|
+
"mdnPath": "Global_Objects/Object/assign",
|
|
135
|
+
"category": "native"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "native",
|
|
139
|
+
"moduleName": "function-bind",
|
|
140
|
+
"nodeVersion": "0.10.0",
|
|
141
|
+
"replacement": "Function.prototype.bind",
|
|
142
|
+
"mdnPath": "Global_Objects/Function/bind",
|
|
143
|
+
"category": "native"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "native",
|
|
147
|
+
"moduleName": "regexp.prototype.flags",
|
|
148
|
+
"nodeVersion": "6.0.0",
|
|
149
|
+
"replacement": "RegExp.prototype.flags (e.g. \"/foo/g.flags\")",
|
|
150
|
+
"mdnPath": "Global_Objects/RegExp/flags",
|
|
151
|
+
"category": "native"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "native",
|
|
155
|
+
"moduleName": "array.prototype.find",
|
|
156
|
+
"nodeVersion": "4.0.0",
|
|
157
|
+
"replacement": "Array.prototype.find",
|
|
158
|
+
"mdnPath": "Global_Objects/Array/find",
|
|
159
|
+
"category": "native"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "native",
|
|
163
|
+
"moduleName": "object-keys",
|
|
164
|
+
"nodeVersion": "0.10.0",
|
|
165
|
+
"replacement": "Object.keys(obj)",
|
|
166
|
+
"mdnPath": "Global_Objects/Object/keys",
|
|
167
|
+
"category": "native"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "native",
|
|
171
|
+
"moduleName": "define-properties",
|
|
172
|
+
"nodeVersion": "0.10.0",
|
|
173
|
+
"replacement": "Object.defineProperties",
|
|
174
|
+
"mdnPath": "Global_Objects/Object/defineProperties",
|
|
175
|
+
"category": "native"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "native",
|
|
179
|
+
"moduleName": "left-pad",
|
|
180
|
+
"nodeVersion": "8.0.0",
|
|
181
|
+
"replacement": "String.prototype.padStart",
|
|
182
|
+
"mdnPath": "Global_Objects/String/padStart",
|
|
183
|
+
"category": "native"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "native",
|
|
187
|
+
"moduleName": "pad-left",
|
|
188
|
+
"nodeVersion": "8.0.0",
|
|
189
|
+
"replacement": "String.prototype.padStart",
|
|
190
|
+
"mdnPath": "Global_Objects/String/padStart",
|
|
191
|
+
"category": "native"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "native",
|
|
195
|
+
"moduleName": "filter-array",
|
|
196
|
+
"nodeVersion": "0.10.0",
|
|
197
|
+
"replacement": "Array.prototype.filter",
|
|
198
|
+
"mdnPath": "Global_Objects/Array/filter",
|
|
199
|
+
"category": "native"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "native",
|
|
203
|
+
"moduleName": "array-every",
|
|
204
|
+
"nodeVersion": "0.10.0",
|
|
205
|
+
"replacement": "Array.prototype.every",
|
|
206
|
+
"mdnPath": "Global_Objects/Array/every",
|
|
207
|
+
"category": "native"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "native",
|
|
211
|
+
"moduleName": "index-of",
|
|
212
|
+
"nodeVersion": "0.10.0",
|
|
213
|
+
"replacement": "Array.prototype.indexOf",
|
|
214
|
+
"mdnPath": "Global_Objects/Array/indexOf",
|
|
215
|
+
"category": "native"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "native",
|
|
219
|
+
"moduleName": "last-index-of",
|
|
220
|
+
"nodeVersion": "0.10.0",
|
|
221
|
+
"replacement": "Array.prototype.lastIndexOf",
|
|
222
|
+
"mdnPath": "Global_Objects/Array/lastIndexOf",
|
|
223
|
+
"category": "native"
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleReplacements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "documented",
|
|
5
|
+
"moduleName": "npm-run-all",
|
|
6
|
+
"docPath": "npm-run-all",
|
|
7
|
+
"category": "preferred"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "documented",
|
|
11
|
+
"moduleName": "cpx",
|
|
12
|
+
"docPath": "cpx",
|
|
13
|
+
"category": "preferred"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "documented",
|
|
17
|
+
"moduleName": "is-builtin-module",
|
|
18
|
+
"docPath": "is-builtin-module",
|
|
19
|
+
"category": "preferred"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "documented",
|
|
23
|
+
"moduleName": "builtin-modules",
|
|
24
|
+
"docPath": "is-builtin-module",
|
|
25
|
+
"category": "preferred"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "documented",
|
|
29
|
+
"moduleName": "eslint-plugin-react",
|
|
30
|
+
"docPath": "eslint-plugin-react",
|
|
31
|
+
"category": "preferred"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "documented",
|
|
35
|
+
"moduleName": "eslint-plugin-import",
|
|
36
|
+
"docPath": "eslint-plugin-import",
|
|
37
|
+
"category": "preferred"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "documented",
|
|
41
|
+
"moduleName": "eslint-plugin-node",
|
|
42
|
+
"docPath": "eslint-plugin-node",
|
|
43
|
+
"category": "preferred"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "module-replacements",
|
|
3
3
|
"description": "This package provides a set of manifests which each define a mapping of JS modules to their suggested replacements.",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.4",
|
|
5
5
|
"main": "./dist/commonjs/main.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"clean": "rimraf dist
|
|
8
|
-
"prepare": "tshy",
|
|
7
|
+
"clean": "rimraf dist",
|
|
8
|
+
"prepare": "tshy && npm run build:copy-manifests",
|
|
9
9
|
"format": "prettier --write \"./src/**/*.ts\" \"./manifests/**/*.json\"",
|
|
10
10
|
"build:types": "tsc --noEmit",
|
|
11
|
-
"build:
|
|
12
|
-
"build": "npm run clean && npm run build:
|
|
11
|
+
"build:copy-manifests": "cp -R manifests dist/manifests",
|
|
12
|
+
"build": "npm run clean && npm run build:types",
|
|
13
13
|
"validate-manifests": "node scripts/validate-manifests.js",
|
|
14
14
|
"generate-schema": "node scripts/generate-schema.js"
|
|
15
15
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
-
"
|
|
23
|
+
"manifests"
|
|
24
24
|
],
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"homepage": "https://github.com/es-tooling/module-replacements#readme",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"ajv": "^8.16.0",
|
|
37
|
-
"esbuild": "^0.20.0",
|
|
38
37
|
"prettier": "^3.2.4",
|
|
39
38
|
"rimraf": "^5.0.5",
|
|
40
39
|
"ts-json-schema-generator": "^2.3.0",
|