css-variable-lsp 1.0.0 → 1.0.1

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 (450) hide show
  1. package/README.md +5 -9
  2. package/package.json +2 -2
  3. package/server/out/cascadeAndInline.test.js +67 -0
  4. package/server/out/cascadeAndInline.test.js.map +1 -0
  5. package/server/out/cssVariableManager.js +390 -0
  6. package/server/out/cssVariableManager.js.map +1 -0
  7. package/server/out/domTree.js +115 -0
  8. package/server/out/domTree.js.map +1 -0
  9. package/server/out/domTree.test.js +77 -0
  10. package/server/out/domTree.test.js.map +1 -0
  11. package/server/out/fileLifecycle.test.js +163 -0
  12. package/server/out/fileLifecycle.test.js.map +1 -0
  13. package/server/out/fileTypesAndUpdates.test.js +78 -0
  14. package/server/out/fileTypesAndUpdates.test.js.map +1 -0
  15. package/server/out/htmlComments.test.js +180 -0
  16. package/server/out/htmlComments.test.js.map +1 -0
  17. package/server/out/server.js +457 -0
  18. package/server/out/server.js.map +1 -0
  19. package/server/out/specificity.js +138 -0
  20. package/server/out/specificity.js.map +1 -0
  21. package/server/out/specificity.test.js +66 -0
  22. package/server/out/specificity.test.js.map +1 -0
  23. package/server/out/test.js +112 -0
  24. package/server/out/test.js.map +1 -0
  25. package/server/tsconfig.tsbuildinfo +1 -0
  26. package/client/node_modules/.package-lock.json +0 -110
  27. package/client/node_modules/@types/node/LICENSE +0 -21
  28. package/client/node_modules/@types/node/README.md +0 -15
  29. package/client/node_modules/@types/node/assert/strict.d.ts +0 -8
  30. package/client/node_modules/@types/node/assert.d.ts +0 -1005
  31. package/client/node_modules/@types/node/async_hooks.d.ts +0 -586
  32. package/client/node_modules/@types/node/buffer.buffer.d.ts +0 -457
  33. package/client/node_modules/@types/node/buffer.d.ts +0 -1901
  34. package/client/node_modules/@types/node/child_process.d.ts +0 -1453
  35. package/client/node_modules/@types/node/cluster.d.ts +0 -578
  36. package/client/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  37. package/client/node_modules/@types/node/compatibility/index.d.ts +0 -9
  38. package/client/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  39. package/client/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  40. package/client/node_modules/@types/node/console.d.ts +0 -452
  41. package/client/node_modules/@types/node/constants.d.ts +0 -21
  42. package/client/node_modules/@types/node/crypto.d.ts +0 -4504
  43. package/client/node_modules/@types/node/dgram.d.ts +0 -596
  44. package/client/node_modules/@types/node/diagnostics_channel.d.ts +0 -551
  45. package/client/node_modules/@types/node/dns/promises.d.ts +0 -477
  46. package/client/node_modules/@types/node/dns.d.ts +0 -860
  47. package/client/node_modules/@types/node/domain.d.ts +0 -170
  48. package/client/node_modules/@types/node/events.d.ts +0 -863
  49. package/client/node_modules/@types/node/fs/promises.d.ts +0 -1208
  50. package/client/node_modules/@types/node/fs.d.ts +0 -4332
  51. package/client/node_modules/@types/node/globals.d.ts +0 -170
  52. package/client/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  53. package/client/node_modules/@types/node/http.d.ts +0 -1919
  54. package/client/node_modules/@types/node/http2.d.ts +0 -2580
  55. package/client/node_modules/@types/node/https.d.ts +0 -549
  56. package/client/node_modules/@types/node/index.d.ts +0 -92
  57. package/client/node_modules/@types/node/inspector.generated.d.ts +0 -2775
  58. package/client/node_modules/@types/node/module.d.ts +0 -503
  59. package/client/node_modules/@types/node/net.d.ts +0 -924
  60. package/client/node_modules/@types/node/os.d.ts +0 -480
  61. package/client/node_modules/@types/node/package.json +0 -145
  62. package/client/node_modules/@types/node/path.d.ts +0 -191
  63. package/client/node_modules/@types/node/perf_hooks.d.ts +0 -860
  64. package/client/node_modules/@types/node/process.d.ts +0 -1632
  65. package/client/node_modules/@types/node/punycode.d.ts +0 -117
  66. package/client/node_modules/@types/node/querystring.d.ts +0 -140
  67. package/client/node_modules/@types/node/readline/promises.d.ts +0 -154
  68. package/client/node_modules/@types/node/readline.d.ts +0 -715
  69. package/client/node_modules/@types/node/repl.d.ts +0 -430
  70. package/client/node_modules/@types/node/stream/consumers.d.ts +0 -38
  71. package/client/node_modules/@types/node/stream/promises.d.ts +0 -90
  72. package/client/node_modules/@types/node/stream/web.d.ts +0 -527
  73. package/client/node_modules/@types/node/stream.d.ts +0 -1680
  74. package/client/node_modules/@types/node/string_decoder.d.ts +0 -67
  75. package/client/node_modules/@types/node/test.d.ts +0 -1208
  76. package/client/node_modules/@types/node/timers/promises.d.ts +0 -108
  77. package/client/node_modules/@types/node/timers.d.ts +0 -286
  78. package/client/node_modules/@types/node/tls.d.ts +0 -1204
  79. package/client/node_modules/@types/node/trace_events.d.ts +0 -171
  80. package/client/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -455
  81. package/client/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  82. package/client/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  83. package/client/node_modules/@types/node/tty.d.ts +0 -206
  84. package/client/node_modules/@types/node/url.d.ts +0 -957
  85. package/client/node_modules/@types/node/util.d.ts +0 -2083
  86. package/client/node_modules/@types/node/v8.d.ts +0 -753
  87. package/client/node_modules/@types/node/vm.d.ts +0 -704
  88. package/client/node_modules/@types/node/wasi.d.ts +0 -160
  89. package/client/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  90. package/client/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  91. package/client/node_modules/@types/node/web-globals/events.d.ts +0 -81
  92. package/client/node_modules/@types/node/web-globals/fetch.d.ts +0 -38
  93. package/client/node_modules/@types/node/worker_threads.d.ts +0 -698
  94. package/client/node_modules/@types/node/zlib.d.ts +0 -517
  95. package/client/node_modules/@types/vscode/LICENSE +0 -21
  96. package/client/node_modules/@types/vscode/README.md +0 -15
  97. package/client/node_modules/@types/vscode/index.d.ts +0 -21145
  98. package/client/node_modules/@types/vscode/package.json +0 -26
  99. package/client/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  100. package/client/node_modules/balanced-match/LICENSE.md +0 -21
  101. package/client/node_modules/balanced-match/README.md +0 -97
  102. package/client/node_modules/balanced-match/index.js +0 -62
  103. package/client/node_modules/balanced-match/package.json +0 -48
  104. package/client/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  105. package/client/node_modules/brace-expansion/LICENSE +0 -21
  106. package/client/node_modules/brace-expansion/README.md +0 -135
  107. package/client/node_modules/brace-expansion/index.js +0 -203
  108. package/client/node_modules/brace-expansion/package.json +0 -49
  109. package/client/node_modules/minimatch/LICENSE +0 -15
  110. package/client/node_modules/minimatch/README.md +0 -259
  111. package/client/node_modules/minimatch/lib/path.js +0 -4
  112. package/client/node_modules/minimatch/minimatch.js +0 -944
  113. package/client/node_modules/minimatch/package.json +0 -35
  114. package/client/node_modules/semver/LICENSE +0 -15
  115. package/client/node_modules/semver/README.md +0 -664
  116. package/client/node_modules/semver/bin/semver.js +0 -191
  117. package/client/node_modules/semver/classes/comparator.js +0 -143
  118. package/client/node_modules/semver/classes/index.js +0 -7
  119. package/client/node_modules/semver/classes/range.js +0 -557
  120. package/client/node_modules/semver/classes/semver.js +0 -333
  121. package/client/node_modules/semver/functions/clean.js +0 -8
  122. package/client/node_modules/semver/functions/cmp.js +0 -54
  123. package/client/node_modules/semver/functions/coerce.js +0 -62
  124. package/client/node_modules/semver/functions/compare-build.js +0 -9
  125. package/client/node_modules/semver/functions/compare-loose.js +0 -5
  126. package/client/node_modules/semver/functions/compare.js +0 -7
  127. package/client/node_modules/semver/functions/diff.js +0 -60
  128. package/client/node_modules/semver/functions/eq.js +0 -5
  129. package/client/node_modules/semver/functions/gt.js +0 -5
  130. package/client/node_modules/semver/functions/gte.js +0 -5
  131. package/client/node_modules/semver/functions/inc.js +0 -21
  132. package/client/node_modules/semver/functions/lt.js +0 -5
  133. package/client/node_modules/semver/functions/lte.js +0 -5
  134. package/client/node_modules/semver/functions/major.js +0 -5
  135. package/client/node_modules/semver/functions/minor.js +0 -5
  136. package/client/node_modules/semver/functions/neq.js +0 -5
  137. package/client/node_modules/semver/functions/parse.js +0 -18
  138. package/client/node_modules/semver/functions/patch.js +0 -5
  139. package/client/node_modules/semver/functions/prerelease.js +0 -8
  140. package/client/node_modules/semver/functions/rcompare.js +0 -5
  141. package/client/node_modules/semver/functions/rsort.js +0 -5
  142. package/client/node_modules/semver/functions/satisfies.js +0 -12
  143. package/client/node_modules/semver/functions/sort.js +0 -5
  144. package/client/node_modules/semver/functions/valid.js +0 -8
  145. package/client/node_modules/semver/index.js +0 -91
  146. package/client/node_modules/semver/internal/constants.js +0 -37
  147. package/client/node_modules/semver/internal/debug.js +0 -11
  148. package/client/node_modules/semver/internal/identifiers.js +0 -29
  149. package/client/node_modules/semver/internal/lrucache.js +0 -42
  150. package/client/node_modules/semver/internal/parse-options.js +0 -17
  151. package/client/node_modules/semver/internal/re.js +0 -223
  152. package/client/node_modules/semver/package.json +0 -78
  153. package/client/node_modules/semver/preload.js +0 -4
  154. package/client/node_modules/semver/range.bnf +0 -16
  155. package/client/node_modules/semver/ranges/gtr.js +0 -6
  156. package/client/node_modules/semver/ranges/intersects.js +0 -9
  157. package/client/node_modules/semver/ranges/ltr.js +0 -6
  158. package/client/node_modules/semver/ranges/max-satisfying.js +0 -27
  159. package/client/node_modules/semver/ranges/min-satisfying.js +0 -26
  160. package/client/node_modules/semver/ranges/min-version.js +0 -63
  161. package/client/node_modules/semver/ranges/outside.js +0 -82
  162. package/client/node_modules/semver/ranges/simplify.js +0 -49
  163. package/client/node_modules/semver/ranges/subset.js +0 -249
  164. package/client/node_modules/semver/ranges/to-comparators.js +0 -10
  165. package/client/node_modules/semver/ranges/valid.js +0 -13
  166. package/client/node_modules/undici-types/README.md +0 -6
  167. package/client/node_modules/undici-types/agent.d.ts +0 -31
  168. package/client/node_modules/undici-types/api.d.ts +0 -43
  169. package/client/node_modules/undici-types/balanced-pool.d.ts +0 -18
  170. package/client/node_modules/undici-types/cache.d.ts +0 -36
  171. package/client/node_modules/undici-types/client.d.ts +0 -97
  172. package/client/node_modules/undici-types/connector.d.ts +0 -34
  173. package/client/node_modules/undici-types/content-type.d.ts +0 -21
  174. package/client/node_modules/undici-types/cookies.d.ts +0 -28
  175. package/client/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  176. package/client/node_modules/undici-types/dispatcher.d.ts +0 -241
  177. package/client/node_modules/undici-types/errors.d.ts +0 -128
  178. package/client/node_modules/undici-types/fetch.d.ts +0 -209
  179. package/client/node_modules/undici-types/file.d.ts +0 -39
  180. package/client/node_modules/undici-types/filereader.d.ts +0 -54
  181. package/client/node_modules/undici-types/formdata.d.ts +0 -108
  182. package/client/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  183. package/client/node_modules/undici-types/global-origin.d.ts +0 -7
  184. package/client/node_modules/undici-types/handlers.d.ts +0 -9
  185. package/client/node_modules/undici-types/header.d.ts +0 -4
  186. package/client/node_modules/undici-types/index.d.ts +0 -63
  187. package/client/node_modules/undici-types/interceptors.d.ts +0 -5
  188. package/client/node_modules/undici-types/mock-agent.d.ts +0 -50
  189. package/client/node_modules/undici-types/mock-client.d.ts +0 -25
  190. package/client/node_modules/undici-types/mock-errors.d.ts +0 -12
  191. package/client/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  192. package/client/node_modules/undici-types/mock-pool.d.ts +0 -25
  193. package/client/node_modules/undici-types/package.json +0 -55
  194. package/client/node_modules/undici-types/patch.d.ts +0 -71
  195. package/client/node_modules/undici-types/pool-stats.d.ts +0 -19
  196. package/client/node_modules/undici-types/pool.d.ts +0 -28
  197. package/client/node_modules/undici-types/proxy-agent.d.ts +0 -30
  198. package/client/node_modules/undici-types/readable.d.ts +0 -61
  199. package/client/node_modules/undici-types/webidl.d.ts +0 -220
  200. package/client/node_modules/undici-types/websocket.d.ts +0 -131
  201. package/client/node_modules/vscode-jsonrpc/License.txt +0 -11
  202. package/client/node_modules/vscode-jsonrpc/README.md +0 -69
  203. package/client/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
  204. package/client/node_modules/vscode-jsonrpc/browser.js +0 -7
  205. package/client/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  206. package/client/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -76
  207. package/client/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -12
  208. package/client/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -156
  209. package/client/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  210. package/client/node_modules/vscode-jsonrpc/lib/common/api.js +0 -81
  211. package/client/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  212. package/client/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -96
  213. package/client/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -358
  214. package/client/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1212
  215. package/client/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  216. package/client/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -16
  217. package/client/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  218. package/client/node_modules/vscode-jsonrpc/lib/common/encoding.js +0 -70
  219. package/client/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  220. package/client/node_modules/vscode-jsonrpc/lib/common/events.js +0 -128
  221. package/client/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  222. package/client/node_modules/vscode-jsonrpc/lib/common/is.js +0 -35
  223. package/client/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -53
  224. package/client/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -398
  225. package/client/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  226. package/client/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -152
  227. package/client/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  228. package/client/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -197
  229. package/client/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  230. package/client/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -115
  231. package/client/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  232. package/client/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -306
  233. package/client/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  234. package/client/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -23
  235. package/client/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  236. package/client/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -68
  237. package/client/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  238. package/client/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -76
  239. package/client/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -63
  240. package/client/node_modules/vscode-jsonrpc/lib/node/main.js +0 -257
  241. package/client/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -13
  242. package/client/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -161
  243. package/client/node_modules/vscode-jsonrpc/node.cmd +0 -5
  244. package/client/node_modules/vscode-jsonrpc/node.d.ts +0 -6
  245. package/client/node_modules/vscode-jsonrpc/node.js +0 -7
  246. package/client/node_modules/vscode-jsonrpc/package.json +0 -45
  247. package/client/node_modules/vscode-jsonrpc/thirdpartynotices.txt +0 -16
  248. package/client/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
  249. package/client/node_modules/vscode-languageclient/License.txt +0 -11
  250. package/client/node_modules/vscode-languageclient/README.md +0 -17
  251. package/client/node_modules/vscode-languageclient/browser.d.ts +0 -6
  252. package/client/node_modules/vscode-languageclient/browser.js +0 -7
  253. package/client/node_modules/vscode-languageclient/lib/browser/main.d.ts +0 -8
  254. package/client/node_modules/vscode-languageclient/lib/browser/main.js +0 -37
  255. package/client/node_modules/vscode-languageclient/lib/common/api.d.ts +0 -36
  256. package/client/node_modules/vscode-languageclient/lib/common/api.js +0 -27
  257. package/client/node_modules/vscode-languageclient/lib/common/callHierarchy.d.ts +0 -37
  258. package/client/node_modules/vscode-languageclient/lib/common/callHierarchy.js +0 -97
  259. package/client/node_modules/vscode-languageclient/lib/common/client.d.ts +0 -476
  260. package/client/node_modules/vscode-languageclient/lib/common/client.js +0 -1600
  261. package/client/node_modules/vscode-languageclient/lib/common/codeAction.d.ts +0 -19
  262. package/client/node_modules/vscode-languageclient/lib/common/codeAction.js +0 -99
  263. package/client/node_modules/vscode-languageclient/lib/common/codeConverter.d.ts +0 -78
  264. package/client/node_modules/vscode-languageclient/lib/common/codeConverter.js +0 -876
  265. package/client/node_modules/vscode-languageclient/lib/common/codeLens.d.ts +0 -23
  266. package/client/node_modules/vscode-languageclient/lib/common/codeLens.js +0 -78
  267. package/client/node_modules/vscode-languageclient/lib/common/colorProvider.d.ts +0 -25
  268. package/client/node_modules/vscode-languageclient/lib/common/colorProvider.js +0 -74
  269. package/client/node_modules/vscode-languageclient/lib/common/completion.d.ts +0 -20
  270. package/client/node_modules/vscode-languageclient/lib/common/completion.js +0 -126
  271. package/client/node_modules/vscode-languageclient/lib/common/configuration.d.ts +0 -69
  272. package/client/node_modules/vscode-languageclient/lib/common/configuration.js +0 -209
  273. package/client/node_modules/vscode-languageclient/lib/common/declaration.d.ts +0 -16
  274. package/client/node_modules/vscode-languageclient/lib/common/declaration.js +0 -54
  275. package/client/node_modules/vscode-languageclient/lib/common/definition.d.ts +0 -16
  276. package/client/node_modules/vscode-languageclient/lib/common/definition.js +0 -55
  277. package/client/node_modules/vscode-languageclient/lib/common/diagnostic.d.ts +0 -122
  278. package/client/node_modules/vscode-languageclient/lib/common/diagnostic.js +0 -814
  279. package/client/node_modules/vscode-languageclient/lib/common/documentHighlight.d.ts +0 -15
  280. package/client/node_modules/vscode-languageclient/lib/common/documentHighlight.js +0 -50
  281. package/client/node_modules/vscode-languageclient/lib/common/documentLink.d.ts +0 -19
  282. package/client/node_modules/vscode-languageclient/lib/common/documentLink.js +0 -71
  283. package/client/node_modules/vscode-languageclient/lib/common/documentSymbol.d.ts +0 -17
  284. package/client/node_modules/vscode-languageclient/lib/common/documentSymbol.js +0 -104
  285. package/client/node_modules/vscode-languageclient/lib/common/executeCommand.d.ts +0 -21
  286. package/client/node_modules/vscode-languageclient/lib/common/executeCommand.js +0 -72
  287. package/client/node_modules/vscode-languageclient/lib/common/features.d.ts +0 -418
  288. package/client/node_modules/vscode-languageclient/lib/common/features.js +0 -291
  289. package/client/node_modules/vscode-languageclient/lib/common/fileOperations.d.ts +0 -116
  290. package/client/node_modules/vscode-languageclient/lib/common/fileOperations.js +0 -333
  291. package/client/node_modules/vscode-languageclient/lib/common/fileSystemWatcher.d.ts +0 -18
  292. package/client/node_modules/vscode-languageclient/lib/common/fileSystemWatcher.js +0 -95
  293. package/client/node_modules/vscode-languageclient/lib/common/foldingRange.d.ts +0 -19
  294. package/client/node_modules/vscode-languageclient/lib/common/foldingRange.js +0 -65
  295. package/client/node_modules/vscode-languageclient/lib/common/formatting.d.ts +0 -39
  296. package/client/node_modules/vscode-languageclient/lib/common/formatting.js +0 -182
  297. package/client/node_modules/vscode-languageclient/lib/common/hover.d.ts +0 -16
  298. package/client/node_modules/vscode-languageclient/lib/common/hover.js +0 -58
  299. package/client/node_modules/vscode-languageclient/lib/common/implementation.d.ts +0 -16
  300. package/client/node_modules/vscode-languageclient/lib/common/implementation.js +0 -54
  301. package/client/node_modules/vscode-languageclient/lib/common/inlayHint.d.ts +0 -20
  302. package/client/node_modules/vscode-languageclient/lib/common/inlayHint.js +0 -92
  303. package/client/node_modules/vscode-languageclient/lib/common/inlineCompletion.d.ts +0 -18
  304. package/client/node_modules/vscode-languageclient/lib/common/inlineCompletion.js +0 -54
  305. package/client/node_modules/vscode-languageclient/lib/common/inlineValue.d.ts +0 -18
  306. package/client/node_modules/vscode-languageclient/lib/common/inlineValue.js +0 -65
  307. package/client/node_modules/vscode-languageclient/lib/common/linkedEditingRange.d.ts +0 -21
  308. package/client/node_modules/vscode-languageclient/lib/common/linkedEditingRange.js +0 -53
  309. package/client/node_modules/vscode-languageclient/lib/common/notebook.d.ts +0 -96
  310. package/client/node_modules/vscode-languageclient/lib/common/notebook.js +0 -851
  311. package/client/node_modules/vscode-languageclient/lib/common/progress.d.ts +0 -11
  312. package/client/node_modules/vscode-languageclient/lib/common/progress.js +0 -44
  313. package/client/node_modules/vscode-languageclient/lib/common/progressPart.d.ts +0 -24
  314. package/client/node_modules/vscode-languageclient/lib/common/progressPart.js +0 -96
  315. package/client/node_modules/vscode-languageclient/lib/common/protocolCallHierarchyItem.d.ts +0 -6
  316. package/client/node_modules/vscode-languageclient/lib/common/protocolCallHierarchyItem.js +0 -16
  317. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeAction.d.ts +0 -6
  318. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeAction.js +0 -14
  319. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeLens.d.ts +0 -5
  320. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeLens.js +0 -13
  321. package/client/node_modules/vscode-languageclient/lib/common/protocolCompletionItem.d.ts +0 -11
  322. package/client/node_modules/vscode-languageclient/lib/common/protocolCompletionItem.js +0 -13
  323. package/client/node_modules/vscode-languageclient/lib/common/protocolConverter.d.ts +0 -167
  324. package/client/node_modules/vscode-languageclient/lib/common/protocolConverter.js +0 -1134
  325. package/client/node_modules/vscode-languageclient/lib/common/protocolDiagnostic.d.ts +0 -18
  326. package/client/node_modules/vscode-languageclient/lib/common/protocolDiagnostic.js +0 -25
  327. package/client/node_modules/vscode-languageclient/lib/common/protocolDocumentLink.d.ts +0 -5
  328. package/client/node_modules/vscode-languageclient/lib/common/protocolDocumentLink.js +0 -13
  329. package/client/node_modules/vscode-languageclient/lib/common/protocolInlayHint.d.ts +0 -5
  330. package/client/node_modules/vscode-languageclient/lib/common/protocolInlayHint.js +0 -13
  331. package/client/node_modules/vscode-languageclient/lib/common/protocolTypeHierarchyItem.d.ts +0 -6
  332. package/client/node_modules/vscode-languageclient/lib/common/protocolTypeHierarchyItem.js +0 -16
  333. package/client/node_modules/vscode-languageclient/lib/common/protocolWorkspaceSymbol.d.ts +0 -7
  334. package/client/node_modules/vscode-languageclient/lib/common/protocolWorkspaceSymbol.js +0 -18
  335. package/client/node_modules/vscode-languageclient/lib/common/reference.d.ts +0 -20
  336. package/client/node_modules/vscode-languageclient/lib/common/reference.js +0 -53
  337. package/client/node_modules/vscode-languageclient/lib/common/rename.d.ts +0 -27
  338. package/client/node_modules/vscode-languageclient/lib/common/rename.js +0 -113
  339. package/client/node_modules/vscode-languageclient/lib/common/selectionRange.d.ts +0 -16
  340. package/client/node_modules/vscode-languageclient/lib/common/selectionRange.js +0 -57
  341. package/client/node_modules/vscode-languageclient/lib/common/semanticTokens.d.ts +0 -33
  342. package/client/node_modules/vscode-languageclient/lib/common/semanticTokens.js +0 -179
  343. package/client/node_modules/vscode-languageclient/lib/common/signatureHelp.d.ts +0 -16
  344. package/client/node_modules/vscode-languageclient/lib/common/signatureHelp.js +0 -71
  345. package/client/node_modules/vscode-languageclient/lib/common/textSynchronization.d.ts +0 -101
  346. package/client/node_modules/vscode-languageclient/lib/common/textSynchronization.js +0 -402
  347. package/client/node_modules/vscode-languageclient/lib/common/typeDefinition.d.ts +0 -16
  348. package/client/node_modules/vscode-languageclient/lib/common/typeDefinition.js +0 -55
  349. package/client/node_modules/vscode-languageclient/lib/common/typeHierarchy.d.ts +0 -31
  350. package/client/node_modules/vscode-languageclient/lib/common/typeHierarchy.js +0 -96
  351. package/client/node_modules/vscode-languageclient/lib/common/utils/async.d.ts +0 -41
  352. package/client/node_modules/vscode-languageclient/lib/common/utils/async.js +0 -276
  353. package/client/node_modules/vscode-languageclient/lib/common/utils/is.d.ts +0 -12
  354. package/client/node_modules/vscode-languageclient/lib/common/utils/is.js +0 -57
  355. package/client/node_modules/vscode-languageclient/lib/common/utils/uuid.d.ts +0 -22
  356. package/client/node_modules/vscode-languageclient/lib/common/utils/uuid.js +0 -97
  357. package/client/node_modules/vscode-languageclient/lib/common/workspaceFolder.d.ts +0 -30
  358. package/client/node_modules/vscode-languageclient/lib/common/workspaceFolder.js +0 -148
  359. package/client/node_modules/vscode-languageclient/lib/common/workspaceSymbol.d.ts +0 -19
  360. package/client/node_modules/vscode-languageclient/lib/common/workspaceSymbol.js +0 -79
  361. package/client/node_modules/vscode-languageclient/lib/node/main.d.ts +0 -100
  362. package/client/node_modules/vscode-languageclient/lib/node/main.js +0 -570
  363. package/client/node_modules/vscode-languageclient/lib/node/processes.d.ts +0 -6
  364. package/client/node_modules/vscode-languageclient/lib/node/processes.js +0 -47
  365. package/client/node_modules/vscode-languageclient/lib/node/terminateProcess.sh +0 -16
  366. package/client/node_modules/vscode-languageclient/node.cmd +0 -5
  367. package/client/node_modules/vscode-languageclient/node.d.ts +0 -6
  368. package/client/node_modules/vscode-languageclient/node.js +0 -7
  369. package/client/node_modules/vscode-languageclient/package.json +0 -50
  370. package/client/node_modules/vscode-languageserver-protocol/License.txt +0 -11
  371. package/client/node_modules/vscode-languageserver-protocol/README.md +0 -16
  372. package/client/node_modules/vscode-languageserver-protocol/browser.d.ts +0 -6
  373. package/client/node_modules/vscode-languageserver-protocol/browser.js +0 -7
  374. package/client/node_modules/vscode-languageserver-protocol/lib/browser/main.d.ts +0 -4
  375. package/client/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
  376. package/client/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +0 -58
  377. package/client/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -77
  378. package/client/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +0 -187
  379. package/client/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -15
  380. package/client/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +0 -51
  381. package/client/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -44
  382. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.d.ts +0 -1
  383. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.js +0 -43
  384. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +0 -86
  385. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -42
  386. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +0 -66
  387. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -32
  388. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +0 -35
  389. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -24
  390. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +0 -3252
  391. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +0 -37
  392. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -22
  393. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +0 -341
  394. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -74
  395. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +0 -306
  396. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -101
  397. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +0 -109
  398. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -30
  399. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +0 -38
  400. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -21
  401. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +0 -110
  402. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -43
  403. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +0 -57
  404. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -22
  405. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +0 -86
  406. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -30
  407. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -943
  408. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +0 -52
  409. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -19
  410. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +0 -106
  411. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -68
  412. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +0 -400
  413. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -214
  414. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +0 -107
  415. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -37
  416. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +0 -41
  417. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -20
  418. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +0 -223
  419. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -57
  420. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +0 -72
  421. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -22
  422. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +0 -38
  423. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -21
  424. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +0 -83
  425. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -42
  426. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +0 -74
  427. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -27
  428. package/client/node_modules/vscode-languageserver-protocol/lib/common/utils/is.d.ts +0 -9
  429. package/client/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
  430. package/client/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +0 -6
  431. package/client/node_modules/vscode-languageserver-protocol/lib/node/main.js +0 -28
  432. package/client/node_modules/vscode-languageserver-protocol/metaModel.schema.json +0 -783
  433. package/client/node_modules/vscode-languageserver-protocol/node.cmd +0 -5
  434. package/client/node_modules/vscode-languageserver-protocol/node.d.ts +0 -6
  435. package/client/node_modules/vscode-languageserver-protocol/node.js +0 -7
  436. package/client/node_modules/vscode-languageserver-protocol/package.json +0 -45
  437. package/client/node_modules/vscode-languageserver-protocol/thirdpartynotices.txt +0 -31
  438. package/client/node_modules/vscode-languageserver-types/License.txt +0 -11
  439. package/client/node_modules/vscode-languageserver-types/README.md +0 -17
  440. package/client/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +0 -3139
  441. package/client/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -2222
  442. package/client/node_modules/vscode-languageserver-types/lib/esm/package.json +0 -3
  443. package/client/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +0 -3139
  444. package/client/node_modules/vscode-languageserver-types/lib/umd/main.js +0 -2272
  445. package/client/node_modules/vscode-languageserver-types/package.json +0 -38
  446. package/client/node_modules/vscode-languageserver-types/thirdpartynotices.txt +0 -16
  447. package/client/package-lock.json +0 -125
  448. package/client/package.json +0 -42
  449. package/client/src/extension.ts +0 -56
  450. package/client/tsconfig.json +0 -12
