mathjs 9.2.0 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (936) hide show
  1. package/HISTORY.md +47 -1
  2. package/README.md +6 -5
  3. package/bin/cli.js +11 -11
  4. package/docs/datatypes/matrices.md +15 -0
  5. package/docs/expressions/parsing.md +21 -4
  6. package/docs/expressions/syntax.md +7 -0
  7. package/docs/reference/functions/complex.md +5 -49
  8. package/docs/reference/functions/eigs.md +12 -12
  9. package/docs/reference/functions/flatten.md +1 -0
  10. package/docs/reference/functions/lsolveAll.md +2 -2
  11. package/docs/reference/functions/matrixFromColumns.md +43 -0
  12. package/docs/reference/functions/matrixFromFunction.md +48 -0
  13. package/docs/reference/functions/matrixFromRows.md +43 -0
  14. package/docs/reference/functions/usolveAll.md +2 -2
  15. package/docs/reference/functions.md +6 -3
  16. package/examples/advanced/custom_scope_objects.js +115 -0
  17. package/examples/node_modules/.bin/envinfo +15 -0
  18. package/examples/node_modules/.bin/envinfo.cmd +17 -0
  19. package/examples/node_modules/.bin/envinfo.ps1 +18 -0
  20. package/examples/node_modules/.bin/import-local-fixture +15 -0
  21. package/examples/node_modules/.bin/import-local-fixture.cmd +17 -0
  22. package/examples/node_modules/.bin/import-local-fixture.ps1 +18 -0
  23. package/examples/node_modules/.bin/node-which +15 -0
  24. package/examples/node_modules/.bin/node-which.cmd +17 -0
  25. package/examples/node_modules/.bin/node-which.ps1 +18 -0
  26. package/examples/node_modules/.bin/webpack-cli +15 -0
  27. package/examples/node_modules/.bin/webpack-cli.cmd +17 -0
  28. package/examples/node_modules/.bin/webpack-cli.ps1 +18 -0
  29. package/examples/node_modules/@discoveryjs/json-ext/CHANGELOG.md +42 -0
  30. package/examples/node_modules/@discoveryjs/json-ext/LICENSE +21 -0
  31. package/examples/node_modules/@discoveryjs/json-ext/README.md +255 -0
  32. package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.js +808 -0
  33. package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.min.js +1 -0
  34. package/examples/node_modules/@discoveryjs/json-ext/package.json +93 -0
  35. package/examples/node_modules/@discoveryjs/json-ext/src/index.js +6 -0
  36. package/examples/node_modules/@discoveryjs/json-ext/src/parse-chunked.js +339 -0
  37. package/examples/node_modules/@discoveryjs/json-ext/src/stringify-info.js +224 -0
  38. package/examples/node_modules/@discoveryjs/json-ext/src/stringify-stream-browser.js +3 -0
  39. package/examples/node_modules/@discoveryjs/json-ext/src/stringify-stream.js +394 -0
  40. package/examples/node_modules/@discoveryjs/json-ext/src/text-decoder-browser.js +1 -0
  41. package/examples/node_modules/@discoveryjs/json-ext/src/text-decoder.js +1 -0
  42. package/examples/node_modules/@discoveryjs/json-ext/src/utils.js +148 -0
  43. package/examples/node_modules/@webpack-cli/configtest/CHANGELOG.md +18 -0
  44. package/examples/node_modules/@webpack-cli/configtest/LICENSE +20 -0
  45. package/examples/node_modules/@webpack-cli/configtest/lib/index.d.ts +4 -0
  46. package/examples/node_modules/@webpack-cli/configtest/lib/index.js +62 -0
  47. package/examples/node_modules/@webpack-cli/configtest/package.json +45 -0
  48. package/examples/node_modules/@webpack-cli/info/CHANGELOG.md +61 -0
  49. package/examples/node_modules/@webpack-cli/info/LICENSE +20 -0
  50. package/examples/node_modules/@webpack-cli/info/README.md +49 -0
  51. package/examples/node_modules/@webpack-cli/info/lib/index.d.ts +4 -0
  52. package/examples/node_modules/@webpack-cli/info/lib/index.js +66 -0
  53. package/examples/node_modules/@webpack-cli/info/package.json +47 -0
  54. package/examples/node_modules/@webpack-cli/serve/CHANGELOG.md +93 -0
  55. package/examples/node_modules/@webpack-cli/serve/LICENSE +20 -0
  56. package/examples/node_modules/@webpack-cli/serve/README.md +26 -0
  57. package/examples/node_modules/@webpack-cli/serve/lib/index.d.ts +4 -0
  58. package/examples/node_modules/@webpack-cli/serve/lib/index.js +107 -0
  59. package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.d.ts +12 -0
  60. package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.js +113 -0
  61. package/examples/node_modules/@webpack-cli/serve/lib/types.d.ts +48 -0
  62. package/examples/node_modules/@webpack-cli/serve/lib/types.js +12 -0
  63. package/examples/node_modules/@webpack-cli/serve/package.json +50 -0
  64. package/examples/node_modules/ansi-colors/LICENSE +21 -0
  65. package/examples/node_modules/ansi-colors/README.md +315 -0
  66. package/examples/node_modules/ansi-colors/index.js +177 -0
  67. package/examples/node_modules/ansi-colors/package.json +152 -0
  68. package/examples/node_modules/ansi-colors/symbols.js +70 -0
  69. package/examples/node_modules/ansi-colors/types/index.d.ts +161 -0
  70. package/examples/node_modules/clone-deep/LICENSE +21 -0
  71. package/examples/node_modules/clone-deep/README.md +106 -0
  72. package/examples/node_modules/clone-deep/index.js +49 -0
  73. package/examples/node_modules/clone-deep/package.json +112 -0
  74. package/examples/node_modules/colorette/LICENSE.md +7 -0
  75. package/examples/node_modules/colorette/README.md +102 -0
  76. package/examples/node_modules/colorette/index.cjs +73 -0
  77. package/examples/node_modules/colorette/index.d.ts +49 -0
  78. package/examples/node_modules/colorette/index.js +73 -0
  79. package/examples/node_modules/colorette/package.json +73 -0
  80. package/examples/node_modules/commander/CHANGELOG.md +440 -0
  81. package/examples/node_modules/commander/LICENSE +22 -0
  82. package/examples/node_modules/commander/Readme.md +917 -0
  83. package/examples/node_modules/commander/esm.mjs +4 -0
  84. package/examples/node_modules/commander/index.js +2217 -0
  85. package/examples/node_modules/commander/package-support.json +16 -0
  86. package/examples/node_modules/commander/package.json +100 -0
  87. package/examples/node_modules/commander/typings/index.d.ts +627 -0
  88. package/examples/node_modules/cross-spawn/CHANGELOG.md +130 -0
  89. package/examples/node_modules/cross-spawn/LICENSE +21 -0
  90. package/examples/node_modules/cross-spawn/README.md +96 -0
  91. package/examples/node_modules/cross-spawn/index.js +39 -0
  92. package/examples/node_modules/cross-spawn/lib/enoent.js +59 -0
  93. package/examples/node_modules/cross-spawn/lib/parse.js +91 -0
  94. package/examples/node_modules/cross-spawn/lib/util/escape.js +45 -0
  95. package/examples/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  96. package/examples/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  97. package/examples/node_modules/cross-spawn/package.json +104 -0
  98. package/examples/node_modules/enquirer/CHANGELOG.md +135 -0
  99. package/examples/node_modules/enquirer/LICENSE +21 -0
  100. package/examples/node_modules/enquirer/README.md +1752 -0
  101. package/examples/node_modules/enquirer/index.d.ts +151 -0
  102. package/examples/node_modules/enquirer/index.js +250 -0
  103. package/examples/node_modules/enquirer/lib/ansi.js +116 -0
  104. package/examples/node_modules/enquirer/lib/combos.js +75 -0
  105. package/examples/node_modules/enquirer/lib/completer.js +52 -0
  106. package/examples/node_modules/enquirer/lib/interpolate.js +266 -0
  107. package/examples/node_modules/enquirer/lib/keypress.js +243 -0
  108. package/examples/node_modules/enquirer/lib/placeholder.js +63 -0
  109. package/examples/node_modules/enquirer/lib/prompt.js +485 -0
  110. package/examples/node_modules/enquirer/lib/prompts/autocomplete.js +113 -0
  111. package/examples/node_modules/enquirer/lib/prompts/basicauth.js +41 -0
  112. package/examples/node_modules/enquirer/lib/prompts/confirm.js +13 -0
  113. package/examples/node_modules/enquirer/lib/prompts/editable.js +136 -0
  114. package/examples/node_modules/enquirer/lib/prompts/form.js +196 -0
  115. package/examples/node_modules/enquirer/lib/prompts/index.js +28 -0
  116. package/examples/node_modules/enquirer/lib/prompts/input.js +55 -0
  117. package/examples/node_modules/enquirer/lib/prompts/invisible.js +11 -0
  118. package/examples/node_modules/enquirer/lib/prompts/list.js +36 -0
  119. package/examples/node_modules/enquirer/lib/prompts/multiselect.js +11 -0
  120. package/examples/node_modules/enquirer/lib/prompts/numeral.js +1 -0
  121. package/examples/node_modules/enquirer/lib/prompts/password.js +18 -0
  122. package/examples/node_modules/enquirer/lib/prompts/quiz.js +37 -0
  123. package/examples/node_modules/enquirer/lib/prompts/scale.js +237 -0
  124. package/examples/node_modules/enquirer/lib/prompts/select.js +139 -0
  125. package/examples/node_modules/enquirer/lib/prompts/snippet.js +185 -0
  126. package/examples/node_modules/enquirer/lib/prompts/sort.js +37 -0
  127. package/examples/node_modules/enquirer/lib/prompts/survey.js +163 -0
  128. package/examples/node_modules/enquirer/lib/prompts/text.js +1 -0
  129. package/examples/node_modules/enquirer/lib/prompts/toggle.js +109 -0
  130. package/examples/node_modules/enquirer/lib/render.js +33 -0
  131. package/examples/node_modules/enquirer/lib/roles.js +46 -0
  132. package/examples/node_modules/enquirer/lib/state.js +69 -0
  133. package/examples/node_modules/enquirer/lib/styles.js +144 -0
  134. package/examples/node_modules/enquirer/lib/symbols.js +66 -0
  135. package/examples/node_modules/enquirer/lib/theme.js +11 -0
  136. package/examples/node_modules/enquirer/lib/timer.js +38 -0
  137. package/examples/node_modules/enquirer/lib/types/array.js +658 -0
  138. package/examples/node_modules/enquirer/lib/types/auth.js +29 -0
  139. package/examples/node_modules/enquirer/lib/types/boolean.js +88 -0
  140. package/examples/node_modules/enquirer/lib/types/index.js +7 -0
  141. package/examples/node_modules/enquirer/lib/types/number.js +86 -0
  142. package/examples/node_modules/enquirer/lib/types/string.js +185 -0
  143. package/examples/node_modules/enquirer/lib/utils.js +268 -0
  144. package/examples/node_modules/enquirer/package.json +148 -0
  145. package/examples/node_modules/envinfo/LICENSE +21 -0
  146. package/examples/node_modules/envinfo/README.md +285 -0
  147. package/examples/node_modules/envinfo/dist/cli.js +2 -0
  148. package/examples/node_modules/envinfo/dist/envinfo.js +1 -0
  149. package/examples/node_modules/envinfo/package.json +130 -0
  150. package/examples/node_modules/execa/index.d.ts +554 -0
  151. package/examples/node_modules/execa/index.js +258 -0
  152. package/examples/node_modules/execa/lib/command.js +32 -0
  153. package/examples/node_modules/execa/lib/error.js +86 -0
  154. package/examples/node_modules/execa/lib/kill.js +112 -0
  155. package/examples/node_modules/execa/lib/promise.js +46 -0
  156. package/examples/node_modules/execa/lib/stdio.js +52 -0
  157. package/examples/node_modules/execa/lib/stream.js +97 -0
  158. package/examples/node_modules/execa/license +9 -0
  159. package/examples/node_modules/execa/package.json +102 -0
  160. package/examples/node_modules/execa/readme.md +650 -0
  161. package/examples/node_modules/fastest-levenshtein/.eslintrc.js +27 -0
  162. package/examples/node_modules/fastest-levenshtein/.prettierrc +4 -0
  163. package/examples/node_modules/fastest-levenshtein/.travis.yml +17 -0
  164. package/examples/node_modules/fastest-levenshtein/LICENSE.md +21 -0
  165. package/examples/node_modules/fastest-levenshtein/README.md +55 -0
  166. package/examples/node_modules/fastest-levenshtein/index.d.ts +2 -0
  167. package/examples/node_modules/fastest-levenshtein/index.js +147 -0
  168. package/examples/node_modules/fastest-levenshtein/package.json +90 -0
  169. package/examples/node_modules/fastest-levenshtein/test.js +64 -0
  170. package/examples/node_modules/find-up/index.d.ts +137 -0
  171. package/examples/node_modules/find-up/index.js +89 -0
  172. package/examples/node_modules/find-up/license +9 -0
  173. package/examples/node_modules/find-up/package.json +85 -0
  174. package/examples/node_modules/find-up/readme.md +156 -0
  175. package/examples/node_modules/function-bind/.editorconfig +20 -0
  176. package/examples/node_modules/function-bind/.eslintrc +15 -0
  177. package/examples/node_modules/function-bind/.jscs.json +176 -0
  178. package/examples/node_modules/function-bind/.npmignore +22 -0
  179. package/examples/node_modules/function-bind/.travis.yml +168 -0
  180. package/examples/node_modules/function-bind/LICENSE +20 -0
  181. package/examples/node_modules/function-bind/README.md +48 -0
  182. package/examples/node_modules/function-bind/implementation.js +52 -0
  183. package/examples/node_modules/function-bind/index.js +5 -0
  184. package/examples/node_modules/function-bind/package.json +94 -0
  185. package/examples/node_modules/function-bind/test/.eslintrc +9 -0
  186. package/examples/node_modules/function-bind/test/index.js +252 -0
  187. package/examples/node_modules/get-stream/buffer-stream.js +52 -0
  188. package/examples/node_modules/get-stream/index.d.ts +105 -0
  189. package/examples/node_modules/get-stream/index.js +61 -0
  190. package/examples/node_modules/get-stream/license +9 -0
  191. package/examples/node_modules/get-stream/package.json +79 -0
  192. package/examples/node_modules/get-stream/readme.md +124 -0
  193. package/examples/node_modules/has/LICENSE-MIT +22 -0
  194. package/examples/node_modules/has/README.md +18 -0
  195. package/examples/node_modules/has/package.json +73 -0
  196. package/examples/node_modules/has/src/index.js +5 -0
  197. package/examples/node_modules/has/test/index.js +10 -0
  198. package/examples/node_modules/human-signals/CHANGELOG.md +11 -0
  199. package/examples/node_modules/human-signals/LICENSE +201 -0
  200. package/examples/node_modules/human-signals/README.md +165 -0
  201. package/examples/node_modules/human-signals/build/src/core.js +273 -0
  202. package/examples/node_modules/human-signals/build/src/core.js.map +1 -0
  203. package/examples/node_modules/human-signals/build/src/main.d.ts +52 -0
  204. package/examples/node_modules/human-signals/build/src/main.js +71 -0
  205. package/examples/node_modules/human-signals/build/src/main.js.map +1 -0
  206. package/examples/node_modules/human-signals/build/src/realtime.js +19 -0
  207. package/examples/node_modules/human-signals/build/src/realtime.js.map +1 -0
  208. package/examples/node_modules/human-signals/build/src/signals.js +35 -0
  209. package/examples/node_modules/human-signals/build/src/signals.js.map +1 -0
  210. package/examples/node_modules/human-signals/package.json +96 -0
  211. package/examples/node_modules/import-local/fixtures/cli.js +7 -0
  212. package/examples/node_modules/import-local/index.js +19 -0
  213. package/examples/node_modules/import-local/license +9 -0
  214. package/examples/node_modules/import-local/package.json +83 -0
  215. package/examples/node_modules/import-local/readme.md +38 -0
  216. package/examples/node_modules/interpret/CHANGELOG +115 -0
  217. package/examples/node_modules/interpret/LICENSE +22 -0
  218. package/examples/node_modules/interpret/README.md +229 -0
  219. package/examples/node_modules/interpret/index.js +211 -0
  220. package/examples/node_modules/interpret/mjs-stub.js +1 -0
  221. package/examples/node_modules/interpret/package.json +118 -0
  222. package/examples/node_modules/is-core-module/.eslintignore +1 -0
  223. package/examples/node_modules/is-core-module/.eslintrc +18 -0
  224. package/examples/node_modules/is-core-module/.github/FUNDING.yml +12 -0
  225. package/examples/node_modules/is-core-module/.github/workflows/node-4+.yml +54 -0
  226. package/examples/node_modules/is-core-module/.github/workflows/node-iojs.yml +58 -0
  227. package/examples/node_modules/is-core-module/.github/workflows/node-pretest.yml +26 -0
  228. package/examples/node_modules/is-core-module/.github/workflows/node-zero.yml +58 -0
  229. package/examples/node_modules/is-core-module/.github/workflows/rebase.yml +15 -0
  230. package/examples/node_modules/is-core-module/.github/workflows/require-allow-edits.yml +14 -0
  231. package/examples/node_modules/is-core-module/.nycrc +13 -0
  232. package/examples/node_modules/is-core-module/CHANGELOG.md +58 -0
  233. package/examples/node_modules/is-core-module/LICENSE +20 -0
  234. package/examples/node_modules/is-core-module/README.md +37 -0
  235. package/examples/node_modules/is-core-module/core.json +83 -0
  236. package/examples/node_modules/is-core-module/index.js +69 -0
  237. package/examples/node_modules/is-core-module/package.json +94 -0
  238. package/examples/node_modules/is-core-module/test/index.js +83 -0
  239. package/examples/node_modules/is-plain-object/LICENSE +21 -0
  240. package/examples/node_modules/is-plain-object/README.md +104 -0
  241. package/examples/node_modules/is-plain-object/index.d.ts +5 -0
  242. package/examples/node_modules/is-plain-object/index.js +37 -0
  243. package/examples/node_modules/is-plain-object/package.json +121 -0
  244. package/examples/node_modules/is-stream/index.d.ts +80 -0
  245. package/examples/node_modules/is-stream/index.js +29 -0
  246. package/examples/node_modules/is-stream/license +9 -0
  247. package/examples/node_modules/is-stream/package.json +73 -0
  248. package/examples/node_modules/is-stream/readme.md +57 -0
  249. package/examples/node_modules/isexe/.npmignore +2 -0
  250. package/examples/node_modules/isexe/LICENSE +15 -0
  251. package/examples/node_modules/isexe/README.md +51 -0
  252. package/examples/node_modules/isexe/index.js +57 -0
  253. package/examples/node_modules/isexe/mode.js +41 -0
  254. package/examples/node_modules/isexe/package.json +60 -0
  255. package/examples/node_modules/isexe/test/basic.js +221 -0
  256. package/examples/node_modules/isexe/windows.js +42 -0
  257. package/examples/node_modules/isobject/LICENSE +21 -0
  258. package/examples/node_modules/isobject/README.md +122 -0
  259. package/examples/node_modules/isobject/index.d.ts +5 -0
  260. package/examples/node_modules/isobject/index.js +12 -0
  261. package/examples/node_modules/isobject/package.json +119 -0
  262. package/examples/node_modules/kind-of/CHANGELOG.md +160 -0
  263. package/examples/node_modules/kind-of/LICENSE +21 -0
  264. package/examples/node_modules/kind-of/README.md +367 -0
  265. package/examples/node_modules/kind-of/index.js +129 -0
  266. package/examples/node_modules/kind-of/package.json +144 -0
  267. package/examples/node_modules/locate-path/index.d.ts +83 -0
  268. package/examples/node_modules/locate-path/index.js +65 -0
  269. package/examples/node_modules/locate-path/license +9 -0
  270. package/examples/node_modules/locate-path/package.json +77 -0
  271. package/examples/node_modules/locate-path/readme.md +122 -0
  272. package/examples/node_modules/merge-stream/LICENSE +21 -0
  273. package/examples/node_modules/merge-stream/README.md +78 -0
  274. package/examples/node_modules/merge-stream/index.js +41 -0
  275. package/examples/node_modules/merge-stream/package.json +54 -0
  276. package/examples/node_modules/mimic-fn/index.d.ts +54 -0
  277. package/examples/node_modules/mimic-fn/index.js +13 -0
  278. package/examples/node_modules/mimic-fn/license +9 -0
  279. package/examples/node_modules/mimic-fn/package.json +74 -0
  280. package/examples/node_modules/mimic-fn/readme.md +69 -0
  281. package/examples/node_modules/npm-run-path/index.d.ts +89 -0
  282. package/examples/node_modules/npm-run-path/index.js +47 -0
  283. package/examples/node_modules/npm-run-path/license +9 -0
  284. package/examples/node_modules/npm-run-path/package.json +76 -0
  285. package/examples/node_modules/npm-run-path/readme.md +115 -0
  286. package/examples/node_modules/onetime/index.d.ts +64 -0
  287. package/examples/node_modules/onetime/index.js +44 -0
  288. package/examples/node_modules/onetime/license +9 -0
  289. package/examples/node_modules/onetime/package.json +75 -0
  290. package/examples/node_modules/onetime/readme.md +94 -0
  291. package/examples/node_modules/p-limit/index.d.ts +38 -0
  292. package/examples/node_modules/p-limit/index.js +57 -0
  293. package/examples/node_modules/p-limit/license +9 -0
  294. package/examples/node_modules/p-limit/package.json +84 -0
  295. package/examples/node_modules/p-limit/readme.md +101 -0
  296. package/examples/node_modules/p-locate/index.d.ts +64 -0
  297. package/examples/node_modules/p-locate/index.js +52 -0
  298. package/examples/node_modules/p-locate/license +9 -0
  299. package/examples/node_modules/p-locate/package.json +85 -0
  300. package/examples/node_modules/p-locate/readme.md +90 -0
  301. package/examples/node_modules/p-try/index.d.ts +39 -0
  302. package/examples/node_modules/p-try/index.js +9 -0
  303. package/examples/node_modules/p-try/license +9 -0
  304. package/examples/node_modules/p-try/package.json +74 -0
  305. package/examples/node_modules/p-try/readme.md +58 -0
  306. package/examples/node_modules/path-exists/index.d.ts +28 -0
  307. package/examples/node_modules/path-exists/index.js +23 -0
  308. package/examples/node_modules/path-exists/license +9 -0
  309. package/examples/node_modules/path-exists/package.json +71 -0
  310. package/examples/node_modules/path-exists/readme.md +52 -0
  311. package/examples/node_modules/path-key/index.d.ts +40 -0
  312. package/examples/node_modules/path-key/index.js +16 -0
  313. package/examples/node_modules/path-key/license +9 -0
  314. package/examples/node_modules/path-key/package.json +72 -0
  315. package/examples/node_modules/path-key/readme.md +61 -0
  316. package/examples/node_modules/path-parse/.travis.yml +9 -0
  317. package/examples/node_modules/path-parse/LICENSE +21 -0
  318. package/examples/node_modules/path-parse/README.md +42 -0
  319. package/examples/node_modules/path-parse/index.js +93 -0
  320. package/examples/node_modules/path-parse/package.json +61 -0
  321. package/examples/node_modules/path-parse/test.js +77 -0
  322. package/examples/node_modules/pkg-dir/index.d.ts +44 -0
  323. package/examples/node_modules/pkg-dir/index.js +17 -0
  324. package/examples/node_modules/pkg-dir/license +9 -0
  325. package/examples/node_modules/pkg-dir/package.json +88 -0
  326. package/examples/node_modules/pkg-dir/readme.md +66 -0
  327. package/examples/node_modules/rechoir/LICENSE +24 -0
  328. package/examples/node_modules/rechoir/README.md +74 -0
  329. package/examples/node_modules/rechoir/index.js +67 -0
  330. package/examples/node_modules/rechoir/lib/extension.js +19 -0
  331. package/examples/node_modules/rechoir/lib/normalize.js +13 -0
  332. package/examples/node_modules/rechoir/lib/register.js +15 -0
  333. package/examples/node_modules/rechoir/package.json +89 -0
  334. package/examples/node_modules/resolve/.editorconfig +37 -0
  335. package/examples/node_modules/resolve/.eslintignore +1 -0
  336. package/examples/node_modules/resolve/.eslintrc +39 -0
  337. package/examples/node_modules/resolve/LICENSE +21 -0
  338. package/examples/node_modules/resolve/SECURITY.md +3 -0
  339. package/examples/node_modules/resolve/appveyor.yml +74 -0
  340. package/examples/node_modules/resolve/example/async.js +5 -0
  341. package/examples/node_modules/resolve/example/sync.js +3 -0
  342. package/examples/node_modules/resolve/index.js +6 -0
  343. package/examples/node_modules/resolve/lib/async.js +320 -0
  344. package/examples/node_modules/resolve/lib/caller.js +8 -0
  345. package/examples/node_modules/resolve/lib/core.js +53 -0
  346. package/examples/node_modules/resolve/lib/core.json +83 -0
  347. package/examples/node_modules/resolve/lib/is-core.js +5 -0
  348. package/examples/node_modules/resolve/lib/node-modules-paths.js +42 -0
  349. package/examples/node_modules/resolve/lib/normalize-options.js +10 -0
  350. package/examples/node_modules/resolve/lib/sync.js +199 -0
  351. package/examples/node_modules/resolve/package.json +80 -0
  352. package/examples/node_modules/resolve/readme.markdown +279 -0
  353. package/examples/node_modules/resolve/test/.eslintrc +5 -0
  354. package/examples/node_modules/resolve/test/core.js +81 -0
  355. package/examples/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  356. package/examples/node_modules/resolve/test/dotdot/index.js +1 -0
  357. package/examples/node_modules/resolve/test/dotdot.js +29 -0
  358. package/examples/node_modules/resolve/test/faulty_basedir.js +29 -0
  359. package/examples/node_modules/resolve/test/filter.js +34 -0
  360. package/examples/node_modules/resolve/test/filter_sync.js +33 -0
  361. package/examples/node_modules/resolve/test/mock.js +315 -0
  362. package/examples/node_modules/resolve/test/mock_sync.js +216 -0
  363. package/examples/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  364. package/examples/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  365. package/examples/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  366. package/examples/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  367. package/examples/node_modules/resolve/test/module_dir.js +56 -0
  368. package/examples/node_modules/resolve/test/node-modules-paths.js +143 -0
  369. package/examples/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  370. package/examples/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  371. package/examples/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  372. package/examples/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  373. package/examples/node_modules/resolve/test/node_path.js +70 -0
  374. package/examples/node_modules/resolve/test/nonstring.js +9 -0
  375. package/examples/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  376. package/examples/node_modules/resolve/test/pathfilter.js +75 -0
  377. package/examples/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  378. package/examples/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  379. package/examples/node_modules/resolve/test/precedence/aaa.js +1 -0
  380. package/examples/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  381. package/examples/node_modules/resolve/test/precedence/bbb.js +1 -0
  382. package/examples/node_modules/resolve/test/precedence.js +23 -0
  383. package/examples/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  384. package/examples/node_modules/resolve/test/resolver/baz/package.json +4 -0
  385. package/examples/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  386. package/examples/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  387. package/examples/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  388. package/examples/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
  389. package/examples/node_modules/resolve/test/resolver/cup.coffee +1 -0
  390. package/examples/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
  391. package/examples/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
  392. package/examples/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
  393. package/examples/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
  394. package/examples/node_modules/resolve/test/resolver/foo.js +1 -0
  395. package/examples/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  396. package/examples/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  397. package/examples/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
  398. package/examples/node_modules/resolve/test/resolver/mug.coffee +0 -0
  399. package/examples/node_modules/resolve/test/resolver/mug.js +0 -0
  400. package/examples/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
  401. package/examples/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
  402. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
  403. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
  404. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  405. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
  406. package/examples/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
  407. package/examples/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
  408. package/examples/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
  409. package/examples/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  410. package/examples/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  411. package/examples/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  412. package/examples/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
  413. package/examples/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
  414. package/examples/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  415. package/examples/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  416. package/examples/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
  417. package/examples/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
  418. package/examples/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
  419. package/examples/node_modules/resolve/test/resolver.js +450 -0
  420. package/examples/node_modules/resolve/test/resolver_sync.js +358 -0
  421. package/examples/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  422. package/examples/node_modules/resolve/test/shadowed_core.js +54 -0
  423. package/examples/node_modules/resolve/test/subdirs.js +13 -0
  424. package/examples/node_modules/resolve/test/symlinks.js +176 -0
  425. package/examples/node_modules/resolve-cwd/index.d.ts +48 -0
  426. package/examples/node_modules/resolve-cwd/index.js +5 -0
  427. package/examples/node_modules/resolve-cwd/license +9 -0
  428. package/examples/node_modules/resolve-cwd/package.json +75 -0
  429. package/examples/node_modules/resolve-cwd/readme.md +58 -0
  430. package/examples/node_modules/resolve-from/index.d.ts +31 -0
  431. package/examples/node_modules/resolve-from/index.js +47 -0
  432. package/examples/node_modules/resolve-from/license +9 -0
  433. package/examples/node_modules/resolve-from/package.json +68 -0
  434. package/examples/node_modules/resolve-from/readme.md +72 -0
  435. package/examples/node_modules/shallow-clone/LICENSE +21 -0
  436. package/examples/node_modules/shallow-clone/README.md +153 -0
  437. package/examples/node_modules/shallow-clone/index.js +83 -0
  438. package/examples/node_modules/shallow-clone/package.json +101 -0
  439. package/examples/node_modules/shebang-command/index.js +19 -0
  440. package/examples/node_modules/shebang-command/license +9 -0
  441. package/examples/node_modules/shebang-command/package.json +66 -0
  442. package/examples/node_modules/shebang-command/readme.md +34 -0
  443. package/examples/node_modules/shebang-regex/index.d.ts +22 -0
  444. package/examples/node_modules/shebang-regex/index.js +2 -0
  445. package/examples/node_modules/shebang-regex/license +9 -0
  446. package/examples/node_modules/shebang-regex/package.json +67 -0
  447. package/examples/node_modules/shebang-regex/readme.md +33 -0
  448. package/examples/node_modules/signal-exit/CHANGELOG.md +35 -0
  449. package/examples/node_modules/signal-exit/LICENSE.txt +16 -0
  450. package/examples/node_modules/signal-exit/README.md +39 -0
  451. package/examples/node_modules/signal-exit/index.js +163 -0
  452. package/examples/node_modules/signal-exit/package.json +66 -0
  453. package/examples/node_modules/signal-exit/signals.js +53 -0
  454. package/examples/node_modules/strip-final-newline/index.js +16 -0
  455. package/examples/node_modules/strip-final-newline/license +9 -0
  456. package/examples/node_modules/strip-final-newline/package.json +72 -0
  457. package/examples/node_modules/strip-final-newline/readme.md +30 -0
  458. package/examples/node_modules/v8-compile-cache/CHANGELOG.md +53 -0
  459. package/examples/node_modules/v8-compile-cache/LICENSE +21 -0
  460. package/examples/node_modules/v8-compile-cache/README.md +55 -0
  461. package/examples/node_modules/v8-compile-cache/package.json +66 -0
  462. package/examples/node_modules/v8-compile-cache/v8-compile-cache.js +371 -0
  463. package/examples/node_modules/webpack-cli/CHANGELOG.md +501 -0
  464. package/examples/node_modules/webpack-cli/LICENSE +20 -0
  465. package/examples/node_modules/webpack-cli/README.md +116 -0
  466. package/examples/node_modules/webpack-cli/bin/cli.js +40 -0
  467. package/examples/node_modules/webpack-cli/lib/bootstrap.js +18 -0
  468. package/examples/node_modules/webpack-cli/lib/index.js +5 -0
  469. package/examples/node_modules/webpack-cli/lib/plugins/CLIPlugin.js +99 -0
  470. package/examples/node_modules/webpack-cli/lib/utils/__tests__/get-package-manager.test.js +108 -0
  471. package/examples/node_modules/webpack-cli/lib/utils/__tests__/prompt-installation.test.js +118 -0
  472. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-all-lock/package-lock.json +0 -0
  473. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-all-lock/pnpm-lock.yaml +0 -0
  474. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-all-lock/yarn.lock +0 -0
  475. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-and-pnpm/package-lock.json +0 -0
  476. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-and-pnpm/pnpm-lock.yaml +0 -0
  477. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-and-yarn/package-lock.json +0 -0
  478. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-and-yarn/yarn.lock +0 -0
  479. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-lock/package-lock.json +0 -0
  480. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-pnpm-lock/pnpm-lock.yaml +0 -0
  481. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/pnpm-lock.yaml +0 -0
  482. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/yarn.lock +0 -0
  483. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-yarn-lock/yarn.lock +0 -0
  484. package/examples/node_modules/webpack-cli/lib/utils/capitalize-first-letter.js +9 -0
  485. package/examples/node_modules/webpack-cli/lib/utils/dynamic-import-loader.js +13 -0
  486. package/examples/node_modules/webpack-cli/lib/utils/get-package-manager.js +65 -0
  487. package/examples/node_modules/webpack-cli/lib/utils/index.js +49 -0
  488. package/examples/node_modules/webpack-cli/lib/utils/logger.js +11 -0
  489. package/examples/node_modules/webpack-cli/lib/utils/package-exists.js +9 -0
  490. package/examples/node_modules/webpack-cli/lib/utils/prompt-installation.js +58 -0
  491. package/examples/node_modules/webpack-cli/lib/utils/run-command.js +13 -0
  492. package/examples/node_modules/webpack-cli/lib/utils/to-kebab-case.js +5 -0
  493. package/examples/node_modules/webpack-cli/lib/webpack-cli.js +1803 -0
  494. package/examples/node_modules/webpack-cli/package.json +96 -0
  495. package/examples/node_modules/webpack-merge/CHANGELOG.md +421 -0
  496. package/examples/node_modules/webpack-merge/LICENSE +20 -0
  497. package/examples/node_modules/webpack-merge/README.md +314 -0
  498. package/examples/node_modules/webpack-merge/dist/index.d.ts +15 -0
  499. package/examples/node_modules/webpack-merge/dist/index.js +262 -0
  500. package/examples/node_modules/webpack-merge/dist/index.js.map +1 -0
  501. package/examples/node_modules/webpack-merge/dist/join-arrays.d.ts +6 -0
  502. package/examples/node_modules/webpack-merge/dist/join-arrays.js +69 -0
  503. package/examples/node_modules/webpack-merge/dist/join-arrays.js.map +1 -0
  504. package/examples/node_modules/webpack-merge/dist/merge-with.d.ts +2 -0
  505. package/examples/node_modules/webpack-merge/dist/merge-with.js +38 -0
  506. package/examples/node_modules/webpack-merge/dist/merge-with.js.map +1 -0
  507. package/examples/node_modules/webpack-merge/dist/types.d.ts +13 -0
  508. package/examples/node_modules/webpack-merge/dist/types.js +12 -0
  509. package/examples/node_modules/webpack-merge/dist/types.js.map +1 -0
  510. package/examples/node_modules/webpack-merge/dist/unique.d.ts +2 -0
  511. package/examples/node_modules/webpack-merge/dist/unique.js +40 -0
  512. package/examples/node_modules/webpack-merge/dist/unique.js.map +1 -0
  513. package/examples/node_modules/webpack-merge/dist/utils.d.ts +5 -0
  514. package/examples/node_modules/webpack-merge/dist/utils.js +24 -0
  515. package/examples/node_modules/webpack-merge/dist/utils.js.map +1 -0
  516. package/examples/node_modules/webpack-merge/package.json +86 -0
  517. package/examples/node_modules/which/CHANGELOG.md +166 -0
  518. package/examples/node_modules/which/LICENSE +15 -0
  519. package/examples/node_modules/which/README.md +54 -0
  520. package/examples/node_modules/which/bin/node-which +52 -0
  521. package/examples/node_modules/which/package.json +76 -0
  522. package/examples/node_modules/which/which.js +125 -0
  523. package/examples/node_modules/wildcard/.travis.yml +9 -0
  524. package/examples/node_modules/wildcard/README.md +99 -0
  525. package/examples/node_modules/wildcard/docs.json +9 -0
  526. package/examples/node_modules/wildcard/examples/arrays.js +10 -0
  527. package/examples/node_modules/wildcard/examples/objects.js +10 -0
  528. package/examples/node_modules/wildcard/examples/strings.js +7 -0
  529. package/examples/node_modules/wildcard/index.js +114 -0
  530. package/examples/node_modules/wildcard/package.json +82 -0
  531. package/examples/node_modules/wildcard/test/all.js +3 -0
  532. package/examples/node_modules/wildcard/test/arrays.js +33 -0
  533. package/examples/node_modules/wildcard/test/objects.js +106 -0
  534. package/examples/node_modules/wildcard/test/strings.js +46 -0
  535. package/examples/node_modules/wildcard/yarn.lock +228 -0
  536. package/lib/browser/math.js +10 -10
  537. package/lib/browser/math.js.map +1 -1
  538. package/lib/cjs/core/create.js +8 -7
  539. package/lib/cjs/core/function/import.js +9 -7
  540. package/lib/cjs/core/function/typed.js +6 -1
  541. package/lib/cjs/defaultInstance.js +3 -3
  542. package/lib/cjs/entry/allFactoriesAny.js +3 -3
  543. package/lib/cjs/entry/allFactoriesNumber.js +3 -3
  544. package/lib/cjs/entry/configReadonly.js +5 -4
  545. package/lib/cjs/entry/dependenciesAny/dependenciesEigs.generated.js +51 -0
  546. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +29 -0
  547. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +26 -0
  548. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +29 -0
  549. package/lib/cjs/entry/dependenciesAny.generated.js +24 -0
  550. package/lib/cjs/entry/impureFunctionsAny.generated.js +22 -17
  551. package/lib/cjs/entry/impureFunctionsNumber.generated.js +11 -9
  552. package/lib/cjs/entry/pureFunctionsAny.generated.js +78 -41
  553. package/lib/cjs/expression/Parser.js +22 -15
  554. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +9 -0
  555. package/lib/cjs/expression/embeddedDocs/function/matrix/column.js +1 -1
  556. package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromColumns.js +15 -0
  557. package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromFunction.js +15 -0
  558. package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromRows.js +15 -0
  559. package/lib/cjs/expression/embeddedDocs/function/matrix/row.js +1 -1
  560. package/lib/cjs/expression/function/evaluate.js +6 -4
  561. package/lib/cjs/expression/keywords.js +1 -3
  562. package/lib/cjs/expression/node/AccessorNode.js +1 -0
  563. package/lib/cjs/expression/node/AssignmentNode.js +6 -3
  564. package/lib/cjs/expression/node/FunctionAssignmentNode.js +2 -4
  565. package/lib/cjs/expression/node/FunctionNode.js +86 -39
  566. package/lib/cjs/expression/node/IndexNode.js +5 -13
  567. package/lib/cjs/expression/node/Node.js +15 -9
  568. package/lib/cjs/expression/node/ObjectNode.js +5 -3
  569. package/lib/cjs/expression/node/SymbolNode.js +4 -4
  570. package/lib/cjs/expression/node/utils/access.js +5 -3
  571. package/lib/cjs/expression/node/utils/assign.js +5 -3
  572. package/lib/cjs/expression/parse.js +23 -20
  573. package/lib/cjs/expression/transform/utils/compileInlineExpression.js +5 -3
  574. package/lib/cjs/factoriesAny.js +24 -0
  575. package/lib/cjs/function/algebra/decomposition/qr.js +5 -3
  576. package/lib/cjs/function/algebra/simplify/resolve.js +7 -1
  577. package/lib/cjs/function/algebra/simplify.js +20 -14
  578. package/lib/cjs/function/algebra/solver/lsolveAll.js +9 -19
  579. package/lib/cjs/function/algebra/solver/usolveAll.js +9 -19
  580. package/lib/cjs/function/arithmetic/ceil.js +6 -16
  581. package/lib/cjs/function/arithmetic/floor.js +6 -16
  582. package/lib/cjs/function/arithmetic/norm.js +2 -2
  583. package/lib/cjs/function/arithmetic/pow.js +9 -7
  584. package/lib/cjs/function/arithmetic/round.js +7 -5
  585. package/lib/cjs/function/complex/im.js +3 -0
  586. package/lib/cjs/function/complex/re.js +3 -0
  587. package/lib/cjs/function/matrix/eigs/complexEigs.js +631 -0
  588. package/lib/cjs/function/matrix/eigs/realSymetric.js +341 -0
  589. package/lib/cjs/function/matrix/eigs.js +188 -334
  590. package/lib/cjs/function/matrix/flatten.js +1 -0
  591. package/lib/cjs/function/matrix/matrixFromColumns.js +118 -0
  592. package/lib/cjs/function/matrix/matrixFromFunction.js +85 -0
  593. package/lib/cjs/function/matrix/matrixFromRows.js +108 -0
  594. package/lib/cjs/function/probability/pickRandom.js +1 -1
  595. package/lib/cjs/function/probability/util/seededRNG.js +2 -2
  596. package/lib/cjs/function/relational/compareNatural.js +2 -2
  597. package/lib/cjs/function/utils/isPrime.js +67 -3
  598. package/lib/cjs/header.js +2 -2
  599. package/lib/cjs/plain/bignumber/index.js +2 -2
  600. package/lib/cjs/type/bignumber/BigNumber.js +2 -2
  601. package/lib/cjs/type/bignumber/function/bignumber.js +4 -4
  602. package/lib/cjs/type/complex/Complex.js +5 -5
  603. package/lib/cjs/type/fraction/Fraction.js +2 -2
  604. package/lib/cjs/type/matrix/DenseMatrix.js +138 -0
  605. package/lib/cjs/type/matrix/Matrix.js +10 -0
  606. package/lib/cjs/type/matrix/SparseMatrix.js +77 -3
  607. package/lib/cjs/type/matrix/function/matrix.js +2 -1
  608. package/lib/cjs/type/number.js +63 -5
  609. package/lib/cjs/type/unit/Unit.js +15 -13
  610. package/lib/cjs/utils/array.js +1 -1
  611. package/lib/cjs/utils/customs.js +18 -4
  612. package/lib/cjs/utils/emitter.js +2 -2
  613. package/lib/cjs/utils/function.js +6 -2
  614. package/lib/cjs/utils/is.js +7 -5
  615. package/lib/cjs/utils/latex.js +2 -2
  616. package/lib/cjs/utils/map.js +197 -0
  617. package/lib/cjs/utils/object.js +6 -5
  618. package/lib/cjs/utils/scope.js +33 -0
  619. package/lib/cjs/utils/snapshot.js +17 -16
  620. package/lib/cjs/utils/string.js +6 -4
  621. package/lib/cjs/version.js +1 -1
  622. package/lib/esm/constants.js +15 -15
  623. package/lib/esm/core/create.js +1 -2
  624. package/lib/esm/core/function/typed.js +5 -1
  625. package/lib/esm/entry/configReadonly.js +1 -2
  626. package/lib/esm/entry/dependenciesAny/dependenciesEigs.generated.js +34 -0
  627. package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +16 -0
  628. package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +14 -0
  629. package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +16 -0
  630. package/lib/esm/entry/dependenciesAny.generated.js +3 -0
  631. package/lib/esm/entry/impureFunctionsAny.generated.js +13 -10
  632. package/lib/esm/entry/impureFunctionsNumber.generated.js +1 -1
  633. package/lib/esm/entry/pureFunctionsAny.generated.js +66 -32
  634. package/lib/esm/expression/Help.js +1 -1
  635. package/lib/esm/expression/Parser.js +23 -15
  636. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +6 -0
  637. package/lib/esm/expression/embeddedDocs/function/matrix/column.js +1 -1
  638. package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromColumns.js +8 -0
  639. package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromFunction.js +8 -0
  640. package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromRows.js +8 -0
  641. package/lib/esm/expression/embeddedDocs/function/matrix/row.js +1 -1
  642. package/lib/esm/expression/function/compile.js +1 -1
  643. package/lib/esm/expression/function/evaluate.js +6 -5
  644. package/lib/esm/expression/function/help.js +1 -1
  645. package/lib/esm/expression/function/parser.js +1 -1
  646. package/lib/esm/expression/keywords.js +1 -3
  647. package/lib/esm/expression/node/AccessorNode.js +2 -1
  648. package/lib/esm/expression/node/ArrayNode.js +1 -1
  649. package/lib/esm/expression/node/AssignmentNode.js +7 -4
  650. package/lib/esm/expression/node/BlockNode.js +1 -1
  651. package/lib/esm/expression/node/ConditionalNode.js +1 -1
  652. package/lib/esm/expression/node/ConstantNode.js +1 -1
  653. package/lib/esm/expression/node/FunctionAssignmentNode.js +3 -4
  654. package/lib/esm/expression/node/FunctionNode.js +68 -33
  655. package/lib/esm/expression/node/IndexNode.js +1 -1
  656. package/lib/esm/expression/node/Node.js +7 -8
  657. package/lib/esm/expression/node/ObjectNode.js +1 -1
  658. package/lib/esm/expression/node/OperatorNode.js +1 -1
  659. package/lib/esm/expression/node/ParenthesisNode.js +1 -1
  660. package/lib/esm/expression/node/RangeNode.js +1 -1
  661. package/lib/esm/expression/node/RelationalNode.js +1 -1
  662. package/lib/esm/expression/node/SymbolNode.js +5 -5
  663. package/lib/esm/expression/parse.js +15 -9
  664. package/lib/esm/expression/transform/apply.transform.js +1 -1
  665. package/lib/esm/expression/transform/column.transform.js +1 -1
  666. package/lib/esm/expression/transform/concat.transform.js +1 -1
  667. package/lib/esm/expression/transform/diff.transform.js +1 -1
  668. package/lib/esm/expression/transform/filter.transform.js +1 -1
  669. package/lib/esm/expression/transform/forEach.transform.js +1 -1
  670. package/lib/esm/expression/transform/index.transform.js +1 -1
  671. package/lib/esm/expression/transform/map.transform.js +1 -1
  672. package/lib/esm/expression/transform/max.transform.js +1 -1
  673. package/lib/esm/expression/transform/mean.transform.js +1 -1
  674. package/lib/esm/expression/transform/min.transform.js +1 -1
  675. package/lib/esm/expression/transform/range.transform.js +1 -1
  676. package/lib/esm/expression/transform/row.transform.js +1 -1
  677. package/lib/esm/expression/transform/std.transform.js +1 -1
  678. package/lib/esm/expression/transform/subset.transform.js +1 -1
  679. package/lib/esm/expression/transform/sum.transform.js +1 -1
  680. package/lib/esm/expression/transform/utils/compileInlineExpression.js +4 -3
  681. package/lib/esm/expression/transform/variance.transform.js +1 -1
  682. package/lib/esm/factoriesAny.js +3 -0
  683. package/lib/esm/factoriesNumber.js +1 -1
  684. package/lib/esm/function/algebra/decomposition/lup.js +1 -1
  685. package/lib/esm/function/algebra/decomposition/qr.js +2 -3
  686. package/lib/esm/function/algebra/decomposition/slu.js +1 -1
  687. package/lib/esm/function/algebra/derivative.js +1 -1
  688. package/lib/esm/function/algebra/rationalize.js +1 -1
  689. package/lib/esm/function/algebra/simplify/resolve.js +7 -2
  690. package/lib/esm/function/algebra/simplify/simplifyConstant.js +1 -1
  691. package/lib/esm/function/algebra/simplify/simplifyCore.js +1 -1
  692. package/lib/esm/function/algebra/simplify/util.js +1 -1
  693. package/lib/esm/function/algebra/simplify.js +16 -12
  694. package/lib/esm/function/algebra/solver/lsolve.js +1 -1
  695. package/lib/esm/function/algebra/solver/lsolveAll.js +4 -4
  696. package/lib/esm/function/algebra/solver/lusolve.js +1 -1
  697. package/lib/esm/function/algebra/solver/usolve.js +1 -1
  698. package/lib/esm/function/algebra/solver/usolveAll.js +4 -4
  699. package/lib/esm/function/algebra/sparse/csAmd.js +1 -1
  700. package/lib/esm/function/algebra/sparse/csChol.js +1 -1
  701. package/lib/esm/function/algebra/sparse/csCounts.js +1 -1
  702. package/lib/esm/function/algebra/sparse/csLu.js +1 -1
  703. package/lib/esm/function/algebra/sparse/csSpsolve.js +1 -1
  704. package/lib/esm/function/algebra/sparse/csSqr.js +1 -1
  705. package/lib/esm/function/algebra/sparse/csSymperm.js +1 -1
  706. package/lib/esm/function/arithmetic/abs.js +1 -1
  707. package/lib/esm/function/arithmetic/add.js +1 -1
  708. package/lib/esm/function/arithmetic/addScalar.js +1 -1
  709. package/lib/esm/function/arithmetic/cbrt.js +1 -1
  710. package/lib/esm/function/arithmetic/ceil.js +1 -1
  711. package/lib/esm/function/arithmetic/cube.js +1 -1
  712. package/lib/esm/function/arithmetic/divide.js +1 -1
  713. package/lib/esm/function/arithmetic/divideScalar.js +1 -1
  714. package/lib/esm/function/arithmetic/dotDivide.js +1 -1
  715. package/lib/esm/function/arithmetic/dotMultiply.js +1 -1
  716. package/lib/esm/function/arithmetic/dotPow.js +1 -1
  717. package/lib/esm/function/arithmetic/exp.js +1 -1
  718. package/lib/esm/function/arithmetic/expm1.js +1 -1
  719. package/lib/esm/function/arithmetic/fix.js +1 -1
  720. package/lib/esm/function/arithmetic/floor.js +1 -1
  721. package/lib/esm/function/arithmetic/gcd.js +1 -1
  722. package/lib/esm/function/arithmetic/hypot.js +1 -1
  723. package/lib/esm/function/arithmetic/lcm.js +1 -1
  724. package/lib/esm/function/arithmetic/log.js +1 -1
  725. package/lib/esm/function/arithmetic/log10.js +1 -1
  726. package/lib/esm/function/arithmetic/log1p.js +1 -1
  727. package/lib/esm/function/arithmetic/log2.js +1 -1
  728. package/lib/esm/function/arithmetic/mod.js +1 -1
  729. package/lib/esm/function/arithmetic/multiply.js +1 -1
  730. package/lib/esm/function/arithmetic/multiplyScalar.js +1 -1
  731. package/lib/esm/function/arithmetic/norm.js +3 -3
  732. package/lib/esm/function/arithmetic/nthRoot.js +2 -2
  733. package/lib/esm/function/arithmetic/nthRoots.js +1 -1
  734. package/lib/esm/function/arithmetic/pow.js +10 -8
  735. package/lib/esm/function/arithmetic/round.js +6 -6
  736. package/lib/esm/function/arithmetic/sign.js +1 -1
  737. package/lib/esm/function/arithmetic/sqrt.js +1 -1
  738. package/lib/esm/function/arithmetic/square.js +1 -1
  739. package/lib/esm/function/arithmetic/subtract.js +1 -1
  740. package/lib/esm/function/arithmetic/unaryMinus.js +1 -1
  741. package/lib/esm/function/arithmetic/unaryPlus.js +1 -1
  742. package/lib/esm/function/arithmetic/xgcd.js +1 -1
  743. package/lib/esm/function/bitwise/bitAnd.js +1 -1
  744. package/lib/esm/function/bitwise/bitNot.js +1 -1
  745. package/lib/esm/function/bitwise/bitOr.js +1 -1
  746. package/lib/esm/function/bitwise/bitXor.js +1 -1
  747. package/lib/esm/function/bitwise/leftShift.js +1 -1
  748. package/lib/esm/function/bitwise/rightArithShift.js +1 -1
  749. package/lib/esm/function/bitwise/rightLogShift.js +1 -1
  750. package/lib/esm/function/combinatorics/bellNumbers.js +1 -1
  751. package/lib/esm/function/combinatorics/catalan.js +1 -1
  752. package/lib/esm/function/combinatorics/composition.js +1 -1
  753. package/lib/esm/function/combinatorics/stirlingS2.js +1 -1
  754. package/lib/esm/function/complex/arg.js +1 -1
  755. package/lib/esm/function/complex/conj.js +1 -1
  756. package/lib/esm/function/complex/im.js +4 -1
  757. package/lib/esm/function/complex/re.js +4 -1
  758. package/lib/esm/function/geometry/distance.js +1 -1
  759. package/lib/esm/function/geometry/intersect.js +1 -1
  760. package/lib/esm/function/logical/and.js +1 -1
  761. package/lib/esm/function/logical/not.js +1 -1
  762. package/lib/esm/function/logical/or.js +1 -1
  763. package/lib/esm/function/logical/xor.js +1 -1
  764. package/lib/esm/function/matrix/apply.js +1 -1
  765. package/lib/esm/function/matrix/column.js +1 -1
  766. package/lib/esm/function/matrix/concat.js +1 -1
  767. package/lib/esm/function/matrix/count.js +1 -1
  768. package/lib/esm/function/matrix/cross.js +1 -1
  769. package/lib/esm/function/matrix/ctranspose.js +1 -1
  770. package/lib/esm/function/matrix/det.js +1 -1
  771. package/lib/esm/function/matrix/diag.js +1 -1
  772. package/lib/esm/function/matrix/diff.js +1 -1
  773. package/lib/esm/function/matrix/dot.js +1 -1
  774. package/lib/esm/function/matrix/eigs/complexEigs.js +586 -0
  775. package/lib/esm/function/matrix/eigs/realSymetric.js +335 -0
  776. package/lib/esm/function/matrix/eigs.js +187 -335
  777. package/lib/esm/function/matrix/expm.js +1 -1
  778. package/lib/esm/function/matrix/filter.js +1 -1
  779. package/lib/esm/function/matrix/flatten.js +2 -1
  780. package/lib/esm/function/matrix/forEach.js +1 -1
  781. package/lib/esm/function/matrix/getMatrixDataType.js +1 -1
  782. package/lib/esm/function/matrix/identity.js +1 -1
  783. package/lib/esm/function/matrix/inv.js +1 -1
  784. package/lib/esm/function/matrix/kron.js +1 -1
  785. package/lib/esm/function/matrix/map.js +1 -1
  786. package/lib/esm/function/matrix/matrixFromColumns.js +93 -0
  787. package/lib/esm/function/matrix/matrixFromFunction.js +78 -0
  788. package/lib/esm/function/matrix/matrixFromRows.js +83 -0
  789. package/lib/esm/function/matrix/ones.js +1 -1
  790. package/lib/esm/function/matrix/partitionSelect.js +1 -1
  791. package/lib/esm/function/matrix/range.js +1 -1
  792. package/lib/esm/function/matrix/reshape.js +1 -1
  793. package/lib/esm/function/matrix/resize.js +1 -1
  794. package/lib/esm/function/matrix/rotate.js +1 -1
  795. package/lib/esm/function/matrix/rotationMatrix.js +1 -1
  796. package/lib/esm/function/matrix/row.js +1 -1
  797. package/lib/esm/function/matrix/size.js +1 -1
  798. package/lib/esm/function/matrix/sort.js +1 -1
  799. package/lib/esm/function/matrix/sqrtm.js +1 -1
  800. package/lib/esm/function/matrix/squeeze.js +1 -1
  801. package/lib/esm/function/matrix/subset.js +1 -1
  802. package/lib/esm/function/matrix/trace.js +1 -1
  803. package/lib/esm/function/matrix/transpose.js +1 -1
  804. package/lib/esm/function/matrix/zeros.js +1 -1
  805. package/lib/esm/function/probability/combinations.js +1 -1
  806. package/lib/esm/function/probability/combinationsWithRep.js +1 -1
  807. package/lib/esm/function/probability/factorial.js +1 -1
  808. package/lib/esm/function/probability/gamma.js +1 -1
  809. package/lib/esm/function/probability/kldivergence.js +1 -1
  810. package/lib/esm/function/probability/multinomial.js +1 -1
  811. package/lib/esm/function/probability/permutations.js +1 -1
  812. package/lib/esm/function/probability/pickRandom.js +2 -2
  813. package/lib/esm/function/probability/random.js +2 -2
  814. package/lib/esm/function/probability/randomInt.js +1 -1
  815. package/lib/esm/function/relational/compare.js +2 -2
  816. package/lib/esm/function/relational/compareNatural.js +1 -1
  817. package/lib/esm/function/relational/compareText.js +2 -2
  818. package/lib/esm/function/relational/deepEqual.js +1 -1
  819. package/lib/esm/function/relational/equal.js +2 -2
  820. package/lib/esm/function/relational/equalScalar.js +2 -2
  821. package/lib/esm/function/relational/equalText.js +1 -1
  822. package/lib/esm/function/relational/larger.js +2 -2
  823. package/lib/esm/function/relational/largerEq.js +2 -2
  824. package/lib/esm/function/relational/smaller.js +2 -2
  825. package/lib/esm/function/relational/smallerEq.js +2 -2
  826. package/lib/esm/function/relational/unequal.js +2 -2
  827. package/lib/esm/function/set/setCartesian.js +1 -1
  828. package/lib/esm/function/set/setDifference.js +1 -1
  829. package/lib/esm/function/set/setDistinct.js +1 -1
  830. package/lib/esm/function/set/setIntersect.js +1 -1
  831. package/lib/esm/function/set/setIsSubset.js +1 -1
  832. package/lib/esm/function/set/setMultiplicity.js +1 -1
  833. package/lib/esm/function/set/setPowerset.js +1 -1
  834. package/lib/esm/function/set/setSize.js +1 -1
  835. package/lib/esm/function/set/setSymDifference.js +1 -1
  836. package/lib/esm/function/set/setUnion.js +1 -1
  837. package/lib/esm/function/special/erf.js +1 -1
  838. package/lib/esm/function/statistics/mad.js +1 -1
  839. package/lib/esm/function/statistics/max.js +1 -1
  840. package/lib/esm/function/statistics/mean.js +1 -1
  841. package/lib/esm/function/statistics/median.js +1 -1
  842. package/lib/esm/function/statistics/min.js +1 -1
  843. package/lib/esm/function/statistics/mode.js +1 -1
  844. package/lib/esm/function/statistics/prod.js +1 -1
  845. package/lib/esm/function/statistics/quantileSeq.js +1 -1
  846. package/lib/esm/function/statistics/std.js +1 -1
  847. package/lib/esm/function/statistics/sum.js +1 -1
  848. package/lib/esm/function/statistics/variance.js +1 -1
  849. package/lib/esm/function/string/bin.js +1 -1
  850. package/lib/esm/function/string/format.js +1 -1
  851. package/lib/esm/function/string/hex.js +1 -1
  852. package/lib/esm/function/string/oct.js +1 -1
  853. package/lib/esm/function/string/print.js +1 -1
  854. package/lib/esm/function/trigonometry/acos.js +1 -1
  855. package/lib/esm/function/trigonometry/acosh.js +1 -1
  856. package/lib/esm/function/trigonometry/acot.js +1 -1
  857. package/lib/esm/function/trigonometry/acoth.js +1 -1
  858. package/lib/esm/function/trigonometry/acsc.js +1 -1
  859. package/lib/esm/function/trigonometry/acsch.js +1 -1
  860. package/lib/esm/function/trigonometry/asec.js +1 -1
  861. package/lib/esm/function/trigonometry/asech.js +1 -1
  862. package/lib/esm/function/trigonometry/asin.js +1 -1
  863. package/lib/esm/function/trigonometry/asinh.js +1 -1
  864. package/lib/esm/function/trigonometry/atan.js +1 -1
  865. package/lib/esm/function/trigonometry/atan2.js +1 -1
  866. package/lib/esm/function/trigonometry/atanh.js +1 -1
  867. package/lib/esm/function/trigonometry/cos.js +1 -1
  868. package/lib/esm/function/trigonometry/cosh.js +1 -1
  869. package/lib/esm/function/trigonometry/cot.js +1 -1
  870. package/lib/esm/function/trigonometry/coth.js +1 -1
  871. package/lib/esm/function/trigonometry/csc.js +1 -1
  872. package/lib/esm/function/trigonometry/csch.js +1 -1
  873. package/lib/esm/function/trigonometry/sec.js +1 -1
  874. package/lib/esm/function/trigonometry/sech.js +1 -1
  875. package/lib/esm/function/trigonometry/sin.js +1 -1
  876. package/lib/esm/function/trigonometry/sinh.js +1 -1
  877. package/lib/esm/function/trigonometry/tan.js +1 -1
  878. package/lib/esm/function/trigonometry/tanh.js +1 -1
  879. package/lib/esm/function/unit/to.js +1 -1
  880. package/lib/esm/function/utils/clone.js +1 -1
  881. package/lib/esm/function/utils/hasNumericValue.js +1 -1
  882. package/lib/esm/function/utils/isInteger.js +1 -1
  883. package/lib/esm/function/utils/isNaN.js +1 -1
  884. package/lib/esm/function/utils/isNegative.js +1 -1
  885. package/lib/esm/function/utils/isNumeric.js +1 -1
  886. package/lib/esm/function/utils/isPositive.js +1 -1
  887. package/lib/esm/function/utils/isPrime.js +66 -4
  888. package/lib/esm/function/utils/isZero.js +1 -1
  889. package/lib/esm/function/utils/numeric.js +1 -1
  890. package/lib/esm/function/utils/typeOf.js +1 -1
  891. package/lib/esm/json/reviver.js +1 -1
  892. package/lib/esm/type/bignumber/BigNumber.js +1 -1
  893. package/lib/esm/type/bignumber/function/bignumber.js +5 -5
  894. package/lib/esm/type/boolean.js +1 -1
  895. package/lib/esm/type/chain/Chain.js +1 -1
  896. package/lib/esm/type/chain/function/chain.js +1 -1
  897. package/lib/esm/type/complex/function/complex.js +1 -1
  898. package/lib/esm/type/fraction/function/fraction.js +1 -1
  899. package/lib/esm/type/matrix/DenseMatrix.js +75 -1
  900. package/lib/esm/type/matrix/FibonacciHeap.js +1 -1
  901. package/lib/esm/type/matrix/ImmutableDenseMatrix.js +1 -1
  902. package/lib/esm/type/matrix/Matrix.js +10 -0
  903. package/lib/esm/type/matrix/MatrixIndex.js +1 -1
  904. package/lib/esm/type/matrix/Spa.js +1 -1
  905. package/lib/esm/type/matrix/SparseMatrix.js +37 -3
  906. package/lib/esm/type/matrix/function/index.js +1 -1
  907. package/lib/esm/type/matrix/function/matrix.js +3 -2
  908. package/lib/esm/type/matrix/function/sparse.js +1 -1
  909. package/lib/esm/type/matrix/utils/algorithm01.js +1 -1
  910. package/lib/esm/type/matrix/utils/algorithm02.js +1 -1
  911. package/lib/esm/type/matrix/utils/algorithm03.js +1 -1
  912. package/lib/esm/type/matrix/utils/algorithm04.js +1 -1
  913. package/lib/esm/type/matrix/utils/algorithm05.js +1 -1
  914. package/lib/esm/type/matrix/utils/algorithm06.js +1 -1
  915. package/lib/esm/type/matrix/utils/algorithm07.js +1 -1
  916. package/lib/esm/type/matrix/utils/algorithm08.js +1 -1
  917. package/lib/esm/type/matrix/utils/algorithm09.js +1 -1
  918. package/lib/esm/type/matrix/utils/algorithm10.js +1 -1
  919. package/lib/esm/type/matrix/utils/algorithm11.js +1 -1
  920. package/lib/esm/type/matrix/utils/algorithm12.js +1 -1
  921. package/lib/esm/type/matrix/utils/algorithm13.js +1 -1
  922. package/lib/esm/type/matrix/utils/algorithm14.js +1 -1
  923. package/lib/esm/type/number.js +64 -6
  924. package/lib/esm/type/string.js +1 -1
  925. package/lib/esm/type/unit/Unit.js +4 -5
  926. package/lib/esm/type/unit/function/createUnit.js +1 -1
  927. package/lib/esm/type/unit/function/splitUnit.js +1 -1
  928. package/lib/esm/type/unit/function/unit.js +1 -1
  929. package/lib/esm/type/unit/physicalConstants.js +2 -2
  930. package/lib/esm/utils/array.js +1 -1
  931. package/lib/esm/utils/customs.js +10 -0
  932. package/lib/esm/utils/map.js +135 -0
  933. package/lib/esm/utils/scope.js +26 -0
  934. package/lib/esm/utils/snapshot.js +3 -4
  935. package/lib/esm/version.js +1 -1
  936. package/package.json +22 -13
