forked from eslint-community/eslint-plugin-n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess.js
138 lines (131 loc) · 5.8 KB
/
process.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
"use strict"
const { READ } = require("@eslint-community/eslint-utils")
/** @type {import('../types.js').SupportVersionTraceMap} */
const process = {
allowedNodeEnvironmentFlags: { [READ]: { supported: ["10.10.0"] } },
availableMemory: { [READ]: { experimental: ["22.0.0", "20.13.0"] } },
arch: { [READ]: { supported: ["0.5.0"] } },
argv: { [READ]: { supported: ["0.1.27"] } },
argv0: { [READ]: { supported: ["6.4.0"] } },
channel: { [READ]: { supported: ["7.1.0"] } },
config: { [READ]: { supported: ["0.7.7"] } },
connected: { [READ]: { supported: ["0.7.2"] } },
debugPort: { [READ]: { supported: ["0.7.2"] } },
env: { [READ]: { supported: ["0.1.27"] } },
execArgv: { [READ]: { supported: ["0.7.7"] } },
execPath: { [READ]: { supported: ["0.1.100"] } },
exitCode: { [READ]: { supported: ["0.11.8"] } },
finalization: {
register: { [READ]: { experimental: ["22.5.0"] } },
registerBeforeExit: { [READ]: { experimental: ["22.5.0"] } },
unregister: { [READ]: { experimental: ["22.5.0"] } },
},
getBuiltinModule: { [READ]: { supported: ["22.3.0", "20.16.0"] } },
mainModule: {
[READ]: {
supported: ["0.1.17"],
deprecated: ["14.0.0"],
},
},
noDeprecation: { [READ]: { supported: ["0.8.0"] } },
permission: { [READ]: { supported: ["20.0.0"] } },
pid: { [READ]: { supported: ["0.1.15"] } },
platform: { [READ]: { supported: ["0.1.16"] } },
ppid: { [READ]: { supported: ["9.2.0", "8.10.0", "6.13.0"] } },
release: { [READ]: { supported: ["3.0.0"] } },
report: {
[READ]: {
experimental: ["11.8.0"],
supported: ["13.12.0", "12.17.0"],
},
},
sourceMapsEnabled: { [READ]: { experimental: ["20.7.0"] } },
stdin: {
[READ]: { supported: ["0.1.3"] },
// tty.ReadStream
isRaw: { [READ]: { supported: ["0.7.7"] } },
isTTY: { [READ]: { supported: ["0.5.8"] } },
setRawMode: { [READ]: { supported: ["0.7.7"] } },
},
stdout: {
[READ]: { supported: ["0.1.3"] },
// tty.WriteStream
clearLine: { [READ]: { supported: ["0.7.7"] } },
clearScreenDown: { [READ]: { supported: ["0.7.7"] } },
columns: { [READ]: { supported: ["0.7.7"] } },
cursorTo: { [READ]: { supported: ["0.7.7"] } },
getColorDepth: { [READ]: { supported: ["9.9.0"] } },
getWindowSize: { [READ]: { supported: ["0.7.7"] } },
hasColors: { [READ]: { supported: ["11.13.0", "10.16.0"] } },
isTTY: { [READ]: { supported: ["0.5.8"] } },
moveCursor: { [READ]: { supported: ["0.7.7"] } },
rows: { [READ]: { supported: ["0.7.7"] } },
},
stderr: {
[READ]: { supported: ["0.1.3"] },
// tty.WriteStream
clearLine: { [READ]: { supported: ["0.7.7"] } },
clearScreenDown: { [READ]: { supported: ["0.7.7"] } },
columns: { [READ]: { supported: ["0.7.7"] } },
cursorTo: { [READ]: { supported: ["0.7.7"] } },
getColorDepth: { [READ]: { supported: ["9.9.0"] } },
getWindowSize: { [READ]: { supported: ["0.7.7"] } },
hasColors: { [READ]: { supported: ["11.13.0", "10.16.0"] } },
isTTY: { [READ]: { supported: ["0.5.8"] } },
moveCursor: { [READ]: { supported: ["0.7.7"] } },
rows: { [READ]: { supported: ["0.7.7"] } },
},
throwDeprecation: { [READ]: { supported: ["0.9.12"] } },
title: { [READ]: { supported: ["0.1.104"] } },
traceDeprecation: { [READ]: { supported: ["0.8.0"] } },
version: { [READ]: { supported: ["0.1.3"] } },
versions: { [READ]: { supported: ["0.2.0"] } },
abort: { [READ]: { supported: ["0.7.0"] } },
chdir: { [READ]: { supported: ["0.1.17"] } },
constrainedMemory: { [READ]: { experimental: ["19.6.0", "18.15.0"] } },
cpuUsage: { [READ]: { supported: ["6.1.0"] } },
cwd: { [READ]: { supported: ["0.1.8"] } },
disconnect: { [READ]: { supported: ["0.7.2"] } },
dlopen: { [READ]: { supported: ["0.1.16"] } },
emitWarning: { [READ]: { supported: ["6.0.0"] } },
exit: { [READ]: { supported: ["0.1.13"] } },
getActiveResourcesInfo: { [READ]: { experimental: ["17.3.0", "16.14.0"] } },
getegid: { [READ]: { supported: ["2.0.0"] } },
geteuid: { [READ]: { supported: ["2.0.0"] } },
getgid: { [READ]: { supported: ["0.1.31"] } },
getgroups: { [READ]: { supported: ["0.9.4"] } },
getuid: { [READ]: { supported: ["0.1.28"] } },
hasUncaughtExceptionCaptureCallback: { [READ]: { supported: ["9.3.0"] } },
hrtime: {
[READ]: { supported: ["0.7.6"] },
bigint: { [READ]: { supported: ["10.7.0"] } },
},
initgroups: { [READ]: { supported: ["0.9.4"] } },
kill: { [READ]: { supported: ["0.0.6"] } },
loadEnvFile: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
memoryUsage: { [READ]: { supported: ["0.1.16"] } },
rss: { [READ]: { supported: ["15.6.0", "14.18.0"] } },
nextTick: { [READ]: { supported: ["0.1.26"] } },
resourceUsage: { [READ]: { supported: ["12.6.0"] } },
send: { [READ]: { supported: ["0.5.9"] } },
setegid: { [READ]: { supported: ["2.0.0"] } },
seteuid: { [READ]: { supported: ["2.0.0"] } },
setgid: { [READ]: { supported: ["0.1.31"] } },
setgroups: { [READ]: { supported: ["0.9.4"] } },
setuid: { [READ]: { supported: ["0.1.28"] } },
setSourceMapsEnabled: { [READ]: { experimental: ["16.6.0", "14.18.0"] } },
setUncaughtExceptionCaptureCallback: { [READ]: { supported: ["9.3.0"] } },
umask: { [READ]: { supported: ["0.1.19"] } },
uptime: { [READ]: { supported: ["0.5.0"] } },
}
/** @type {import('../types.js').SupportVersionTraceMap} */
module.exports = {
process: {
[READ]: { supported: ["0.1.3"] },
...process,
},
"node:process": {
[READ]: { supported: ["14.13.1", "12.20.0"] },
...process,
},
}