@@ -1,1005 +0,0 @@
1
- /**
2
- * The `assert` module provides a set of assertion functions for verifying
3
- * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/assert.js)
5
- */
6
- declare module "assert" {
7
- /**
8
- * An alias of {@link ok}.
9
- * @since v0.5.9
10
- * @param value The input that is checked for being truthy.
11
- */
12
- function assert(value: unknown, message?: string | Error): asserts value;
13
- namespace assert {
14
- type AssertMethodNames =
15
- | "deepEqual"
16
- | "deepStrictEqual"
17
- | "doesNotMatch"
18
- | "doesNotReject"
19
- | "doesNotThrow"
20
- | "equal"
21
- | "fail"
22
- | "ifError"
23
- | "match"
24
- | "notDeepEqual"
25
- | "notDeepStrictEqual"
26
- | "notEqual"
27
- | "notStrictEqual"
28
- | "ok"
29
- | "rejects"
30
- | "strictEqual"
31
- | "throws";
32
- /**
33
- * Indicates the failure of an assertion. All errors thrown by the `assert` module
34
- * will be instances of the `AssertionError` class.
35
- */
36
- class AssertionError extends Error {
37
- actual: unknown;
38
- expected: unknown;
39
- operator: string;
40
- generatedMessage: boolean;
41
- code: "ERR_ASSERTION";
42
- constructor(options?: {
43
- /** If provided, the error message is set to this value. */
44
- message?: string | undefined;
45
- /** The `actual` property on the error instance. */
46
- actual?: unknown | undefined;
47
- /** The `expected` property on the error instance. */
48
- expected?: unknown | undefined;
49
- /** The `operator` property on the error instance. */
50
- operator?: string | undefined;
51
- /** If provided, the generated stack trace omits frames before this function. */
52
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
53
- stackStartFn?: Function | undefined;
54
- });
55
- }
56
- /**
57
- * This feature is currently experimental and behavior might still change.
58
- * @since v14.2.0, v12.19.0
59
- * @experimental
60
- */
61
- class CallTracker {
62
- /**
63
- * The wrapper function is expected to be called exactly `exact` times. If the
64
- * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an
65
- * error.
66
- *
67
- * ```js
68
- * import assert from 'assert';
69
- *
70
- * // Creates call tracker.
71
- * const tracker = new assert.CallTracker();
72
- *
73
- * function func() {}
74
- *
75
- * // Returns a function that wraps func() that must be called exact times
76
- * // before tracker.verify().
77
- * const callsfunc = tracker.calls(func);
78
- * ```
79
- * @since v14.2.0, v12.19.0
80
- * @param [fn='A no-op function']
81
- * @param [exact=1]
82
- * @return that wraps `fn`.
83
- */
84
- calls(exact?: number): () => void;
85
- calls(fn: undefined, exact?: number): () => void;
86
- calls<Func extends (...args: any[]) => any>(fn: Func, exact?: number): Func;
87
- calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func | (() => void);
88
- /**
89
- * Example:
90
- *
91
- * ```js
92
- * import assert from 'node:assert';
93
- *
94
- * const tracker = new assert.CallTracker();
95
- *
96
- * function func() {}
97
- * const callsfunc = tracker.calls(func);
98
- * callsfunc(1, 2, 3);
99
- *
100
- * assert.deepStrictEqual(tracker.getCalls(callsfunc),
101
- * [{ thisArg: this, arguments: [1, 2, 3 ] }]);
102
- * ```
103
- *
104
- * @since v18.8.0, v16.18.0
105
- * @param fn
106
- * @returns An Array with the calls to a tracked function.
107
- */
108
- getCalls(fn: Function): CallTrackerCall[];
109
- /**
110
- * The arrays contains information about the expected and actual number of calls of
111
- * the functions that have not been called the expected number of times.
112
- *
113
- * ```js
114
- * import assert from 'assert';
115
- *
116
- * // Creates call tracker.
117
- * const tracker = new assert.CallTracker();
118
- *
119
- * function func() {}
120
- *
121
- * function foo() {}
122
- *
123
- * // Returns a function that wraps func() that must be called exact times
124
- * // before tracker.verify().
125
- * const callsfunc = tracker.calls(func, 2);
126
- *
127
- * // Returns an array containing information on callsfunc()
128
- * tracker.report();
129
- * // [
130
- * // {
131
- * // message: 'Expected the func function to be executed 2 time(s) but was
132
- * // executed 0 time(s).',
133
- * // actual: 0,
134
- * // expected: 2,
135
- * // operator: 'func',
136
- * // stack: stack trace
137
- * // }
138
- * // ]
139
- * ```
140
- * @since v14.2.0, v12.19.0
141
- * @return of objects containing information about the wrapper functions returned by `calls`.
142
- */
143
- report(): CallTrackerReportInformation[];
144
- /**
145
- * Reset calls of the call tracker.
146
- * If a tracked function is passed as an argument, the calls will be reset for it.
147
- * If no arguments are passed, all tracked functions will be reset.
148
- *
149
- * ```js
150
- * import assert from 'node:assert';
151
- *
152
- * const tracker = new assert.CallTracker();
153
- *
154
- * function func() {}
155
- * const callsfunc = tracker.calls(func);
156
- *
157
- * callsfunc();
158
- * // Tracker was called once
159
- * tracker.getCalls(callsfunc).length === 1;
160
- *
161
- * tracker.reset(callsfunc);
162
- * tracker.getCalls(callsfunc).length === 0;
163
- * ```
164
- *
165
- * @since v18.8.0, v16.18.0
166
- * @param fn a tracked function to reset.
167
- */
168
- reset(fn?: Function): void;
169
- /**
170
- * Iterates through the list of functions passed to `tracker.calls()` and will throw an error for functions that
171
- * have not been called the expected number of times.
172
- *
173
- * ```js
174
- * import assert from 'assert';
175
- *
176
- * // Creates call tracker.
177
- * const tracker = new assert.CallTracker();
178
- *
179
- * function func() {}
180
- *
181
- * // Returns a function that wraps func() that must be called exact times
182
- * // before tracker.verify().
183
- * const callsfunc = tracker.calls(func, 2);
184
- *
185
- * callsfunc();
186
- *
187
- * // Will throw an error since callsfunc() was only called once.
188
- * tracker.verify();
189
- * ```
190
- * @since v14.2.0, v12.19.0
191
- */
192
- verify(): void;
193
- }
194
- interface CallTrackerCall {
195
- thisArg: object;
196
- arguments: unknown[];
197
- }
198
- interface CallTrackerReportInformation {
199
- message: string;
200
- /** The actual number of times the function was called. */
201
- actual: number;
202
- /** The number of times the function was expected to be called. */
203
- expected: number;
204
- /** The name of the function that is wrapped. */
205
- operator: string;
206
- /** A stack trace of the function. */
207
- stack: object;
208
- }
209
- type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
210
- /**
211
- * Throws an `AssertionError` with the provided error message or a default
212
- * error message. If the `message` parameter is an instance of an `Error` then
213
- * it will be thrown instead of the `AssertionError`.
214
- *
215
- * ```js
216
- * import assert from 'assert/strict';
217
- *
218
- * assert.fail();
219
- * // AssertionError [ERR_ASSERTION]: Failed
220
- *
221
- * assert.fail('boom');
222
- * // AssertionError [ERR_ASSERTION]: boom
223
- *
224
- * assert.fail(new TypeError('need array'));
225
- * // TypeError: need array
226
- * ```
227
- *
228
- * Using `assert.fail()` with more than two arguments is possible but deprecated.
229
- * See below for further details.
230
- * @since v0.1.21
231
- * @param [message='Failed']
232
- */
233
- function fail(message?: string | Error): never;
234
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
235
- function fail(
236
- actual: unknown,
237
- expected: unknown,
238
- message?: string | Error,
239
- operator?: string,
240
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
241
- stackStartFn?: Function,
242
- ): never;
243
- /**
244
- * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`.
245
- *
246
- * If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default
247
- * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
248
- * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
249
- *
250
- * Be aware that in the `repl` the error message will be different to the one
251
- * thrown in a file! See below for further details.
252
- *
253
- * ```js
254
- * import assert from 'assert/strict';
255
- *
256
- * assert.ok(true);
257
- * // OK
258
- * assert.ok(1);
259
- * // OK
260
- *
261
- * assert.ok();
262
- * // AssertionError: No value argument passed to `assert.ok()`
263
- *
264
- * assert.ok(false, 'it\'s false');
265
- * // AssertionError: it's false
266
- *
267
- * // In the repl:
268
- * assert.ok(typeof 123 === 'string');
269
- * // AssertionError: false == true
270
- *
271
- * // In a file (e.g. test.js):
272
- * assert.ok(typeof 123 === 'string');
273
- * // AssertionError: The expression evaluated to a falsy value:
274
- * //
275
- * // assert.ok(typeof 123 === 'string')
276
- *
277
- * assert.ok(false);
278
- * // AssertionError: The expression evaluated to a falsy value:
279
- * //
280
- * // assert.ok(false)
281
- *
282
- * assert.ok(0);
283
- * // AssertionError: The expression evaluated to a falsy value:
284
- * //
285
- * // assert.ok(0)
286
- * ```
287
- *
288
- * ```js
289
- * import assert from 'assert/strict';
290
- *
291
- * // Using `assert()` works the same:
292
- * assert(0);
293
- * // AssertionError: The expression evaluated to a falsy value:
294
- * //
295
- * // assert(0)
296
- * ```
297
- * @since v0.1.21
298
- */
299
- function ok(value: unknown, message?: string | Error): asserts value;
300
- /**
301
- * **Strict assertion mode**
302
- *
303
- * An alias of {@link strictEqual}.
304
- *
305
- * **Legacy assertion mode**
306
- *
307
- * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
308
- *
309
- * Tests shallow, coercive equality between the `actual` and `expected` parameters
310
- * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
311
- * and treated as being identical if both sides are `NaN`.
312
- *
313
- * ```js
314
- * import assert from 'assert';
315
- *
316
- * assert.equal(1, 1);
317
- * // OK, 1 == 1
318
- * assert.equal(1, '1');
319
- * // OK, 1 == '1'
320
- * assert.equal(NaN, NaN);
321
- * // OK
322
- *
323
- * assert.equal(1, 2);
324
- * // AssertionError: 1 == 2
325
- * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
326
- * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
327
- * ```
328
- *
329
- * If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default
330
- * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
331
- * @since v0.1.21
332
- */
333
- function equal(actual: unknown, expected: unknown, message?: string | Error): void;
334
- /**
335
- * **Strict assertion mode**
336
- *
337
- * An alias of {@link notStrictEqual}.
338
- *
339
- * **Legacy assertion mode**
340
- *
341
- * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
342
- *
343
- * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
344
- * specially handled and treated as being identical if both sides are `NaN`.
345
- *
346
- * ```js
347
- * import assert from 'assert';
348
- *
349
- * assert.notEqual(1, 2);
350
- * // OK
351
- *
352
- * assert.notEqual(1, 1);
353
- * // AssertionError: 1 != 1
354
- *
355
- * assert.notEqual(1, '1');
356
- * // AssertionError: 1 != '1'
357
- * ```
358
- *
359
- * If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error
360
- * message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
361
- * @since v0.1.21
362
- */
363
- function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
364
- /**
365
- * **Strict assertion mode**
366
- *
367
- * An alias of {@link deepStrictEqual}.
368
- *
369
- * **Legacy assertion mode**
370
- *
371
- * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
372
- *
373
- * Tests for deep equality between the `actual` and `expected` parameters. Consider
374
- * using {@link deepStrictEqual} instead. {@link deepEqual} can have
375
- * surprising results.
376
- *
377
- * _Deep equality_ means that the enumerable "own" properties of child objects
378
- * are also recursively evaluated by the following rules.
379
- * @since v0.1.21
380
- */
381
- function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
382
- /**
383
- * **Strict assertion mode**
384
- *
385
- * An alias of {@link notDeepStrictEqual}.
386
- *
387
- * **Legacy assertion mode**
388
- *
389
- * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
390
- *
391
- * Tests for any deep inequality. Opposite of {@link deepEqual}.
392
- *
393
- * ```js
394
- * import assert from 'assert';
395
- *
396
- * const obj1 = {
397
- * a: {
398
- * b: 1
399
- * }
400
- * };
401
- * const obj2 = {
402
- * a: {
403
- * b: 2
404
- * }
405
- * };
406
- * const obj3 = {
407
- * a: {
408
- * b: 1
409
- * }
410
- * };
411
- * const obj4 = Object.create(obj1);
412
- *
413
- * assert.notDeepEqual(obj1, obj1);
414
- * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
415
- *
416
- * assert.notDeepEqual(obj1, obj2);
417
- * // OK
418
- *
419
- * assert.notDeepEqual(obj1, obj3);
420
- * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
421
- *
422
- * assert.notDeepEqual(obj1, obj4);
423
- * // OK
424
- * ```
425
- *
426
- * If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default
427
- * error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
428
- * instead of the `AssertionError`.
429
- * @since v0.1.21
430
- */
431
- function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
432
- /**
433
- * Tests strict equality between the `actual` and `expected` parameters as
434
- * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
435
- *
436
- * ```js
437
- * import assert from 'assert/strict';
438
- *
439
- * assert.strictEqual(1, 2);
440
- * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
441
- * //
442
- * // 1 !== 2
443
- *
444
- * assert.strictEqual(1, 1);
445
- * // OK
446
- *
447
- * assert.strictEqual('Hello foobar', 'Hello World!');
448
- * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
449
- * // + actual - expected
450
- * //
451
- * // + 'Hello foobar'
452
- * // - 'Hello World!'
453
- * // ^
454
- *
455
- * const apples = 1;
456
- * const oranges = 2;
457
- * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
458
- * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
459
- *
460
- * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
461
- * // TypeError: Inputs are not identical
462
- * ```
463
- *
464
- * If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
465
- * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
466
- * instead of the `AssertionError`.
467
- * @since v0.1.21
468
- */
469
- function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
470
- /**
471
- * Tests strict inequality between the `actual` and `expected` parameters as
472
- * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
473
- *
474
- * ```js
475
- * import assert from 'assert/strict';
476
- *
477
- * assert.notStrictEqual(1, 2);
478
- * // OK
479
- *
480
- * assert.notStrictEqual(1, 1);
481
- * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
482
- * //
483
- * // 1
484
- *
485
- * assert.notStrictEqual(1, '1');
486
- * // OK
487
- * ```
488
- *
489
- * If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
490
- * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
491
- * instead of the `AssertionError`.
492
- * @since v0.1.21
493
- */
494
- function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
495
- /**
496
- * Tests for deep equality between the `actual` and `expected` parameters.
497
- * "Deep" equality means that the enumerable "own" properties of child objects
498
- * are recursively evaluated also by the following rules.
499
- * @since v1.2.0
500
- */
501
- function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
502
- /**
503
- * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
504
- *
505
- * ```js
506
- * import assert from 'assert/strict';
507
- *
508
- * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
509
- * // OK
510
- * ```
511
- *
512
- * If the values are deeply and strictly equal, an `AssertionError` is thrown
513
- * with a `message` property set equal to the value of the `message` parameter. If
514
- * the `message` parameter is undefined, a default error message is assigned. If
515
- * the `message` parameter is an instance of an `Error` then it will be thrown
516
- * instead of the `AssertionError`.
517
- * @since v1.2.0
518
- */
519
- function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
520
- /**
521
- * Expects the function `fn` to throw an error.
522
- *
523
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
524
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
525
- * a validation object where each property will be tested for strict deep equality,
526
- * or an instance of error where each property will be tested for strict deep
527
- * equality including the non-enumerable `message` and `name` properties. When
528
- * using an object, it is also possible to use a regular expression, when
529
- * validating against a string property. See below for examples.
530
- *
531
- * If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation
532
- * fails.
533
- *
534
- * Custom validation object/error instance:
535
- *
536
- * ```js
537
- * import assert from 'assert/strict';
538
- *
539
- * const err = new TypeError('Wrong value');
540
- * err.code = 404;
541
- * err.foo = 'bar';
542
- * err.info = {
543
- * nested: true,
544
- * baz: 'text'
545
- * };
546
- * err.reg = /abc/i;
547
- *
548
- * assert.throws(
549
- * () => {
550
- * throw err;
551
- * },
552
- * {
553
- * name: 'TypeError',
554
- * message: 'Wrong value',
555
- * info: {
556
- * nested: true,
557
- * baz: 'text'
558
- * }
559
- * // Only properties on the validation object will be tested for.
560
- * // Using nested objects requires all properties to be present. Otherwise
561
- * // the validation is going to fail.
562
- * }
563
- * );
564
- *
565
- * // Using regular expressions to validate error properties:
566
- * throws(
567
- * () => {
568
- * throw err;
569
- * },
570
- * {
571
- * // The `name` and `message` properties are strings and using regular
572
- * // expressions on those will match against the string. If they fail, an
573
- * // error is thrown.
574
- * name: /^TypeError$/,
575
- * message: /Wrong/,
576
- * foo: 'bar',
577
- * info: {
578
- * nested: true,
579
- * // It is not possible to use regular expressions for nested properties!
580
- * baz: 'text'
581
- * },
582
- * // The `reg` property contains a regular expression and only if the
583
- * // validation object contains an identical regular expression, it is going
584
- * // to pass.
585
- * reg: /abc/i
586
- * }
587
- * );
588
- *
589
- * // Fails due to the different `message` and `name` properties:
590
- * throws(
591
- * () => {
592
- * const otherErr = new Error('Not found');
593
- * // Copy all enumerable properties from `err` to `otherErr`.
594
- * for (const [key, value] of Object.entries(err)) {
595
- * otherErr[key] = value;
596
- * }
597
- * throw otherErr;
598
- * },
599
- * // The error's `message` and `name` properties will also be checked when using
600
- * // an error as validation object.
601
- * err
602
- * );
603
- * ```
604
- *
605
- * Validate instanceof using constructor:
606
- *
607
- * ```js
608
- * import assert from 'assert/strict';
609
- *
610
- * assert.throws(
611
- * () => {
612
- * throw new Error('Wrong value');
613
- * },
614
- * Error
615
- * );
616
- * ```
617
- *
618
- * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
619
- *
620
- * Using a regular expression runs `.toString` on the error object, and will
621
- * therefore also include the error name.
622
- *
623
- * ```js
624
- * import assert from 'assert/strict';
625
- *
626
- * assert.throws(
627
- * () => {
628
- * throw new Error('Wrong value');
629
- * },
630
- * /^Error: Wrong value$/
631
- * );
632
- * ```
633
- *
634
- * Custom error validation:
635
- *
636
- * The function must return `true` to indicate all internal validations passed.
637
- * It will otherwise fail with an `AssertionError`.
638
- *
639
- * ```js
640
- * import assert from 'assert/strict';
641
- *
642
- * assert.throws(
643
- * () => {
644
- * throw new Error('Wrong value');
645
- * },
646
- * (err) => {
647
- * assert(err instanceof Error);
648
- * assert(/value/.test(err));
649
- * // Avoid returning anything from validation functions besides `true`.
650
- * // Otherwise, it's not clear what part of the validation failed. Instead,
651
- * // throw an error about the specific validation that failed (as done in this
652
- * // example) and add as much helpful debugging information to that error as
653
- * // possible.
654
- * return true;
655
- * },
656
- * 'unexpected error'
657
- * );
658
- * ```
659
- *
660
- * `error` cannot be a string. If a string is provided as the second
661
- * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same
662
- * message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
663
- * a string as the second argument gets considered:
664
- *
665
- * ```js
666
- * import assert from 'assert/strict';
667
- *
668
- * function throwingFirst() {
669
- * throw new Error('First');
670
- * }
671
- *
672
- * function throwingSecond() {
673
- * throw new Error('Second');
674
- * }
675
- *
676
- * function notThrowing() {}
677
- *
678
- * // The second argument is a string and the input function threw an Error.
679
- * // The first case will not throw as it does not match for the error message
680
- * // thrown by the input function!
681
- * assert.throws(throwingFirst, 'Second');
682
- * // In the next example the message has no benefit over the message from the
683
- * // error and since it is not clear if the user intended to actually match
684
- * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
685
- * assert.throws(throwingSecond, 'Second');
686
- * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
687
- *
688
- * // The string is only used (as message) in case the function does not throw:
689
- * assert.throws(notThrowing, 'Second');
690
- * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
691
- *
692
- * // If it was intended to match for the error message do this instead:
693
- * // It does not throw because the error messages match.
694
- * assert.throws(throwingSecond, /Second$/);
695
- *
696
- * // If the error message does not match, an AssertionError is thrown.
697
- * assert.throws(throwingFirst, /Second$/);
698
- * // AssertionError [ERR_ASSERTION]
699
- * ```
700
- *
701
- * Due to the confusing error-prone notation, avoid a string as the second
702
- * argument.
703
- * @since v0.1.21
704
- */
705
- function throws(block: () => unknown, message?: string | Error): void;
706
- function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
707
- /**
708
- * Asserts that the function `fn` does not throw an error.
709
- *
710
- * Using `assert.doesNotThrow()` is actually not useful because there
711
- * is no benefit in catching an error and then rethrowing it. Instead, consider
712
- * adding a comment next to the specific code path that should not throw and keep
713
- * error messages as expressive as possible.
714
- *
715
- * When `assert.doesNotThrow()` is called, it will immediately call the `fn`function.
716
- *
717
- * If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a
718
- * different type, or if the `error` parameter is undefined, the error is
719
- * propagated back to the caller.
720
- *
721
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
722
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation
723
- * function. See {@link throws} for more details.
724
- *
725
- * The following, for instance, will throw the `TypeError` because there is no
726
- * matching error type in the assertion:
727
- *
728
- * ```js
729
- * import assert from 'assert/strict';
730
- *
731
- * assert.doesNotThrow(
732
- * () => {
733
- * throw new TypeError('Wrong value');
734
- * },
735
- * SyntaxError
736
- * );
737
- * ```
738
- *
739
- * However, the following will result in an `AssertionError` with the message
740
- * 'Got unwanted exception...':
741
- *
742
- * ```js
743
- * import assert from 'assert/strict';
744
- *
745
- * assert.doesNotThrow(
746
- * () => {
747
- * throw new TypeError('Wrong value');
748
- * },
749
- * TypeError
750
- * );
751
- * ```
752
- *
753
- * If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message:
754
- *
755
- * ```js
756
- * import assert from 'assert/strict';
757
- *
758
- * assert.doesNotThrow(
759
- * () => {
760
- * throw new TypeError('Wrong value');
761
- * },
762
- * /Wrong value/,
763
- * 'Whoops'
764
- * );
765
- * // Throws: AssertionError: Got unwanted exception: Whoops
766
- * ```
767
- * @since v0.1.21
768
- */
769
- function doesNotThrow(block: () => unknown, message?: string | Error): void;
770
- function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
771
- /**
772
- * Throws `value` if `value` is not `undefined` or `null`. This is useful when
773
- * testing the `error` argument in callbacks. The stack trace contains all frames
774
- * from the error passed to `ifError()` including the potential new frames for`ifError()` itself.
775
- *
776
- * ```js
777
- * import assert from 'assert/strict';
778
- *
779
- * assert.ifError(null);
780
- * // OK
781
- * assert.ifError(0);
782
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
783
- * assert.ifError('error');
784
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
785
- * assert.ifError(new Error());
786
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
787
- *
788
- * // Create some random error frames.
789
- * let err;
790
- * (function errorFrame() {
791
- * err = new Error('test error');
792
- * })();
793
- *
794
- * (function ifErrorFrame() {
795
- * assert.ifError(err);
796
- * })();
797
- * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
798
- * // at ifErrorFrame
799
- * // at errorFrame
800
- * ```
801
- * @since v0.1.97
802
- */
803
- function ifError(value: unknown): asserts value is null | undefined;
804
- /**
805
- * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
806
- * calls the function and awaits the returned promise to complete. It will then
807
- * check that the promise is rejected.
808
- *
809
- * If `asyncFn` is a function and it throws an error synchronously,`assert.rejects()` will return a rejected `Promise` with that error. If the
810
- * function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases the error
811
- * handler is skipped.
812
- *
813
- * Besides the async nature to await the completion behaves identically to {@link throws}.
814
- *
815
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
816
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
817
- * an object where each property will be tested for, or an instance of error where
818
- * each property will be tested for including the non-enumerable `message` and `name` properties.
819
- *
820
- * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
821
- *
822
- * ```js
823
- * import assert from 'assert/strict';
824
- *
825
- * await assert.rejects(
826
- * async () => {
827
- * throw new TypeError('Wrong value');
828
- * },
829
- * {
830
- * name: 'TypeError',
831
- * message: 'Wrong value'
832
- * }
833
- * );
834
- * ```
835
- *
836
- * ```js
837
- * import assert from 'assert/strict';
838
- *
839
- * await assert.rejects(
840
- * async () => {
841
- * throw new TypeError('Wrong value');
842
- * },
843
- * (err) => {
844
- * assert.strictEqual(err.name, 'TypeError');
845
- * assert.strictEqual(err.message, 'Wrong value');
846
- * return true;
847
- * }
848
- * );
849
- * ```
850
- *
851
- * ```js
852
- * import assert from 'assert/strict';
853
- *
854
- * assert.rejects(
855
- * Promise.reject(new Error('Wrong value')),
856
- * Error
857
- * ).then(() => {
858
- * // ...
859
- * });
860
- * ```
861
- *
862
- * `error` cannot be a string. If a string is provided as the second
863
- * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the
864
- * example in {@link throws} carefully if using a string as the second
865
- * argument gets considered.
866
- * @since v10.0.0
867
- */
868
- function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
869
- function rejects(
870
- block: (() => Promise<unknown>) | Promise<unknown>,
871
- error: AssertPredicate,
872
- message?: string | Error,
873
- ): Promise<void>;
874
- /**
875
- * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
876
- * calls the function and awaits the returned promise to complete. It will then
877
- * check that the promise is not rejected.
878
- *
879
- * If `asyncFn` is a function and it throws an error synchronously,`assert.doesNotReject()` will return a rejected `Promise` with that error. If
880
- * the function does not return a promise, `assert.doesNotReject()` will return a
881
- * rejected `Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases
882
- * the error handler is skipped.
883
- *
884
- * Using `assert.doesNotReject()` is actually not useful because there is little
885
- * benefit in catching a rejection and then rejecting it again. Instead, consider
886
- * adding a comment next to the specific code path that should not reject and keep
887
- * error messages as expressive as possible.
888
- *
889
- * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
890
- * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation
891
- * function. See {@link throws} for more details.
892
- *
893
- * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
894
- *
895
- * ```js
896
- * import assert from 'assert/strict';
897
- *
898
- * await assert.doesNotReject(
899
- * async () => {
900
- * throw new TypeError('Wrong value');
901
- * },
902
- * SyntaxError
903
- * );
904
- * ```
905
- *
906
- * ```js
907
- * import assert from 'assert/strict';
908
- *
909
- * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
910
- * .then(() => {
911
- * // ...
912
- * });
913
- * ```
914
- * @since v10.0.0
915
- */
916
- function doesNotReject(
917
- block: (() => Promise<unknown>) | Promise<unknown>,
918
- message?: string | Error,
919
- ): Promise<void>;
920
- function doesNotReject(
921
- block: (() => Promise<unknown>) | Promise<unknown>,
922
- error: AssertPredicate,
923
- message?: string | Error,
924
- ): Promise<void>;
925
- /**
926
- * Expects the `string` input to match the regular expression.
927
- *
928
- * ```js
929
- * import assert from 'assert/strict';
930
- *
931
- * assert.match('I will fail', /pass/);
932
- * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
933
- *
934
- * assert.match(123, /pass/);
935
- * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
936
- *
937
- * assert.match('I will pass', /pass/);
938
- * // OK
939
- * ```
940
- *
941
- * If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
942
- * to the value of the `message` parameter. If the `message` parameter is
943
- * undefined, a default error message is assigned. If the `message` parameter is an
944
- * instance of an `Error` then it will be thrown instead of the `AssertionError`.
945
- * @since v13.6.0, v12.16.0
946
- */
947
- function match(value: string, regExp: RegExp, message?: string | Error): void;
948
- /**
949
- * Expects the `string` input not to match the regular expression.
950
- *
951
- * ```js
952
- * import assert from 'assert/strict';
953
- *
954
- * assert.doesNotMatch('I will fail', /fail/);
955
- * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
956
- *
957
- * assert.doesNotMatch(123, /pass/);
958
- * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
959
- *
960
- * assert.doesNotMatch('I will pass', /different/);
961
- * // OK
962
- * ```
963
- *
964
- * If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
965
- * to the value of the `message` parameter. If the `message` parameter is
966
- * undefined, a default error message is assigned. If the `message` parameter is an
967
- * instance of an `Error` then it will be thrown instead of the `AssertionError`.
968
- * @since v13.6.0, v12.16.0
969
- */
970
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
971
- const strict:
972
- & Omit<
973
- typeof assert,
974
- | "equal"
975
- | "notEqual"
976
- | "deepEqual"
977
- | "notDeepEqual"
978
- | "ok"
979
- | "strictEqual"
980
- | "deepStrictEqual"
981
- | "ifError"
982
- | "strict"
983
- >
984
- & {
985
- (value: unknown, message?: string | Error): asserts value;
986
- equal: typeof strictEqual;
987
- notEqual: typeof notStrictEqual;
988
- deepEqual: typeof deepStrictEqual;
989
- notDeepEqual: typeof notDeepStrictEqual;
990
- // Mapped types and assertion functions are incompatible?
991
- // TS2775: Assertions require every name in the call target
992
- // to be declared with an explicit type annotation.
993
- ok: typeof ok;
994
- strictEqual: typeof strictEqual;
995
- deepStrictEqual: typeof deepStrictEqual;
996
- ifError: typeof ifError;
997
- strict: typeof strict;
998
- };
999
- }
1000
- export = assert;
1001
- }
1002
- declare module "node:assert" {
1003
- import assert = require("assert");
1004
- export = assert;
1005
- }