@@ -0,0 +1,165 @@
1
+ [![Codecov](https://img.shields.io/codecov/c/github/ehmicky/human-signals.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/human-signals)
2
+ [![Travis](https://img.shields.io/badge/cross-platform-4cc61e.svg?logo=travis)](https://travis-ci.org/ehmicky/human-signals)
3
+ [![Node](https://img.shields.io/node/v/human-signals.svg?logo=node.js)](https://www.npmjs.com/package/human-signals)
4
+ [![Gitter](https://img.shields.io/gitter/room/ehmicky/human-signals.svg?logo=gitter)](https://gitter.im/ehmicky/human-signals)
5
+ [![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)
6
+ [![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky)
7
+
8
+ Human-friendly process signals.
9
+
10
+ This is a map of known process signals with some information about each signal.
11
+
12
+ Unlike
13
+ [`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)
14
+ this includes:
15
+
16
+ - human-friendly [descriptions](#description)
17
+ - [default actions](#action), including whether they [can be prevented](#forced)
18
+ - whether the signal is [supported](#supported) by the current OS
19
+
20
+ # Example
21
+
22
+ ```js
23
+ const { signalsByName, signalsByNumber } = require('human-signals')
24
+
25
+ console.log(signalsByName.SIGINT)
26
+ // {
27
+ // name: 'SIGINT',
28
+ // number: 2,
29
+ // description: 'User interruption with CTRL-C',
30
+ // supported: true,
31
+ // action: 'terminate',
32
+ // forced: false,
33
+ // standard: 'ansi'
34
+ // }
35
+
36
+ console.log(signalsByNumber[8])
37
+ // {
38
+ // name: 'SIGFPE',
39
+ // number: 8,
40
+ // description: 'Floating point arithmetic error',
41
+ // supported: true,
42
+ // action: 'core',
43
+ // forced: false,
44
+ // standard: 'ansi'
45
+ // }
46
+ ```
47
+
48
+ # Install
49
+
50
+ ```bash
51
+ npm install human-signals
52
+ ```
53
+
54
+ # Usage
55
+
56
+ ## signalsByName
57
+
58
+ _Type_: `object`
59
+
60
+ Object whose keys are signal [names](#name) and values are
61
+ [signal objects](#signal).
62
+
63
+ ## signalsByNumber
64
+
65
+ _Type_: `object`
66
+
67
+ Object whose keys are signal [numbers](#number) and values are
68
+ [signal objects](#signal).
69
+
70
+ ## signal
71
+
72
+ _Type_: `object`
73
+
74
+ Signal object with the following properties.
75
+
76
+ ### name
77
+
78
+ _Type_: `string`
79
+
80
+ Standard name of the signal, for example `'SIGINT'`.
81
+
82
+ ### number
83
+
84
+ _Type_: `number`
85
+
86
+ Code number of the signal, for example `2`. While most `number` are
87
+ cross-platform, some are different between different OS.
88
+
89
+ ### description
90
+
91
+ _Type_: `string`
92
+
93
+ Human-friendly description for the signal, for example
94
+ `'User interruption with CTRL-C'`.
95
+
96
+ ### supported
97
+
98
+ _Type_: `boolean`
99
+
100
+ Whether the current OS can handle this signal in Node.js using
101
+ [`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).
102
+
103
+ The list of supported signals
104
+ [is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/master/docs/6_networking_ipc/signals.md#cross-platform-signals).
105
+
106
+ ### action
107
+
108
+ _Type_: `string`\
109
+ _Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`, `'unpause'`
110
+
111
+ What is the default action for this signal when it is not handled.
112
+
113
+ ### forced
114
+
115
+ _Type_: `boolean`
116
+
117
+ Whether the signal's default action cannot be prevented. This is `true` for
118
+ `SIGTERM`, `SIGKILL` and `SIGSTOP`.
119
+
120
+ ### standard
121
+
122
+ _Type_: `string`\
123
+ _Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`
124
+
125
+ Which standard defined that signal.
126
+
127
+ # Support
128
+
129
+ If you found a bug or would like a new feature, _don't hesitate_ to
130
+ [submit an issue on GitHub](../../issues).
131
+
132
+ For other questions, feel free to
133
+ [chat with us on Gitter](https://gitter.im/ehmicky/human-signals).
134
+
135
+ Everyone is welcome regardless of personal background. We enforce a
136
+ [Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and
137
+ inclusive environment.
138
+
139
+ # Contributing
140
+
141
+ This project was made with ❤️. The simplest way to give back is by starring and
142
+ sharing it online.
143
+
144
+ If the documentation is unclear or has a typo, please click on the page's `Edit`
145
+ button (pencil icon) and suggest a correction.
146
+
147
+ If you would like to help us fix a bug or add a new feature, please check our
148
+ [guidelines](CONTRIBUTING.md). Pull requests are welcome!
149
+
150
+ Thanks go to our wonderful contributors:
151
+
152
+ <!-- ALL-CONTRIBUTORS-LIST:START -->
153
+ <!-- prettier-ignore-start -->
154
+ <!-- markdownlint-disable -->
155
+ <table>
156
+ <tr>
157
+ <td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt=""/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Documentation">📖</a></td>
158
+ <td align="center"><a href="http://www.electrovir.com"><img src="https://avatars0.githubusercontent.com/u/1205860?v=4" width="100px;" alt=""/><br /><sub><b>electrovir</b></sub></a><br /><a href="https://github.com/ehmicky/human-signals/commits?author=electrovir" title="Code">💻</a></td>
159
+ </tr>
160
+ </table>
161
+
162
+ <!-- markdownlint-enable -->
163
+ <!-- prettier-ignore-end -->
164
+
165
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
@@ -0,0 +1,273 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SIGNALS=void 0;
2
+
3
+ const SIGNALS=[
4
+ {
5
+ name:"SIGHUP",
6
+ number:1,
7
+ action:"terminate",
8
+ description:"Terminal closed",
9
+ standard:"posix"},
10
+
11
+ {
12
+ name:"SIGINT",
13
+ number:2,
14
+ action:"terminate",
15
+ description:"User interruption with CTRL-C",
16
+ standard:"ansi"},
17
+
18
+ {
19
+ name:"SIGQUIT",
20
+ number:3,
21
+ action:"core",
22
+ description:"User interruption with CTRL-\\",
23
+ standard:"posix"},
24
+
25
+ {
26
+ name:"SIGILL",
27
+ number:4,
28
+ action:"core",
29
+ description:"Invalid machine instruction",
30
+ standard:"ansi"},
31
+
32
+ {
33
+ name:"SIGTRAP",
34
+ number:5,
35
+ action:"core",
36
+ description:"Debugger breakpoint",
37
+ standard:"posix"},
38
+
39
+ {
40
+ name:"SIGABRT",
41
+ number:6,
42
+ action:"core",
43
+ description:"Aborted",
44
+ standard:"ansi"},
45
+
46
+ {
47
+ name:"SIGIOT",
48
+ number:6,
49
+ action:"core",
50
+ description:"Aborted",
51
+ standard:"bsd"},
52
+
53
+ {
54
+ name:"SIGBUS",
55
+ number:7,
56
+ action:"core",
57
+ description:
58
+ "Bus error due to misaligned, non-existing address or paging error",
59
+ standard:"bsd"},
60
+
61
+ {
62
+ name:"SIGEMT",
63
+ number:7,
64
+ action:"terminate",
65
+ description:"Command should be emulated but is not implemented",
66
+ standard:"other"},
67
+
68
+ {
69
+ name:"SIGFPE",
70
+ number:8,
71
+ action:"core",
72
+ description:"Floating point arithmetic error",
73
+ standard:"ansi"},
74
+
75
+ {
76
+ name:"SIGKILL",
77
+ number:9,
78
+ action:"terminate",
79
+ description:"Forced termination",
80
+ standard:"posix",
81
+ forced:true},
82
+
83
+ {
84
+ name:"SIGUSR1",
85
+ number:10,
86
+ action:"terminate",
87
+ description:"Application-specific signal",
88
+ standard:"posix"},
89
+
90
+ {
91
+ name:"SIGSEGV",
92
+ number:11,
93
+ action:"core",
94
+ description:"Segmentation fault",
95
+ standard:"ansi"},
96
+
97
+ {
98
+ name:"SIGUSR2",
99
+ number:12,
100
+ action:"terminate",
101
+ description:"Application-specific signal",
102
+ standard:"posix"},
103
+
104
+ {
105
+ name:"SIGPIPE",
106
+ number:13,
107
+ action:"terminate",
108
+ description:"Broken pipe or socket",
109
+ standard:"posix"},
110
+
111
+ {
112
+ name:"SIGALRM",
113
+ number:14,
114
+ action:"terminate",
115
+ description:"Timeout or timer",
116
+ standard:"posix"},
117
+
118
+ {
119
+ name:"SIGTERM",
120
+ number:15,
121
+ action:"terminate",
122
+ description:"Termination",
123
+ standard:"ansi"},
124
+
125
+ {
126
+ name:"SIGSTKFLT",
127
+ number:16,
128
+ action:"terminate",
129
+ description:"Stack is empty or overflowed",
130
+ standard:"other"},
131
+
132
+ {
133
+ name:"SIGCHLD",
134
+ number:17,
135
+ action:"ignore",
136
+ description:"Child process terminated, paused or unpaused",
137
+ standard:"posix"},
138
+
139
+ {
140
+ name:"SIGCLD",
141
+ number:17,
142
+ action:"ignore",
143
+ description:"Child process terminated, paused or unpaused",
144
+ standard:"other"},
145
+
146
+ {
147
+ name:"SIGCONT",
148
+ number:18,
149
+ action:"unpause",
150
+ description:"Unpaused",
151
+ standard:"posix",
152
+ forced:true},
153
+
154
+ {
155
+ name:"SIGSTOP",
156
+ number:19,
157
+ action:"pause",
158
+ description:"Paused",
159
+ standard:"posix",
160
+ forced:true},
161
+
162
+ {
163
+ name:"SIGTSTP",
164
+ number:20,
165
+ action:"pause",
166
+ description:"Paused using CTRL-Z or \"suspend\"",
167
+ standard:"posix"},
168
+
169
+ {
170
+ name:"SIGTTIN",
171
+ number:21,
172
+ action:"pause",
173
+ description:"Background process cannot read terminal input",
174
+ standard:"posix"},
175
+
176
+ {
177
+ name:"SIGBREAK",
178
+ number:21,
179
+ action:"terminate",
180
+ description:"User interruption with CTRL-BREAK",
181
+ standard:"other"},
182
+
183
+ {
184
+ name:"SIGTTOU",
185
+ number:22,
186
+ action:"pause",
187
+ description:"Background process cannot write to terminal output",
188
+ standard:"posix"},
189
+
190
+ {
191
+ name:"SIGURG",
192
+ number:23,
193
+ action:"ignore",
194
+ description:"Socket received out-of-band data",
195
+ standard:"bsd"},
196
+
197
+ {
198
+ name:"SIGXCPU",
199
+ number:24,
200
+ action:"core",
201
+ description:"Process timed out",
202
+ standard:"bsd"},
203
+
204
+ {
205
+ name:"SIGXFSZ",
206
+ number:25,
207
+ action:"core",
208
+ description:"File too big",
209
+ standard:"bsd"},
210
+
211
+ {
212
+ name:"SIGVTALRM",
213
+ number:26,
214
+ action:"terminate",
215
+ description:"Timeout or timer",
216
+ standard:"bsd"},
217
+
218
+ {
219
+ name:"SIGPROF",
220
+ number:27,
221
+ action:"terminate",
222
+ description:"Timeout or timer",
223
+ standard:"bsd"},
224
+
225
+ {
226
+ name:"SIGWINCH",
227
+ number:28,
228
+ action:"ignore",
229
+ description:"Terminal window size changed",
230
+ standard:"bsd"},
231
+
232
+ {
233
+ name:"SIGIO",
234
+ number:29,
235
+ action:"terminate",
236
+ description:"I/O is available",
237
+ standard:"other"},
238
+
239
+ {
240
+ name:"SIGPOLL",
241
+ number:29,
242
+ action:"terminate",
243
+ description:"Watched event",
244
+ standard:"other"},
245
+
246
+ {
247
+ name:"SIGINFO",
248
+ number:29,
249
+ action:"ignore",
250
+ description:"Request for process information",
251
+ standard:"other"},
252
+
253
+ {
254
+ name:"SIGPWR",
255
+ number:30,
256
+ action:"terminate",
257
+ description:"Device running out of power",
258
+ standard:"systemv"},
259
+
260
+ {
261
+ name:"SIGSYS",
262
+ number:31,
263
+ action:"core",
264
+ description:"Invalid system call",
265
+ standard:"other"},
266
+
267
+ {
268
+ name:"SIGUNUSED",
269
+ number:31,
270
+ action:"terminate",
271
+ description:"Invalid system call",
272
+ standard:"other"}];exports.SIGNALS=SIGNALS;
273
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core.js"],"names":["SIGNALS","name","number","action","description","standard","forced"],"mappings":"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","sourcesContent":["/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n"],"file":"src/core.js"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Object whose keys are signal names and values are signal objects.
3
+ */
4
+ export declare const signalsByName: { [signalName: string]: Signal }
5
+ /**
6
+ * Object whose keys are signal numbers and values are signal objects.
7
+ */
8
+ export declare const signalsByNumber: { [signalNumber: string]: Signal }
9
+
10
+ export declare type SignalAction =
11
+ | 'terminate'
12
+ | 'core'
13
+ | 'ignore'
14
+ | 'pause'
15
+ | 'unpause'
16
+ export declare type SignalStandard =
17
+ | 'ansi'
18
+ | 'posix'
19
+ | 'bsd'
20
+ | 'systemv'
21
+ | 'other'
22
+
23
+ export declare type Signal = {
24
+ /**
25
+ * Standard name of the signal, for example 'SIGINT'.
26
+ */
27
+ name: string
28
+ /**
29
+ * Code number of the signal, for example 2. While most number are cross-platform, some are different between different OS.
30
+ */
31
+ number: number
32
+ /**
33
+ * Human-friendly description for the signal, for example 'User interruption with CTRL-C'.
34
+ */
35
+ description: string
36
+ /**
37
+ * Whether the current OS can handle this signal in Node.js using process.on(name, handler). The list of supported signals is OS-specific.
38
+ */
39
+ supported: boolean
40
+ /**
41
+ * What is the default action for this signal when it is not handled.
42
+ */
43
+ action: SignalAction
44
+ /**
45
+ * Whether the signal's default action cannot be prevented. This is true for SIGTERM, SIGKILL and SIGSTOP.
46
+ */
47
+ forced: boolean
48
+ /**
49
+ * Which standard defined that signal.
50
+ */
51
+ standard: SignalStandard
52
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.signalsByNumber=exports.signalsByName=void 0;var _os=require("os");
2
+
3
+ var _signals=require("./signals.js");
4
+ var _realtime=require("./realtime.js");
5
+
6
+
7
+
8
+ const getSignalsByName=function(){
9
+ const signals=(0,_signals.getSignals)();
10
+ return signals.reduce(getSignalByName,{});
11
+ };
12
+
13
+ const getSignalByName=function(
14
+ signalByNameMemo,
15
+ {name,number,description,supported,action,forced,standard})
16
+ {
17
+ return{
18
+ ...signalByNameMemo,
19
+ [name]:{name,number,description,supported,action,forced,standard}};
20
+
21
+ };
22
+
23
+ const signalsByName=getSignalsByName();exports.signalsByName=signalsByName;
24
+
25
+
26
+
27
+
28
+ const getSignalsByNumber=function(){
29
+ const signals=(0,_signals.getSignals)();
30
+ const length=_realtime.SIGRTMAX+1;
31
+ const signalsA=Array.from({length},(value,number)=>
32
+ getSignalByNumber(number,signals));
33
+
34
+ return Object.assign({},...signalsA);
35
+ };
36
+
37
+ const getSignalByNumber=function(number,signals){
38
+ const signal=findSignalByNumber(number,signals);
39
+
40
+ if(signal===undefined){
41
+ return{};
42
+ }
43
+
44
+ const{name,description,supported,action,forced,standard}=signal;
45
+ return{
46
+ [number]:{
47
+ name,
48
+ number,
49
+ description,
50
+ supported,
51
+ action,
52
+ forced,
53
+ standard}};
54
+
55
+
56
+ };
57
+
58
+
59
+
60
+ const findSignalByNumber=function(number,signals){
61
+ const signal=signals.find(({name})=>_os.constants.signals[name]===number);
62
+
63
+ if(signal!==undefined){
64
+ return signal;
65
+ }
66
+
67
+ return signals.find(signalA=>signalA.number===number);
68
+ };
69
+
70
+ const signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumber;
71
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/main.js"],"names":["getSignalsByName","signals","reduce","getSignalByName","signalByNameMemo","name","number","description","supported","action","forced","standard","signalsByName","getSignalsByNumber","length","SIGRTMAX","signalsA","Array","from","value","getSignalByNumber","Object","assign","signal","findSignalByNumber","undefined","find","constants","signalA","signalsByNumber"],"mappings":"2HAAA;;AAEA;AACA;;;;AAIA,KAAMA,CAAAA,gBAAgB,CAAG,UAAW;AAClC,KAAMC,CAAAA,OAAO,CAAG,yBAAhB;AACA,MAAOA,CAAAA,OAAO,CAACC,MAAR,CAAeC,eAAf,CAAgC,EAAhC,CAAP;AACD,CAHD;;AAKA,KAAMA,CAAAA,eAAe,CAAG;AACtBC,gBADsB;AAEtB,CAAEC,IAAF,CAAQC,MAAR,CAAgBC,WAAhB,CAA6BC,SAA7B,CAAwCC,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAFsB;AAGtB;AACA,MAAO;AACL,GAAGP,gBADE;AAEL,CAACC,IAAD,EAAQ,CAAEA,IAAF,CAAQC,MAAR,CAAgBC,WAAhB,CAA6BC,SAA7B,CAAwCC,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAFH,CAAP;;AAID,CARD;;AAUO,KAAMC,CAAAA,aAAa,CAAGZ,gBAAgB,EAAtC,C;;;;;AAKP,KAAMa,CAAAA,kBAAkB,CAAG,UAAW;AACpC,KAAMZ,CAAAA,OAAO,CAAG,yBAAhB;AACA,KAAMa,CAAAA,MAAM,CAAGC,mBAAW,CAA1B;AACA,KAAMC,CAAAA,QAAQ,CAAGC,KAAK,CAACC,IAAN,CAAW,CAAEJ,MAAF,CAAX,CAAuB,CAACK,KAAD,CAAQb,MAAR;AACtCc,iBAAiB,CAACd,MAAD,CAASL,OAAT,CADF,CAAjB;;AAGA,MAAOoB,CAAAA,MAAM,CAACC,MAAP,CAAc,EAAd,CAAkB,GAAGN,QAArB,CAAP;AACD,CAPD;;AASA,KAAMI,CAAAA,iBAAiB,CAAG,SAASd,MAAT,CAAiBL,OAAjB,CAA0B;AAClD,KAAMsB,CAAAA,MAAM,CAAGC,kBAAkB,CAAClB,MAAD,CAASL,OAAT,CAAjC;;AAEA,GAAIsB,MAAM,GAAKE,SAAf,CAA0B;AACxB,MAAO,EAAP;AACD;;AAED,KAAM,CAAEpB,IAAF,CAAQE,WAAR,CAAqBC,SAArB,CAAgCC,MAAhC,CAAwCC,MAAxC,CAAgDC,QAAhD,EAA6DY,MAAnE;AACA,MAAO;AACL,CAACjB,MAAD,EAAU;AACRD,IADQ;AAERC,MAFQ;AAGRC,WAHQ;AAIRC,SAJQ;AAKRC,MALQ;AAMRC,MANQ;AAORC,QAPQ,CADL,CAAP;;;AAWD,CAnBD;;;;AAuBA,KAAMa,CAAAA,kBAAkB,CAAG,SAASlB,MAAT,CAAiBL,OAAjB,CAA0B;AACnD,KAAMsB,CAAAA,MAAM,CAAGtB,OAAO,CAACyB,IAAR,CAAa,CAAC,CAAErB,IAAF,CAAD,GAAcsB,cAAU1B,OAAV,CAAkBI,IAAlB,IAA4BC,MAAvD,CAAf;;AAEA,GAAIiB,MAAM,GAAKE,SAAf,CAA0B;AACxB,MAAOF,CAAAA,MAAP;AACD;;AAED,MAAOtB,CAAAA,OAAO,CAACyB,IAAR,CAAaE,OAAO,EAAIA,OAAO,CAACtB,MAAR,GAAmBA,MAA3C,CAAP;AACD,CARD;;AAUO,KAAMuB,CAAAA,eAAe,CAAGhB,kBAAkB,EAA1C,C","sourcesContent":["import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n"],"file":"src/main.js"}
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;
2
+ const getRealtimeSignals=function(){
3
+ const length=SIGRTMAX-SIGRTMIN+1;
4
+ return Array.from({length},getRealtimeSignal);
5
+ };exports.getRealtimeSignals=getRealtimeSignals;
6
+
7
+ const getRealtimeSignal=function(value,index){
8
+ return{
9
+ name:`SIGRT${index+1}`,
10
+ number:SIGRTMIN+index,
11
+ action:"terminate",
12
+ description:"Application-specific signal (realtime)",
13
+ standard:"posix"};
14
+
15
+ };
16
+
17
+ const SIGRTMIN=34;
18
+ const SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX;
19
+ //# sourceMappingURL=realtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/realtime.js"],"names":["getRealtimeSignals","length","SIGRTMAX","SIGRTMIN","Array","from","getRealtimeSignal","value","index","name","number","action","description","standard"],"mappings":";AACO,KAAMA,CAAAA,kBAAkB,CAAG,UAAW;AAC3C,KAAMC,CAAAA,MAAM,CAAGC,QAAQ,CAAGC,QAAX,CAAsB,CAArC;AACA,MAAOC,CAAAA,KAAK,CAACC,IAAN,CAAW,CAAEJ,MAAF,CAAX,CAAuBK,iBAAvB,CAAP;AACD,CAHM,C;;AAKP,KAAMA,CAAAA,iBAAiB,CAAG,SAASC,KAAT,CAAgBC,KAAhB,CAAuB;AAC/C,MAAO;AACLC,IAAI,CAAG,QAAOD,KAAK,CAAG,CAAE,EADnB;AAELE,MAAM,CAAEP,QAAQ,CAAGK,KAFd;AAGLG,MAAM,CAAE,WAHH;AAILC,WAAW,CAAE,wCAJR;AAKLC,QAAQ,CAAE,OALL,CAAP;;AAOD,CARD;;AAUA,KAAMV,CAAAA,QAAQ,CAAG,EAAjB;AACO,KAAMD,CAAAA,QAAQ,CAAG,EAAjB,C","sourcesContent":["// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n"],"file":"src/realtime.js"}
@@ -0,0 +1,35 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getSignals=void 0;var _os=require("os");
2
+
3
+ var _core=require("./core.js");
4
+ var _realtime=require("./realtime.js");
5
+
6
+
7
+
8
+ const getSignals=function(){
9
+ const realtimeSignals=(0,_realtime.getRealtimeSignals)();
10
+ const signals=[..._core.SIGNALS,...realtimeSignals].map(normalizeSignal);
11
+ return signals;
12
+ };exports.getSignals=getSignals;
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+ const normalizeSignal=function({
21
+ name,
22
+ number:defaultNumber,
23
+ description,
24
+ action,
25
+ forced=false,
26
+ standard})
27
+ {
28
+ const{
29
+ signals:{[name]:constantSignal}}=
30
+ _os.constants;
31
+ const supported=constantSignal!==undefined;
32
+ const number=supported?constantSignal:defaultNumber;
33
+ return{name,number,description,supported,action,forced,standard};
34
+ };
35
+ //# sourceMappingURL=signals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/signals.js"],"names":["getSignals","realtimeSignals","signals","SIGNALS","map","normalizeSignal","name","number","defaultNumber","description","action","forced","standard","constantSignal","constants","supported","undefined"],"mappings":"gGAAA;;AAEA;AACA;;;;AAIO,KAAMA,CAAAA,UAAU,CAAG,UAAW;AACnC,KAAMC,CAAAA,eAAe,CAAG,kCAAxB;AACA,KAAMC,CAAAA,OAAO,CAAG,CAAC,GAAGC,aAAJ,CAAa,GAAGF,eAAhB,EAAiCG,GAAjC,CAAqCC,eAArC,CAAhB;AACA,MAAOH,CAAAA,OAAP;AACD,CAJM,C;;;;;;;;AAYP,KAAMG,CAAAA,eAAe,CAAG,SAAS;AAC/BC,IAD+B;AAE/BC,MAAM,CAAEC,aAFuB;AAG/BC,WAH+B;AAI/BC,MAJ+B;AAK/BC,MAAM,CAAG,KALsB;AAM/BC,QAN+B,CAAT;AAOrB;AACD,KAAM;AACJV,OAAO,CAAE,CAAE,CAACI,IAAD,EAAQO,cAAV,CADL;AAEFC,aAFJ;AAGA,KAAMC,CAAAA,SAAS,CAAGF,cAAc,GAAKG,SAArC;AACA,KAAMT,CAAAA,MAAM,CAAGQ,SAAS,CAAGF,cAAH,CAAoBL,aAA5C;AACA,MAAO,CAAEF,IAAF,CAAQC,MAAR,CAAgBE,WAAhB,CAA6BM,SAA7B,CAAwCL,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAAP;AACD,CAdD","sourcesContent":["import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n"],"file":"src/signals.js"}