@idlebox/node 1.4.6 → 1.4.8

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.
Files changed (323) hide show
  1. package/lib/{esm/asyncLoad.d.ts → asyncLoad.d.ts} +1 -5
  2. package/lib/asyncLoad.d.ts.map +1 -0
  3. package/lib/{esm/asyncLoad.js → asyncLoad.js} +4 -11
  4. package/lib/asyncLoad.js.map +1 -0
  5. package/lib/{esm/__create_index.generated.d.ts → autoindex.d.ts} +19 -16
  6. package/lib/autoindex.d.ts.map +1 -0
  7. package/lib/autoindex.generated.d.ts +80 -0
  8. package/lib/autoindex.generated.d.ts.map +1 -0
  9. package/lib/autoindex.generated.js +132 -0
  10. package/lib/autoindex.generated.js.map +1 -0
  11. package/lib/{esm/__create_index.generated.js → autoindex.js} +13 -7
  12. package/lib/autoindex.js.map +1 -0
  13. package/lib/child_process/error.d.ts.map +1 -0
  14. package/lib/{esm/child_process → child_process}/error.js +1 -1
  15. package/lib/child_process/error.js.map +1 -0
  16. package/lib/{esm/child_process → child_process}/execa.d.ts +6 -2
  17. package/lib/child_process/execa.d.ts.map +1 -0
  18. package/lib/{esm/child_process → child_process}/execa.js +8 -6
  19. package/lib/child_process/execa.js.map +1 -0
  20. package/lib/child_process/lateError.d.ts.map +1 -0
  21. package/lib/{esm/child_process → child_process}/lateError.js +1 -1
  22. package/lib/child_process/lateError.js.map +1 -0
  23. package/lib/{esm/child_process → child_process}/respawn.d.ts +2 -2
  24. package/lib/child_process/respawn.d.ts.map +1 -0
  25. package/lib/{esm/child_process → child_process}/respawn.js +7 -11
  26. package/lib/child_process/respawn.js.map +1 -0
  27. package/lib/cli-io/output.d.ts.map +1 -0
  28. package/lib/{esm/cli-io → cli-io}/output.js +1 -1
  29. package/lib/cli-io/output.js.map +1 -0
  30. package/lib/crypto/md5.d.ts.map +1 -0
  31. package/lib/{esm/crypto → crypto}/md5.js +1 -1
  32. package/lib/crypto/md5.js.map +1 -0
  33. package/lib/crypto/sha256.d.ts.map +1 -0
  34. package/lib/{esm/crypto → crypto}/sha256.js +1 -1
  35. package/lib/crypto/sha256.js.map +1 -0
  36. package/lib/environment/findBinary.d.ts +3 -0
  37. package/lib/environment/findBinary.d.ts.map +1 -0
  38. package/lib/{esm/environment → environment}/findBinary.js +1 -1
  39. package/lib/environment/findBinary.js.map +1 -0
  40. package/lib/environment/getEnvironment.d.ts.map +1 -0
  41. package/lib/{esm/environment → environment}/getEnvironment.js +3 -3
  42. package/lib/environment/getEnvironment.js.map +1 -0
  43. package/lib/environment/npmConfig.d.ts.map +1 -0
  44. package/lib/{esm/environment → environment}/npmConfig.js +1 -1
  45. package/lib/environment/npmConfig.js.map +1 -0
  46. package/lib/{esm/environment → environment}/pathEnvironment.d.ts +4 -0
  47. package/lib/environment/pathEnvironment.d.ts.map +1 -0
  48. package/lib/{esm/environment → environment}/pathEnvironment.js +8 -5
  49. package/lib/environment/pathEnvironment.js.map +1 -0
  50. package/lib/error/linux.d.ts.map +1 -0
  51. package/lib/{esm/error → error}/linux.js +1 -1
  52. package/lib/error/linux.js.map +1 -0
  53. package/lib/{esm/error → error}/types.d.ts +2 -2
  54. package/lib/error/types.d.ts.map +1 -0
  55. package/lib/{esm/error → error}/types.js +3 -2
  56. package/lib/error/types.js.map +1 -0
  57. package/lib/events/dumpEventEmitter.d.ts.map +1 -0
  58. package/lib/{esm/events → events}/dumpEventEmitter.js +1 -1
  59. package/lib/events/dumpEventEmitter.js.map +1 -0
  60. package/lib/fs/commandExists.d.ts.map +1 -0
  61. package/lib/{esm/fs → fs}/commandExists.js +3 -3
  62. package/lib/fs/commandExists.js.map +1 -0
  63. package/lib/fs/emptyDir.d.ts +10 -0
  64. package/lib/fs/emptyDir.d.ts.map +1 -0
  65. package/lib/{esm/fs → fs}/emptyDir.js +6 -3
  66. package/lib/fs/emptyDir.js.map +1 -0
  67. package/lib/fs/ensureDir.d.ts +3 -0
  68. package/lib/fs/ensureDir.d.ts.map +1 -0
  69. package/lib/fs/ensureDir.js +20 -0
  70. package/lib/fs/ensureDir.js.map +1 -0
  71. package/lib/fs/exists.d.ts.map +1 -0
  72. package/lib/{esm/fs → fs}/exists.js +1 -1
  73. package/lib/fs/exists.js.map +1 -0
  74. package/lib/fs/tempFolder.d.ts.map +1 -0
  75. package/lib/{esm/fs → fs}/tempFolder.js +1 -1
  76. package/lib/fs/tempFolder.js.map +1 -0
  77. package/lib/fs/weiteChanged.d.ts.map +1 -0
  78. package/lib/{esm/fs → fs}/weiteChanged.js +1 -1
  79. package/lib/fs/weiteChanged.js.map +1 -0
  80. package/lib/lifecycle/register.d.ts +10 -0
  81. package/lib/lifecycle/register.d.ts.map +1 -0
  82. package/lib/lifecycle/register.js +81 -0
  83. package/lib/lifecycle/register.js.map +1 -0
  84. package/lib/log/terminal.d.ts.map +1 -0
  85. package/lib/{esm/log → log}/terminal.js +1 -1
  86. package/lib/{cjs/log/terminal.cjs.map → log/terminal.js.map} +1 -10
  87. package/lib/path-resolve/findPackageRoot.d.ts.map +1 -0
  88. package/lib/{esm/path-resolve → path-resolve}/findPackageRoot.js +2 -2
  89. package/lib/path-resolve/findPackageRoot.js.map +1 -0
  90. package/lib/{esm/path-resolve → path-resolve}/findUp.d.ts +4 -4
  91. package/lib/path-resolve/findUp.d.ts.map +1 -0
  92. package/lib/path-resolve/findUp.js +118 -0
  93. package/lib/path-resolve/findUp.js.map +1 -0
  94. package/lib/path-resolve/getAllUp.d.ts.map +1 -0
  95. package/lib/{esm/path-resolve → path-resolve}/getAllUp.js +1 -1
  96. package/lib/path-resolve/getAllUp.js.map +1 -0
  97. package/lib/path-resolve/lrelative.d.ts.map +1 -0
  98. package/lib/{esm/path-resolve → path-resolve}/lrelative.js +1 -1
  99. package/lib/path-resolve/lrelative.js.map +1 -0
  100. package/lib/path-resolve/nodeResolvePathArray.d.ts.map +1 -0
  101. package/lib/{esm/path-resolve → path-resolve}/nodeResolvePathArray.js +1 -1
  102. package/lib/path-resolve/nodeResolvePathArray.js.map +1 -0
  103. package/lib/path-resolve/resolvePath.d.ts.map +1 -0
  104. package/lib/{esm/path-resolve → path-resolve}/resolvePath.js +1 -1
  105. package/lib/path-resolve/resolvePath.js.map +1 -0
  106. package/lib/preload.d.ts.map +1 -0
  107. package/lib/preload.js +2 -0
  108. package/lib/preload.js.map +1 -0
  109. package/lib/stream/blackHoleStream.d.ts.map +1 -0
  110. package/lib/{esm/stream → stream}/blackHoleStream.js +1 -1
  111. package/lib/stream/blackHoleStream.js.map +1 -0
  112. package/lib/stream/collectingStream.d.ts.map +1 -0
  113. package/lib/{esm/stream → stream}/collectingStream.js +1 -1
  114. package/lib/stream/collectingStream.js.map +1 -0
  115. package/lib/stream/disposableStream.d.ts.map +1 -0
  116. package/lib/{esm/stream → stream}/disposableStream.js +1 -1
  117. package/lib/stream/disposableStream.js.map +1 -0
  118. package/lib/stream/drainStream.d.ts.map +1 -0
  119. package/lib/{esm/stream → stream}/drainStream.js +1 -1
  120. package/lib/stream/drainStream.js.map +1 -0
  121. package/lib/stream/loggerStream.d.ts.map +1 -0
  122. package/lib/{esm/stream → stream}/loggerStream.js +1 -1
  123. package/lib/stream/loggerStream.js.map +1 -0
  124. package/lib/stream/streamPromise.d.ts.map +1 -0
  125. package/lib/{esm/stream → stream}/streamPromise.js +1 -1
  126. package/lib/stream/streamPromise.js.map +1 -0
  127. package/lib/tsconfig.tsbuildinfo +1 -0
  128. package/package.json +19 -32
  129. package/src/asyncLoad.ts +3 -12
  130. package/src/autoindex.generated.ts +159 -0
  131. package/src/autoindex.ts +153 -0
  132. package/src/child_process/execa.ts +14 -7
  133. package/src/child_process/respawn.ts +7 -12
  134. package/src/environment/findBinary.ts +2 -5
  135. package/src/environment/getEnvironment.ts +2 -2
  136. package/src/environment/pathEnvironment.ts +7 -4
  137. package/src/error/types.ts +3 -2
  138. package/src/fs/commandExists.ts +2 -2
  139. package/src/fs/emptyDir.ts +6 -3
  140. package/src/fs/ensureDir.ts +19 -0
  141. package/src/lifecycle/register.ts +97 -0
  142. package/src/path-resolve/findPackageRoot.ts +1 -1
  143. package/src/path-resolve/findUp.ts +105 -55
  144. package/src/tsconfig.json +4 -4
  145. package/lib/cjs/__create_index.generated.cjs +0 -186
  146. package/lib/cjs/__create_index.generated.cjs.map +0 -10
  147. package/lib/cjs/asyncLoad.cjs +0 -55
  148. package/lib/cjs/asyncLoad.cjs.map +0 -10
  149. package/lib/cjs/child_process/error.cjs +0 -45
  150. package/lib/cjs/child_process/error.cjs.map +0 -10
  151. package/lib/cjs/child_process/execa.cjs +0 -96
  152. package/lib/cjs/child_process/execa.cjs.map +0 -10
  153. package/lib/cjs/child_process/lateError.cjs +0 -76
  154. package/lib/cjs/child_process/lateError.cjs.map +0 -10
  155. package/lib/cjs/child_process/respawn.cjs +0 -123
  156. package/lib/cjs/child_process/respawn.cjs.map +0 -10
  157. package/lib/cjs/cli-io/output.cjs +0 -7
  158. package/lib/cjs/cli-io/output.cjs.map +0 -10
  159. package/lib/cjs/crypto/md5.cjs +0 -8
  160. package/lib/cjs/crypto/md5.cjs.map +0 -10
  161. package/lib/cjs/crypto/sha256.cjs +0 -8
  162. package/lib/cjs/crypto/sha256.cjs.map +0 -10
  163. package/lib/cjs/environment/findBinary.cjs +0 -15
  164. package/lib/cjs/environment/findBinary.cjs.map +0 -10
  165. package/lib/cjs/environment/getEnvironment.cjs +0 -55
  166. package/lib/cjs/environment/getEnvironment.cjs.map +0 -10
  167. package/lib/cjs/environment/npmConfig.cjs +0 -24
  168. package/lib/cjs/environment/npmConfig.cjs.map +0 -10
  169. package/lib/cjs/environment/pathEnvironment.cjs +0 -46
  170. package/lib/cjs/environment/pathEnvironment.cjs.map +0 -10
  171. package/lib/cjs/error/linux.cjs +0 -129
  172. package/lib/cjs/error/linux.cjs.map +0 -10
  173. package/lib/cjs/error/nodejs-error-code.generated.cjs +0 -2498
  174. package/lib/cjs/error/nodejs-error-code.generated.cjs.map +0 -10
  175. package/lib/cjs/error/types.cjs +0 -32
  176. package/lib/cjs/error/types.cjs.map +0 -10
  177. package/lib/cjs/events/dumpEventEmitter.cjs +0 -11
  178. package/lib/cjs/events/dumpEventEmitter.cjs.map +0 -10
  179. package/lib/cjs/fs/commandExists.cjs +0 -53
  180. package/lib/cjs/fs/commandExists.cjs.map +0 -10
  181. package/lib/cjs/fs/emptyDir.cjs +0 -30
  182. package/lib/cjs/fs/emptyDir.cjs.map +0 -10
  183. package/lib/cjs/fs/exists.cjs +0 -35
  184. package/lib/cjs/fs/exists.cjs.map +0 -10
  185. package/lib/cjs/fs/tempFolder.cjs +0 -54
  186. package/lib/cjs/fs/tempFolder.cjs.map +0 -10
  187. package/lib/cjs/fs/weiteChanged.cjs +0 -52
  188. package/lib/cjs/fs/weiteChanged.cjs.map +0 -10
  189. package/lib/cjs/log/terminal.cjs +0 -41
  190. package/lib/cjs/path-resolve/findPackageRoot.cjs +0 -23
  191. package/lib/cjs/path-resolve/findPackageRoot.cjs.map +0 -10
  192. package/lib/cjs/path-resolve/findUp.cjs +0 -72
  193. package/lib/cjs/path-resolve/findUp.cjs.map +0 -10
  194. package/lib/cjs/path-resolve/getAllUp.cjs +0 -17
  195. package/lib/cjs/path-resolve/getAllUp.cjs.map +0 -10
  196. package/lib/cjs/path-resolve/lrelative.cjs +0 -23
  197. package/lib/cjs/path-resolve/lrelative.cjs.map +0 -10
  198. package/lib/cjs/path-resolve/nodeResolvePathArray.cjs +0 -13
  199. package/lib/cjs/path-resolve/nodeResolvePathArray.cjs.map +0 -10
  200. package/lib/cjs/path-resolve/resolvePath.cjs +0 -27
  201. package/lib/cjs/path-resolve/resolvePath.cjs.map +0 -10
  202. package/lib/cjs/preload.cjs +0 -3
  203. package/lib/cjs/preload.cjs.map +0 -10
  204. package/lib/cjs/stream/blackHoleStream.cjs +0 -11
  205. package/lib/cjs/stream/blackHoleStream.cjs.map +0 -10
  206. package/lib/cjs/stream/collectingStream.cjs +0 -79
  207. package/lib/cjs/stream/collectingStream.cjs.map +0 -10
  208. package/lib/cjs/stream/disposableStream.cjs +0 -22
  209. package/lib/cjs/stream/disposableStream.cjs.map +0 -10
  210. package/lib/cjs/stream/drainStream.cjs +0 -18
  211. package/lib/cjs/stream/drainStream.cjs.map +0 -10
  212. package/lib/cjs/stream/loggerStream.cjs +0 -59
  213. package/lib/cjs/stream/loggerStream.cjs.map +0 -10
  214. package/lib/cjs/stream/streamPromise.cjs +0 -25
  215. package/lib/cjs/stream/streamPromise.cjs.map +0 -10
  216. package/lib/esm/__create_index.generated.d.ts.map +0 -10
  217. package/lib/esm/__create_index.generated.js.map +0 -10
  218. package/lib/esm/__virtual_tsconfig.tsbuildinfo +0 -1
  219. package/lib/esm/asyncLoad.d.ts.map +0 -10
  220. package/lib/esm/asyncLoad.js.map +0 -10
  221. package/lib/esm/child_process/error.d.ts.map +0 -10
  222. package/lib/esm/child_process/error.js.map +0 -10
  223. package/lib/esm/child_process/execa.d.ts.map +0 -10
  224. package/lib/esm/child_process/execa.js.map +0 -10
  225. package/lib/esm/child_process/lateError.d.ts.map +0 -10
  226. package/lib/esm/child_process/lateError.js.map +0 -10
  227. package/lib/esm/child_process/respawn.d.ts.map +0 -10
  228. package/lib/esm/child_process/respawn.js.map +0 -10
  229. package/lib/esm/cli-io/output.d.ts.map +0 -10
  230. package/lib/esm/cli-io/output.js.map +0 -10
  231. package/lib/esm/crypto/md5.d.ts.map +0 -10
  232. package/lib/esm/crypto/md5.js.map +0 -10
  233. package/lib/esm/crypto/sha256.d.ts.map +0 -10
  234. package/lib/esm/crypto/sha256.js.map +0 -10
  235. package/lib/esm/environment/findBinary.d.ts +0 -2
  236. package/lib/esm/environment/findBinary.d.ts.map +0 -10
  237. package/lib/esm/environment/findBinary.js.map +0 -10
  238. package/lib/esm/environment/getEnvironment.d.ts.map +0 -10
  239. package/lib/esm/environment/getEnvironment.js.map +0 -10
  240. package/lib/esm/environment/npmConfig.d.ts.map +0 -10
  241. package/lib/esm/environment/npmConfig.js.map +0 -10
  242. package/lib/esm/environment/pathEnvironment.d.ts.map +0 -10
  243. package/lib/esm/environment/pathEnvironment.js.map +0 -10
  244. package/lib/esm/error/linux.d.ts.map +0 -10
  245. package/lib/esm/error/linux.js.map +0 -10
  246. package/lib/esm/error/nodejs-error-code.generated.d.ts +0 -2485
  247. package/lib/esm/error/nodejs-error-code.generated.d.ts.map +0 -10
  248. package/lib/esm/error/nodejs-error-code.generated.js +0 -2495
  249. package/lib/esm/error/nodejs-error-code.generated.js.map +0 -10
  250. package/lib/esm/error/types.d.ts.map +0 -10
  251. package/lib/esm/error/types.js.map +0 -10
  252. package/lib/esm/events/dumpEventEmitter.d.ts.map +0 -10
  253. package/lib/esm/events/dumpEventEmitter.js.map +0 -10
  254. package/lib/esm/fs/commandExists.d.ts.map +0 -10
  255. package/lib/esm/fs/commandExists.js.map +0 -10
  256. package/lib/esm/fs/emptyDir.d.ts +0 -7
  257. package/lib/esm/fs/emptyDir.d.ts.map +0 -10
  258. package/lib/esm/fs/emptyDir.js.map +0 -10
  259. package/lib/esm/fs/exists.d.ts.map +0 -10
  260. package/lib/esm/fs/exists.js.map +0 -10
  261. package/lib/esm/fs/tempFolder.d.ts.map +0 -10
  262. package/lib/esm/fs/tempFolder.js.map +0 -10
  263. package/lib/esm/fs/weiteChanged.d.ts.map +0 -10
  264. package/lib/esm/fs/weiteChanged.js.map +0 -10
  265. package/lib/esm/log/terminal.d.ts.map +0 -10
  266. package/lib/esm/log/terminal.js.map +0 -10
  267. package/lib/esm/path-resolve/findPackageRoot.d.ts.map +0 -10
  268. package/lib/esm/path-resolve/findPackageRoot.js.map +0 -10
  269. package/lib/esm/path-resolve/findUp.d.ts.map +0 -10
  270. package/lib/esm/path-resolve/findUp.js +0 -68
  271. package/lib/esm/path-resolve/findUp.js.map +0 -10
  272. package/lib/esm/path-resolve/getAllUp.d.ts.map +0 -10
  273. package/lib/esm/path-resolve/getAllUp.js.map +0 -10
  274. package/lib/esm/path-resolve/lrelative.d.ts.map +0 -10
  275. package/lib/esm/path-resolve/lrelative.js.map +0 -10
  276. package/lib/esm/path-resolve/nodeResolvePathArray.d.ts.map +0 -10
  277. package/lib/esm/path-resolve/nodeResolvePathArray.js.map +0 -10
  278. package/lib/esm/path-resolve/resolvePath.d.ts.map +0 -10
  279. package/lib/esm/path-resolve/resolvePath.js.map +0 -10
  280. package/lib/esm/preload.d.ts.map +0 -10
  281. package/lib/esm/preload.js +0 -2
  282. package/lib/esm/preload.js.map +0 -10
  283. package/lib/esm/stream/blackHoleStream.d.ts.map +0 -10
  284. package/lib/esm/stream/blackHoleStream.js.map +0 -10
  285. package/lib/esm/stream/collectingStream.d.ts.map +0 -10
  286. package/lib/esm/stream/collectingStream.js.map +0 -10
  287. package/lib/esm/stream/disposableStream.d.ts.map +0 -10
  288. package/lib/esm/stream/disposableStream.js.map +0 -10
  289. package/lib/esm/stream/drainStream.d.ts.map +0 -10
  290. package/lib/esm/stream/drainStream.js.map +0 -10
  291. package/lib/esm/stream/loggerStream.d.ts.map +0 -10
  292. package/lib/esm/stream/loggerStream.js.map +0 -10
  293. package/lib/esm/stream/streamPromise.d.ts.map +0 -10
  294. package/lib/esm/stream/streamPromise.js.map +0 -10
  295. package/src/error/cache.generated.json +0 -3971
  296. package/src/error/nodejs-error-code.generated.ts +0 -2495
  297. package/src/error/nodejs-error-code.generator.ts +0 -67
  298. /package/lib/{esm/child_process → child_process}/error.d.ts +0 -0
  299. /package/lib/{esm/child_process → child_process}/lateError.d.ts +0 -0
  300. /package/lib/{esm/cli-io → cli-io}/output.d.ts +0 -0
  301. /package/lib/{esm/crypto → crypto}/md5.d.ts +0 -0
  302. /package/lib/{esm/crypto → crypto}/sha256.d.ts +0 -0
  303. /package/lib/{esm/environment → environment}/getEnvironment.d.ts +0 -0
  304. /package/lib/{esm/environment → environment}/npmConfig.d.ts +0 -0
  305. /package/lib/{esm/error → error}/linux.d.ts +0 -0
  306. /package/lib/{esm/events → events}/dumpEventEmitter.d.ts +0 -0
  307. /package/lib/{esm/fs → fs}/commandExists.d.ts +0 -0
  308. /package/lib/{esm/fs → fs}/exists.d.ts +0 -0
  309. /package/lib/{esm/fs → fs}/tempFolder.d.ts +0 -0
  310. /package/lib/{esm/fs → fs}/weiteChanged.d.ts +0 -0
  311. /package/lib/{esm/log → log}/terminal.d.ts +0 -0
  312. /package/lib/{esm/path-resolve → path-resolve}/findPackageRoot.d.ts +0 -0
  313. /package/lib/{esm/path-resolve → path-resolve}/getAllUp.d.ts +0 -0
  314. /package/lib/{esm/path-resolve → path-resolve}/lrelative.d.ts +0 -0
  315. /package/lib/{esm/path-resolve → path-resolve}/nodeResolvePathArray.d.ts +0 -0
  316. /package/lib/{esm/path-resolve → path-resolve}/resolvePath.d.ts +0 -0
  317. /package/lib/{esm/preload.d.ts → preload.d.ts} +0 -0
  318. /package/lib/{esm/stream → stream}/blackHoleStream.d.ts +0 -0
  319. /package/lib/{esm/stream → stream}/collectingStream.d.ts +0 -0
  320. /package/lib/{esm/stream → stream}/disposableStream.d.ts +0 -0
  321. /package/lib/{esm/stream → stream}/drainStream.d.ts +0 -0
  322. /package/lib/{esm/stream → stream}/loggerStream.d.ts +0 -0
  323. /package/lib/{esm/stream → stream}/streamPromise.d.ts +0 -0
