orcaq 1.0.21 → 1.0.26
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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/AKIL8y6B.js +1 -0
- package/.output/public/_nuxt/B5vWsFeq.js +160 -0
- package/.output/public/_nuxt/B7OaQ1wH.js +8 -0
- package/.output/public/_nuxt/BG-9_o0s.js +3 -0
- package/.output/public/_nuxt/BHnp06h8.js +1 -0
- package/.output/public/_nuxt/BKxFOGv6.js +1 -0
- package/.output/public/_nuxt/{8qASMGdV.js → BNIRlgC1.js} +1 -1
- package/.output/public/_nuxt/BNdHe5KI.js +1 -0
- package/.output/public/_nuxt/BQANhp-y.js +1 -0
- package/.output/public/_nuxt/BUYy1lWT.js +215 -0
- package/.output/public/_nuxt/Bdtn2mn5.js +1 -0
- package/.output/public/_nuxt/Ber6tLDb.js +1 -0
- package/.output/public/_nuxt/BgEovngA.js +1 -0
- package/.output/public/_nuxt/BhgYrVrc.js +6 -0
- package/.output/public/_nuxt/{CrgoNCm2.js → BmnOz39b.js} +2 -2
- package/.output/public/_nuxt/BuKJVBv4.js +1 -0
- package/.output/public/_nuxt/BxMjn94S.js +4 -0
- package/.output/public/_nuxt/C1dxTB9p.js +39 -0
- package/.output/public/_nuxt/C4mc67xO.js +31 -0
- package/.output/public/_nuxt/CAOPafml.js +1 -0
- package/.output/public/_nuxt/CPxn9ATh.js +1 -0
- package/.output/public/_nuxt/CQ_P7x7z.js +3 -0
- package/.output/public/_nuxt/CS9PCQVw.js +6 -0
- package/.output/public/_nuxt/{CbcyysXi.js → CdEjcJco.js} +1 -1
- package/.output/public/_nuxt/CeQk_zaG.js +3867 -0
- package/.output/public/_nuxt/CgN2MmkB.js +47 -0
- package/.output/public/_nuxt/CijEBUIh.js +9 -0
- package/.output/public/_nuxt/Cn-07UHL.js +1 -0
- package/.output/public/_nuxt/Co87DPdr.js +18 -0
- package/.output/public/_nuxt/D0LmHvgn.js +13 -0
- package/.output/public/_nuxt/D4_A4fm4.js +1 -0
- package/.output/public/_nuxt/D8pqASdN.js +1 -0
- package/.output/public/_nuxt/DAs4584G.js +72 -0
- package/.output/public/_nuxt/DBO1CAN4.js +1 -0
- package/.output/public/_nuxt/DF7Phtj8.js +39 -0
- package/.output/public/_nuxt/DMMO4O3Y.js +1 -0
- package/.output/public/_nuxt/DP-hoxaC.js +1 -0
- package/.output/public/_nuxt/DREcM-oC.js +20 -0
- package/.output/public/_nuxt/DX-rdvVh.js +28 -0
- package/.output/public/_nuxt/DXei3mDv.js +1 -0
- package/.output/public/_nuxt/DZcRPyDc.js +26 -0
- package/.output/public/_nuxt/D_QjJZ_n.js +1 -0
- package/.output/public/_nuxt/DhSSuHOz.js +32 -0
- package/.output/public/_nuxt/Dj2IVxO7.js +1 -0
- package/.output/public/_nuxt/DmMeuvwr.js +1 -0
- package/.output/public/_nuxt/DqlhGxxN.js +32 -0
- package/.output/public/_nuxt/GmXmO94-.js +1 -0
- package/.output/public/_nuxt/HPyUOgdi.js +1 -0
- package/.output/public/_nuxt/MdxV8r4v.js +1 -0
- package/.output/public/_nuxt/Mp6jDt1I.js +1 -0
- package/.output/public/_nuxt/QuickQuery.h4epNPla.css +1 -0
- package/.output/public/_nuxt/{CustomEdge.BNBpjEHb.css → WrapperErdDiagram.DeMTjOwN.css} +1 -1
- package/.output/public/_nuxt/Zvfofmwe.js +1 -0
- package/.output/public/_nuxt/{_fileId_.DmPfwyyD.css → _fileId_.BHiWIaF7.css} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/db42d692-1628-4dd8-9442-d7621bdd9ac6.json +1 -0
- package/.output/public/_nuxt/cQYBDqKG.js +1 -0
- package/.output/public/_nuxt/default.BfdyU-m9.css +1 -0
- package/.output/public/_nuxt/entry.0UG0MnUy.css +1 -0
- package/.output/public/_nuxt/fIC3FurW.js +1 -0
- package/.output/public/_nuxt/{index.CrXmf4gr.css → index.BHg08rtV.css} +1 -1
- package/.output/public/_nuxt/kehy-5uo.js +1 -0
- package/.output/public/_nuxt/n9bD6NrC.js +2 -0
- package/.output/public/_nuxt/ykQL1ia3.js +271 -0
- package/.output/public/_nuxt/zD3bTrJp.js +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +509 -358
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +504 -274
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/database-export/export-database.mjs +139 -0
- package/.output/server/chunks/routes/api/database-export/export-database.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-import/import-database.mjs +178 -0
- package/.output/server/chunks/routes/api/database-import/import-database.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/adapters/postgres.adapter.mjs +700 -0
- package/.output/server/chunks/routes/api/database-roles/adapters/postgres.adapter.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/adapters/types.mjs +2 -0
- package/.output/server/chunks/routes/api/database-roles/adapters/types.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs +46 -0
- package/.output/server/chunks/routes/api/database-roles/create-role.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs +34 -0
- package/.output/server/chunks/routes/api/database-roles/delete-role.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs +34 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases-with-permissions.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs +32 -0
- package/.output/server/chunks/routes/api/database-roles/get-databases.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs +32 -0
- package/.output/server/chunks/routes/api/database-roles/get-permissions.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs +40 -0
- package/.output/server/chunks/routes/api/database-roles/get-role-inheritance.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs +26 -0
- package/.output/server/chunks/routes/api/database-roles/get-role.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs +26 -0
- package/.output/server/chunks/routes/api/database-roles/get-roles.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs +38 -0
- package/.output/server/chunks/routes/api/database-roles/get-schema-objects.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs +32 -0
- package/.output/server/chunks/routes/api/database-roles/get-schemas.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs +43 -0
- package/.output/server/chunks/routes/api/database-roles/grant-bulk-permissions.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs +41 -0
- package/.output/server/chunks/routes/api/database-roles/grant-permission.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/index.mjs +39 -0
- package/.output/server/chunks/routes/api/database-roles/index.mjs.map +1 -0
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs +41 -0
- package/.output/server/chunks/routes/api/database-roles/revoke-permission.mjs.map +1 -0
- package/.output/server/chunks/routes/api/delete-function.mjs +65 -0
- package/.output/server/chunks/routes/api/delete-function.mjs.map +1 -0
- package/.output/server/chunks/routes/api/execute-bulk-delete.mjs +1 -1
- package/.output/server/chunks/routes/api/execute-bulk-delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/execute-bulk-update.mjs +1 -1
- package/.output/server/chunks/routes/api/execute-bulk-update.mjs.map +1 -1
- package/.output/server/chunks/routes/api/export-table-data.mjs +229 -0
- package/.output/server/chunks/routes/api/export-table-data.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-function-signature.mjs +96 -0
- package/.output/server/chunks/routes/api/get-function-signature.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-one-function.mjs +8 -2
- package/.output/server/chunks/routes/api/get-one-function.mjs.map +1 -1
- package/.output/server/chunks/routes/api/get-over-view-views.mjs +44 -0
- package/.output/server/chunks/routes/api/get-over-view-views.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-reverse-table-schemas.mjs +21 -10
- package/.output/server/chunks/routes/api/get-reverse-table-schemas.mjs.map +1 -1
- package/.output/server/chunks/routes/api/get-schema-meta-data.mjs +73 -5
- package/.output/server/chunks/routes/api/get-schema-meta-data.mjs.map +1 -1
- package/.output/server/chunks/routes/api/get-table-ddl.mjs +185 -0
- package/.output/server/chunks/routes/api/get-table-ddl.mjs.map +1 -0
- package/.output/server/chunks/routes/api/get-view-definition.mjs +57 -0
- package/.output/server/chunks/routes/api/get-view-definition.mjs.map +1 -0
- package/.output/server/chunks/routes/api/getMetricMonitor.mjs.map +1 -1
- package/.output/server/chunks/routes/api/raw-execute.mjs +1 -2
- package/.output/server/chunks/routes/api/raw-execute.mjs.map +1 -1
- package/.output/server/chunks/routes/api/rename-function.mjs +77 -0
- package/.output/server/chunks/routes/api/rename-function.mjs.map +1 -0
- package/.output/server/chunks/routes/api/update-function.mjs +65 -0
- package/.output/server/chunks/routes/api/update-function.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/cross-spawn/index.js +39 -0
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/.output/server/node_modules/cross-spawn/lib/parse.js +91 -0
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/.output/server/node_modules/cross-spawn/package.json +73 -0
- package/.output/server/node_modules/execa/index.js +268 -0
- package/.output/server/node_modules/execa/lib/command.js +52 -0
- package/.output/server/node_modules/execa/lib/error.js +88 -0
- package/.output/server/node_modules/execa/lib/kill.js +115 -0
- package/.output/server/node_modules/execa/lib/promise.js +46 -0
- package/.output/server/node_modules/execa/lib/stdio.js +52 -0
- package/.output/server/node_modules/execa/lib/stream.js +97 -0
- package/.output/server/node_modules/execa/package.json +74 -0
- package/.output/server/node_modules/get-stream/buffer-stream.js +52 -0
- package/.output/server/node_modules/get-stream/index.js +61 -0
- package/.output/server/node_modules/get-stream/package.json +47 -0
- package/.output/server/node_modules/human-signals/build/src/core.js +273 -0
- package/.output/server/node_modules/human-signals/build/src/main.js +71 -0
- package/.output/server/node_modules/human-signals/build/src/realtime.js +19 -0
- package/.output/server/node_modules/human-signals/build/src/signals.js +35 -0
- package/.output/server/node_modules/human-signals/package.json +64 -0
- package/.output/server/node_modules/is-stream/index.js +28 -0
- package/.output/server/node_modules/is-stream/package.json +42 -0
- package/.output/server/node_modules/isexe/index.js +57 -0
- package/.output/server/node_modules/isexe/mode.js +41 -0
- package/.output/server/node_modules/isexe/package.json +31 -0
- package/.output/server/node_modules/isexe/windows.js +42 -0
- package/.output/server/node_modules/merge-stream/index.js +41 -0
- package/.output/server/node_modules/merge-stream/package.json +19 -0
- package/.output/server/node_modules/mimic-fn/index.js +13 -0
- package/.output/server/node_modules/mimic-fn/package.json +42 -0
- package/.output/server/node_modules/npm-run-path/index.js +47 -0
- package/.output/server/node_modules/npm-run-path/package.json +44 -0
- package/.output/server/node_modules/onetime/index.js +44 -0
- package/.output/server/node_modules/onetime/package.json +43 -0
- package/.output/server/node_modules/path-key/index.js +16 -0
- package/.output/server/node_modules/path-key/package.json +39 -0
- package/.output/server/node_modules/pg-copy-streams/copy-both.js +267 -0
- package/.output/server/node_modules/pg-copy-streams/copy-from.js +173 -0
- package/.output/server/node_modules/pg-copy-streams/copy-to.js +177 -0
- package/.output/server/node_modules/pg-copy-streams/index.js +17 -0
- package/.output/server/node_modules/pg-copy-streams/message-formats.js +27 -0
- package/.output/server/node_modules/pg-copy-streams/obuf.js +376 -0
- package/.output/server/node_modules/pg-copy-streams/package.json +51 -0
- package/.output/server/node_modules/pg-dump-restore/lib/common.js +33 -0
- package/.output/server/node_modules/pg-dump-restore/lib/index.js +9 -0
- package/.output/server/node_modules/pg-dump-restore/lib/pg-dump.js +95 -0
- package/.output/server/node_modules/pg-dump-restore/lib/pg-restore.js +87 -0
- package/.output/server/node_modules/pg-dump-restore/package.json +66 -0
- package/.output/server/node_modules/pg-query-stream/esm/index.mjs +5 -0
- package/.output/server/node_modules/shebang-command/index.js +19 -0
- package/.output/server/node_modules/shebang-command/package.json +34 -0
- package/.output/server/node_modules/shebang-regex/index.js +2 -0
- package/.output/server/node_modules/shebang-regex/package.json +35 -0
- package/.output/server/node_modules/signal-exit/index.js +202 -0
- package/.output/server/node_modules/signal-exit/package.json +38 -0
- package/.output/server/node_modules/signal-exit/signals.js +53 -0
- package/.output/server/node_modules/strip-final-newline/index.js +16 -0
- package/.output/server/node_modules/strip-final-newline/package.json +40 -0
- package/.output/server/node_modules/which/package.json +43 -0
- package/.output/server/node_modules/which/which.js +125 -0
- package/.output/server/package.json +19 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/9lJACZIQ.js +0 -19
- package/.output/public/_nuxt/B2DnNiWd.js +0 -1
- package/.output/public/_nuxt/BH83_dXo.js +0 -39
- package/.output/public/_nuxt/BIKqrFbQ.js +0 -1
- package/.output/public/_nuxt/BNjPC06x.js +0 -1
- package/.output/public/_nuxt/BPQ-Pz1w.js +0 -39
- package/.output/public/_nuxt/BRpgKkVT.js +0 -51
- package/.output/public/_nuxt/BTCLPbPY.js +0 -4
- package/.output/public/_nuxt/BUV-RarV.js +0 -1
- package/.output/public/_nuxt/Bh6RgYlO.js +0 -1
- package/.output/public/_nuxt/Bq3cyzOD.js +0 -1
- package/.output/public/_nuxt/Bt9sU68B.js +0 -9
- package/.output/public/_nuxt/BwpH2ZxJ.js +0 -1
- package/.output/public/_nuxt/C25Tmn1m.js +0 -1
- package/.output/public/_nuxt/C2HlI1ss.js +0 -1
- package/.output/public/_nuxt/CU3ZV9iV.js +0 -1
- package/.output/public/_nuxt/CepyvMhE.js +0 -1
- package/.output/public/_nuxt/CuBKbBH_.js +0 -1
- package/.output/public/_nuxt/CulD8qYQ.js +0 -193
- package/.output/public/_nuxt/CylkLpwm.js +0 -1
- package/.output/public/_nuxt/D-bWLYHw.js +0 -1
- package/.output/public/_nuxt/D-zecHND.js +0 -1
- package/.output/public/_nuxt/D8vj6kFe.js +0 -160
- package/.output/public/_nuxt/DIETYtCL.js +0 -1
- package/.output/public/_nuxt/DJ4vUzxS.js +0 -1
- package/.output/public/_nuxt/DK-itzXx.js +0 -8
- package/.output/public/_nuxt/DL3T5jYo.js +0 -3867
- package/.output/public/_nuxt/DUsuhY9i.js +0 -1
- package/.output/public/_nuxt/DXV2HFBA.js +0 -224
- package/.output/public/_nuxt/Dh2zppOR.js +0 -1
- package/.output/public/_nuxt/DlAUqK2U.js +0 -1
- package/.output/public/_nuxt/DlmSeCnw.js +0 -5
- package/.output/public/_nuxt/DswTpYG4.js +0 -1
- package/.output/public/_nuxt/G830WtVn.js +0 -1
- package/.output/public/_nuxt/ICwM1E4-.js +0 -15
- package/.output/public/_nuxt/QZbJy9YW.js +0 -31
- package/.output/public/_nuxt/QuickQueryTable.DS_ON57S.css +0 -1
- package/.output/public/_nuxt/UXhX8z2W.js +0 -1
- package/.output/public/_nuxt/WrapperErdDiagram.DwhUd9Wr.css +0 -1
- package/.output/public/_nuxt/_tabViewId_.9Axt3zoi.css +0 -1
- package/.output/public/_nuxt/builds/meta/03cede5c-c45c-41b3-ac1a-73756bb8cff0.json +0 -1
- package/.output/public/_nuxt/default.DixIpIal.css +0 -1
- package/.output/public/_nuxt/entry.GqPNPe1e.css +0 -1
- package/.output/public/_nuxt/ivUnXl9B.js +0 -1
- package/.output/public/_nuxt/pAheHeBV.js +0 -36
- package/.output/public/_nuxt/s5fCn4j5.js +0 -1
|
@@ -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,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,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,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,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "human-signals",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"main": "build/src/main.js",
|
|
5
|
+
"files": [
|
|
6
|
+
"build/src",
|
|
7
|
+
"!~"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "gulp test"
|
|
11
|
+
},
|
|
12
|
+
"husky": {
|
|
13
|
+
"hooks": {
|
|
14
|
+
"pre-push": "gulp check --full"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"description": "Human-friendly process signals",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"signal",
|
|
20
|
+
"signals",
|
|
21
|
+
"handlers",
|
|
22
|
+
"error-handling",
|
|
23
|
+
"errors",
|
|
24
|
+
"interrupts",
|
|
25
|
+
"sigterm",
|
|
26
|
+
"sigint",
|
|
27
|
+
"irq",
|
|
28
|
+
"process",
|
|
29
|
+
"exit",
|
|
30
|
+
"exit-code",
|
|
31
|
+
"status",
|
|
32
|
+
"operating-system",
|
|
33
|
+
"es6",
|
|
34
|
+
"javascript",
|
|
35
|
+
"linux",
|
|
36
|
+
"macos",
|
|
37
|
+
"windows",
|
|
38
|
+
"nodejs"
|
|
39
|
+
],
|
|
40
|
+
"license": "Apache-2.0",
|
|
41
|
+
"homepage": "https://git.io/JeluP",
|
|
42
|
+
"repository": "ehmicky/human-signals",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/ehmicky/human-signals/issues"
|
|
45
|
+
},
|
|
46
|
+
"author": "ehmicky <ehmicky@gmail.com> (https://github.com/ehmicky)",
|
|
47
|
+
"directories": {
|
|
48
|
+
"lib": "src",
|
|
49
|
+
"test": "test"
|
|
50
|
+
},
|
|
51
|
+
"types": "build/src/main.d.ts",
|
|
52
|
+
"dependencies": {},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@ehmicky/dev-tasks": "^0.31.9",
|
|
55
|
+
"ajv": "^6.12.0",
|
|
56
|
+
"ava": "^3.5.0",
|
|
57
|
+
"gulp": "^4.0.2",
|
|
58
|
+
"husky": "^4.2.3",
|
|
59
|
+
"test-each": "^2.0.0"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=10.17.0"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const isStream = stream =>
|
|
4
|
+
stream !== null &&
|
|
5
|
+
typeof stream === 'object' &&
|
|
6
|
+
typeof stream.pipe === 'function';
|
|
7
|
+
|
|
8
|
+
isStream.writable = stream =>
|
|
9
|
+
isStream(stream) &&
|
|
10
|
+
stream.writable !== false &&
|
|
11
|
+
typeof stream._write === 'function' &&
|
|
12
|
+
typeof stream._writableState === 'object';
|
|
13
|
+
|
|
14
|
+
isStream.readable = stream =>
|
|
15
|
+
isStream(stream) &&
|
|
16
|
+
stream.readable !== false &&
|
|
17
|
+
typeof stream._read === 'function' &&
|
|
18
|
+
typeof stream._readableState === 'object';
|
|
19
|
+
|
|
20
|
+
isStream.duplex = stream =>
|
|
21
|
+
isStream.writable(stream) &&
|
|
22
|
+
isStream.readable(stream);
|
|
23
|
+
|
|
24
|
+
isStream.transform = stream =>
|
|
25
|
+
isStream.duplex(stream) &&
|
|
26
|
+
typeof stream._transform === 'function';
|
|
27
|
+
|
|
28
|
+
module.exports = isStream;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "is-stream",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Check if something is a Node.js stream",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/is-stream",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=8"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "xo && ava && tsd"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"index.js",
|
|
21
|
+
"index.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"keywords": [
|
|
24
|
+
"stream",
|
|
25
|
+
"type",
|
|
26
|
+
"streams",
|
|
27
|
+
"writable",
|
|
28
|
+
"readable",
|
|
29
|
+
"duplex",
|
|
30
|
+
"transform",
|
|
31
|
+
"check",
|
|
32
|
+
"detect",
|
|
33
|
+
"is"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^11.13.6",
|
|
37
|
+
"ava": "^1.4.1",
|
|
38
|
+
"tempy": "^0.3.0",
|
|
39
|
+
"tsd": "^0.7.2",
|
|
40
|
+
"xo": "^0.24.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var fs = require('fs')
|
|
2
|
+
var core
|
|
3
|
+
if (process.platform === 'win32' || global.TESTING_WINDOWS) {
|
|
4
|
+
core = require('./windows.js')
|
|
5
|
+
} else {
|
|
6
|
+
core = require('./mode.js')
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = isexe
|
|
10
|
+
isexe.sync = sync
|
|
11
|
+
|
|
12
|
+
function isexe (path, options, cb) {
|
|
13
|
+
if (typeof options === 'function') {
|
|
14
|
+
cb = options
|
|
15
|
+
options = {}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (!cb) {
|
|
19
|
+
if (typeof Promise !== 'function') {
|
|
20
|
+
throw new TypeError('callback not provided')
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return new Promise(function (resolve, reject) {
|
|
24
|
+
isexe(path, options || {}, function (er, is) {
|
|
25
|
+
if (er) {
|
|
26
|
+
reject(er)
|
|
27
|
+
} else {
|
|
28
|
+
resolve(is)
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
core(path, options || {}, function (er, is) {
|
|
35
|
+
// ignore EACCES because that just means we aren't allowed to run it
|
|
36
|
+
if (er) {
|
|
37
|
+
if (er.code === 'EACCES' || options && options.ignoreErrors) {
|
|
38
|
+
er = null
|
|
39
|
+
is = false
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
cb(er, is)
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function sync (path, options) {
|
|
47
|
+
// my kingdom for a filtered catch
|
|
48
|
+
try {
|
|
49
|
+
return core.sync(path, options || {})
|
|
50
|
+
} catch (er) {
|
|
51
|
+
if (options && options.ignoreErrors || er.code === 'EACCES') {
|
|
52
|
+
return false
|
|
53
|
+
} else {
|
|
54
|
+
throw er
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module.exports = isexe
|
|
2
|
+
isexe.sync = sync
|
|
3
|
+
|
|
4
|
+
var fs = require('fs')
|
|
5
|
+
|
|
6
|
+
function isexe (path, options, cb) {
|
|
7
|
+
fs.stat(path, function (er, stat) {
|
|
8
|
+
cb(er, er ? false : checkStat(stat, options))
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function sync (path, options) {
|
|
13
|
+
return checkStat(fs.statSync(path), options)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function checkStat (stat, options) {
|
|
17
|
+
return stat.isFile() && checkMode(stat, options)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function checkMode (stat, options) {
|
|
21
|
+
var mod = stat.mode
|
|
22
|
+
var uid = stat.uid
|
|
23
|
+
var gid = stat.gid
|
|
24
|
+
|
|
25
|
+
var myUid = options.uid !== undefined ?
|
|
26
|
+
options.uid : process.getuid && process.getuid()
|
|
27
|
+
var myGid = options.gid !== undefined ?
|
|
28
|
+
options.gid : process.getgid && process.getgid()
|
|
29
|
+
|
|
30
|
+
var u = parseInt('100', 8)
|
|
31
|
+
var g = parseInt('010', 8)
|
|
32
|
+
var o = parseInt('001', 8)
|
|
33
|
+
var ug = u | g
|
|
34
|
+
|
|
35
|
+
var ret = (mod & o) ||
|
|
36
|
+
(mod & g) && gid === myGid ||
|
|
37
|
+
(mod & u) && uid === myUid ||
|
|
38
|
+
(mod & ug) && myUid === 0
|
|
39
|
+
|
|
40
|
+
return ret
|
|
41
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "isexe",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Minimal module to check if a file is executable.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"directories": {
|
|
7
|
+
"test": "test"
|
|
8
|
+
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"mkdirp": "^0.5.1",
|
|
11
|
+
"rimraf": "^2.5.0",
|
|
12
|
+
"tap": "^10.3.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "tap test/*.js --100",
|
|
16
|
+
"preversion": "npm test",
|
|
17
|
+
"postversion": "npm publish",
|
|
18
|
+
"postpublish": "git push origin --all; git push origin --tags"
|
|
19
|
+
},
|
|
20
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/isaacs/isexe.git"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [],
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/isaacs/isexe/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/isaacs/isexe#readme"
|
|
31
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module.exports = isexe
|
|
2
|
+
isexe.sync = sync
|
|
3
|
+
|
|
4
|
+
var fs = require('fs')
|
|
5
|
+
|
|
6
|
+
function checkPathExt (path, options) {
|
|
7
|
+
var pathext = options.pathExt !== undefined ?
|
|
8
|
+
options.pathExt : process.env.PATHEXT
|
|
9
|
+
|
|
10
|
+
if (!pathext) {
|
|
11
|
+
return true
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
pathext = pathext.split(';')
|
|
15
|
+
if (pathext.indexOf('') !== -1) {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
for (var i = 0; i < pathext.length; i++) {
|
|
19
|
+
var p = pathext[i].toLowerCase()
|
|
20
|
+
if (p && path.substr(-p.length).toLowerCase() === p) {
|
|
21
|
+
return true
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return false
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function checkStat (stat, path, options) {
|
|
28
|
+
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
29
|
+
return false
|
|
30
|
+
}
|
|
31
|
+
return checkPathExt(path, options)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function isexe (path, options, cb) {
|
|
35
|
+
fs.stat(path, function (er, stat) {
|
|
36
|
+
cb(er, er ? false : checkStat(stat, path, options))
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function sync (path, options) {
|
|
41
|
+
return checkStat(fs.statSync(path), path, options)
|
|
42
|
+
}
|