@@ -1,2485 +0,0 @@
1
- export declare enum NodeError {
2
- /**
3
- * <p>Used when an operation has been aborted (typically using an <code>AbortController</code>).</p>
4
- * <p>APIs <em>not</em> using <code>AbortSignal</code>s typically do not raise an error with this code.</p>
5
- * <p>This code does not use the regular <code>ERR_*</code> convention Node.js errors use in
6
- * order to be compatible with the web platform's <code>AbortError</code>.</p>
7
- * <p><a id="ERR_ACCESS_DENIED"></a></p>
8
- */
9
- ABORT_ERR = "ABORT_ERR",
10
- /**
11
- * <p>A special type of error that is triggered whenever Node.js tries to get access
12
- * to a resource restricted by the <a href="permissions.html#permission-model">Permission Model</a>.</p>
13
- * <p><a id="ERR_AMBIGUOUS_ARGUMENT"></a></p>
14
- */
15
- ERR_ACCESS_DENIED = "ERR_ACCESS_DENIED",
16
- /**
17
- * <p>A function argument is being used in a way that suggests that the function
18
- * signature may be misunderstood. This is thrown by the <code>node:assert</code> module when
19
- * the <code>message</code> parameter in <code>assert.throws(block, message)</code> matches the error
20
- * message thrown by <code>block</code> because that usage suggests that the user believes
21
- * <code>message</code> is the expected message rather than the message the <code>AssertionError</code>
22
- * will display if <code>block</code> does not throw.</p>
23
- * <p><a id="ERR_ARG_NOT_ITERABLE"></a></p>
24
- */
25
- ERR_AMBIGUOUS_ARGUMENT = "ERR_AMBIGUOUS_ARGUMENT",
26
- /**
27
- * <p>An iterable argument (i.e. a value that works with <code>for...of</code> loops) was
28
- * required, but not provided to a Node.js API.</p>
29
- * <p><a id="ERR_ASSERTION"></a></p>
30
- */
31
- ERR_ARG_NOT_ITERABLE = "ERR_ARG_NOT_ITERABLE",
32
- /**
33
- * <p>A special type of error that can be triggered whenever Node.js detects an
34
- * exceptional logic violation that should never occur. These are raised typically
35
- * by the <code>node:assert</code> module.</p>
36
- * <p><a id="ERR_ASYNC_CALLBACK"></a></p>
37
- */
38
- ERR_ASSERTION = "ERR_ASSERTION",
39
- /**
40
- * <p>An attempt was made to register something that is not a function as an
41
- * <code>AsyncHooks</code> callback.</p>
42
- * <p><a id="ERR_ASYNC_TYPE"></a></p>
43
- */
44
- ERR_ASYNC_CALLBACK = "ERR_ASYNC_CALLBACK",
45
- /**
46
- * <p>The type of an asynchronous resource was invalid. Users are also able
47
- * to define their own types if using the public embedder API.</p>
48
- * <p><a id="ERR_BROTLI_COMPRESSION_FAILED"></a></p>
49
- */
50
- ERR_ASYNC_TYPE = "ERR_ASYNC_TYPE",
51
- /**
52
- * <p>Data passed to a Brotli stream was not successfully compressed.</p>
53
- * <p><a id="ERR_BROTLI_INVALID_PARAM"></a></p>
54
- */
55
- ERR_BROTLI_COMPRESSION_FAILED = "ERR_BROTLI_COMPRESSION_FAILED",
56
- /**
57
- * <p>An invalid parameter key was passed during construction of a Brotli stream.</p>
58
- * <p><a id="ERR_BUFFER_CONTEXT_NOT_AVAILABLE"></a></p>
59
- */
60
- ERR_BROTLI_INVALID_PARAM = "ERR_BROTLI_INVALID_PARAM",
61
- /**
62
- * <p>An attempt was made to create a Node.js <code>Buffer</code> instance from addon or embedder
63
- * code, while in a JS engine Context that is not associated with a Node.js
64
- * instance. The data passed to the <code>Buffer</code> method will have been released
65
- * by the time the method returns.</p>
66
- * <p>When encountering this error, a possible alternative to creating a <code>Buffer</code>
67
- * instance is to create a normal <code>Uint8Array</code>, which only differs in the
68
- * prototype of the resulting object. <code>Uint8Array</code>s are generally accepted in all
69
- * Node.js core APIs where <code>Buffer</code>s are; they are available in all Contexts.</p>
70
- * <p><a id="ERR_BUFFER_OUT_OF_BOUNDS"></a></p>
71
- */
72
- ERR_BUFFER_CONTEXT_NOT_AVAILABLE = "ERR_BUFFER_CONTEXT_NOT_AVAILABLE",
73
- /**
74
- * <p>An operation outside the bounds of a <code>Buffer</code> was attempted.</p>
75
- * <p><a id="ERR_BUFFER_TOO_LARGE"></a></p>
76
- */
77
- ERR_BUFFER_OUT_OF_BOUNDS = "ERR_BUFFER_OUT_OF_BOUNDS",
78
- /**
79
- * <p>An attempt has been made to create a <code>Buffer</code> larger than the maximum allowed
80
- * size.</p>
81
- * <p><a id="ERR_CANNOT_WATCH_SIGINT"></a></p>
82
- */
83
- ERR_BUFFER_TOO_LARGE = "ERR_BUFFER_TOO_LARGE",
84
- /**
85
- * <p>Node.js was unable to watch for the <code>SIGINT</code> signal.</p>
86
- * <p><a id="ERR_CHILD_CLOSED_BEFORE_REPLY"></a></p>
87
- */
88
- ERR_CANNOT_WATCH_SIGINT = "ERR_CANNOT_WATCH_SIGINT",
89
- /**
90
- * <p>A child process was closed before the parent received a reply.</p>
91
- * <p><a id="ERR_CHILD_PROCESS_IPC_REQUIRED"></a></p>
92
- */
93
- ERR_CHILD_CLOSED_BEFORE_REPLY = "ERR_CHILD_CLOSED_BEFORE_REPLY",
94
- /**
95
- * <p>Used when a child process is being forked without specifying an IPC channel.</p>
96
- * <p><a id="ERR_CHILD_PROCESS_STDIO_MAXBUFFER"></a></p>
97
- */
98
- ERR_CHILD_PROCESS_IPC_REQUIRED = "ERR_CHILD_PROCESS_IPC_REQUIRED",
99
- /**
100
- * <p>Used when the main process is trying to read data from the child process's
101
- * STDERR/STDOUT, and the data's length is longer than the <code>maxBuffer</code> option.</p>
102
- * <p><a id="ERR_CLOSED_MESSAGE_PORT"></a></p>
103
- */
104
- ERR_CHILD_PROCESS_STDIO_MAXBUFFER = "ERR_CHILD_PROCESS_STDIO_MAXBUFFER",
105
- /**
106
- * <p>There was an attempt to use a <code>MessagePort</code> instance in a closed
107
- * state, usually after <code>.close()</code> has been called.</p>
108
- * <p><a id="ERR_CONSOLE_WRITABLE_STREAM"></a></p>
109
- */
110
- ERR_CLOSED_MESSAGE_PORT = "ERR_CLOSED_MESSAGE_PORT",
111
- /**
112
- * <p><code>Console</code> was instantiated without <code>stdout</code> stream, or <code>Console</code> has a
113
- * non-writable <code>stdout</code> or <code>stderr</code> stream.</p>
114
- * <p><a id="ERR_CONSTRUCT_CALL_INVALID"></a></p>
115
- */
116
- ERR_CONSOLE_WRITABLE_STREAM = "ERR_CONSOLE_WRITABLE_STREAM",
117
- /**
118
- * <p>A class constructor was called that is not callable.</p>
119
- * <p><a id="ERR_CONSTRUCT_CALL_REQUIRED"></a></p>
120
- */
121
- ERR_CONSTRUCT_CALL_INVALID = "ERR_CONSTRUCT_CALL_INVALID",
122
- /**
123
- * <p>A constructor for a class was called without <code>new</code>.</p>
124
- * <p><a id="ERR_CONTEXT_NOT_INITIALIZED"></a></p>
125
- */
126
- ERR_CONSTRUCT_CALL_REQUIRED = "ERR_CONSTRUCT_CALL_REQUIRED",
127
- /**
128
- * <p>The vm context passed into the API is not yet initialized. This could happen
129
- * when an error occurs (and is caught) during the creation of the
130
- * context, for example, when the allocation fails or the maximum call stack
131
- * size is reached when the context is created.</p>
132
- * <p><a id="ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED"></a></p>
133
- */
134
- ERR_CONTEXT_NOT_INITIALIZED = "ERR_CONTEXT_NOT_INITIALIZED",
135
- /**
136
- * <p>An OpenSSL engine was requested (for example, through the <code>clientCertEngine</code> or
137
- * <code>privateKeyEngine</code> TLS options) that is not supported by the version of OpenSSL
138
- * being used, likely due to the compile-time flag <code>OPENSSL_NO_ENGINE</code>.</p>
139
- * <p><a id="ERR_CRYPTO_ECDH_INVALID_FORMAT"></a></p>
140
- */
141
- ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED = "ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED",
142
- /**
143
- * <p>An invalid value for the <code>format</code> argument was passed to the <code>crypto.ECDH()</code>
144
- * class <code>getPublicKey()</code> method.</p>
145
- * <p><a id="ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY"></a></p>
146
- */
147
- ERR_CRYPTO_ECDH_INVALID_FORMAT = "ERR_CRYPTO_ECDH_INVALID_FORMAT",
148
- /**
149
- * <p>An invalid value for the <code>key</code> argument has been passed to the
150
- * <code>crypto.ECDH()</code> class <code>computeSecret()</code> method. It means that the public
151
- * key lies outside of the elliptic curve.</p>
152
- * <p><a id="ERR_CRYPTO_ENGINE_UNKNOWN"></a></p>
153
- */
154
- ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY = "ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY",
155
- /**
156
- * <p>An invalid crypto engine identifier was passed to
157
- * <a href="crypto.html#cryptosetengineengine-flags"><code>require('node:crypto').setEngine()</code></a>.</p>
158
- * <p><a id="ERR_CRYPTO_FIPS_FORCED"></a></p>
159
- */
160
- ERR_CRYPTO_ENGINE_UNKNOWN = "ERR_CRYPTO_ENGINE_UNKNOWN",
161
- /**
162
- * <p>The <a href="cli.html#--force-fips"><code>--force-fips</code></a> command-line argument was used but there was an attempt
163
- * to enable or disable FIPS mode in the <code>node:crypto</code> module.</p>
164
- * <p><a id="ERR_CRYPTO_FIPS_UNAVAILABLE"></a></p>
165
- */
166
- ERR_CRYPTO_FIPS_FORCED = "ERR_CRYPTO_FIPS_FORCED",
167
- /**
168
- * <p>An attempt was made to enable or disable FIPS mode, but FIPS mode was not
169
- * available.</p>
170
- * <p><a id="ERR_CRYPTO_HASH_FINALIZED"></a></p>
171
- */
172
- ERR_CRYPTO_FIPS_UNAVAILABLE = "ERR_CRYPTO_FIPS_UNAVAILABLE",
173
- /**
174
- * <p><a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a> was called multiple times. The <code>hash.digest()</code> method must
175
- * be called no more than one time per instance of a <code>Hash</code> object.</p>
176
- * <p><a id="ERR_CRYPTO_HASH_UPDATE_FAILED"></a></p>
177
- */
178
- ERR_CRYPTO_HASH_FINALIZED = "ERR_CRYPTO_HASH_FINALIZED",
179
- /**
180
- * <p><a href="crypto.html#hashupdatedata-inputencoding"><code>hash.update()</code></a> failed for any reason. This should rarely, if ever, happen.</p>
181
- * <p><a id="ERR_CRYPTO_INCOMPATIBLE_KEY"></a></p>
182
- */
183
- ERR_CRYPTO_HASH_UPDATE_FAILED = "ERR_CRYPTO_HASH_UPDATE_FAILED",
184
- /**
185
- * <p>The given crypto keys are incompatible with the attempted operation.</p>
186
- * <p><a id="ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS"></a></p>
187
- */
188
- ERR_CRYPTO_INCOMPATIBLE_KEY = "ERR_CRYPTO_INCOMPATIBLE_KEY",
189
- /**
190
- * <p>The selected public or private key encoding is incompatible with other options.</p>
191
- * <p><a id="ERR_CRYPTO_INITIALIZATION_FAILED"></a></p>
192
- */
193
- ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS = "ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS",
194
- /**
195
- * <p>Initialization of the crypto subsystem failed.</p>
196
- * <p><a id="ERR_CRYPTO_INVALID_AUTH_TAG"></a></p>
197
- */
198
- ERR_CRYPTO_INITIALIZATION_FAILED = "ERR_CRYPTO_INITIALIZATION_FAILED",
199
- /**
200
- * <p>An invalid authentication tag was provided.</p>
201
- * <p><a id="ERR_CRYPTO_INVALID_COUNTER"></a></p>
202
- */
203
- ERR_CRYPTO_INVALID_AUTH_TAG = "ERR_CRYPTO_INVALID_AUTH_TAG",
204
- /**
205
- * <p>An invalid counter was provided for a counter-mode cipher.</p>
206
- * <p><a id="ERR_CRYPTO_INVALID_CURVE"></a></p>
207
- */
208
- ERR_CRYPTO_INVALID_COUNTER = "ERR_CRYPTO_INVALID_COUNTER",
209
- /**
210
- * <p>An invalid elliptic-curve was provided.</p>
211
- * <p><a id="ERR_CRYPTO_INVALID_DIGEST"></a></p>
212
- */
213
- ERR_CRYPTO_INVALID_CURVE = "ERR_CRYPTO_INVALID_CURVE",
214
- /**
215
- * <p>An invalid <a href="crypto.html#cryptogethashes">crypto digest algorithm</a> was specified.</p>
216
- * <p><a id="ERR_CRYPTO_INVALID_IV"></a></p>
217
- */
218
- ERR_CRYPTO_INVALID_DIGEST = "ERR_CRYPTO_INVALID_DIGEST",
219
- /**
220
- * <p>An invalid initialization vector was provided.</p>
221
- * <p><a id="ERR_CRYPTO_INVALID_JWK"></a></p>
222
- */
223
- ERR_CRYPTO_INVALID_IV = "ERR_CRYPTO_INVALID_IV",
224
- /**
225
- * <p>An invalid JSON Web Key was provided.</p>
226
- * <p><a id="ERR_CRYPTO_INVALID_KEYLEN"></a></p>
227
- */
228
- ERR_CRYPTO_INVALID_JWK = "ERR_CRYPTO_INVALID_JWK",
229
- /**
230
- * <p>An invalid key length was provided.</p>
231
- * <p><a id="ERR_CRYPTO_INVALID_KEYPAIR"></a></p>
232
- */
233
- ERR_CRYPTO_INVALID_KEYLEN = "ERR_CRYPTO_INVALID_KEYLEN",
234
- /**
235
- * <p>An invalid key pair was provided.</p>
236
- * <p><a id="ERR_CRYPTO_INVALID_KEYTYPE"></a></p>
237
- */
238
- ERR_CRYPTO_INVALID_KEYPAIR = "ERR_CRYPTO_INVALID_KEYPAIR",
239
- /**
240
- * <p>An invalid key type was provided.</p>
241
- * <p><a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a></p>
242
- */
243
- ERR_CRYPTO_INVALID_KEYTYPE = "ERR_CRYPTO_INVALID_KEYTYPE",
244
- /**
245
- * <p>The given crypto key object's type is invalid for the attempted operation.</p>
246
- * <p><a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a></p>
247
- */
248
- ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE = "ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE",
249
- /**
250
- * <p>An invalid message length was provided.</p>
251
- * <p><a id="ERR_CRYPTO_INVALID_SCRYPT_PARAMS"></a></p>
252
- */
253
- ERR_CRYPTO_INVALID_MESSAGELEN = "ERR_CRYPTO_INVALID_MESSAGELEN",
254
- /**
255
- * <p>One or more <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a> parameters are
256
- * outside their legal range.</p>
257
- * <p><a id="ERR_CRYPTO_INVALID_STATE"></a></p>
258
- */
259
- ERR_CRYPTO_INVALID_SCRYPT_PARAMS = "ERR_CRYPTO_INVALID_SCRYPT_PARAMS",
260
- /**
261
- * <p>A crypto method was used on an object that was in an invalid state. For
262
- * instance, calling <a href="crypto.html#ciphergetauthtag"><code>cipher.getAuthTag()</code></a> before calling <code>cipher.final()</code>.</p>
263
- * <p><a id="ERR_CRYPTO_INVALID_TAG_LENGTH"></a></p>
264
- */
265
- ERR_CRYPTO_INVALID_STATE = "ERR_CRYPTO_INVALID_STATE",
266
- /**
267
- * <p>An invalid authentication tag length was provided.</p>
268
- * <p><a id="ERR_CRYPTO_JOB_INIT_FAILED"></a></p>
269
- */
270
- ERR_CRYPTO_INVALID_TAG_LENGTH = "ERR_CRYPTO_INVALID_TAG_LENGTH",
271
- /**
272
- * <p>Initialization of an asynchronous crypto operation failed.</p>
273
- * <p><a id="ERR_CRYPTO_JWK_UNSUPPORTED_CURVE"></a></p>
274
- */
275
- ERR_CRYPTO_JOB_INIT_FAILED = "ERR_CRYPTO_JOB_INIT_FAILED",
276
- /**
277
- * <p>Key's Elliptic Curve is not registered for use in the
278
- * <a href="https://www.iana.org/assignments/jose/jose.xhtml#web-key-elliptic-curve">JSON Web Key Elliptic Curve Registry</a>.</p>
279
- * <p><a id="ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE"></a></p>
280
- */
281
- ERR_CRYPTO_JWK_UNSUPPORTED_CURVE = "ERR_CRYPTO_JWK_UNSUPPORTED_CURVE",
282
- /**
283
- * <p>Key's Asymmetric Key Type is not registered for use in the
284
- * <a href="https://www.iana.org/assignments/jose/jose.xhtml#web-key-types">JSON Web Key Types Registry</a>.</p>
285
- * <p><a id="ERR_CRYPTO_OPERATION_FAILED"></a></p>
286
- */
287
- ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE = "ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE",
288
- /**
289
- * <p>A crypto operation failed for an otherwise unspecified reason.</p>
290
- * <p><a id="ERR_CRYPTO_PBKDF2_ERROR"></a></p>
291
- */
292
- ERR_CRYPTO_OPERATION_FAILED = "ERR_CRYPTO_OPERATION_FAILED",
293
- /**
294
- * <p>The PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide
295
- * more details and therefore neither does Node.js.</p>
296
- * <p><a id="ERR_CRYPTO_SCRYPT_NOT_SUPPORTED"></a></p>
297
- */
298
- ERR_CRYPTO_PBKDF2_ERROR = "ERR_CRYPTO_PBKDF2_ERROR",
299
- /**
300
- * <p>Node.js was compiled without <code>scrypt</code> support. Not possible with the official
301
- * release binaries but can happen with custom builds, including distro builds.</p>
302
- * <p><a id="ERR_CRYPTO_SIGN_KEY_REQUIRED"></a></p>
303
- */
304
- ERR_CRYPTO_SCRYPT_NOT_SUPPORTED = "ERR_CRYPTO_SCRYPT_NOT_SUPPORTED",
305
- /**
306
- * <p>A signing <code>key</code> was not provided to the <a href="crypto.html#signsignprivatekey-outputencoding"><code>sign.sign()</code></a> method.</p>
307
- * <p><a id="ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH"></a></p>
308
- */
309
- ERR_CRYPTO_SIGN_KEY_REQUIRED = "ERR_CRYPTO_SIGN_KEY_REQUIRED",
310
- /**
311
- * <p><a href="crypto.html#cryptotimingsafeequala-b"><code>crypto.timingSafeEqual()</code></a> was called with <code>Buffer</code>, <code>TypedArray</code>, or
312
- * <code>DataView</code> arguments of different lengths.</p>
313
- * <p><a id="ERR_CRYPTO_UNKNOWN_CIPHER"></a></p>
314
- */
315
- ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH = "ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH",
316
- /**
317
- * <p>An unknown cipher was specified.</p>
318
- * <p><a id="ERR_CRYPTO_UNKNOWN_DH_GROUP"></a></p>
319
- */
320
- ERR_CRYPTO_UNKNOWN_CIPHER = "ERR_CRYPTO_UNKNOWN_CIPHER",
321
- /**
322
- * <p>An unknown Diffie-Hellman group name was given. See
323
- * <a href="crypto.html#cryptogetdiffiehellmangroupname"><code>crypto.getDiffieHellman()</code></a> for a list of valid group names.</p>
324
- * <p><a id="ERR_CRYPTO_UNSUPPORTED_OPERATION"></a></p>
325
- */
326
- ERR_CRYPTO_UNKNOWN_DH_GROUP = "ERR_CRYPTO_UNKNOWN_DH_GROUP",
327
- /**
328
- * <p>An attempt to invoke an unsupported crypto operation was made.</p>
329
- * <p><a id="ERR_DEBUGGER_ERROR"></a></p>
330
- */
331
- ERR_CRYPTO_UNSUPPORTED_OPERATION = "ERR_CRYPTO_UNSUPPORTED_OPERATION",
332
- /**
333
- * <p>An error occurred with the <a href="debugger.html">debugger</a>.</p>
334
- * <p><a id="ERR_DEBUGGER_STARTUP_ERROR"></a></p>
335
- */
336
- ERR_DEBUGGER_ERROR = "ERR_DEBUGGER_ERROR",
337
- /**
338
- * <p>The <a href="debugger.html">debugger</a> timed out waiting for the required host/port to be free.</p>
339
- * <p><a id="ERR_DIR_CLOSED"></a></p>
340
- */
341
- ERR_DEBUGGER_STARTUP_ERROR = "ERR_DEBUGGER_STARTUP_ERROR",
342
- /**
343
- * <p>The <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> was previously closed.</p>
344
- * <p><a id="ERR_DIR_CONCURRENT_OPERATION"></a></p>
345
- */
346
- ERR_DIR_CLOSED = "ERR_DIR_CLOSED",
347
- /**
348
- * <p>A synchronous read or close call was attempted on an <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> which has
349
- * ongoing asynchronous operations.</p>
350
- * <p><a id="ERR_DLOPEN_DISABLED"></a></p>
351
- */
352
- ERR_DIR_CONCURRENT_OPERATION = "ERR_DIR_CONCURRENT_OPERATION",
353
- /**
354
- * <p>Loading native addons has been disabled using <a href="cli.html#--no-addons"><code>--no-addons</code></a>.</p>
355
- * <p><a id="ERR_DLOPEN_FAILED"></a></p>
356
- */
357
- ERR_DLOPEN_DISABLED = "ERR_DLOPEN_DISABLED",
358
- /**
359
- * <p>A call to <code>process.dlopen()</code> failed.</p>
360
- * <p><a id="ERR_DNS_SET_SERVERS_FAILED"></a></p>
361
- */
362
- ERR_DLOPEN_FAILED = "ERR_DLOPEN_FAILED",
363
- /**
364
- * <p><code>c-ares</code> failed to set the DNS server.</p>
365
- * <p><a id="ERR_DOMAIN_CALLBACK_NOT_AVAILABLE"></a></p>
366
- */
367
- ERR_DNS_SET_SERVERS_FAILED = "ERR_DNS_SET_SERVERS_FAILED",
368
- /**
369
- * <p>The <code>node:domain</code> module was not usable since it could not establish the
370
- * required error handling hooks, because
371
- * <a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> had been called at an
372
- * earlier point in time.</p>
373
- * <p><a id="ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE"></a></p>
374
- */
375
- ERR_DOMAIN_CALLBACK_NOT_AVAILABLE = "ERR_DOMAIN_CALLBACK_NOT_AVAILABLE",
376
- /**
377
- * <p><a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> could not be called
378
- * because the <code>node:domain</code> module has been loaded at an earlier point in time.</p>
379
- * <p>The stack trace is extended to include the point in time at which the
380
- * <code>node:domain</code> module had been loaded.</p>
381
- * <p><a id="ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION"></a></p>
382
- */
383
- ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE = "ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE",
384
- /**
385
- * <p><a href="v8.html#v8startupsnapshotsetdeserializemainfunctioncallback-data"><code>v8.startupSnapshot.setDeserializeMainFunction()</code></a> could not be called
386
- * because it had already been called before.</p>
387
- * <p><a id="ERR_ENCODING_INVALID_ENCODED_DATA"></a></p>
388
- */
389
- ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION = "ERR_DUPLICATE_STARTUP_SNAPSHOT_MAIN_FUNCTION",
390
- /**
391
- * <p>Data provided to <code>TextDecoder()</code> API was invalid according to the encoding
392
- * provided.</p>
393
- * <p><a id="ERR_ENCODING_NOT_SUPPORTED"></a></p>
394
- */
395
- ERR_ENCODING_INVALID_ENCODED_DATA = "ERR_ENCODING_INVALID_ENCODED_DATA",
396
- /**
397
- * <p>Encoding provided to <code>TextDecoder()</code> API was not one of the
398
- * <a href="util.html#whatwg-supported-encodings">WHATWG Supported Encodings</a>.</p>
399
- * <p><a id="ERR_EVAL_ESM_CANNOT_PRINT"></a></p>
400
- */
401
- ERR_ENCODING_NOT_SUPPORTED = "ERR_ENCODING_NOT_SUPPORTED",
402
- /**
403
- * <p><code>--print</code> cannot be used with ESM input.</p>
404
- * <p><a id="ERR_EVENT_RECURSION"></a></p>
405
- */
406
- ERR_EVAL_ESM_CANNOT_PRINT = "ERR_EVAL_ESM_CANNOT_PRINT",
407
- /**
408
- * <p>Thrown when an attempt is made to recursively dispatch an event on <code>EventTarget</code>.</p>
409
- * <p><a id="ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE"></a></p>
410
- */
411
- ERR_EVENT_RECURSION = "ERR_EVENT_RECURSION",
412
- /**
413
- * <p>The JS execution context is not associated with a Node.js environment.
414
- * This may occur when Node.js is used as an embedded library and some hooks
415
- * for the JS engine are not set up properly.</p>
416
- * <p><a id="ERR_FALSY_VALUE_REJECTION"></a></p>
417
- */
418
- ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE = "ERR_EXECUTION_ENVIRONMENT_NOT_AVAILABLE",
419
- /**
420
- * <p>A <code>Promise</code> that was callbackified via <code>util.callbackify()</code> was rejected with a
421
- * falsy value.</p>
422
- * <p><a id="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM"></a></p>
423
- */
424
- ERR_FALSY_VALUE_REJECTION = "ERR_FALSY_VALUE_REJECTION",
425
- /**
426
- * <p>Used when a feature that is not available
427
- * to the current platform which is running Node.js is used.</p>
428
- * <p><a id="ERR_FS_CP_DIR_TO_NON_DIR"></a></p>
429
- */
430
- ERR_FEATURE_UNAVAILABLE_ON_PLATFORM = "ERR_FEATURE_UNAVAILABLE_ON_PLATFORM",
431
- /**
432
- * <p>An attempt was made to copy a directory to a non-directory (file, symlink,
433
- * etc.) using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
434
- * <p><a id="ERR_FS_CP_EEXIST"></a></p>
435
- */
436
- ERR_FS_CP_DIR_TO_NON_DIR = "ERR_FS_CP_DIR_TO_NON_DIR",
437
- /**
438
- * <p>An attempt was made to copy over a file that already existed with
439
- * <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, with the <code>force</code> and <code>errorOnExist</code> set to <code>true</code>.</p>
440
- * <p><a id="ERR_FS_CP_EINVAL"></a></p>
441
- */
442
- ERR_FS_CP_EEXIST = "ERR_FS_CP_EEXIST",
443
- /**
444
- * <p>When using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, <code>src</code> or <code>dest</code> pointed to an invalid path.</p>
445
- * <p><a id="ERR_FS_CP_FIFO_PIPE"></a></p>
446
- */
447
- ERR_FS_CP_EINVAL = "ERR_FS_CP_EINVAL",
448
- /**
449
- * <p>An attempt was made to copy a named pipe with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
450
- * <p><a id="ERR_FS_CP_NON_DIR_TO_DIR"></a></p>
451
- */
452
- ERR_FS_CP_FIFO_PIPE = "ERR_FS_CP_FIFO_PIPE",
453
- /**
454
- * <p>An attempt was made to copy a non-directory (file, symlink, etc.) to a directory
455
- * using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
456
- * <p><a id="ERR_FS_CP_SOCKET"></a></p>
457
- */
458
- ERR_FS_CP_NON_DIR_TO_DIR = "ERR_FS_CP_NON_DIR_TO_DIR",
459
- /**
460
- * <p>An attempt was made to copy to a socket with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
461
- * <p><a id="ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY"></a></p>
462
- */
463
- ERR_FS_CP_SOCKET = "ERR_FS_CP_SOCKET",
464
- /**
465
- * <p>When using <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>, a symlink in <code>dest</code> pointed to a subdirectory
466
- * of <code>src</code>.</p>
467
- * <p><a id="ERR_FS_CP_UNKNOWN"></a></p>
468
- */
469
- ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY = "ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY",
470
- /**
471
- * <p>An attempt was made to copy to an unknown file type with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
472
- * <p><a id="ERR_FS_EISDIR"></a></p>
473
- */
474
- ERR_FS_CP_UNKNOWN = "ERR_FS_CP_UNKNOWN",
475
- /**
476
- * <p>Path is a directory.</p>
477
- * <p><a id="ERR_FS_FILE_TOO_LARGE"></a></p>
478
- */
479
- ERR_FS_EISDIR = "ERR_FS_EISDIR",
480
- /**
481
- * <p>An attempt has been made to read a file whose size is larger than the maximum
482
- * allowed size for a <code>Buffer</code>.</p>
483
- * <p><a id="ERR_HTTP2_ALTSVC_INVALID_ORIGIN"></a></p>
484
- */
485
- ERR_FS_FILE_TOO_LARGE = "ERR_FS_FILE_TOO_LARGE",
486
- /**
487
- * <p>HTTP/2 ALTSVC frames require a valid origin.</p>
488
- * <p><a id="ERR_HTTP2_ALTSVC_LENGTH"></a></p>
489
- */
490
- ERR_HTTP2_ALTSVC_INVALID_ORIGIN = "ERR_HTTP2_ALTSVC_INVALID_ORIGIN",
491
- /**
492
- * <p>HTTP/2 ALTSVC frames are limited to a maximum of 16,382 payload bytes.</p>
493
- * <p><a id="ERR_HTTP2_CONNECT_AUTHORITY"></a></p>
494
- */
495
- ERR_HTTP2_ALTSVC_LENGTH = "ERR_HTTP2_ALTSVC_LENGTH",
496
- /**
497
- * <p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:authority</code> pseudo-header
498
- * is required.</p>
499
- * <p><a id="ERR_HTTP2_CONNECT_PATH"></a></p>
500
- */
501
- ERR_HTTP2_CONNECT_AUTHORITY = "ERR_HTTP2_CONNECT_AUTHORITY",
502
- /**
503
- * <p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:path</code> pseudo-header is
504
- * forbidden.</p>
505
- * <p><a id="ERR_HTTP2_CONNECT_SCHEME"></a></p>
506
- */
507
- ERR_HTTP2_CONNECT_PATH = "ERR_HTTP2_CONNECT_PATH",
508
- /**
509
- * <p>For HTTP/2 requests using the <code>CONNECT</code> method, the <code>:scheme</code> pseudo-header is
510
- * forbidden.</p>
511
- * <p><a id="ERR_HTTP2_ERROR"></a></p>
512
- */
513
- ERR_HTTP2_CONNECT_SCHEME = "ERR_HTTP2_CONNECT_SCHEME",
514
- /**
515
- * <p>A non-specific HTTP/2 error has occurred.</p>
516
- * <p><a id="ERR_HTTP2_GOAWAY_SESSION"></a></p>
517
- */
518
- ERR_HTTP2_ERROR = "ERR_HTTP2_ERROR",
519
- /**
520
- * <p>New HTTP/2 Streams may not be opened after the <code>Http2Session</code> has received a
521
- * <code>GOAWAY</code> frame from the connected peer.</p>
522
- * <p><a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a></p>
523
- */
524
- ERR_HTTP2_GOAWAY_SESSION = "ERR_HTTP2_GOAWAY_SESSION",
525
- /**
526
- * <p>An additional headers was specified after an HTTP/2 response was initiated.</p>
527
- * <p><a id="ERR_HTTP2_HEADERS_SENT"></a></p>
528
- */
529
- ERR_HTTP2_HEADERS_AFTER_RESPOND = "ERR_HTTP2_HEADERS_AFTER_RESPOND",
530
- /**
531
- * <p>An attempt was made to send multiple response headers.</p>
532
- * <p><a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a></p>
533
- */
534
- ERR_HTTP2_HEADERS_SENT = "ERR_HTTP2_HEADERS_SENT",
535
- /**
536
- * <p>Multiple values were provided for an HTTP/2 header field that was required to
537
- * have only a single value.</p>
538
- * <p><a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a></p>
539
- */
540
- ERR_HTTP2_HEADER_SINGLE_VALUE = "ERR_HTTP2_HEADER_SINGLE_VALUE",
541
- /**
542
- * <p>Informational HTTP status codes (<code>1xx</code>) may not be set as the response status
543
- * code on HTTP/2 responses.</p>
544
- * <p><a id="ERR_HTTP2_INVALID_CONNECTION_HEADERS"></a></p>
545
- */
546
- ERR_HTTP2_INFO_STATUS_NOT_ALLOWED = "ERR_HTTP2_INFO_STATUS_NOT_ALLOWED",
547
- /**
548
- * <p>HTTP/1 connection specific headers are forbidden to be used in HTTP/2
549
- * requests and responses.</p>
550
- * <p><a id="ERR_HTTP2_INVALID_HEADER_VALUE"></a></p>
551
- */
552
- ERR_HTTP2_INVALID_CONNECTION_HEADERS = "ERR_HTTP2_INVALID_CONNECTION_HEADERS",
553
- /**
554
- * <p>An invalid HTTP/2 header value was specified.</p>
555
- * <p><a id="ERR_HTTP2_INVALID_INFO_STATUS"></a></p>
556
- */
557
- ERR_HTTP2_INVALID_HEADER_VALUE = "ERR_HTTP2_INVALID_HEADER_VALUE",
558
- /**
559
- * <p>An invalid HTTP informational status code has been specified. Informational
560
- * status codes must be an integer between <code>100</code> and <code>199</code> (inclusive).</p>
561
- * <p><a id="ERR_HTTP2_INVALID_ORIGIN"></a></p>
562
- */
563
- ERR_HTTP2_INVALID_INFO_STATUS = "ERR_HTTP2_INVALID_INFO_STATUS",
564
- /**
565
- * <p>HTTP/2 <code>ORIGIN</code> frames require a valid origin.</p>
566
- * <p><a id="ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH"></a></p>
567
- */
568
- ERR_HTTP2_INVALID_ORIGIN = "ERR_HTTP2_INVALID_ORIGIN",
569
- /**
570
- * <p>Input <code>Buffer</code> and <code>Uint8Array</code> instances passed to the
571
- * <code>http2.getUnpackedSettings()</code> API must have a length that is a multiple of
572
- * six.</p>
573
- * <p><a id="ERR_HTTP2_INVALID_PSEUDOHEADER"></a></p>
574
- */
575
- ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH = "ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH",
576
- /**
577
- * <p>Only valid HTTP/2 pseudoheaders (<code>:status</code>, <code>:path</code>, <code>:authority</code>, <code>:scheme</code>,
578
- * and <code>:method</code>) may be used.</p>
579
- * <p><a id="ERR_HTTP2_INVALID_SESSION"></a></p>
580
- */
581
- ERR_HTTP2_INVALID_PSEUDOHEADER = "ERR_HTTP2_INVALID_PSEUDOHEADER",
582
- /**
583
- * <p>An action was performed on an <code>Http2Session</code> object that had already been
584
- * destroyed.</p>
585
- * <p><a id="ERR_HTTP2_INVALID_SETTING_VALUE"></a></p>
586
- */
587
- ERR_HTTP2_INVALID_SESSION = "ERR_HTTP2_INVALID_SESSION",
588
- /**
589
- * <p>An invalid value has been specified for an HTTP/2 setting.</p>
590
- * <p><a id="ERR_HTTP2_INVALID_STREAM"></a></p>
591
- */
592
- ERR_HTTP2_INVALID_SETTING_VALUE = "ERR_HTTP2_INVALID_SETTING_VALUE",
593
- /**
594
- * <p>An operation was performed on a stream that had already been destroyed.</p>
595
- * <p><a id="ERR_HTTP2_MAX_PENDING_SETTINGS_ACK"></a></p>
596
- */
597
- ERR_HTTP2_INVALID_STREAM = "ERR_HTTP2_INVALID_STREAM",
598
- /**
599
- * <p>Whenever an HTTP/2 <code>SETTINGS</code> frame is sent to a connected peer, the peer is
600
- * required to send an acknowledgment that it has received and applied the new
601
- * <code>SETTINGS</code>. By default, a maximum number of unacknowledged <code>SETTINGS</code> frames may
602
- * be sent at any given time. This error code is used when that limit has been
603
- * reached.</p>
604
- * <p><a id="ERR_HTTP2_NESTED_PUSH"></a></p>
605
- */
606
- ERR_HTTP2_MAX_PENDING_SETTINGS_ACK = "ERR_HTTP2_MAX_PENDING_SETTINGS_ACK",
607
- /**
608
- * <p>An attempt was made to initiate a new push stream from within a push stream.
609
- * Nested push streams are not permitted.</p>
610
- * <p><a id="ERR_HTTP2_NO_MEM"></a></p>
611
- */
612
- ERR_HTTP2_NESTED_PUSH = "ERR_HTTP2_NESTED_PUSH",
613
- /**
614
- * <p>Out of memory when using the <code>http2session.setLocalWindowSize(windowSize)</code> API.</p>
615
- * <p><a id="ERR_HTTP2_NO_SOCKET_MANIPULATION"></a></p>
616
- */
617
- ERR_HTTP2_NO_MEM = "ERR_HTTP2_NO_MEM",
618
- /**
619
- * <p>An attempt was made to directly manipulate (read, write, pause, resume, etc.) a
620
- * socket attached to an <code>Http2Session</code>.</p>
621
- * <p><a id="ERR_HTTP2_ORIGIN_LENGTH"></a></p>
622
- */
623
- ERR_HTTP2_NO_SOCKET_MANIPULATION = "ERR_HTTP2_NO_SOCKET_MANIPULATION",
624
- /**
625
- * <p>HTTP/2 <code>ORIGIN</code> frames are limited to a length of 16382 bytes.</p>
626
- * <p><a id="ERR_HTTP2_OUT_OF_STREAMS"></a></p>
627
- */
628
- ERR_HTTP2_ORIGIN_LENGTH = "ERR_HTTP2_ORIGIN_LENGTH",
629
- /**
630
- * <p>The number of streams created on a single HTTP/2 session reached the maximum
631
- * limit.</p>
632
- * <p><a id="ERR_HTTP2_PAYLOAD_FORBIDDEN"></a></p>
633
- */
634
- ERR_HTTP2_OUT_OF_STREAMS = "ERR_HTTP2_OUT_OF_STREAMS",
635
- /**
636
- * <p>A message payload was specified for an HTTP response code for which a payload is
637
- * forbidden.</p>
638
- * <p><a id="ERR_HTTP2_PING_CANCEL"></a></p>
639
- */
640
- ERR_HTTP2_PAYLOAD_FORBIDDEN = "ERR_HTTP2_PAYLOAD_FORBIDDEN",
641
- /**
642
- * <p>An HTTP/2 ping was canceled.</p>
643
- * <p><a id="ERR_HTTP2_PING_LENGTH"></a></p>
644
- */
645
- ERR_HTTP2_PING_CANCEL = "ERR_HTTP2_PING_CANCEL",
646
- /**
647
- * <p>HTTP/2 ping payloads must be exactly 8 bytes in length.</p>
648
- * <p><a id="ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED"></a></p>
649
- */
650
- ERR_HTTP2_PING_LENGTH = "ERR_HTTP2_PING_LENGTH",
651
- /**
652
- * <p>An HTTP/2 pseudo-header has been used inappropriately. Pseudo-headers are header
653
- * key names that begin with the <code>:</code> prefix.</p>
654
- * <p><a id="ERR_HTTP2_PUSH_DISABLED"></a></p>
655
- */
656
- ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED = "ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED",
657
- /**
658
- * <p>An attempt was made to create a push stream, which had been disabled by the
659
- * client.</p>
660
- * <p><a id="ERR_HTTP2_SEND_FILE"></a></p>
661
- */
662
- ERR_HTTP2_PUSH_DISABLED = "ERR_HTTP2_PUSH_DISABLED",
663
- /**
664
- * <p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to
665
- * send a directory.</p>
666
- * <p><a id="ERR_HTTP2_SEND_FILE_NOSEEK"></a></p>
667
- */
668
- ERR_HTTP2_SEND_FILE = "ERR_HTTP2_SEND_FILE",
669
- /**
670
- * <p>An attempt was made to use the <code>Http2Stream.prototype.responseWithFile()</code> API to
671
- * send something other than a regular file, but <code>offset</code> or <code>length</code> options were
672
- * provided.</p>
673
- * <p><a id="ERR_HTTP2_SESSION_ERROR"></a></p>
674
- */
675
- ERR_HTTP2_SEND_FILE_NOSEEK = "ERR_HTTP2_SEND_FILE_NOSEEK",
676
- /**
677
- * <p>The <code>Http2Session</code> closed with a non-zero error code.</p>
678
- * <p><a id="ERR_HTTP2_SETTINGS_CANCEL"></a></p>
679
- */
680
- ERR_HTTP2_SESSION_ERROR = "ERR_HTTP2_SESSION_ERROR",
681
- /**
682
- * <p>The <code>Http2Session</code> settings canceled.</p>
683
- * <p><a id="ERR_HTTP2_SOCKET_BOUND"></a></p>
684
- */
685
- ERR_HTTP2_SETTINGS_CANCEL = "ERR_HTTP2_SETTINGS_CANCEL",
686
- /**
687
- * <p>An attempt was made to connect a <code>Http2Session</code> object to a <code>net.Socket</code> or
688
- * <code>tls.TLSSocket</code> that had already been bound to another <code>Http2Session</code> object.</p>
689
- * <p><a id="ERR_HTTP2_SOCKET_UNBOUND"></a></p>
690
- */
691
- ERR_HTTP2_SOCKET_BOUND = "ERR_HTTP2_SOCKET_BOUND",
692
- /**
693
- * <p>An attempt was made to use the <code>socket</code> property of an <code>Http2Session</code> that
694
- * has already been closed.</p>
695
- * <p><a id="ERR_HTTP2_STATUS_101"></a></p>
696
- */
697
- ERR_HTTP2_SOCKET_UNBOUND = "ERR_HTTP2_SOCKET_UNBOUND",
698
- /**
699
- * <p>Use of the <code>101</code> Informational status code is forbidden in HTTP/2.</p>
700
- * <p><a id="ERR_HTTP2_STATUS_INVALID"></a></p>
701
- */
702
- ERR_HTTP2_STATUS_101 = "ERR_HTTP2_STATUS_101",
703
- /**
704
- * <p>An invalid HTTP status code has been specified. Status codes must be an integer
705
- * between <code>100</code> and <code>599</code> (inclusive).</p>
706
- * <p><a id="ERR_HTTP2_STREAM_CANCEL"></a></p>
707
- */
708
- ERR_HTTP2_STATUS_INVALID = "ERR_HTTP2_STATUS_INVALID",
709
- /**
710
- * <p>An <code>Http2Stream</code> was destroyed before any data was transmitted to the connected
711
- * peer.</p>
712
- * <p><a id="ERR_HTTP2_STREAM_ERROR"></a></p>
713
- */
714
- ERR_HTTP2_STREAM_CANCEL = "ERR_HTTP2_STREAM_CANCEL",
715
- /**
716
- * <p>A non-zero error code was been specified in an <code>RST_STREAM</code> frame.</p>
717
- * <p><a id="ERR_HTTP2_STREAM_SELF_DEPENDENCY"></a></p>
718
- */
719
- ERR_HTTP2_STREAM_ERROR = "ERR_HTTP2_STREAM_ERROR",
720
- /**
721
- * <p>When setting the priority for an HTTP/2 stream, the stream may be marked as
722
- * a dependency for a parent stream. This error code is used when an attempt is
723
- * made to mark a stream and dependent of itself.</p>
724
- * <p><a id="ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS"></a></p>
725
- */
726
- ERR_HTTP2_STREAM_SELF_DEPENDENCY = "ERR_HTTP2_STREAM_SELF_DEPENDENCY",
727
- /**
728
- * <p>The number of supported custom settings (10) has been exceeded.</p>
729
- * <p><a id="ERR_HTTP2_TOO_MANY_INVALID_FRAMES"></a></p>
730
- */
731
- ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS = "ERR_HTTP2_TOO_MANY_CUSTOM_SETTINGS",
732
- /**
733
- * <p>The limit of acceptable invalid HTTP/2 protocol frames sent by the peer,
734
- * as specified through the <code>maxSessionInvalidFrames</code> option, has been exceeded.</p>
735
- * <p><a id="ERR_HTTP2_TRAILERS_ALREADY_SENT"></a></p>
736
- */
737
- ERR_HTTP2_TOO_MANY_INVALID_FRAMES = "ERR_HTTP2_TOO_MANY_INVALID_FRAMES",
738
- /**
739
- * <p>Trailing headers have already been sent on the <code>Http2Stream</code>.</p>
740
- * <p><a id="ERR_HTTP2_TRAILERS_NOT_READY"></a></p>
741
- */
742
- ERR_HTTP2_TRAILERS_ALREADY_SENT = "ERR_HTTP2_TRAILERS_ALREADY_SENT",
743
- /**
744
- * <p>The <code>http2stream.sendTrailers()</code> method cannot be called until after the
745
- * <code>'wantTrailers'</code> event is emitted on an <code>Http2Stream</code> object. The
746
- * <code>'wantTrailers'</code> event will only be emitted if the <code>waitForTrailers</code> option
747
- * is set for the <code>Http2Stream</code>.</p>
748
- * <p><a id="ERR_HTTP2_UNSUPPORTED_PROTOCOL"></a></p>
749
- */
750
- ERR_HTTP2_TRAILERS_NOT_READY = "ERR_HTTP2_TRAILERS_NOT_READY",
751
- /**
752
- * <p><code>http2.connect()</code> was passed a URL that uses any protocol other than <code>http:</code> or
753
- * <code>https:</code>.</p>
754
- * <p><a id="ERR_HTTP_BODY_NOT_ALLOWED"></a></p>
755
- */
756
- ERR_HTTP2_UNSUPPORTED_PROTOCOL = "ERR_HTTP2_UNSUPPORTED_PROTOCOL",
757
- /**
758
- * <p>An error is thrown when writing to an HTTP response which does not allow
759
- * contents.</p>
760
- * <p><a id="ERR_HTTP_CONTENT_LENGTH_MISMATCH"></a></p>
761
- */
762
- ERR_HTTP_BODY_NOT_ALLOWED = "ERR_HTTP_BODY_NOT_ALLOWED",
763
- /**
764
- * <p>Response body size doesn't match with the specified content-length header value.</p>
765
- * <p><a id="ERR_HTTP_HEADERS_SENT"></a></p>
766
- */
767
- ERR_HTTP_CONTENT_LENGTH_MISMATCH = "ERR_HTTP_CONTENT_LENGTH_MISMATCH",
768
- /**
769
- * <p>An attempt was made to add more headers after the headers had already been sent.</p>
770
- * <p><a id="ERR_HTTP_INVALID_HEADER_VALUE"></a></p>
771
- */
772
- ERR_HTTP_HEADERS_SENT = "ERR_HTTP_HEADERS_SENT",
773
- /**
774
- * <p>An invalid HTTP header value was specified.</p>
775
- * <p><a id="ERR_HTTP_INVALID_STATUS_CODE"></a></p>
776
- */
777
- ERR_HTTP_INVALID_HEADER_VALUE = "ERR_HTTP_INVALID_HEADER_VALUE",
778
- /**
779
- * <p>Status code was outside the regular status code range (100-999).</p>
780
- * <p><a id="ERR_HTTP_REQUEST_TIMEOUT"></a></p>
781
- */
782
- ERR_HTTP_INVALID_STATUS_CODE = "ERR_HTTP_INVALID_STATUS_CODE",
783
- /**
784
- * <p>The client has not sent the entire request within the allowed time.</p>
785
- * <p><a id="ERR_HTTP_SOCKET_ASSIGNED"></a></p>
786
- */
787
- ERR_HTTP_REQUEST_TIMEOUT = "ERR_HTTP_REQUEST_TIMEOUT",
788
- /**
789
- * <p>The given <a href="http.html#class-httpserverresponse"><code>ServerResponse</code></a> was already assigned a socket.</p>
790
- * <p><a id="ERR_HTTP_SOCKET_ENCODING"></a></p>
791
- */
792
- ERR_HTTP_SOCKET_ASSIGNED = "ERR_HTTP_SOCKET_ASSIGNED",
793
- /**
794
- * <p>Changing the socket encoding is not allowed per <a href="https://tools.ietf.org/html/rfc7230#section-3">RFC 7230 Section 3</a>.</p>
795
- * <p><a id="ERR_HTTP_TRAILER_INVALID"></a></p>
796
- */
797
- ERR_HTTP_SOCKET_ENCODING = "ERR_HTTP_SOCKET_ENCODING",
798
- /**
799
- * <p>The <code>Trailer</code> header was set even though the transfer encoding does not support
800
- * that.</p>
801
- * <p><a id="ERR_ILLEGAL_CONSTRUCTOR"></a></p>
802
- */
803
- ERR_HTTP_TRAILER_INVALID = "ERR_HTTP_TRAILER_INVALID",
804
- /**
805
- * <p>An attempt was made to construct an object using a non-public constructor.</p>
806
- * <p><a id="ERR_IMPORT_ATTRIBUTE_MISSING"></a></p>
807
- */
808
- ERR_ILLEGAL_CONSTRUCTOR = "ERR_ILLEGAL_CONSTRUCTOR",
809
- /**
810
- * <p>An import attribute is missing, preventing the specified module to be imported.</p>
811
- * <p><a id="ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"></a></p>
812
- */
813
- ERR_IMPORT_ATTRIBUTE_MISSING = "ERR_IMPORT_ATTRIBUTE_MISSING",
814
- /**
815
- * <p>An import <code>type</code> attribute was provided, but the specified module is of a
816
- * different type.</p>
817
- * <p><a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a></p>
818
- */
819
- ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE = "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE",
820
- /**
821
- * <p>An import attribute is not supported by this version of Node.js.</p>
822
- * <p><a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a></p>
823
- */
824
- ERR_IMPORT_ATTRIBUTE_UNSUPPORTED = "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED",
825
- /**
826
- * <p>An option pair is incompatible with each other and cannot be used at the same
827
- * time.</p>
828
- * <p><a id="ERR_INPUT_TYPE_NOT_ALLOWED"></a></p>
829
- */
830
- ERR_INCOMPATIBLE_OPTION_PAIR = "ERR_INCOMPATIBLE_OPTION_PAIR",
831
- /**
832
- * <p>The <code>--input-type</code> flag was used to attempt to execute a file. This flag can
833
- * only be used with input via <code>--eval</code>, <code>--print</code>, or <code>STDIN</code>.</p>
834
- * <p><a id="ERR_INSPECTOR_ALREADY_ACTIVATED"></a></p>
835
- */
836
- ERR_INPUT_TYPE_NOT_ALLOWED = "ERR_INPUT_TYPE_NOT_ALLOWED",
837
- /**
838
- * <p>While using the <code>node:inspector</code> module, an attempt was made to activate the
839
- * inspector when it already started to listen on a port. Use <code>inspector.close()</code>
840
- * before activating it on a different address.</p>
841
- * <p><a id="ERR_INSPECTOR_ALREADY_CONNECTED"></a></p>
842
- */
843
- ERR_INSPECTOR_ALREADY_ACTIVATED = "ERR_INSPECTOR_ALREADY_ACTIVATED",
844
- /**
845
- * <p>While using the <code>node:inspector</code> module, an attempt was made to connect when the
846
- * inspector was already connected.</p>
847
- * <p><a id="ERR_INSPECTOR_CLOSED"></a></p>
848
- */
849
- ERR_INSPECTOR_ALREADY_CONNECTED = "ERR_INSPECTOR_ALREADY_CONNECTED",
850
- /**
851
- * <p>While using the <code>node:inspector</code> module, an attempt was made to use the
852
- * inspector after the session had already closed.</p>
853
- * <p><a id="ERR_INSPECTOR_COMMAND"></a></p>
854
- */
855
- ERR_INSPECTOR_CLOSED = "ERR_INSPECTOR_CLOSED",
856
- /**
857
- * <p>An error occurred while issuing a command via the <code>node:inspector</code> module.</p>
858
- * <p><a id="ERR_INSPECTOR_NOT_ACTIVE"></a></p>
859
- */
860
- ERR_INSPECTOR_COMMAND = "ERR_INSPECTOR_COMMAND",
861
- /**
862
- * <p>The <code>inspector</code> is not active when <code>inspector.waitForDebugger()</code> is called.</p>
863
- * <p><a id="ERR_INSPECTOR_NOT_AVAILABLE"></a></p>
864
- */
865
- ERR_INSPECTOR_NOT_ACTIVE = "ERR_INSPECTOR_NOT_ACTIVE",
866
- /**
867
- * <p>The <code>node:inspector</code> module is not available for use.</p>
868
- * <p><a id="ERR_INSPECTOR_NOT_CONNECTED"></a></p>
869
- */
870
- ERR_INSPECTOR_NOT_AVAILABLE = "ERR_INSPECTOR_NOT_AVAILABLE",
871
- /**
872
- * <p>While using the <code>node:inspector</code> module, an attempt was made to use the
873
- * inspector before it was connected.</p>
874
- * <p><a id="ERR_INSPECTOR_NOT_WORKER"></a></p>
875
- */
876
- ERR_INSPECTOR_NOT_CONNECTED = "ERR_INSPECTOR_NOT_CONNECTED",
877
- /**
878
- * <p>An API was called on the main thread that can only be used from
879
- * the worker thread.</p>
880
- * <p><a id="ERR_INTERNAL_ASSERTION"></a></p>
881
- */
882
- ERR_INSPECTOR_NOT_WORKER = "ERR_INSPECTOR_NOT_WORKER",
883
- /**
884
- * <p>There was a bug in Node.js or incorrect usage of Node.js internals.
885
- * To fix the error, open an issue at <a href="https://github.com/nodejs/node/issues">https://github.com/nodejs/node/issues</a>.</p>
886
- * <p><a id="ERR_INVALID_ADDRESS"></a></p>
887
- */
888
- ERR_INTERNAL_ASSERTION = "ERR_INTERNAL_ASSERTION",
889
- /**
890
- * <p>The provided address is not understood by the Node.js API.</p>
891
- * <p><a id="ERR_INVALID_ADDRESS_FAMILY"></a></p>
892
- */
893
- ERR_INVALID_ADDRESS = "ERR_INVALID_ADDRESS",
894
- /**
895
- * <p>The provided address family is not understood by the Node.js API.</p>
896
- * <p><a id="ERR_INVALID_ARG_TYPE"></a></p>
897
- */
898
- ERR_INVALID_ADDRESS_FAMILY = "ERR_INVALID_ADDRESS_FAMILY",
899
- /**
900
- * <p>An argument of the wrong type was passed to a Node.js API.</p>
901
- * <p><a id="ERR_INVALID_ARG_VALUE"></a></p>
902
- */
903
- ERR_INVALID_ARG_TYPE = "ERR_INVALID_ARG_TYPE",
904
- /**
905
- * <p>An invalid or unsupported value was passed for a given argument.</p>
906
- * <p><a id="ERR_INVALID_ASYNC_ID"></a></p>
907
- */
908
- ERR_INVALID_ARG_VALUE = "ERR_INVALID_ARG_VALUE",
909
- /**
910
- * <p>An invalid <code>asyncId</code> or <code>triggerAsyncId</code> was passed using <code>AsyncHooks</code>. An id
911
- * less than -1 should never happen.</p>
912
- * <p><a id="ERR_INVALID_BUFFER_SIZE"></a></p>
913
- */
914
- ERR_INVALID_ASYNC_ID = "ERR_INVALID_ASYNC_ID",
915
- /**
916
- * <p>A swap was performed on a <code>Buffer</code> but its size was not compatible with the
917
- * operation.</p>
918
- * <p><a id="ERR_INVALID_CHAR"></a></p>
919
- */
920
- ERR_INVALID_BUFFER_SIZE = "ERR_INVALID_BUFFER_SIZE",
921
- /**
922
- * <p>Invalid characters were detected in headers.</p>
923
- * <p><a id="ERR_INVALID_CURSOR_POS"></a></p>
924
- */
925
- ERR_INVALID_CHAR = "ERR_INVALID_CHAR",
926
- /**
927
- * <p>A cursor on a given stream cannot be moved to a specified row without a
928
- * specified column.</p>
929
- * <p><a id="ERR_INVALID_FD"></a></p>
930
- */
931
- ERR_INVALID_CURSOR_POS = "ERR_INVALID_CURSOR_POS",
932
- /**
933
- * <p>A file descriptor ('fd') was not valid (e.g. it was a negative value).</p>
934
- * <p><a id="ERR_INVALID_FD_TYPE"></a></p>
935
- */
936
- ERR_INVALID_FD = "ERR_INVALID_FD",
937
- /**
938
- * <p>A file descriptor ('fd') type was not valid.</p>
939
- * <p><a id="ERR_INVALID_FILE_URL_HOST"></a></p>
940
- */
941
- ERR_INVALID_FD_TYPE = "ERR_INVALID_FD_TYPE",
942
- /**
943
- * <p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the
944
- * <a href="fs.html"><code>fs</code></a> module) encountered a file URL with an incompatible host. This
945
- * situation can only occur on Unix-like systems where only <code>localhost</code> or an empty
946
- * host is supported.</p>
947
- * <p><a id="ERR_INVALID_FILE_URL_PATH"></a></p>
948
- */
949
- ERR_INVALID_FILE_URL_HOST = "ERR_INVALID_FILE_URL_HOST",
950
- /**
951
- * <p>A Node.js API that consumes <code>file:</code> URLs (such as certain functions in the
952
- * <a href="fs.html"><code>fs</code></a> module) encountered a file URL with an incompatible path. The exact
953
- * semantics for determining whether a path can be used is platform-dependent.</p>
954
- * <p><a id="ERR_INVALID_HANDLE_TYPE"></a></p>
955
- */
956
- ERR_INVALID_FILE_URL_PATH = "ERR_INVALID_FILE_URL_PATH",
957
- /**
958
- * <p>An attempt was made to send an unsupported "handle" over an IPC communication
959
- * channel to a child process. See <a href="child_process.html#subprocesssendmessage-sendhandle-options-callback"><code>subprocess.send()</code></a> and <a href="process.html#processsendmessage-sendhandle-options-callback"><code>process.send()</code></a>
960
- * for more information.</p>
961
- * <p><a id="ERR_INVALID_HTTP_TOKEN"></a></p>
962
- */
963
- ERR_INVALID_HANDLE_TYPE = "ERR_INVALID_HANDLE_TYPE",
964
- /**
965
- * <p>An invalid HTTP token was supplied.</p>
966
- * <p><a id="ERR_INVALID_IP_ADDRESS"></a></p>
967
- */
968
- ERR_INVALID_HTTP_TOKEN = "ERR_INVALID_HTTP_TOKEN",
969
- /**
970
- * <p>An IP address is not valid.</p>
971
- * <p><a id="ERR_INVALID_MIME_SYNTAX"></a></p>
972
- */
973
- ERR_INVALID_IP_ADDRESS = "ERR_INVALID_IP_ADDRESS",
974
- /**
975
- * <p>The syntax of a MIME is not valid.</p>
976
- * <p><a id="ERR_INVALID_MODULE"></a></p>
977
- */
978
- ERR_INVALID_MIME_SYNTAX = "ERR_INVALID_MIME_SYNTAX",
979
- /**
980
- * <p>An attempt was made to load a module that does not exist or was otherwise not
981
- * valid.</p>
982
- * <p><a id="ERR_INVALID_MODULE_SPECIFIER"></a></p>
983
- */
984
- ERR_INVALID_MODULE = "ERR_INVALID_MODULE",
985
- /**
986
- * <p>The imported module string is an invalid URL, package name, or package subpath
987
- * specifier.</p>
988
- * <p><a id="ERR_INVALID_OBJECT_DEFINE_PROPERTY"></a></p>
989
- */
990
- ERR_INVALID_MODULE_SPECIFIER = "ERR_INVALID_MODULE_SPECIFIER",
991
- /**
992
- * <p>An error occurred while setting an invalid attribute on the property of
993
- * an object.</p>
994
- * <p><a id="ERR_INVALID_PACKAGE_CONFIG"></a></p>
995
- */
996
- ERR_INVALID_OBJECT_DEFINE_PROPERTY = "ERR_INVALID_OBJECT_DEFINE_PROPERTY",
997
- /**
998
- * <p>An invalid <a href="packages.html#nodejs-packagejson-field-definitions"><code>package.json</code></a> file failed parsing.</p>
999
- * <p><a id="ERR_INVALID_PACKAGE_TARGET"></a></p>
1000
- */
1001
- ERR_INVALID_PACKAGE_CONFIG = "ERR_INVALID_PACKAGE_CONFIG",
1002
- /**
1003
- * <p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field contains an invalid target mapping
1004
- * value for the attempted module resolution.</p>
1005
- * <p><a id="ERR_INVALID_PROTOCOL"></a></p>
1006
- */
1007
- ERR_INVALID_PACKAGE_TARGET = "ERR_INVALID_PACKAGE_TARGET",
1008
- /**
1009
- * <p>An invalid <code>options.protocol</code> was passed to <code>http.request()</code>.</p>
1010
- * <p><a id="ERR_INVALID_REPL_EVAL_CONFIG"></a></p>
1011
- */
1012
- ERR_INVALID_PROTOCOL = "ERR_INVALID_PROTOCOL",
1013
- /**
1014
- * <p>Both <code>breakEvalOnSigint</code> and <code>eval</code> options were set in the <a href="repl.html"><code>REPL</code></a> config,
1015
- * which is not supported.</p>
1016
- * <p><a id="ERR_INVALID_REPL_INPUT"></a></p>
1017
- */
1018
- ERR_INVALID_REPL_EVAL_CONFIG = "ERR_INVALID_REPL_EVAL_CONFIG",
1019
- /**
1020
- * <p>The input may not be used in the <a href="repl.html"><code>REPL</code></a>. The conditions under which this
1021
- * error is used are described in the <a href="repl.html"><code>REPL</code></a> documentation.</p>
1022
- * <p><a id="ERR_INVALID_RETURN_PROPERTY"></a></p>
1023
- */
1024
- ERR_INVALID_REPL_INPUT = "ERR_INVALID_REPL_INPUT",
1025
- /**
1026
- * <p>Thrown in case a function option does not provide a valid value for one of its
1027
- * returned object properties on execution.</p>
1028
- * <p><a id="ERR_INVALID_RETURN_PROPERTY_VALUE"></a></p>
1029
- */
1030
- ERR_INVALID_RETURN_PROPERTY = "ERR_INVALID_RETURN_PROPERTY",
1031
- /**
1032
- * <p>Thrown in case a function option does not provide an expected value
1033
- * type for one of its returned object properties on execution.</p>
1034
- * <p><a id="ERR_INVALID_RETURN_VALUE"></a></p>
1035
- */
1036
- ERR_INVALID_RETURN_PROPERTY_VALUE = "ERR_INVALID_RETURN_PROPERTY_VALUE",
1037
- /**
1038
- * <p>Thrown in case a function option does not return an expected value
1039
- * type on execution, such as when a function is expected to return a promise.</p>
1040
- * <p><a id="ERR_INVALID_STATE"></a></p>
1041
- */
1042
- ERR_INVALID_RETURN_VALUE = "ERR_INVALID_RETURN_VALUE",
1043
- /**
1044
- * <p>Indicates that an operation cannot be completed due to an invalid state.
1045
- * For instance, an object may have already been destroyed, or may be
1046
- * performing another operation.</p>
1047
- * <p><a id="ERR_INVALID_SYNC_FORK_INPUT"></a></p>
1048
- */
1049
- ERR_INVALID_STATE = "ERR_INVALID_STATE",
1050
- /**
1051
- * <p>A <code>Buffer</code>, <code>TypedArray</code>, <code>DataView</code>, or <code>string</code> was provided as stdio input to
1052
- * an asynchronous fork. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1053
- * for more information.</p>
1054
- * <p><a id="ERR_INVALID_THIS"></a></p>
1055
- */
1056
- ERR_INVALID_SYNC_FORK_INPUT = "ERR_INVALID_SYNC_FORK_INPUT",
1057
- /**
1058
- * <p>A Node.js API function was called with an incompatible <code>this</code> value.</p>
1059
- * <pre><code class="language-js">const urlSearchParams = new URLSearchParams('foo=bar&#x26;baz=new');
1060
- *
1061
- * const buf = Buffer.alloc(1);
1062
- * urlSearchParams.has.call(buf, 'foo');
1063
- * // Throws a TypeError with code 'ERR_INVALID_THIS'
1064
- * </code></pre>
1065
- * <p><a id="ERR_INVALID_TUPLE"></a></p>
1066
- */
1067
- ERR_INVALID_THIS = "ERR_INVALID_THIS",
1068
- /**
1069
- * <p>An element in the <code>iterable</code> provided to the <a href="url.html#the-whatwg-url-api">WHATWG</a>
1070
- * <a href="url.html#new-urlsearchparamsiterable"><code>URLSearchParams</code> constructor</a> did not
1071
- * represent a <code>[name, value]</code> tuple – that is, if an element is not iterable, or
1072
- * does not consist of exactly two elements.</p>
1073
- * <p><a id="ERR_INVALID_TYPESCRIPT_SYNTAX"></a></p>
1074
- */
1075
- ERR_INVALID_TUPLE = "ERR_INVALID_TUPLE",
1076
- /**
1077
- * <p>The provided TypeScript syntax is not valid or unsupported.
1078
- * This could happen when using TypeScript syntax that requires
1079
- * transformation with <a href="typescript.html#type-stripping">type-stripping</a>.</p>
1080
- * <p><a id="ERR_INVALID_URI"></a></p>
1081
- */
1082
- ERR_INVALID_TYPESCRIPT_SYNTAX = "ERR_INVALID_TYPESCRIPT_SYNTAX",
1083
- /**
1084
- * <p>An invalid URI was passed.</p>
1085
- * <p><a id="ERR_INVALID_URL"></a></p>
1086
- */
1087
- ERR_INVALID_URI = "ERR_INVALID_URI",
1088
- /**
1089
- * <p>An invalid URL was passed to the <a href="url.html#the-whatwg-url-api">WHATWG</a> <a href="url.html#new-urlinput-base"><code>URL</code>
1090
- * constructor</a> or the legacy <a href="url.html#urlparseurlstring-parsequerystring-slashesdenotehost"><code>url.parse()</code></a> to be parsed.
1091
- * The thrown error object typically has an additional property <code>'input'</code> that
1092
- * contains the URL that failed to parse.</p>
1093
- * <p><a id="ERR_INVALID_URL_SCHEME"></a></p>
1094
- */
1095
- ERR_INVALID_URL = "ERR_INVALID_URL",
1096
- /**
1097
- * <p>An attempt was made to use a URL of an incompatible scheme (protocol) for a
1098
- * specific purpose. It is only used in the <a href="url.html#the-whatwg-url-api">WHATWG URL API</a> support in the
1099
- * <a href="fs.html"><code>fs</code></a> module (which only accepts URLs with <code>'file'</code> scheme), but may be used
1100
- * in other Node.js APIs as well in the future.</p>
1101
- * <p><a id="ERR_IPC_CHANNEL_CLOSED"></a></p>
1102
- */
1103
- ERR_INVALID_URL_SCHEME = "ERR_INVALID_URL_SCHEME",
1104
- /**
1105
- * <p>An attempt was made to use an IPC communication channel that was already closed.</p>
1106
- * <p><a id="ERR_IPC_DISCONNECTED"></a></p>
1107
- */
1108
- ERR_IPC_CHANNEL_CLOSED = "ERR_IPC_CHANNEL_CLOSED",
1109
- /**
1110
- * <p>An attempt was made to disconnect an IPC communication channel that was already
1111
- * disconnected. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1112
- * for more information.</p>
1113
- * <p><a id="ERR_IPC_ONE_PIPE"></a></p>
1114
- */
1115
- ERR_IPC_DISCONNECTED = "ERR_IPC_DISCONNECTED",
1116
- /**
1117
- * <p>An attempt was made to create a child Node.js process using more than one IPC
1118
- * communication channel. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1119
- * for more information.</p>
1120
- * <p><a id="ERR_IPC_SYNC_FORK"></a></p>
1121
- */
1122
- ERR_IPC_ONE_PIPE = "ERR_IPC_ONE_PIPE",
1123
- /**
1124
- * <p>An attempt was made to open an IPC communication channel with a synchronously
1125
- * forked Node.js process. See the documentation for the <a href="child_process.html"><code>child_process</code></a> module
1126
- * for more information.</p>
1127
- * <p><a id="ERR_LOADER_CHAIN_INCOMPLETE"></a></p>
1128
- */
1129
- ERR_IPC_SYNC_FORK = "ERR_IPC_SYNC_FORK",
1130
- /**
1131
- * <p>An ESM loader hook returned without calling <code>next()</code> and without explicitly
1132
- * signaling a short circuit.</p>
1133
- * <p><a id="ERR_MEMORY_ALLOCATION_FAILED"></a></p>
1134
- */
1135
- ERR_LOADER_CHAIN_INCOMPLETE = "ERR_LOADER_CHAIN_INCOMPLETE",
1136
- /**
1137
- * <p>An attempt was made to allocate memory (usually in the C++ layer) but it
1138
- * failed.</p>
1139
- * <p><a id="ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE"></a></p>
1140
- */
1141
- ERR_MEMORY_ALLOCATION_FAILED = "ERR_MEMORY_ALLOCATION_FAILED",
1142
- /**
1143
- * <p>A message posted to a <a href="worker_threads.html#class-messageport"><code>MessagePort</code></a> could not be deserialized in the target
1144
- * <a href="vm.html">vm</a> <code>Context</code>. Not all Node.js objects can be successfully instantiated in
1145
- * any context at this time, and attempting to transfer them using <code>postMessage()</code>
1146
- * can fail on the receiving side in that case.</p>
1147
- * <p><a id="ERR_METHOD_NOT_IMPLEMENTED"></a></p>
1148
- */
1149
- ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE = "ERR_MESSAGE_TARGET_CONTEXT_UNAVAILABLE",
1150
- /**
1151
- * <p>A method is required but not implemented.</p>
1152
- * <p><a id="ERR_MISSING_ARGS"></a></p>
1153
- */
1154
- ERR_METHOD_NOT_IMPLEMENTED = "ERR_METHOD_NOT_IMPLEMENTED",
1155
- /**
1156
- * <p>A required argument of a Node.js API was not passed. This is only used for
1157
- * strict compliance with the API specification (which in some cases may accept
1158
- * <code>func(undefined)</code> but not <code>func()</code>). In most native Node.js APIs,
1159
- * <code>func(undefined)</code> and <code>func()</code> are treated identically, and the
1160
- * <a href="#err_invalid_arg_type"><code>ERR_INVALID_ARG_TYPE</code></a> error code may be used instead.</p>
1161
- * <p><a id="ERR_MISSING_OPTION"></a></p>
1162
- */
1163
- ERR_MISSING_ARGS = "ERR_MISSING_ARGS",
1164
- /**
1165
- * <p>For APIs that accept options objects, some options might be mandatory. This code
1166
- * is thrown if a required option is missing.</p>
1167
- * <p><a id="ERR_MISSING_PASSPHRASE"></a></p>
1168
- */
1169
- ERR_MISSING_OPTION = "ERR_MISSING_OPTION",
1170
- /**
1171
- * <p>An attempt was made to read an encrypted key without specifying a passphrase.</p>
1172
- * <p><a id="ERR_MISSING_PLATFORM_FOR_WORKER"></a></p>
1173
- */
1174
- ERR_MISSING_PASSPHRASE = "ERR_MISSING_PASSPHRASE",
1175
- /**
1176
- * <p>The V8 platform used by this instance of Node.js does not support creating
1177
- * Workers. This is caused by lack of embedder support for Workers. In particular,
1178
- * this error will not occur with standard builds of Node.js.</p>
1179
- * <p><a id="ERR_MODULE_NOT_FOUND"></a></p>
1180
- */
1181
- ERR_MISSING_PLATFORM_FOR_WORKER = "ERR_MISSING_PLATFORM_FOR_WORKER",
1182
- /**
1183
- * <p>A module file could not be resolved by the ECMAScript modules loader while
1184
- * attempting an <code>import</code> operation or when loading the program entry point.</p>
1185
- * <p><a id="ERR_MULTIPLE_CALLBACK"></a></p>
1186
- */
1187
- ERR_MODULE_NOT_FOUND = "ERR_MODULE_NOT_FOUND",
1188
- /**
1189
- * <p>A callback was called more than once.</p>
1190
- * <p>A callback is almost always meant to only be called once as the query
1191
- * can either be fulfilled or rejected but not both at the same time. The latter
1192
- * would be possible by calling a callback more than once.</p>
1193
- * <p><a id="ERR_NAPI_CONS_FUNCTION"></a></p>
1194
- */
1195
- ERR_MULTIPLE_CALLBACK = "ERR_MULTIPLE_CALLBACK",
1196
- /**
1197
- * <p>While using <code>Node-API</code>, a constructor passed was not a function.</p>
1198
- * <p><a id="ERR_NAPI_INVALID_DATAVIEW_ARGS"></a></p>
1199
- */
1200
- ERR_NAPI_CONS_FUNCTION = "ERR_NAPI_CONS_FUNCTION",
1201
- /**
1202
- * <p>While calling <code>napi_create_dataview()</code>, a given <code>offset</code> was outside the bounds
1203
- * of the dataview or <code>offset + length</code> was larger than a length of given <code>buffer</code>.</p>
1204
- * <p><a id="ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT"></a></p>
1205
- */
1206
- ERR_NAPI_INVALID_DATAVIEW_ARGS = "ERR_NAPI_INVALID_DATAVIEW_ARGS",
1207
- /**
1208
- * <p>While calling <code>napi_create_typedarray()</code>, the provided <code>offset</code> was not a
1209
- * multiple of the element size.</p>
1210
- * <p><a id="ERR_NAPI_INVALID_TYPEDARRAY_LENGTH"></a></p>
1211
- */
1212
- ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT = "ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT",
1213
- /**
1214
- * <p>While calling <code>napi_create_typedarray()</code>, <code>(length * size_of_element) + byte_offset</code> was larger than the length of given <code>buffer</code>.</p>
1215
- * <p><a id="ERR_NAPI_TSFN_CALL_JS"></a></p>
1216
- */
1217
- ERR_NAPI_INVALID_TYPEDARRAY_LENGTH = "ERR_NAPI_INVALID_TYPEDARRAY_LENGTH",
1218
- /**
1219
- * <p>An error occurred while invoking the JavaScript portion of the thread-safe
1220
- * function.</p>
1221
- * <p><a id="ERR_NAPI_TSFN_GET_UNDEFINED"></a></p>
1222
- */
1223
- ERR_NAPI_TSFN_CALL_JS = "ERR_NAPI_TSFN_CALL_JS",
1224
- /**
1225
- * <p>An error occurred while attempting to retrieve the JavaScript <code>undefined</code>
1226
- * value.</p>
1227
- * <p><a id="ERR_NON_CONTEXT_AWARE_DISABLED"></a></p>
1228
- */
1229
- ERR_NAPI_TSFN_GET_UNDEFINED = "ERR_NAPI_TSFN_GET_UNDEFINED",
1230
- /**
1231
- * <p>A non-context-aware native addon was loaded in a process that disallows them.</p>
1232
- * <p><a id="ERR_NOT_BUILDING_SNAPSHOT"></a></p>
1233
- */
1234
- ERR_NON_CONTEXT_AWARE_DISABLED = "ERR_NON_CONTEXT_AWARE_DISABLED",
1235
- /**
1236
- * <p>An attempt was made to use operations that can only be used when building
1237
- * V8 startup snapshot even though Node.js isn't building one.</p>
1238
- * <p><a id="ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION"></a></p>
1239
- */
1240
- ERR_NOT_BUILDING_SNAPSHOT = "ERR_NOT_BUILDING_SNAPSHOT",
1241
- /**
1242
- * <p>The operation cannot be performed when it's not in a single-executable
1243
- * application.</p>
1244
- * <p><a id="ERR_NOT_SUPPORTED_IN_SNAPSHOT"></a></p>
1245
- */
1246
- ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION = "ERR_NOT_IN_SINGLE_EXECUTABLE_APPLICATION",
1247
- /**
1248
- * <p>An attempt was made to perform operations that are not supported when
1249
- * building a startup snapshot.</p>
1250
- * <p><a id="ERR_NO_CRYPTO"></a></p>
1251
- */
1252
- ERR_NOT_SUPPORTED_IN_SNAPSHOT = "ERR_NOT_SUPPORTED_IN_SNAPSHOT",
1253
- /**
1254
- * <p>An attempt was made to use crypto features while Node.js was not compiled with
1255
- * OpenSSL crypto support.</p>
1256
- * <p><a id="ERR_NO_ICU"></a></p>
1257
- */
1258
- ERR_NO_CRYPTO = "ERR_NO_CRYPTO",
1259
- /**
1260
- * <p>An attempt was made to use features that require <a href="intl.html#internationalization-support">ICU</a>, but Node.js was not
1261
- * compiled with ICU support.</p>
1262
- * <p><a id="ERR_NO_TYPESCRIPT"></a></p>
1263
- */
1264
- ERR_NO_ICU = "ERR_NO_ICU",
1265
- /**
1266
- * <p>An attempt was made to use features that require <a href="typescript.html#type-stripping">Native TypeScript support</a>, but Node.js was not
1267
- * compiled with TypeScript support.</p>
1268
- * <p><a id="ERR_OPERATION_FAILED"></a></p>
1269
- */
1270
- ERR_NO_TYPESCRIPT = "ERR_NO_TYPESCRIPT",
1271
- /**
1272
- * <p>An operation failed. This is typically used to signal the general failure
1273
- * of an asynchronous operation.</p>
1274
- * <p><a id="ERR_OUT_OF_RANGE"></a></p>
1275
- */
1276
- ERR_OPERATION_FAILED = "ERR_OPERATION_FAILED",
1277
- /**
1278
- * <p>A given value is out of the accepted range.</p>
1279
- * <p><a id="ERR_PACKAGE_IMPORT_NOT_DEFINED"></a></p>
1280
- */
1281
- ERR_OUT_OF_RANGE = "ERR_OUT_OF_RANGE",
1282
- /**
1283
- * <p>The <code>package.json</code> <a href="packages.html#imports"><code>"imports"</code></a> field does not define the given internal
1284
- * package specifier mapping.</p>
1285
- * <p><a id="ERR_PACKAGE_PATH_NOT_EXPORTED"></a></p>
1286
- */
1287
- ERR_PACKAGE_IMPORT_NOT_DEFINED = "ERR_PACKAGE_IMPORT_NOT_DEFINED",
1288
- /**
1289
- * <p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field does not export the requested subpath.
1290
- * Because exports are encapsulated, private internal modules that are not exported
1291
- * cannot be imported through the package resolution, unless using an absolute URL.</p>
1292
- * <p><a id="ERR_PARSE_ARGS_INVALID_OPTION_VALUE"></a></p>
1293
- */
1294
- ERR_PACKAGE_PATH_NOT_EXPORTED = "ERR_PACKAGE_PATH_NOT_EXPORTED",
1295
- /**
1296
- * <p>When <code>strict</code> set to <code>true</code>, thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a> if a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;boolean&gt;</a>
1297
- * value is provided for an option of type <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;string&gt;</a>, or if a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type">&lt;string&gt;</a>
1298
- * value is provided for an option of type <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type">&lt;boolean&gt;</a>.</p>
1299
- * <p><a id="ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL"></a></p>
1300
- */
1301
- ERR_PARSE_ARGS_INVALID_OPTION_VALUE = "ERR_PARSE_ARGS_INVALID_OPTION_VALUE",
1302
- /**
1303
- * <p>Thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a>, when a positional argument is provided and
1304
- * <code>allowPositionals</code> is set to <code>false</code>.</p>
1305
- * <p><a id="ERR_PARSE_ARGS_UNKNOWN_OPTION"></a></p>
1306
- */
1307
- ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL = "ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL",
1308
- /**
1309
- * <p>When <code>strict</code> set to <code>true</code>, thrown by <a href="util.html#utilparseargsconfig"><code>util.parseArgs()</code></a> if an argument
1310
- * is not configured in <code>options</code>.</p>
1311
- * <p><a id="ERR_PERFORMANCE_INVALID_TIMESTAMP"></a></p>
1312
- */
1313
- ERR_PARSE_ARGS_UNKNOWN_OPTION = "ERR_PARSE_ARGS_UNKNOWN_OPTION",
1314
- /**
1315
- * <p>An invalid timestamp value was provided for a performance mark or measure.</p>
1316
- * <p><a id="ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS"></a></p>
1317
- */
1318
- ERR_PERFORMANCE_INVALID_TIMESTAMP = "ERR_PERFORMANCE_INVALID_TIMESTAMP",
1319
- /**
1320
- * <p>Invalid options were provided for a performance measure.</p>
1321
- * <p><a id="ERR_PROTO_ACCESS"></a></p>
1322
- */
1323
- ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS = "ERR_PERFORMANCE_MEASURE_INVALID_OPTIONS",
1324
- /**
1325
- * <p>Accessing <code>Object.prototype.__proto__</code> has been forbidden using
1326
- * <a href="cli.html#--disable-protomode"><code>--disable-proto=throw</code></a>. <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf"><code>Object.getPrototypeOf</code></a> and
1327
- * <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf"><code>Object.setPrototypeOf</code></a> should be used to get and set the prototype of an
1328
- * object.</p>
1329
- * <p><a id="ERR_QUIC_CONNECTION_FAILED"></a></p>
1330
- */
1331
- ERR_PROTO_ACCESS = "ERR_PROTO_ACCESS",
1332
- /**
1333
- * <p>Establishing a QUIC connection failed.</p>
1334
- * <p><a id="ERR_QUIC_ENDPOINT_CLOSED"></a></p>
1335
- */
1336
- ERR_QUIC_CONNECTION_FAILED = "ERR_QUIC_CONNECTION_FAILED",
1337
- /**
1338
- * <p>A QUIC Endpoint closed with an error.</p>
1339
- * <p><a id="ERR_QUIC_OPEN_STREAM_FAILED"></a></p>
1340
- */
1341
- ERR_QUIC_ENDPOINT_CLOSED = "ERR_QUIC_ENDPOINT_CLOSED",
1342
- /**
1343
- * <p>Opening a QUIC stream failed.</p>
1344
- * <p><a id="ERR_REQUIRE_ASYNC_MODULE"></a></p>
1345
- */
1346
- ERR_QUIC_OPEN_STREAM_FAILED = "ERR_QUIC_OPEN_STREAM_FAILED",
1347
- /**
1348
- * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a>, the module turns out to be asynchronous.
1349
- * That is, it contains top-level await.</p>
1350
- * <p>To see where the top-level await is, use
1351
- * <code>--experimental-print-required-tla</code> (this would execute the modules
1352
- * before looking for the top-level awaits).</p>
1353
- * <p><a id="ERR_REQUIRE_CYCLE_MODULE"></a></p>
1354
- */
1355
- ERR_REQUIRE_ASYNC_MODULE = "ERR_REQUIRE_ASYNC_MODULE",
1356
- /**
1357
- * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a>, a CommonJS to ESM or ESM to CommonJS edge
1358
- * participates in an immediate cycle.
1359
- * This is not allowed because ES Modules cannot be evaluated while they are
1360
- * already being evaluated.</p>
1361
- * <p>To avoid the cycle, the <code>require()</code> call involved in a cycle should not happen
1362
- * at the top-level of either an ES Module (via <code>createRequire()</code>) or a CommonJS
1363
- * module, and should be done lazily in an inner function.</p>
1364
- * <p><a id="ERR_REQUIRE_ESM"></a></p>
1365
- */
1366
- ERR_REQUIRE_CYCLE_MODULE = "ERR_REQUIRE_CYCLE_MODULE",
1367
- /**
1368
- * <p>An attempt was made to <code>require()</code> an <a href="esm.html">ES Module</a>.</p>
1369
- * <p>This error has been deprecated since <code>require()</code> now supports loading synchronous
1370
- * ES modules. When <code>require()</code> encounters an ES module that contains top-level
1371
- * <code>await</code>, it will throw <a href="#err_require_async_module"><code>ERR_REQUIRE_ASYNC_MODULE</code></a> instead.</p>
1372
- * <p><a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a></p>
1373
- */
1374
- ERR_REQUIRE_ESM = "ERR_REQUIRE_ESM",
1375
- /**
1376
- * <p>Script execution was interrupted by <code>SIGINT</code> (For
1377
- * example, <kbd>Ctrl</kbd>+<kbd>C</kbd> was pressed.)</p>
1378
- * <p><a id="ERR_SCRIPT_EXECUTION_TIMEOUT"></a></p>
1379
- */
1380
- ERR_SCRIPT_EXECUTION_INTERRUPTED = "ERR_SCRIPT_EXECUTION_INTERRUPTED",
1381
- /**
1382
- * <p>Script execution timed out, possibly due to bugs in the script being executed.</p>
1383
- * <p><a id="ERR_SERVER_ALREADY_LISTEN"></a></p>
1384
- */
1385
- ERR_SCRIPT_EXECUTION_TIMEOUT = "ERR_SCRIPT_EXECUTION_TIMEOUT",
1386
- /**
1387
- * <p>The <a href="net.html#serverlisten"><code>server.listen()</code></a> method was called while a <code>net.Server</code> was already
1388
- * listening. This applies to all instances of <code>net.Server</code>, including HTTP, HTTPS,
1389
- * and HTTP/2 <code>Server</code> instances.</p>
1390
- * <p><a id="ERR_SERVER_NOT_RUNNING"></a></p>
1391
- */
1392
- ERR_SERVER_ALREADY_LISTEN = "ERR_SERVER_ALREADY_LISTEN",
1393
- /**
1394
- * <p>The <a href="net.html#serverclosecallback"><code>server.close()</code></a> method was called when a <code>net.Server</code> was not
1395
- * running. This applies to all instances of <code>net.Server</code>, including HTTP, HTTPS,
1396
- * and HTTP/2 <code>Server</code> instances.</p>
1397
- * <p><a id="ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND"></a></p>
1398
- */
1399
- ERR_SERVER_NOT_RUNNING = "ERR_SERVER_NOT_RUNNING",
1400
- /**
1401
- * <p>A key was passed to single executable application APIs to identify an asset,
1402
- * but no match could be found.</p>
1403
- * <p><a id="ERR_SOCKET_ALREADY_BOUND"></a></p>
1404
- */
1405
- ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND = "ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND",
1406
- /**
1407
- * <p>An attempt was made to bind a socket that has already been bound.</p>
1408
- * <p><a id="ERR_SOCKET_BAD_BUFFER_SIZE"></a></p>
1409
- */
1410
- ERR_SOCKET_ALREADY_BOUND = "ERR_SOCKET_ALREADY_BOUND",
1411
- /**
1412
- * <p>An invalid (negative) size was passed for either the <code>recvBufferSize</code> or
1413
- * <code>sendBufferSize</code> options in <a href="dgram.html#dgramcreatesocketoptions-callback"><code>dgram.createSocket()</code></a>.</p>
1414
- * <p><a id="ERR_SOCKET_BAD_PORT"></a></p>
1415
- */
1416
- ERR_SOCKET_BAD_BUFFER_SIZE = "ERR_SOCKET_BAD_BUFFER_SIZE",
1417
- /**
1418
- * <p>An API function expecting a port >= 0 and &#x3C; 65536 received an invalid value.</p>
1419
- * <p><a id="ERR_SOCKET_BAD_TYPE"></a></p>
1420
- */
1421
- ERR_SOCKET_BAD_PORT = "ERR_SOCKET_BAD_PORT",
1422
- /**
1423
- * <p>An API function expecting a socket type (<code>udp4</code> or <code>udp6</code>) received an invalid
1424
- * value.</p>
1425
- * <p><a id="ERR_SOCKET_BUFFER_SIZE"></a></p>
1426
- */
1427
- ERR_SOCKET_BAD_TYPE = "ERR_SOCKET_BAD_TYPE",
1428
- /**
1429
- * <p>While using <a href="dgram.html#dgramcreatesocketoptions-callback"><code>dgram.createSocket()</code></a>, the size of the receive or send <code>Buffer</code>
1430
- * could not be determined.</p>
1431
- * <p><a id="ERR_SOCKET_CLOSED"></a></p>
1432
- */
1433
- ERR_SOCKET_BUFFER_SIZE = "ERR_SOCKET_BUFFER_SIZE",
1434
- /**
1435
- * <p>An attempt was made to operate on an already closed socket.</p>
1436
- * <p><a id="ERR_SOCKET_CLOSED_BEFORE_CONNECTION"></a></p>
1437
- */
1438
- ERR_SOCKET_CLOSED = "ERR_SOCKET_CLOSED",
1439
- /**
1440
- * <p>When calling <a href="net.html#socketwritedata-encoding-callback"><code>net.Socket.write()</code></a> on a connecting socket and the socket was
1441
- * closed before the connection was established.</p>
1442
- * <p><a id="ERR_SOCKET_CONNECTION_TIMEOUT"></a></p>
1443
- */
1444
- ERR_SOCKET_CLOSED_BEFORE_CONNECTION = "ERR_SOCKET_CLOSED_BEFORE_CONNECTION",
1445
- /**
1446
- * <p>The socket was unable to connect to any address returned by the DNS within the
1447
- * allowed timeout when using the family autoselection algorithm.</p>
1448
- * <p><a id="ERR_SOCKET_DGRAM_IS_CONNECTED"></a></p>
1449
- */
1450
- ERR_SOCKET_CONNECTION_TIMEOUT = "ERR_SOCKET_CONNECTION_TIMEOUT",
1451
- /**
1452
- * <p>A <a href="dgram.html#socketconnectport-address-callback"><code>dgram.connect()</code></a> call was made on an already connected socket.</p>
1453
- * <p><a id="ERR_SOCKET_DGRAM_NOT_CONNECTED"></a></p>
1454
- */
1455
- ERR_SOCKET_DGRAM_IS_CONNECTED = "ERR_SOCKET_DGRAM_IS_CONNECTED",
1456
- /**
1457
- * <p>A <a href="dgram.html#socketdisconnect"><code>dgram.disconnect()</code></a> or <a href="dgram.html#socketremoteaddress"><code>dgram.remoteAddress()</code></a> call was made on a
1458
- * disconnected socket.</p>
1459
- * <p><a id="ERR_SOCKET_DGRAM_NOT_RUNNING"></a></p>
1460
- */
1461
- ERR_SOCKET_DGRAM_NOT_CONNECTED = "ERR_SOCKET_DGRAM_NOT_CONNECTED",
1462
- /**
1463
- * <p>A call was made and the UDP subsystem was not running.</p>
1464
- * <p><a id="ERR_SOURCE_MAP_CORRUPT"></a></p>
1465
- */
1466
- ERR_SOCKET_DGRAM_NOT_RUNNING = "ERR_SOCKET_DGRAM_NOT_RUNNING",
1467
- /**
1468
- * <p>The source map could not be parsed because it does not exist, or is corrupt.</p>
1469
- * <p><a id="ERR_SOURCE_MAP_MISSING_SOURCE"></a></p>
1470
- */
1471
- ERR_SOURCE_MAP_CORRUPT = "ERR_SOURCE_MAP_CORRUPT",
1472
- /**
1473
- * <p>A file imported from a source map was not found.</p>
1474
- * <p><a id="ERR_SQLITE_ERROR"></a></p>
1475
- */
1476
- ERR_SOURCE_MAP_MISSING_SOURCE = "ERR_SOURCE_MAP_MISSING_SOURCE",
1477
- /**
1478
- * <p>An error was returned from <a href="sqlite.html">SQLite</a>.</p>
1479
- * <p><a id="ERR_SRI_PARSE"></a></p>
1480
- */
1481
- ERR_SQLITE_ERROR = "ERR_SQLITE_ERROR",
1482
- /**
1483
- * <p>A string was provided for a Subresource Integrity check, but was unable to be
1484
- * parsed. Check the format of integrity attributes by looking at the
1485
- * <a href="https://www.w3.org/TR/SRI/#the-integrity-attribute">Subresource Integrity specification</a>.</p>
1486
- * <p><a id="ERR_STREAM_ALREADY_FINISHED"></a></p>
1487
- */
1488
- ERR_SRI_PARSE = "ERR_SRI_PARSE",
1489
- /**
1490
- * <p>A stream method was called that cannot complete because the stream was
1491
- * finished.</p>
1492
- * <p><a id="ERR_STREAM_CANNOT_PIPE"></a></p>
1493
- */
1494
- ERR_STREAM_ALREADY_FINISHED = "ERR_STREAM_ALREADY_FINISHED",
1495
- /**
1496
- * <p>An attempt was made to call <a href="stream.html#readablepipedestination-options"><code>stream.pipe()</code></a> on a <a href="stream.html#class-streamwritable"><code>Writable</code></a> stream.</p>
1497
- * <p><a id="ERR_STREAM_DESTROYED"></a></p>
1498
- */
1499
- ERR_STREAM_CANNOT_PIPE = "ERR_STREAM_CANNOT_PIPE",
1500
- /**
1501
- * <p>A stream method was called that cannot complete because the stream was
1502
- * destroyed using <code>stream.destroy()</code>.</p>
1503
- * <p><a id="ERR_STREAM_NULL_VALUES"></a></p>
1504
- */
1505
- ERR_STREAM_DESTROYED = "ERR_STREAM_DESTROYED",
1506
- /**
1507
- * <p>An attempt was made to call <a href="stream.html#writablewritechunk-encoding-callback"><code>stream.write()</code></a> with a <code>null</code> chunk.</p>
1508
- * <p><a id="ERR_STREAM_PREMATURE_CLOSE"></a></p>
1509
- */
1510
- ERR_STREAM_NULL_VALUES = "ERR_STREAM_NULL_VALUES",
1511
- /**
1512
- * <p>An error returned by <code>stream.finished()</code> and <code>stream.pipeline()</code>, when a stream
1513
- * or a pipeline ends non gracefully with no explicit error.</p>
1514
- * <p><a id="ERR_STREAM_PUSH_AFTER_EOF"></a></p>
1515
- */
1516
- ERR_STREAM_PREMATURE_CLOSE = "ERR_STREAM_PREMATURE_CLOSE",
1517
- /**
1518
- * <p>An attempt was made to call <a href="stream.html#readablepushchunk-encoding"><code>stream.push()</code></a> after a <code>null</code>(EOF) had been
1519
- * pushed to the stream.</p>
1520
- * <p><a id="ERR_STREAM_UNABLE_TO_PIPE"></a></p>
1521
- */
1522
- ERR_STREAM_PUSH_AFTER_EOF = "ERR_STREAM_PUSH_AFTER_EOF",
1523
- /**
1524
- * <p>An attempt was made to pipe to a closed or destroyed stream in a pipeline.</p>
1525
- * <p><a id="ERR_STREAM_UNSHIFT_AFTER_END_EVENT"></a></p>
1526
- */
1527
- ERR_STREAM_UNABLE_TO_PIPE = "ERR_STREAM_UNABLE_TO_PIPE",
1528
- /**
1529
- * <p>An attempt was made to call <a href="stream.html#readableunshiftchunk-encoding"><code>stream.unshift()</code></a> after the <code>'end'</code> event was
1530
- * emitted.</p>
1531
- * <p><a id="ERR_STREAM_WRAP"></a></p>
1532
- */
1533
- ERR_STREAM_UNSHIFT_AFTER_END_EVENT = "ERR_STREAM_UNSHIFT_AFTER_END_EVENT",
1534
- /**
1535
- * <p>Prevents an abort if a string decoder was set on the Socket or if the decoder
1536
- * is in <code>objectMode</code>.</p>
1537
- * <pre><code class="language-js">const Socket = require('node:net').Socket;
1538
- * const instance = new Socket();
1539
- *
1540
- * instance.setEncoding('utf8');
1541
- * </code></pre>
1542
- * <p><a id="ERR_STREAM_WRITE_AFTER_END"></a></p>
1543
- */
1544
- ERR_STREAM_WRAP = "ERR_STREAM_WRAP",
1545
- /**
1546
- * <p>An attempt was made to call <a href="stream.html#writablewritechunk-encoding-callback"><code>stream.write()</code></a> after <code>stream.end()</code> has been
1547
- * called.</p>
1548
- * <p><a id="ERR_STRING_TOO_LONG"></a></p>
1549
- */
1550
- ERR_STREAM_WRITE_AFTER_END = "ERR_STREAM_WRITE_AFTER_END",
1551
- /**
1552
- * <p>An attempt has been made to create a string longer than the maximum allowed
1553
- * length.</p>
1554
- * <p><a id="ERR_SYNTHETIC"></a></p>
1555
- */
1556
- ERR_STRING_TOO_LONG = "ERR_STRING_TOO_LONG",
1557
- /**
1558
- * <p>An artificial error object used to capture the call stack for diagnostic
1559
- * reports.</p>
1560
- * <p><a id="ERR_SYSTEM_ERROR"></a></p>
1561
- */
1562
- ERR_SYNTHETIC = "ERR_SYNTHETIC",
1563
- /**
1564
- * <p>An unspecified or non-specific system error has occurred within the Node.js
1565
- * process. The error object will have an <code>err.info</code> object property with
1566
- * additional details.</p>
1567
- * <p><a id="ERR_TAP_LEXER_ERROR"></a></p>
1568
- */
1569
- ERR_SYSTEM_ERROR = "ERR_SYSTEM_ERROR",
1570
- /**
1571
- * <p>An error representing a failing lexer state.</p>
1572
- * <p><a id="ERR_TAP_PARSER_ERROR"></a></p>
1573
- */
1574
- ERR_TAP_LEXER_ERROR = "ERR_TAP_LEXER_ERROR",
1575
- /**
1576
- * <p>An error representing a failing parser state. Additional information about
1577
- * the token causing the error is available via the <code>cause</code> property.</p>
1578
- * <p><a id="ERR_TAP_VALIDATION_ERROR"></a></p>
1579
- */
1580
- ERR_TAP_PARSER_ERROR = "ERR_TAP_PARSER_ERROR",
1581
- /**
1582
- * <p>This error represents a failed TAP validation.</p>
1583
- * <p><a id="ERR_TEST_FAILURE"></a></p>
1584
- */
1585
- ERR_TAP_VALIDATION_ERROR = "ERR_TAP_VALIDATION_ERROR",
1586
- /**
1587
- * <p>This error represents a failed test. Additional information about the failure
1588
- * is available via the <code>cause</code> property. The <code>failureType</code> property specifies
1589
- * what the test was doing when the failure occurred.</p>
1590
- * <p><a id="ERR_TLS_ALPN_CALLBACK_INVALID_RESULT"></a></p>
1591
- */
1592
- ERR_TEST_FAILURE = "ERR_TEST_FAILURE",
1593
- /**
1594
- * <p>This error is thrown when an <code>ALPNCallback</code> returns a value that is not in the
1595
- * list of ALPN protocols offered by the client.</p>
1596
- * <p><a id="ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS"></a></p>
1597
- */
1598
- ERR_TLS_ALPN_CALLBACK_INVALID_RESULT = "ERR_TLS_ALPN_CALLBACK_INVALID_RESULT",
1599
- /**
1600
- * <p>This error is thrown when creating a <code>TLSServer</code> if the TLS options include
1601
- * both <code>ALPNProtocols</code> and <code>ALPNCallback</code>. These options are mutually exclusive.</p>
1602
- * <p><a id="ERR_TLS_CERT_ALTNAME_FORMAT"></a></p>
1603
- */
1604
- ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS = "ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS",
1605
- /**
1606
- * <p>This error is thrown by <code>checkServerIdentity</code> if a user-supplied
1607
- * <code>subjectaltname</code> property violates encoding rules. Certificate objects produced
1608
- * by Node.js itself always comply with encoding rules and will never cause
1609
- * this error.</p>
1610
- * <p><a id="ERR_TLS_CERT_ALTNAME_INVALID"></a></p>
1611
- */
1612
- ERR_TLS_CERT_ALTNAME_FORMAT = "ERR_TLS_CERT_ALTNAME_FORMAT",
1613
- /**
1614
- * <p>While using TLS, the host name/IP of the peer did not match any of the
1615
- * <code>subjectAltNames</code> in its certificate.</p>
1616
- * <p><a id="ERR_TLS_DH_PARAM_SIZE"></a></p>
1617
- */
1618
- ERR_TLS_CERT_ALTNAME_INVALID = "ERR_TLS_CERT_ALTNAME_INVALID",
1619
- /**
1620
- * <p>While using TLS, the parameter offered for the Diffie-Hellman (<code>DH</code>)
1621
- * key-agreement protocol is too small. By default, the key length must be greater
1622
- * than or equal to 1024 bits to avoid vulnerabilities, even though it is strongly
1623
- * recommended to use 2048 bits or larger for stronger security.</p>
1624
- * <p><a id="ERR_TLS_HANDSHAKE_TIMEOUT"></a></p>
1625
- */
1626
- ERR_TLS_DH_PARAM_SIZE = "ERR_TLS_DH_PARAM_SIZE",
1627
- /**
1628
- * <p>A TLS/SSL handshake timed out. In this case, the server must also abort the
1629
- * connection.</p>
1630
- * <p><a id="ERR_TLS_INVALID_CONTEXT"></a></p>
1631
- */
1632
- ERR_TLS_HANDSHAKE_TIMEOUT = "ERR_TLS_HANDSHAKE_TIMEOUT",
1633
- /**
1634
- * <p>The context must be a <code>SecureContext</code>.</p>
1635
- * <p><a id="ERR_TLS_INVALID_PROTOCOL_METHOD"></a></p>
1636
- */
1637
- ERR_TLS_INVALID_CONTEXT = "ERR_TLS_INVALID_CONTEXT",
1638
- /**
1639
- * <p>The specified <code>secureProtocol</code> method is invalid. It is either unknown, or
1640
- * disabled because it is insecure.</p>
1641
- * <p><a id="ERR_TLS_INVALID_PROTOCOL_VERSION"></a></p>
1642
- */
1643
- ERR_TLS_INVALID_PROTOCOL_METHOD = "ERR_TLS_INVALID_PROTOCOL_METHOD",
1644
- /**
1645
- * <p>Valid TLS protocol versions are <code>'TLSv1'</code>, <code>'TLSv1.1'</code>, or <code>'TLSv1.2'</code>.</p>
1646
- * <p><a id="ERR_TLS_INVALID_STATE"></a></p>
1647
- */
1648
- ERR_TLS_INVALID_PROTOCOL_VERSION = "ERR_TLS_INVALID_PROTOCOL_VERSION",
1649
- /**
1650
- * <p>The TLS socket must be connected and securely established. Ensure the 'secure'
1651
- * event is emitted before continuing.</p>
1652
- * <p><a id="ERR_TLS_PROTOCOL_VERSION_CONFLICT"></a></p>
1653
- */
1654
- ERR_TLS_INVALID_STATE = "ERR_TLS_INVALID_STATE",
1655
- /**
1656
- * <p>Attempting to set a TLS protocol <code>minVersion</code> or <code>maxVersion</code> conflicts with an
1657
- * attempt to set the <code>secureProtocol</code> explicitly. Use one mechanism or the other.</p>
1658
- * <p><a id="ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED"></a></p>
1659
- */
1660
- ERR_TLS_PROTOCOL_VERSION_CONFLICT = "ERR_TLS_PROTOCOL_VERSION_CONFLICT",
1661
- /**
1662
- * <p>Failed to set PSK identity hint. Hint may be too long.</p>
1663
- * <p><a id="ERR_TLS_RENEGOTIATION_DISABLED"></a></p>
1664
- */
1665
- ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED = "ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED",
1666
- /**
1667
- * <p>An attempt was made to renegotiate TLS on a socket instance with renegotiation
1668
- * disabled.</p>
1669
- * <p><a id="ERR_TLS_REQUIRED_SERVER_NAME"></a></p>
1670
- */
1671
- ERR_TLS_RENEGOTIATION_DISABLED = "ERR_TLS_RENEGOTIATION_DISABLED",
1672
- /**
1673
- * <p>While using TLS, the <code>server.addContext()</code> method was called without providing
1674
- * a host name in the first parameter.</p>
1675
- * <p><a id="ERR_TLS_SESSION_ATTACK"></a></p>
1676
- */
1677
- ERR_TLS_REQUIRED_SERVER_NAME = "ERR_TLS_REQUIRED_SERVER_NAME",
1678
- /**
1679
- * <p>An excessive amount of TLS renegotiations is detected, which is a potential
1680
- * vector for denial-of-service attacks.</p>
1681
- * <p><a id="ERR_TLS_SNI_FROM_SERVER"></a></p>
1682
- */
1683
- ERR_TLS_SESSION_ATTACK = "ERR_TLS_SESSION_ATTACK",
1684
- /**
1685
- * <p>An attempt was made to issue Server Name Indication from a TLS server-side
1686
- * socket, which is only valid from a client.</p>
1687
- * <p><a id="ERR_TRACE_EVENTS_CATEGORY_REQUIRED"></a></p>
1688
- */
1689
- ERR_TLS_SNI_FROM_SERVER = "ERR_TLS_SNI_FROM_SERVER",
1690
- /**
1691
- * <p>The <code>trace_events.createTracing()</code> method requires at least one trace event
1692
- * category.</p>
1693
- * <p><a id="ERR_TRACE_EVENTS_UNAVAILABLE"></a></p>
1694
- */
1695
- ERR_TRACE_EVENTS_CATEGORY_REQUIRED = "ERR_TRACE_EVENTS_CATEGORY_REQUIRED",
1696
- /**
1697
- * <p>The <code>node:trace_events</code> module could not be loaded because Node.js was compiled
1698
- * with the <code>--without-v8-platform</code> flag.</p>
1699
- * <p><a id="ERR_TRANSFORM_ALREADY_TRANSFORMING"></a></p>
1700
- */
1701
- ERR_TRACE_EVENTS_UNAVAILABLE = "ERR_TRACE_EVENTS_UNAVAILABLE",
1702
- /**
1703
- * <p>A <code>Transform</code> stream finished while it was still transforming.</p>
1704
- * <p><a id="ERR_TRANSFORM_WITH_LENGTH_0"></a></p>
1705
- */
1706
- ERR_TRANSFORM_ALREADY_TRANSFORMING = "ERR_TRANSFORM_ALREADY_TRANSFORMING",
1707
- /**
1708
- * <p>A <code>Transform</code> stream finished with data still in the write buffer.</p>
1709
- * <p><a id="ERR_TTY_INIT_FAILED"></a></p>
1710
- */
1711
- ERR_TRANSFORM_WITH_LENGTH_0 = "ERR_TRANSFORM_WITH_LENGTH_0",
1712
- /**
1713
- * <p>The initialization of a TTY failed due to a system error.</p>
1714
- * <p><a id="ERR_UNAVAILABLE_DURING_EXIT"></a></p>
1715
- */
1716
- ERR_TTY_INIT_FAILED = "ERR_TTY_INIT_FAILED",
1717
- /**
1718
- * <p>Function was called within a <a href="process.html#event-exit"><code>process.on('exit')</code></a> handler that shouldn't be
1719
- * called within <a href="process.html#event-exit"><code>process.on('exit')</code></a> handler.</p>
1720
- * <p><a id="ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET"></a></p>
1721
- */
1722
- ERR_UNAVAILABLE_DURING_EXIT = "ERR_UNAVAILABLE_DURING_EXIT",
1723
- /**
1724
- * <p><a href="process.html#processsetuncaughtexceptioncapturecallbackfn"><code>process.setUncaughtExceptionCaptureCallback()</code></a> was called twice,
1725
- * without first resetting the callback to <code>null</code>.</p>
1726
- * <p>This error is designed to prevent accidentally overwriting a callback registered
1727
- * from another module.</p>
1728
- * <p><a id="ERR_UNESCAPED_CHARACTERS"></a></p>
1729
- */
1730
- ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET = "ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET",
1731
- /**
1732
- * <p>A string that contained unescaped characters was received.</p>
1733
- * <p><a id="ERR_UNHANDLED_ERROR"></a></p>
1734
- */
1735
- ERR_UNESCAPED_CHARACTERS = "ERR_UNESCAPED_CHARACTERS",
1736
- /**
1737
- * <p>An unhandled error occurred (for instance, when an <code>'error'</code> event is emitted
1738
- * by an <a href="events.html#class-eventemitter"><code>EventEmitter</code></a> but an <code>'error'</code> handler is not registered).</p>
1739
- * <p><a id="ERR_UNKNOWN_BUILTIN_MODULE"></a></p>
1740
- */
1741
- ERR_UNHANDLED_ERROR = "ERR_UNHANDLED_ERROR",
1742
- /**
1743
- * <p>Used to identify a specific kind of internal Node.js error that should not
1744
- * typically be triggered by user code. Instances of this error point to an
1745
- * internal bug within the Node.js binary itself.</p>
1746
- * <p><a id="ERR_UNKNOWN_CREDENTIAL"></a></p>
1747
- */
1748
- ERR_UNKNOWN_BUILTIN_MODULE = "ERR_UNKNOWN_BUILTIN_MODULE",
1749
- /**
1750
- * <p>A Unix group or user identifier that does not exist was passed.</p>
1751
- * <p><a id="ERR_UNKNOWN_ENCODING"></a></p>
1752
- */
1753
- ERR_UNKNOWN_CREDENTIAL = "ERR_UNKNOWN_CREDENTIAL",
1754
- /**
1755
- * <p>An invalid or unknown encoding option was passed to an API.</p>
1756
- * <p><a id="ERR_UNKNOWN_FILE_EXTENSION"></a></p>
1757
- */
1758
- ERR_UNKNOWN_ENCODING = "ERR_UNKNOWN_ENCODING",
1759
- /**
1760
- * <p>An attempt was made to load a module with an unknown or unsupported file
1761
- * extension.</p>
1762
- * <p><a id="ERR_UNKNOWN_MODULE_FORMAT"></a></p>
1763
- */
1764
- ERR_UNKNOWN_FILE_EXTENSION = "ERR_UNKNOWN_FILE_EXTENSION",
1765
- /**
1766
- * <p>An attempt was made to load a module with an unknown or unsupported format.</p>
1767
- * <p><a id="ERR_UNKNOWN_SIGNAL"></a></p>
1768
- */
1769
- ERR_UNKNOWN_MODULE_FORMAT = "ERR_UNKNOWN_MODULE_FORMAT",
1770
- /**
1771
- * <p>An invalid or unknown process signal was passed to an API expecting a valid
1772
- * signal (such as <a href="child_process.html#subprocesskillsignal"><code>subprocess.kill()</code></a>).</p>
1773
- * <p><a id="ERR_UNSUPPORTED_DIR_IMPORT"></a></p>
1774
- */
1775
- ERR_UNKNOWN_SIGNAL = "ERR_UNKNOWN_SIGNAL",
1776
- /**
1777
- * <p><code>import</code> a directory URL is unsupported. Instead,
1778
- * <a href="packages.html#self-referencing-a-package-using-its-name">self-reference a package using its name</a> and <a href="packages.html#subpath-exports">define a custom subpath</a> in
1779
- * the <a href="packages.html#exports"><code>"exports"</code></a> field of the <a href="packages.html#nodejs-packagejson-field-definitions"><code>package.json</code></a> file.</p>
1780
- * <pre><code class="language-mjs">import './'; // unsupported
1781
- * import './index.js'; // supported
1782
- * import 'package-name'; // supported
1783
- * </code></pre>
1784
- * <p><a id="ERR_UNSUPPORTED_ESM_URL_SCHEME"></a></p>
1785
- */
1786
- ERR_UNSUPPORTED_DIR_IMPORT = "ERR_UNSUPPORTED_DIR_IMPORT",
1787
- /**
1788
- * <p><code>import</code> with URL schemes other than <code>file</code> and <code>data</code> is unsupported.</p>
1789
- * <p><a id="ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING"></a></p>
1790
- */
1791
- ERR_UNSUPPORTED_ESM_URL_SCHEME = "ERR_UNSUPPORTED_ESM_URL_SCHEME",
1792
- /**
1793
- * <p>Type stripping is not supported for files descendent of a <code>node_modules</code> directory.</p>
1794
- * <p><a id="ERR_UNSUPPORTED_RESOLVE_REQUEST"></a></p>
1795
- */
1796
- ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING = "ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING",
1797
- /**
1798
- * <p>An attempt was made to resolve an invalid module referrer. This can happen when
1799
- * importing or calling <code>import.meta.resolve()</code> with either:</p>
1800
- * <ul>
1801
- * <li>a bare specifier that is not a builtin module from a module whose URL scheme
1802
- * is not <code>file</code>.</li>
1803
- * <li>a <a href="https://url.spec.whatwg.org/#relative-url-string">relative URL</a> from a module whose URL scheme is not a <a href="https://url.spec.whatwg.org/#special-scheme">special scheme</a>.</li>
1804
- * </ul>
1805
- * <pre><code class="language-mjs">try {
1806
- * // Trying to import the package 'bare-specifier' from a `data:` URL module:
1807
- * await import('data:text/javascript,import "bare-specifier"');
1808
- * } catch (e) {
1809
- * console.log(e.code); // ERR_UNSUPPORTED_RESOLVE_REQUEST
1810
- * }
1811
- * </code></pre>
1812
- * <p><a id="ERR_USE_AFTER_CLOSE"></a></p>
1813
- */
1814
- ERR_UNSUPPORTED_RESOLVE_REQUEST = "ERR_UNSUPPORTED_RESOLVE_REQUEST",
1815
- /**
1816
- * <p>An attempt was made to use something that was already closed.</p>
1817
- * <p><a id="ERR_VALID_PERFORMANCE_ENTRY_TYPE"></a></p>
1818
- */
1819
- ERR_USE_AFTER_CLOSE = "ERR_USE_AFTER_CLOSE",
1820
- /**
1821
- * <p>While using the Performance Timing API (<code>perf_hooks</code>), no valid performance
1822
- * entry types are found.</p>
1823
- * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a></p>
1824
- */
1825
- ERR_VALID_PERFORMANCE_ENTRY_TYPE = "ERR_VALID_PERFORMANCE_ENTRY_TYPE",
1826
- /**
1827
- * <p>A dynamic import callback was not specified.</p>
1828
- * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"></a></p>
1829
- */
1830
- ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING",
1831
- /**
1832
- * <p>A dynamic import callback was invoked without <code>--experimental-vm-modules</code>.</p>
1833
- * <p><a id="ERR_VM_MODULE_ALREADY_LINKED"></a></p>
1834
- */
1835
- ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG",
1836
- /**
1837
- * <p>The module attempted to be linked is not eligible for linking, because of one of
1838
- * the following reasons:</p>
1839
- * <ul>
1840
- * <li>It has already been linked (<code>linkingStatus</code> is <code>'linked'</code>)</li>
1841
- * <li>It is being linked (<code>linkingStatus</code> is <code>'linking'</code>)</li>
1842
- * <li>Linking has failed for this module (<code>linkingStatus</code> is <code>'errored'</code>)</li>
1843
- * </ul>
1844
- * <p><a id="ERR_VM_MODULE_CACHED_DATA_REJECTED"></a></p>
1845
- */
1846
- ERR_VM_MODULE_ALREADY_LINKED = "ERR_VM_MODULE_ALREADY_LINKED",
1847
- /**
1848
- * <p>The <code>cachedData</code> option passed to a module constructor is invalid.</p>
1849
- * <p><a id="ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA"></a></p>
1850
- */
1851
- ERR_VM_MODULE_CACHED_DATA_REJECTED = "ERR_VM_MODULE_CACHED_DATA_REJECTED",
1852
- /**
1853
- * <p>Cached data cannot be created for modules which have already been evaluated.</p>
1854
- * <p><a id="ERR_VM_MODULE_DIFFERENT_CONTEXT"></a></p>
1855
- */
1856
- ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA = "ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA",
1857
- /**
1858
- * <p>The module being returned from the linker function is from a different context
1859
- * than the parent module. Linked modules must share the same context.</p>
1860
- * <p><a id="ERR_VM_MODULE_LINK_FAILURE"></a></p>
1861
- */
1862
- ERR_VM_MODULE_DIFFERENT_CONTEXT = "ERR_VM_MODULE_DIFFERENT_CONTEXT",
1863
- /**
1864
- * <p>The module was unable to be linked due to a failure.</p>
1865
- * <p><a id="ERR_VM_MODULE_NOT_MODULE"></a></p>
1866
- */
1867
- ERR_VM_MODULE_LINK_FAILURE = "ERR_VM_MODULE_LINK_FAILURE",
1868
- /**
1869
- * <p>The fulfilled value of a linking promise is not a <code>vm.Module</code> object.</p>
1870
- * <p><a id="ERR_VM_MODULE_STATUS"></a></p>
1871
- */
1872
- ERR_VM_MODULE_NOT_MODULE = "ERR_VM_MODULE_NOT_MODULE",
1873
- /**
1874
- * <p>The current module's status does not allow for this operation. The specific
1875
- * meaning of the error depends on the specific function.</p>
1876
- * <p><a id="ERR_WASI_ALREADY_STARTED"></a></p>
1877
- */
1878
- ERR_VM_MODULE_STATUS = "ERR_VM_MODULE_STATUS",
1879
- /**
1880
- * <p>The WASI instance has already started.</p>
1881
- * <p><a id="ERR_WASI_NOT_STARTED"></a></p>
1882
- */
1883
- ERR_WASI_ALREADY_STARTED = "ERR_WASI_ALREADY_STARTED",
1884
- /**
1885
- * <p>The WASI instance has not been started.</p>
1886
- * <p><a id="ERR_WEBASSEMBLY_RESPONSE"></a></p>
1887
- */
1888
- ERR_WASI_NOT_STARTED = "ERR_WASI_NOT_STARTED",
1889
- /**
1890
- * <p>The <code>Response</code> that has been passed to <code>WebAssembly.compileStreaming</code> or to
1891
- * <code>WebAssembly.instantiateStreaming</code> is not a valid WebAssembly response.</p>
1892
- * <p><a id="ERR_WORKER_INIT_FAILED"></a></p>
1893
- */
1894
- ERR_WEBASSEMBLY_RESPONSE = "ERR_WEBASSEMBLY_RESPONSE",
1895
- /**
1896
- * <p>The <code>Worker</code> initialization failed.</p>
1897
- * <p><a id="ERR_WORKER_INVALID_EXEC_ARGV"></a></p>
1898
- */
1899
- ERR_WORKER_INIT_FAILED = "ERR_WORKER_INIT_FAILED",
1900
- /**
1901
- * <p>The <code>execArgv</code> option passed to the <code>Worker</code> constructor contains
1902
- * invalid flags.</p>
1903
- * <p><a id="ERR_WORKER_MESSAGING_ERRORED"></a></p>
1904
- */
1905
- ERR_WORKER_INVALID_EXEC_ARGV = "ERR_WORKER_INVALID_EXEC_ARGV",
1906
- /**
1907
- * <p>The destination thread threw an error while processing a message sent via <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a>.</p>
1908
- * <p><a id="ERR_WORKER_MESSAGING_FAILED"></a></p>
1909
- */
1910
- ERR_WORKER_MESSAGING_ERRORED = "ERR_WORKER_MESSAGING_ERRORED",
1911
- /**
1912
- * <p>The thread requested in <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> is invalid or has no <code>workerMessage</code> listener.</p>
1913
- * <p><a id="ERR_WORKER_MESSAGING_SAME_THREAD"></a></p>
1914
- */
1915
- ERR_WORKER_MESSAGING_FAILED = "ERR_WORKER_MESSAGING_FAILED",
1916
- /**
1917
- * <p>The thread id requested in <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> is the current thread id.</p>
1918
- * <p><a id="ERR_WORKER_MESSAGING_TIMEOUT"></a></p>
1919
- */
1920
- ERR_WORKER_MESSAGING_SAME_THREAD = "ERR_WORKER_MESSAGING_SAME_THREAD",
1921
- /**
1922
- * <p>Sending a message via <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> timed out.</p>
1923
- * <p><a id="ERR_WORKER_NOT_RUNNING"></a></p>
1924
- */
1925
- ERR_WORKER_MESSAGING_TIMEOUT = "ERR_WORKER_MESSAGING_TIMEOUT",
1926
- /**
1927
- * <p>An operation failed because the <code>Worker</code> instance is not currently running.</p>
1928
- * <p><a id="ERR_WORKER_OUT_OF_MEMORY"></a></p>
1929
- */
1930
- ERR_WORKER_NOT_RUNNING = "ERR_WORKER_NOT_RUNNING",
1931
- /**
1932
- * <p>The <code>Worker</code> instance terminated because it reached its memory limit.</p>
1933
- * <p><a id="ERR_WORKER_PATH"></a></p>
1934
- */
1935
- ERR_WORKER_OUT_OF_MEMORY = "ERR_WORKER_OUT_OF_MEMORY",
1936
- /**
1937
- * <p>The path for the main script of a worker is neither an absolute path
1938
- * nor a relative path starting with <code>./</code> or <code>../</code>.</p>
1939
- * <p><a id="ERR_WORKER_UNSERIALIZABLE_ERROR"></a></p>
1940
- */
1941
- ERR_WORKER_PATH = "ERR_WORKER_PATH",
1942
- /**
1943
- * <p>All attempts at serializing an uncaught exception from a worker thread failed.</p>
1944
- * <p><a id="ERR_WORKER_UNSUPPORTED_OPERATION"></a></p>
1945
- */
1946
- ERR_WORKER_UNSERIALIZABLE_ERROR = "ERR_WORKER_UNSERIALIZABLE_ERROR",
1947
- /**
1948
- * <p>The requested functionality is not supported in worker threads.</p>
1949
- * <p><a id="ERR_ZLIB_INITIALIZATION_FAILED"></a></p>
1950
- */
1951
- ERR_WORKER_UNSUPPORTED_OPERATION = "ERR_WORKER_UNSUPPORTED_OPERATION",
1952
- /**
1953
- * <p>Creation of a <a href="zlib.html"><code>zlib</code></a> object failed due to incorrect configuration.</p>
1954
- * <p><a id="HPE_CHUNK_EXTENSIONS_OVERFLOW"></a></p>
1955
- */
1956
- ERR_ZLIB_INITIALIZATION_FAILED = "ERR_ZLIB_INITIALIZATION_FAILED",
1957
- /**
1958
- * <p>Too much data was received for a chunk extensions. In order to protect against
1959
- * malicious or malconfigured clients, if more than 16 KiB of data is received
1960
- * then an <code>Error</code> with this code will be emitted.</p>
1961
- * <p><a id="HPE_HEADER_OVERFLOW"></a></p>
1962
- */
1963
- HPE_CHUNK_EXTENSIONS_OVERFLOW = "HPE_CHUNK_EXTENSIONS_OVERFLOW",
1964
- /**
1965
- * <p>Too much HTTP header data was received. In order to protect against malicious or
1966
- * malconfigured clients, if more than <code>maxHeaderSize</code> of HTTP header data is received then
1967
- * HTTP parsing will abort without a request or response object being created, and
1968
- * an <code>Error</code> with this code will be emitted.</p>
1969
- * <p><a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a></p>
1970
- */
1971
- HPE_HEADER_OVERFLOW = "HPE_HEADER_OVERFLOW",
1972
- /**
1973
- * <p>Server is sending both a <code>Content-Length</code> header and <code>Transfer-Encoding: chunked</code>.</p>
1974
- * <p><code>Transfer-Encoding: chunked</code> allows the server to maintain an HTTP persistent
1975
- * connection for dynamically generated content.
1976
- * In this case, the <code>Content-Length</code> HTTP header cannot be used.</p>
1977
- * <p>Use <code>Content-Length</code> or <code>Transfer-Encoding: chunked</code>.</p>
1978
- * <p><a id="MODULE_NOT_FOUND"></a></p>
1979
- */
1980
- HPE_UNEXPECTED_CONTENT_LENGTH = "HPE_UNEXPECTED_CONTENT_LENGTH",
1981
- /**
1982
- * <p>A module file could not be resolved by the CommonJS modules loader while
1983
- * attempting a <a href="modules.html#requireid"><code>require()</code></a> operation or when loading the program entry point.</p>
1984
- */
1985
- MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
1986
- /**
1987
- * <p>The value passed to <code>postMessage()</code> contained an object that is not supported
1988
- * for transferring.</p>
1989
- * <p><a id="ERR_CPU_USAGE"></a></p>
1990
- * @deprecated
1991
- */
1992
- ERR_CANNOT_TRANSFER_OBJECT = "ERR_CANNOT_TRANSFER_OBJECT",
1993
- /**
1994
- * <p>The native call from <code>process.cpuUsage</code> could not be processed.</p>
1995
- * <p><a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a></p>
1996
- * @deprecated
1997
- */
1998
- ERR_CPU_USAGE = "ERR_CPU_USAGE",
1999
- /**
2000
- * <p>The UTF-16 encoding was used with <a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a>. While the
2001
- * <code>hash.digest()</code> method does allow an <code>encoding</code> argument to be passed in,
2002
- * causing the method to return a string rather than a <code>Buffer</code>, the UTF-16
2003
- * encoding (e.g. <code>ucs</code> or <code>utf16le</code>) is not supported.</p>
2004
- * <p><a id="ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"></a></p>
2005
- * @deprecated
2006
- */
2007
- ERR_CRYPTO_HASH_DIGEST_NO_UTF16 = "ERR_CRYPTO_HASH_DIGEST_NO_UTF16",
2008
- /**
2009
- * <p>An incompatible combination of options was passed to <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or
2010
- * <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a>. New versions of Node.js use the error code
2011
- * <a href="#err_incompatible_option_pair"><code>ERR_INCOMPATIBLE_OPTION_PAIR</code></a> instead, which is consistent with other APIs.</p>
2012
- * <p><a id="ERR_FS_INVALID_SYMLINK_TYPE"></a></p>
2013
- * @deprecated
2014
- */
2015
- ERR_CRYPTO_SCRYPT_INVALID_PARAMETER = "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER",
2016
- /**
2017
- * <p>An invalid symlink type was passed to the <a href="fs.html#fssymlinktarget-path-type-callback"><code>fs.symlink()</code></a> or
2018
- * <a href="fs.html#fssymlinksynctarget-path-type"><code>fs.symlinkSync()</code></a> methods.</p>
2019
- * <p><a id="ERR_HTTP2_FRAME_ERROR"></a></p>
2020
- * @deprecated
2021
- */
2022
- ERR_FS_INVALID_SYMLINK_TYPE = "ERR_FS_INVALID_SYMLINK_TYPE",
2023
- /**
2024
- * <p>Used when a failure occurs sending an individual frame on the HTTP/2
2025
- * session.</p>
2026
- * <p><a id="ERR_HTTP2_HEADERS_OBJECT"></a></p>
2027
- * @deprecated
2028
- */
2029
- ERR_HTTP2_FRAME_ERROR = "ERR_HTTP2_FRAME_ERROR",
2030
- /**
2031
- * <p>Used when an HTTP/2 Headers Object is expected.</p>
2032
- * <p><a id="ERR_HTTP2_HEADER_REQUIRED"></a></p>
2033
- * @deprecated
2034
- */
2035
- ERR_HTTP2_HEADERS_OBJECT = "ERR_HTTP2_HEADERS_OBJECT",
2036
- /**
2037
- * <p>Used when a required header is missing in an HTTP/2 message.</p>
2038
- * <p><a id="ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND"></a></p>
2039
- * @deprecated
2040
- */
2041
- ERR_HTTP2_HEADER_REQUIRED = "ERR_HTTP2_HEADER_REQUIRED",
2042
- /**
2043
- * <p>HTTP/2 informational headers must only be sent <em>prior</em> to calling the
2044
- * <code>Http2Stream.prototype.respond()</code> method.</p>
2045
- * <p><a id="ERR_HTTP2_STREAM_CLOSED"></a></p>
2046
- * @deprecated
2047
- */
2048
- ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND = "ERR_HTTP2_INFO_HEADERS_AFTER_RESPOND",
2049
- /**
2050
- * <p>Used when an action has been performed on an HTTP/2 Stream that has already
2051
- * been closed.</p>
2052
- * <p><a id="ERR_HTTP_INVALID_CHAR"></a></p>
2053
- * @deprecated
2054
- */
2055
- ERR_HTTP2_STREAM_CLOSED = "ERR_HTTP2_STREAM_CLOSED",
2056
- /**
2057
- * <p>Used when an invalid character is found in an HTTP response status message
2058
- * (reason phrase).</p>
2059
- * <p><a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a></p>
2060
- * @deprecated
2061
- */
2062
- ERR_HTTP_INVALID_CHAR = "ERR_HTTP_INVALID_CHAR",
2063
- /**
2064
- * <p>An import assertion has failed, preventing the specified module to be imported.</p>
2065
- * <p><a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a></p>
2066
- * @deprecated
2067
- */
2068
- ERR_IMPORT_ASSERTION_TYPE_FAILED = "ERR_IMPORT_ASSERTION_TYPE_FAILED",
2069
- /**
2070
- * <p>An import assertion is missing, preventing the specified module to be imported.</p>
2071
- * <p><a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a></p>
2072
- * @deprecated
2073
- */
2074
- ERR_IMPORT_ASSERTION_TYPE_MISSING = "ERR_IMPORT_ASSERTION_TYPE_MISSING",
2075
- /**
2076
- * <p>An import attribute is not supported by this version of Node.js.</p>
2077
- * <p><a id="ERR_INDEX_OUT_OF_RANGE"></a></p>
2078
- * @deprecated
2079
- */
2080
- ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED = "ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED",
2081
- /**
2082
- * <p>A given index was out of the accepted range (e.g. negative offsets).</p>
2083
- * <p><a id="ERR_INVALID_OPT_VALUE"></a></p>
2084
- * @deprecated
2085
- */
2086
- ERR_INDEX_OUT_OF_RANGE = "ERR_INDEX_OUT_OF_RANGE",
2087
- /**
2088
- * <p>An invalid or unexpected value was passed in an options object.</p>
2089
- * <p><a id="ERR_INVALID_OPT_VALUE_ENCODING"></a></p>
2090
- * @deprecated
2091
- */
2092
- ERR_INVALID_OPT_VALUE = "ERR_INVALID_OPT_VALUE",
2093
- /**
2094
- * <p>An invalid or unknown file encoding was passed.</p>
2095
- * <p><a id="ERR_INVALID_PERFORMANCE_MARK"></a></p>
2096
- * @deprecated
2097
- */
2098
- ERR_INVALID_OPT_VALUE_ENCODING = "ERR_INVALID_OPT_VALUE_ENCODING",
2099
- /**
2100
- * <p>While using the Performance Timing API (<code>perf_hooks</code>), a performance mark is
2101
- * invalid.</p>
2102
- * <p><a id="ERR_INVALID_TRANSFER_OBJECT"></a></p>
2103
- * @deprecated
2104
- */
2105
- ERR_INVALID_PERFORMANCE_MARK = "ERR_INVALID_PERFORMANCE_MARK",
2106
- /**
2107
- * <p>An invalid transfer object was passed to <code>postMessage()</code>.</p>
2108
- * <p><a id="ERR_MANIFEST_ASSERT_INTEGRITY"></a></p>
2109
- * @deprecated
2110
- */
2111
- ERR_INVALID_TRANSFER_OBJECT = "ERR_INVALID_TRANSFER_OBJECT",
2112
- /**
2113
- * <p>An attempt was made to load a resource, but the resource did not match the
2114
- * integrity defined by the policy manifest. See the documentation for policy
2115
- * manifests for more information.</p>
2116
- * <p><a id="ERR_MANIFEST_DEPENDENCY_MISSING"></a></p>
2117
- * @deprecated
2118
- */
2119
- ERR_MANIFEST_ASSERT_INTEGRITY = "ERR_MANIFEST_ASSERT_INTEGRITY",
2120
- /**
2121
- * <p>An attempt was made to load a resource, but the resource was not listed as a
2122
- * dependency from the location that attempted to load it. See the documentation
2123
- * for policy manifests for more information.</p>
2124
- * <p><a id="ERR_MANIFEST_INTEGRITY_MISMATCH"></a></p>
2125
- * @deprecated
2126
- */
2127
- ERR_MANIFEST_DEPENDENCY_MISSING = "ERR_MANIFEST_DEPENDENCY_MISSING",
2128
- /**
2129
- * <p>An attempt was made to load a policy manifest, but the manifest had multiple
2130
- * entries for a resource which did not match each other. Update the manifest
2131
- * entries to match in order to resolve this error. See the documentation for
2132
- * policy manifests for more information.</p>
2133
- * <p><a id="ERR_MANIFEST_INVALID_RESOURCE_FIELD"></a></p>
2134
- * @deprecated
2135
- */
2136
- ERR_MANIFEST_INTEGRITY_MISMATCH = "ERR_MANIFEST_INTEGRITY_MISMATCH",
2137
- /**
2138
- * <p>A policy manifest resource had an invalid value for one of its fields. Update
2139
- * the manifest entry to match in order to resolve this error. See the
2140
- * documentation for policy manifests for more information.</p>
2141
- * <p><a id="ERR_MANIFEST_INVALID_SPECIFIER"></a></p>
2142
- * @deprecated
2143
- */
2144
- ERR_MANIFEST_INVALID_RESOURCE_FIELD = "ERR_MANIFEST_INVALID_RESOURCE_FIELD",
2145
- /**
2146
- * <p>A policy manifest resource had an invalid value for one of its dependency
2147
- * mappings. Update the manifest entry to match to resolve this error. See the
2148
- * documentation for policy manifests for more information.</p>
2149
- * <p><a id="ERR_MANIFEST_PARSE_POLICY"></a></p>
2150
- * @deprecated
2151
- */
2152
- ERR_MANIFEST_INVALID_SPECIFIER = "ERR_MANIFEST_INVALID_SPECIFIER",
2153
- /**
2154
- * <p>An attempt was made to load a policy manifest, but the manifest was unable to
2155
- * be parsed. See the documentation for policy manifests for more information.</p>
2156
- * <p><a id="ERR_MANIFEST_TDZ"></a></p>
2157
- * @deprecated
2158
- */
2159
- ERR_MANIFEST_PARSE_POLICY = "ERR_MANIFEST_PARSE_POLICY",
2160
- /**
2161
- * <p>An attempt was made to read from a policy manifest, but the manifest
2162
- * initialization has not yet taken place. This is likely a bug in Node.js.</p>
2163
- * <p><a id="ERR_MANIFEST_UNKNOWN_ONERROR"></a></p>
2164
- * @deprecated
2165
- */
2166
- ERR_MANIFEST_TDZ = "ERR_MANIFEST_TDZ",
2167
- /**
2168
- * <p>A policy manifest was loaded, but had an unknown value for its "onerror"
2169
- * behavior. See the documentation for policy manifests for more information.</p>
2170
- * <p><a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a></p>
2171
- * @deprecated
2172
- */
2173
- ERR_MANIFEST_UNKNOWN_ONERROR = "ERR_MANIFEST_UNKNOWN_ONERROR",
2174
- /**
2175
- * <p>This error code was replaced by <a href="#err_missing_transferable_in_transfer_list"><code>ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST</code></a>
2176
- * in Node.js v15.0.0, because it is no longer accurate as other types of
2177
- * transferable objects also exist now.</p>
2178
- * <p><a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a></p>
2179
- * @deprecated
2180
- */
2181
- ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST = "ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST",
2182
- /**
2183
- * <p>An object that needs to be explicitly listed in the <code>transferList</code> argument
2184
- * is in the object passed to a <a href="worker_threads.html#portpostmessagevalue-transferlist"><code>postMessage()</code></a> call, but is not provided
2185
- * in the <code>transferList</code> for that call. Usually, this is a <code>MessagePort</code>.</p>
2186
- * <p>In Node.js versions prior to v15.0.0, the error code being used here was
2187
- * <a href="#err_missing_message_port_in_transfer_list"><code>ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST</code></a>. However, the set of
2188
- * transferable object types has been expanded to cover more types than
2189
- * <code>MessagePort</code>.</p>
2190
- * <p><a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a></p>
2191
- * @deprecated
2192
- */
2193
- ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST = "ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST",
2194
- /**
2195
- * <p>Used by the <code>Node-API</code> when <code>Constructor.prototype</code> is not an object.</p>
2196
- * <p><a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a></p>
2197
- * @deprecated
2198
- */
2199
- ERR_NAPI_CONS_PROTOTYPE_OBJECT = "ERR_NAPI_CONS_PROTOTYPE_OBJECT",
2200
- /**
2201
- * <p>On the main thread, values are removed from the queue associated with the
2202
- * thread-safe function in an idle loop. This error indicates that an error
2203
- * has occurred when attempting to start the loop.</p>
2204
- * <p><a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a></p>
2205
- * @deprecated
2206
- */
2207
- ERR_NAPI_TSFN_START_IDLE_LOOP = "ERR_NAPI_TSFN_START_IDLE_LOOP",
2208
- /**
2209
- * <p>Once no more items are left in the queue, the idle loop must be suspended. This
2210
- * error indicates that the idle loop has failed to stop.</p>
2211
- * <p><a id="ERR_NO_LONGER_SUPPORTED"></a></p>
2212
- * @deprecated
2213
- */
2214
- ERR_NAPI_TSFN_STOP_IDLE_LOOP = "ERR_NAPI_TSFN_STOP_IDLE_LOOP",
2215
- /**
2216
- * <p>A Node.js API was called in an unsupported manner, such as
2217
- * <code>Buffer.write(string, encoding, offset[, length])</code>.</p>
2218
- * <p><a id="ERR_OUTOFMEMORY"></a></p>
2219
- * @deprecated
2220
- */
2221
- ERR_NO_LONGER_SUPPORTED = "ERR_NO_LONGER_SUPPORTED",
2222
- /**
2223
- * <p>Used generically to identify that an operation caused an out of memory
2224
- * condition.</p>
2225
- * <p><a id="ERR_PARSE_HISTORY_DATA"></a></p>
2226
- * @deprecated
2227
- */
2228
- ERR_OUTOFMEMORY = "ERR_OUTOFMEMORY",
2229
- /**
2230
- * <p>The <code>node:repl</code> module was unable to parse data from the REPL history file.</p>
2231
- * <p><a id="ERR_SOCKET_CANNOT_SEND"></a></p>
2232
- * @deprecated
2233
- */
2234
- ERR_PARSE_HISTORY_DATA = "ERR_PARSE_HISTORY_DATA",
2235
- /**
2236
- * <p>Data could not be sent on a socket.</p>
2237
- * <p><a id="ERR_STDERR_CLOSE"></a></p>
2238
- * @deprecated
2239
- */
2240
- ERR_SOCKET_CANNOT_SEND = "ERR_SOCKET_CANNOT_SEND",
2241
- /**
2242
- * <p>An attempt was made to close the <code>process.stderr</code> stream. By design, Node.js
2243
- * does not allow <code>stdout</code> or <code>stderr</code> streams to be closed by user code.</p>
2244
- * <p><a id="ERR_STDOUT_CLOSE"></a></p>
2245
- * @deprecated
2246
- */
2247
- ERR_STDERR_CLOSE = "ERR_STDERR_CLOSE",
2248
- /**
2249
- * <p>An attempt was made to close the <code>process.stdout</code> stream. By design, Node.js
2250
- * does not allow <code>stdout</code> or <code>stderr</code> streams to be closed by user code.</p>
2251
- * <p><a id="ERR_STREAM_READ_NOT_IMPLEMENTED"></a></p>
2252
- * @deprecated
2253
- */
2254
- ERR_STDOUT_CLOSE = "ERR_STDOUT_CLOSE",
2255
- /**
2256
- * <p>Used when an attempt is made to use a readable stream that has not implemented
2257
- * <a href="stream.html#readable_readsize"><code>readable._read()</code></a>.</p>
2258
- * <p><a id="ERR_TLS_RENEGOTIATION_FAILED"></a></p>
2259
- * @deprecated
2260
- */
2261
- ERR_STREAM_READ_NOT_IMPLEMENTED = "ERR_STREAM_READ_NOT_IMPLEMENTED",
2262
- /**
2263
- * <p>Used when a TLS renegotiation request has failed in a non-specific way.</p>
2264
- * <p><a id="ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER"></a></p>
2265
- * @deprecated
2266
- */
2267
- ERR_TLS_RENEGOTIATION_FAILED = "ERR_TLS_RENEGOTIATION_FAILED",
2268
- /**
2269
- * <p>A <code>SharedArrayBuffer</code> whose memory is not managed by the JavaScript engine
2270
- * or by Node.js was encountered during serialization. Such a <code>SharedArrayBuffer</code>
2271
- * cannot be serialized.</p>
2272
- * <p>This can only happen when native addons create <code>SharedArrayBuffer</code>s in
2273
- * "externalized" mode, or put existing <code>SharedArrayBuffer</code> into externalized mode.</p>
2274
- * <p><a id="ERR_UNKNOWN_STDIN_TYPE"></a></p>
2275
- * @deprecated
2276
- */
2277
- ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER = "ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER",
2278
- /**
2279
- * <p>An attempt was made to launch a Node.js process with an unknown <code>stdin</code> file
2280
- * type. This error is usually an indication of a bug within Node.js itself,
2281
- * although it is possible for user code to trigger it.</p>
2282
- * <p><a id="ERR_UNKNOWN_STREAM_TYPE"></a></p>
2283
- * @deprecated
2284
- */
2285
- ERR_UNKNOWN_STDIN_TYPE = "ERR_UNKNOWN_STDIN_TYPE",
2286
- /**
2287
- * <p>An attempt was made to launch a Node.js process with an unknown <code>stdout</code> or
2288
- * <code>stderr</code> file type. This error is usually an indication of a bug within Node.js
2289
- * itself, although it is possible for user code to trigger it.</p>
2290
- * <p><a id="ERR_V8BREAKITERATOR"></a></p>
2291
- * @deprecated
2292
- */
2293
- ERR_UNKNOWN_STREAM_TYPE = "ERR_UNKNOWN_STREAM_TYPE",
2294
- /**
2295
- * <p>The V8 <code>BreakIterator</code> API was used but the full ICU data set is not installed.</p>
2296
- * <p><a id="ERR_VALUE_OUT_OF_RANGE"></a></p>
2297
- * @deprecated
2298
- */
2299
- ERR_V8BREAKITERATOR = "ERR_V8BREAKITERATOR",
2300
- /**
2301
- * <p>Used when a given value is out of the accepted range.</p>
2302
- * <p><a id="ERR_VM_MODULE_LINKING_ERRORED"></a></p>
2303
- * @deprecated
2304
- */
2305
- ERR_VALUE_OUT_OF_RANGE = "ERR_VALUE_OUT_OF_RANGE",
2306
- /**
2307
- * <p>The linker function returned a module for which linking has failed.</p>
2308
- * <p><a id="ERR_VM_MODULE_NOT_LINKED"></a></p>
2309
- * @deprecated
2310
- */
2311
- ERR_VM_MODULE_LINKING_ERRORED = "ERR_VM_MODULE_LINKING_ERRORED",
2312
- /**
2313
- * <p>The module must be successfully linked before instantiation.</p>
2314
- * <p><a id="ERR_WORKER_UNSUPPORTED_EXTENSION"></a></p>
2315
- * @deprecated
2316
- */
2317
- ERR_VM_MODULE_NOT_LINKED = "ERR_VM_MODULE_NOT_LINKED",
2318
- /**
2319
- * <p>The pathname used for the main script of a worker has an
2320
- * unknown file extension.</p>
2321
- * <p><a id="ERR_ZLIB_BINDING_CLOSED"></a></p>
2322
- * @deprecated
2323
- */
2324
- ERR_WORKER_UNSUPPORTED_EXTENSION = "ERR_WORKER_UNSUPPORTED_EXTENSION",
2325
- /**
2326
- * <p>Used when an attempt is made to use a <code>zlib</code> object after it has already been
2327
- * closed.</p>
2328
- * <p><a id="openssl-error-codes"></a></p>
2329
- * @deprecated
2330
- */
2331
- ERR_ZLIB_BINDING_CLOSED = "ERR_ZLIB_BINDING_CLOSED"
2332
- }
2333
- export declare enum OpenSSLError {
2334
- /**
2335
- * <p>The certificate is not yet valid: the notBefore date is after the current time.</p>
2336
- * <p><a id="CERT_HAS_EXPIRED"></a></p>
2337
- */
2338
- CERT_NOT_YET_VALID = "CERT_NOT_YET_VALID",
2339
- /**
2340
- * <p>The certificate has expired: the notAfter date is before the current time.</p>
2341
- * <p><a id="CRL_NOT_YET_VALID"></a></p>
2342
- */
2343
- CERT_HAS_EXPIRED = "CERT_HAS_EXPIRED",
2344
- /**
2345
- * <p>The certificate revocation list (CRL) has a future issue date.</p>
2346
- * <p><a id="CRL_HAS_EXPIRED"></a></p>
2347
- */
2348
- CRL_NOT_YET_VALID = "CRL_NOT_YET_VALID",
2349
- /**
2350
- * <p>The certificate revocation list (CRL) has expired.</p>
2351
- * <p><a id="CERT_REVOKED"></a></p>
2352
- */
2353
- CRL_HAS_EXPIRED = "CRL_HAS_EXPIRED",
2354
- /**
2355
- * <p>The certificate has been revoked; it is on a certificate revocation list (CRL).</p>
2356
- * <p><a id="Trust or Chain Related Errors"></a></p>
2357
- */
2358
- CERT_REVOKED = "CERT_REVOKED",
2359
- /**
2360
- * <p>The issuer certificate of a looked up certificate could not be found. This
2361
- * normally means the list of trusted certificates is not complete.</p>
2362
- * <p><a id="UNABLE_TO_GET_ISSUER_CERT_LOCALLY"></a></p>
2363
- */
2364
- UNABLE_TO_GET_ISSUER_CERT = "UNABLE_TO_GET_ISSUER_CERT",
2365
- /**
2366
- * <p>The certificate’s issuer is not known. This is the case if the issuer is not
2367
- * included in the trusted certificate list.</p>
2368
- * <p><a id="DEPTH_ZERO_SELF_SIGNED_CERT"></a></p>
2369
- */
2370
- UNABLE_TO_GET_ISSUER_CERT_LOCALLY = "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
2371
- /**
2372
- * <p>The passed certificate is self-signed and the same certificate cannot be found
2373
- * in the list of trusted certificates.</p>
2374
- * <p><a id="SELF_SIGNED_CERT_IN_CHAIN"></a></p>
2375
- */
2376
- DEPTH_ZERO_SELF_SIGNED_CERT = "DEPTH_ZERO_SELF_SIGNED_CERT",
2377
- /**
2378
- * <p>The certificate’s issuer is not known. This is the case if the issuer is not
2379
- * included in the trusted certificate list.</p>
2380
- * <p><a id="CERT_CHAIN_TOO_LONG"></a></p>
2381
- */
2382
- SELF_SIGNED_CERT_IN_CHAIN = "SELF_SIGNED_CERT_IN_CHAIN",
2383
- /**
2384
- * <p>The certificate chain length is greater than the maximum depth.</p>
2385
- * <p><a id="UNABLE_TO_GET_CRL"></a></p>
2386
- */
2387
- CERT_CHAIN_TOO_LONG = "CERT_CHAIN_TOO_LONG",
2388
- /**
2389
- * <p>The CRL reference by the certificate could not be found.</p>
2390
- * <p><a id="UNABLE_TO_VERIFY_LEAF_SIGNATURE"></a></p>
2391
- */
2392
- UNABLE_TO_GET_CRL = "UNABLE_TO_GET_CRL",
2393
- /**
2394
- * <p>No signatures could be verified because the chain contains only one certificate
2395
- * and it is not self signed.</p>
2396
- * <p><a id="CERT_UNTRUSTED"></a></p>
2397
- */
2398
- UNABLE_TO_VERIFY_LEAF_SIGNATURE = "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
2399
- /**
2400
- * <p>The root certificate authority (CA) is not marked as trusted for the specified
2401
- * purpose.</p>
2402
- * <p><a id="Basic Extension Errors"></a></p>
2403
- */
2404
- CERT_UNTRUSTED = "CERT_UNTRUSTED",
2405
- /**
2406
- * <p>A CA certificate is invalid. Either it is not a CA or its extensions are not
2407
- * consistent with the supplied purpose.</p>
2408
- * <p><a id="PATH_LENGTH_EXCEEDED"></a></p>
2409
- */
2410
- INVALID_CA = "INVALID_CA",
2411
- /**
2412
- * <p>The basicConstraints pathlength parameter has been exceeded.</p>
2413
- * <p><a id="Name Related Errors"></a></p>
2414
- */
2415
- PATH_LENGTH_EXCEEDED = "PATH_LENGTH_EXCEEDED",
2416
- /**
2417
- * <p>Certificate does not match provided name.</p>
2418
- * <p><a id="Usage and Policy Errors"></a></p>
2419
- */
2420
- HOSTNAME_MISMATCH = "HOSTNAME_MISMATCH",
2421
- /**
2422
- * <p>The supplied certificate cannot be used for the specified purpose.</p>
2423
- * <p><a id="CERT_REJECTED"></a></p>
2424
- */
2425
- INVALID_PURPOSE = "INVALID_PURPOSE",
2426
- /**
2427
- * <p>The root CA is marked to reject the specified purpose.</p>
2428
- * <p><a id="Formatting Errors"></a></p>
2429
- */
2430
- CERT_REJECTED = "CERT_REJECTED",
2431
- /**
2432
- * <p>The signature of the certificate is invalid.</p>
2433
- * <p><a id="CRL_SIGNATURE_FAILURE"></a></p>
2434
- */
2435
- CERT_SIGNATURE_FAILURE = "CERT_SIGNATURE_FAILURE",
2436
- /**
2437
- * <p>The signature of the certificate revocation list (CRL) is invalid.</p>
2438
- * <p><a id="ERROR_IN_CERT_NOT_BEFORE_FIELD"></a></p>
2439
- */
2440
- CRL_SIGNATURE_FAILURE = "CRL_SIGNATURE_FAILURE",
2441
- /**
2442
- * <p>The certificate notBefore field contains an invalid time.</p>
2443
- * <p><a id="ERROR_IN_CERT_NOT_AFTER_FIELD"></a></p>
2444
- */
2445
- ERROR_IN_CERT_NOT_BEFORE_FIELD = "ERROR_IN_CERT_NOT_BEFORE_FIELD",
2446
- /**
2447
- * <p>The certificate notAfter field contains an invalid time.</p>
2448
- * <p><a id="ERROR_IN_CRL_LAST_UPDATE_FIELD"></a></p>
2449
- */
2450
- ERROR_IN_CERT_NOT_AFTER_FIELD = "ERROR_IN_CERT_NOT_AFTER_FIELD",
2451
- /**
2452
- * <p>The CRL lastUpdate field contains an invalid time.</p>
2453
- * <p><a id="ERROR_IN_CRL_NEXT_UPDATE_FIELD"></a></p>
2454
- */
2455
- ERROR_IN_CRL_LAST_UPDATE_FIELD = "ERROR_IN_CRL_LAST_UPDATE_FIELD",
2456
- /**
2457
- * <p>The CRL nextUpdate field contains an invalid time.</p>
2458
- * <p><a id="UNABLE_TO_DECRYPT_CERT_SIGNATURE"></a></p>
2459
- */
2460
- ERROR_IN_CRL_NEXT_UPDATE_FIELD = "ERROR_IN_CRL_NEXT_UPDATE_FIELD",
2461
- /**
2462
- * <p>The certificate signature could not be decrypted. This means that the actual
2463
- * signature value could not be determined rather than it not matching the expected
2464
- * value, this is only meaningful for RSA keys.</p>
2465
- * <p><a id="UNABLE_TO_DECRYPT_CRL_SIGNATURE"></a></p>
2466
- */
2467
- UNABLE_TO_DECRYPT_CERT_SIGNATURE = "UNABLE_TO_DECRYPT_CERT_SIGNATURE",
2468
- /**
2469
- * <p>The certificate revocation list (CRL) signature could not be decrypted: this
2470
- * means that the actual signature value could not be determined rather than it not
2471
- * matching the expected value.</p>
2472
- * <p><a id="UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"></a></p>
2473
- */
2474
- UNABLE_TO_DECRYPT_CRL_SIGNATURE = "UNABLE_TO_DECRYPT_CRL_SIGNATURE",
2475
- /**
2476
- * <p>The public key in the certificate SubjectPublicKeyInfo could not be read.</p>
2477
- * <p><a id="Other OpenSSL Errors"></a></p>
2478
- */
2479
- UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY = "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY",
2480
- /**
2481
- * <p>An error occurred trying to allocate memory. This should never happen.</p>
2482
- */
2483
- OUT_OF_MEM = "OUT_OF_MEM"
2484
- }
2485
- //# sourceMappingURL=nodejs-error-code.generated.d.ts.map