@ohos-ports/pm2 0.0.0-stage → 7.1.2-beta.0
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/CHANGELOG.md +2607 -0
- package/CONTRIBUTING.md +124 -0
- package/GNU-AGPL-3.0.txt +665 -0
- package/LICENSE +1 -0
- package/README.md +255 -2
- package/SECURITY.md +41 -0
- package/bin/pm2 +3 -0
- package/bin/pm2-dev +3 -0
- package/bin/pm2-docker +3 -0
- package/bin/pm2-runtime +3 -0
- package/bin/pm2.ps1 +3 -0
- package/constants.js +113 -0
- package/index.js +12 -0
- package/lib/API/Configuration.js +212 -0
- package/lib/API/Containerizer.js +335 -0
- package/lib/API/Dashboard.js +726 -0
- package/lib/API/Deploy.js +117 -0
- package/lib/API/Extra.js +798 -0
- package/lib/API/ExtraMgmt/Docker.js +30 -0
- package/lib/API/Log.js +388 -0
- package/lib/API/LogManagement.js +351 -0
- package/lib/API/Modules/LOCAL.js +122 -0
- package/lib/API/Modules/Modularizer.js +148 -0
- package/lib/API/Modules/NPM.js +443 -0
- package/lib/API/Modules/TAR.js +368 -0
- package/lib/API/Modules/flagExt.js +46 -0
- package/lib/API/Modules/index.js +120 -0
- package/lib/API/Monit.js +247 -0
- package/lib/API/Serve.js +497 -0
- package/lib/API/Startup.js +630 -0
- package/lib/API/UX/helpers.js +213 -0
- package/lib/API/UX/index.js +9 -0
- package/lib/API/UX/pm2-describe.js +197 -0
- package/lib/API/UX/pm2-ls-minimal.js +31 -0
- package/lib/API/UX/pm2-ls.js +581 -0
- package/lib/API/Version.js +383 -0
- package/lib/API/interpreter.json +12 -0
- package/lib/API/pm2-plus/PM2IO.js +381 -0
- package/lib/API/pm2-plus/auth-strategies/CliAuth.js +306 -0
- package/lib/API/pm2-plus/auth-strategies/WebAuth.js +195 -0
- package/lib/API/pm2-plus/helpers.js +97 -0
- package/lib/API/pm2-plus/link.js +126 -0
- package/lib/API/pm2-plus/pres/motd +16 -0
- package/lib/API/pm2-plus/pres/motd.update +26 -0
- package/lib/API/pm2-plus/pres/welcome +28 -0
- package/lib/API/pm2-plus/process-selector.js +52 -0
- package/lib/API/schema.json +375 -0
- package/lib/API.js +1980 -0
- package/lib/Client.js +793 -0
- package/lib/Common.js +949 -0
- package/lib/Configuration.js +309 -0
- package/lib/Daemon.js +468 -0
- package/lib/Event.js +37 -0
- package/lib/God/ActionMethods.js +955 -0
- package/lib/God/ClusterMode.js +192 -0
- package/lib/God/ForkMode.js +205 -0
- package/lib/God/Methods.js +292 -0
- package/lib/God/Reload.js +300 -0
- package/lib/God/StdioLogger.js +239 -0
- package/lib/God.js +653 -0
- package/lib/HttpInterface.js +75 -0
- package/lib/OtelManager.js +74 -0
- package/lib/ProcessContainer.js +321 -0
- package/lib/ProcessContainerBun.js +355 -0
- package/lib/ProcessContainerFork.js +42 -0
- package/lib/ProcessContainerForkBun.js +31 -0
- package/lib/ProcessUtils.js +74 -0
- package/lib/TreeKill.js +111 -0
- package/lib/Utility.js +304 -0
- package/lib/VersionCheck.js +46 -0
- package/lib/Watcher.js +117 -0
- package/lib/Worker.js +200 -0
- package/lib/binaries/CLI.js +1092 -0
- package/lib/binaries/DevCLI.js +183 -0
- package/lib/binaries/Runtime.js +101 -0
- package/lib/binaries/Runtime4Docker.js +192 -0
- package/lib/completion.js +229 -0
- package/lib/completion.sh +40 -0
- package/lib/motd +36 -0
- package/lib/templates/Dockerfiles/Dockerfile-nodejs.tpl +8 -0
- package/lib/templates/ecosystem-es.tpl +24 -0
- package/lib/templates/ecosystem-simple-es.tpl +8 -0
- package/lib/templates/ecosystem-simple.tpl +6 -0
- package/lib/templates/ecosystem.tpl +22 -0
- package/lib/templates/init-scripts/launchd.tpl +35 -0
- package/lib/templates/init-scripts/openrc.tpl +52 -0
- package/lib/templates/init-scripts/pm2-init-amazon.sh +86 -0
- package/lib/templates/init-scripts/rcd-openbsd.tpl +41 -0
- package/lib/templates/init-scripts/rcd.tpl +44 -0
- package/lib/templates/init-scripts/smf.tpl +43 -0
- package/lib/templates/init-scripts/systemd-online.tpl +22 -0
- package/lib/templates/init-scripts/systemd.tpl +22 -0
- package/lib/templates/init-scripts/upstart.tpl +103 -0
- package/lib/templates/logrotate.d/pm2 +10 -0
- package/lib/templates/sample-apps/http-server/README.md +14 -0
- package/lib/templates/sample-apps/http-server/api.js +9 -0
- package/lib/templates/sample-apps/http-server/ecosystem.config.js +14 -0
- package/lib/templates/sample-apps/http-server/package.json +11 -0
- package/lib/templates/sample-apps/pm2-plus-metrics-actions/README.md +45 -0
- package/lib/templates/sample-apps/pm2-plus-metrics-actions/custom-metrics.js +66 -0
- package/lib/templates/sample-apps/pm2-plus-metrics-actions/ecosystem.config.js +12 -0
- package/lib/templates/sample-apps/pm2-plus-metrics-actions/package.json +11 -0
- package/lib/templates/sample-apps/python-app/README.md +4 -0
- package/lib/templates/sample-apps/python-app/echo.py +7 -0
- package/lib/templates/sample-apps/python-app/ecosystem.config.js +12 -0
- package/lib/templates/sample-apps/python-app/package.json +11 -0
- package/lib/tools/Config.js +251 -0
- package/lib/tools/SysMetrics.js +375 -0
- package/lib/tools/copydirSync.js +101 -0
- package/lib/tools/deleteFolderRecursive.js +19 -0
- package/lib/tools/find-package-json.js +74 -0
- package/lib/tools/fmt.js +72 -0
- package/lib/tools/interpreter.js +88 -0
- package/lib/tools/isbinaryfile.js +94 -0
- package/lib/tools/json5.js +752 -0
- package/lib/tools/multimeter/bar.js +111 -0
- package/lib/tools/multimeter/charm/encode.js +18 -0
- package/lib/tools/multimeter/charm/index.js +305 -0
- package/lib/tools/multimeter/index.js +76 -0
- package/lib/tools/open.js +56 -0
- package/lib/tools/passwd.js +58 -0
- package/lib/tools/pm2-config-keys.js +165 -0
- package/lib/tools/prompt.js +76 -0
- package/lib/tools/serviceStop.js +149 -0
- package/lib/tools/sexec.js +55 -0
- package/lib/tools/treeify.js +113 -0
- package/lib/tools/typestrip.js +55 -0
- package/lib/tools/which.js +120 -0
- package/lib/tools/xdg-open +861 -0
- package/modules/blessed/LICENSE +20 -0
- package/modules/blessed/README.md +34 -0
- package/modules/blessed/index.js +1 -0
- package/modules/blessed/lib/alias.js +526 -0
- package/modules/blessed/lib/blessed.js +32 -0
- package/modules/blessed/lib/colors.js +530 -0
- package/modules/blessed/lib/events.js +189 -0
- package/modules/blessed/lib/gpmclient.js +221 -0
- package/modules/blessed/lib/helpers.js +165 -0
- package/modules/blessed/lib/keys.js +339 -0
- package/modules/blessed/lib/program.js +4297 -0
- package/modules/blessed/lib/tput.js +3022 -0
- package/modules/blessed/lib/unicode.js +885 -0
- package/modules/blessed/lib/widget.js +32 -0
- package/modules/blessed/lib/widgets/box.js +34 -0
- package/modules/blessed/lib/widgets/element.js +2570 -0
- package/modules/blessed/lib/widgets/list.js +599 -0
- package/modules/blessed/lib/widgets/log.js +83 -0
- package/modules/blessed/lib/widgets/node.js +282 -0
- package/modules/blessed/lib/widgets/screen.js +2298 -0
- package/modules/blessed/lib/widgets/scrollablebox.js +389 -0
- package/modules/blessed/lib/widgets/scrollabletext.js +35 -0
- package/modules/blessed/lib/widgets/text.js +35 -0
- package/modules/blessed/usr/linux +0 -0
- package/modules/blessed/usr/windows-ansi +0 -0
- package/modules/blessed/usr/xterm +0 -0
- package/modules/blessed/usr/xterm-256color +0 -0
- package/modules/blessed/usr/xterm.termcap +243 -0
- package/modules/chokidar/LICENSE +21 -0
- package/modules/chokidar/VENDORED.md +76 -0
- package/modules/chokidar/index.js +979 -0
- package/modules/chokidar/lib/brace-expand.js +180 -0
- package/modules/chokidar/lib/constants.js +66 -0
- package/modules/chokidar/lib/fsevents-handler.js +526 -0
- package/modules/chokidar/lib/nodefs-handler.js +654 -0
- package/modules/fclone.js +49 -0
- package/modules/pm2-axon/index.js +2 -0
- package/modules/pm2-axon/lib/configurable/History.md +5 -0
- package/modules/pm2-axon/lib/configurable/Makefile +7 -0
- package/modules/pm2-axon/lib/configurable/Readme.md +57 -0
- package/modules/pm2-axon/lib/configurable/index.js +2 -0
- package/modules/pm2-axon/lib/configurable/lib/configurable.js +47 -0
- package/modules/pm2-axon/lib/configurable/package.json +68 -0
- package/modules/pm2-axon/lib/index.js +44 -0
- package/modules/pm2-axon/lib/plugins/queue.js +71 -0
- package/modules/pm2-axon/lib/plugins/round-robin.js +55 -0
- package/modules/pm2-axon/lib/sockets/pub-emitter.js +26 -0
- package/modules/pm2-axon/lib/sockets/pub.js +77 -0
- package/modules/pm2-axon/lib/sockets/pull.js +37 -0
- package/modules/pm2-axon/lib/sockets/push.js +32 -0
- package/modules/pm2-axon/lib/sockets/rep.js +73 -0
- package/modules/pm2-axon/lib/sockets/req.js +101 -0
- package/modules/pm2-axon/lib/sockets/sock.js +430 -0
- package/modules/pm2-axon/lib/sockets/sub-emitter.js +92 -0
- package/modules/pm2-axon/lib/sockets/sub.js +147 -0
- package/modules/pm2-axon/lib/utils.js +19 -0
- package/modules/pm2-axon-rpc/index.js +3 -0
- package/modules/pm2-axon-rpc/lib/client.js +63 -0
- package/modules/pm2-axon-rpc/lib/server.js +139 -0
- package/modules/pm2-io-agent/LICENSE +661 -0
- package/modules/pm2-io-agent/README.md +62 -0
- package/modules/pm2-io-agent/config.js +30 -0
- package/modules/pm2-io-agent/constants.js +118 -0
- package/modules/pm2-io-agent/index.js +2 -0
- package/modules/pm2-io-agent/src/InteractorClient.js +513 -0
- package/modules/pm2-io-agent/src/InteractorDaemon.js +455 -0
- package/modules/pm2-io-agent/src/PM2Client.js +112 -0
- package/modules/pm2-io-agent/src/PM2Interface.js +180 -0
- package/modules/pm2-io-agent/src/TransporterInterface.js +173 -0
- package/modules/pm2-io-agent/src/Utility.js +392 -0
- package/modules/pm2-io-agent/src/WatchDog.js +70 -0
- package/modules/pm2-io-agent/src/push/DataRetriever.js +77 -0
- package/modules/pm2-io-agent/src/push/PushInteractor.js +206 -0
- package/modules/pm2-io-agent/src/push/TransactionAggregator.js +670 -0
- package/modules/pm2-io-agent/src/reverse/ReverseInteractor.js +128 -0
- package/modules/pm2-io-agent/src/transporters/Transporter.js +129 -0
- package/modules/pm2-io-agent/src/transporters/WebsocketTransport.js +202 -0
- package/modules/pm2-io-agent/src/utils/BinaryHeap.js +135 -0
- package/modules/pm2-io-agent/src/utils/EDS.js +111 -0
- package/modules/pm2-io-agent/src/utils/probes/Histogram.js +204 -0
- package/modules/pm2-io-agent/src/utils/units.js +10 -0
- package/modules/pm2-io-bpm/configuration.js +141 -0
- package/modules/pm2-io-bpm/constants.js +10 -0
- package/modules/pm2-io-bpm/featureManager.js +110 -0
- package/modules/pm2-io-bpm/features/dependencies.js +48 -0
- package/modules/pm2-io-bpm/features/events.js +50 -0
- package/modules/pm2-io-bpm/features/metrics.js +102 -0
- package/modules/pm2-io-bpm/features/notify.js +238 -0
- package/modules/pm2-io-bpm/features/profiling.js +70 -0
- package/modules/pm2-io-bpm/features/tracing.js +174 -0
- package/modules/pm2-io-bpm/index.js +11 -0
- package/modules/pm2-io-bpm/metrics/eventLoopMetrics.js +136 -0
- package/modules/pm2-io-bpm/metrics/httpMetrics.js +175 -0
- package/modules/pm2-io-bpm/metrics/network.js +132 -0
- package/modules/pm2-io-bpm/metrics/runtime.js +161 -0
- package/modules/pm2-io-bpm/metrics/v8.js +104 -0
- package/modules/pm2-io-bpm/otel/constants.js +7 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/platform/index.js +17 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/platform/node/index.js +17 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/platform/node/util.js +51 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/transform.js +137 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/types.js +24 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/utils.js +23 -0
- package/modules/pm2-io-bpm/otel/custom-zipkin-exporter/zipkin.js +149 -0
- package/modules/pm2-io-bpm/pmx.js +380 -0
- package/modules/pm2-io-bpm/profilers/addonProfiler.js +193 -0
- package/modules/pm2-io-bpm/profilers/inspectorProfiler.js +302 -0
- package/modules/pm2-io-bpm/serviceManager.js +21 -0
- package/modules/pm2-io-bpm/services/actions.js +159 -0
- package/modules/pm2-io-bpm/services/inspector.js +43 -0
- package/modules/pm2-io-bpm/services/metrics.js +186 -0
- package/modules/pm2-io-bpm/services/runtimeStats.js +54 -0
- package/modules/pm2-io-bpm/services/transport.js +11 -0
- package/modules/pm2-io-bpm/transports/IPCTransport.js +115 -0
- package/modules/pm2-io-bpm/utils/BinaryHeap.js +134 -0
- package/modules/pm2-io-bpm/utils/EDS.js +113 -0
- package/modules/pm2-io-bpm/utils/EWMA.js +32 -0
- package/modules/pm2-io-bpm/utils/autocast.js +61 -0
- package/modules/pm2-io-bpm/utils/metrics/counter.js +33 -0
- package/modules/pm2-io-bpm/utils/metrics/gauge.js +23 -0
- package/modules/pm2-io-bpm/utils/metrics/histogram.js +192 -0
- package/modules/pm2-io-bpm/utils/metrics/meter.js +46 -0
- package/modules/pm2-io-bpm/utils/miscellaneous.js +19 -0
- package/modules/pm2-io-bpm/utils/module.js +67 -0
- package/modules/pm2-io-bpm/utils/shimmer.js +19 -0
- package/modules/pm2-io-bpm/utils/stackParser.js +160 -0
- package/modules/pm2-io-bpm/utils/transactionAggregator.js +429 -0
- package/modules/pm2-io-bpm/utils/units.js +16 -0
- package/modules/vizion/LICENSE +13 -0
- package/modules/vizion/README.md +133 -0
- package/modules/vizion/index.js +1 -0
- package/modules/vizion/lib/git/git.js +247 -0
- package/modules/vizion/lib/vizion.js +52 -0
- package/package.json +170 -4
- package/paths.js +121 -0
- package/pm2 +11 -0
- package/types/index.d.ts +732 -0
- package/types/tsconfig.json +14 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# $XTermId: termcap,v 1.80 2012/06/10 14:30:37 tom Exp $
|
|
2
|
+
#
|
|
3
|
+
# These are termcap entries that correspond to xterm's terminfo file.
|
|
4
|
+
# The file is formatted using ncurses' "tic -CNx", but is not mechanically
|
|
5
|
+
# derived from the terminfo.
|
|
6
|
+
#
|
|
7
|
+
#------------------------------------------------------------------------------
|
|
8
|
+
# Copyright 1996-2011,2012 by Thomas E. Dickey
|
|
9
|
+
#
|
|
10
|
+
# All Rights Reserved
|
|
11
|
+
#
|
|
12
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
13
|
+
# copy of this software and associated documentation files (the
|
|
14
|
+
# "Software"), to deal in the Software without restriction, including
|
|
15
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
|
16
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
17
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
|
18
|
+
# the following conditions:
|
|
19
|
+
#
|
|
20
|
+
# The above copyright notice and this permission notice shall be included
|
|
21
|
+
# in all copies or substantial portions of the Software.
|
|
22
|
+
#
|
|
23
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
24
|
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
25
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
26
|
+
# IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
|
|
27
|
+
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
28
|
+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
29
|
+
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
#
|
|
31
|
+
# Except as contained in this notice, the name(s) of the above copyright
|
|
32
|
+
# holders shall not be used in advertising or otherwise to promote the
|
|
33
|
+
# sale, use or other dealings in this Software without prior written
|
|
34
|
+
# authorization.
|
|
35
|
+
#------------------------------------------------------------------------------
|
|
36
|
+
#
|
|
37
|
+
# Note:
|
|
38
|
+
# termcap format is limited to 1023 characters. This set of descriptions
|
|
39
|
+
# is a subset of the terminfo, since not all features can be fit into
|
|
40
|
+
# that limit. The 'xterm' description supports color. The monochrome
|
|
41
|
+
# 'xterm-mono' drops color in favor of additional function keys. If you
|
|
42
|
+
# need both, use terminfo.
|
|
43
|
+
#
|
|
44
|
+
# The 1023-character limit applies to each entry after resolving the
|
|
45
|
+
# "tc=" strings. Some implementations may discount all or part of the
|
|
46
|
+
# formatting characters in the entry (i.e., the backslash newline tab
|
|
47
|
+
# colon). GNU termcap does not have this limit.
|
|
48
|
+
#
|
|
49
|
+
# I checked the limits using ncurses "captoinfo -CrTUvx", which prints
|
|
50
|
+
# the resolved length of each entry in a comment at the end - T.Dickey
|
|
51
|
+
#
|
|
52
|
+
xf|xterm-new|modern xterm:\
|
|
53
|
+
:*6=\EOF:@7=\EOF:F1=\E[23~:F2=\E[24~:K2=\EOE:Km=\E[M:\
|
|
54
|
+
:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
|
|
55
|
+
:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kB=\E[Z:kH=\EOF:\
|
|
56
|
+
:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:kh=\EOH:kl=\EOD:\
|
|
57
|
+
:kr=\EOC:ku=\EOA:tc=xterm-basic:
|
|
58
|
+
#
|
|
59
|
+
# This chunk is used for building the VT220/Sun/PC keyboard variants.
|
|
60
|
+
xb|xterm-basic|modern xterm common:\
|
|
61
|
+
:am:bs:km:mi:ms:ut:xn:AX:\
|
|
62
|
+
:Co#8:co#80:kn#12:li#24:pa#64:\
|
|
63
|
+
:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
|
|
64
|
+
:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=\E(B:al=\E[L:\
|
|
65
|
+
:as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
|
|
66
|
+
:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:\
|
|
67
|
+
:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[!p\E[?3;4l\E[4l\E>:\
|
|
68
|
+
:kD=\E[3~:ke=\E[?1l\E>:ks=\E[?1h\E=:le=^H:md=\E[1m:\
|
|
69
|
+
:me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:op=\E[39;49m:\
|
|
70
|
+
:rc=\E8:rs=\E[!p\E[?3;4l\E[4l\E>:sc=\E7:se=\E[27m:sf=^J:\
|
|
71
|
+
:so=\E[7m:sr=\EM:st=\EH:te=\E[?1049l:ti=\E[?1049h:\
|
|
72
|
+
:ue=\E[24m:up=\E[A:us=\E[4m:ve=\E[?12l\E[?25h:vi=\E[?25l:\
|
|
73
|
+
:vs=\E[?12;25h:tc=xterm+kbs:
|
|
74
|
+
|
|
75
|
+
# The xterm-new description has all of the features, but is not completely
|
|
76
|
+
# compatible with vt220. If you are using a Sun or PC keyboard, set the
|
|
77
|
+
# sunKeyboard resource to true:
|
|
78
|
+
# + maps the editing keypad
|
|
79
|
+
# + interprets control-function-key as a second array of keys, so a
|
|
80
|
+
# 12-fkey keyboard can support vt220's 20-fkeys.
|
|
81
|
+
# + maps numeric keypad "+" to ",".
|
|
82
|
+
# + uses DEC-style control sequences for the application keypad.
|
|
83
|
+
#
|
|
84
|
+
vt|xterm-vt220|xterm emulating vt220:\
|
|
85
|
+
:*6=\E[4~:@7=\E[4~:K2=\EOu:Km=\E[M:kB=\E[Z:kH=\E[4~:\
|
|
86
|
+
:kh=\E[1~:tc=xterm-basic:
|
|
87
|
+
|
|
88
|
+
v1|xterm-24|xterms|vs100|24x80 xterm:\
|
|
89
|
+
:li#24:tc=xterm-old:
|
|
90
|
+
v2|xterm-65|65x80 xterm:\
|
|
91
|
+
:li#65:tc=xterm-old:
|
|
92
|
+
vb|xterm-bold|xterm with bold for underline:\
|
|
93
|
+
:so=\E[7m:us=\E[1m:tc=xterm-old:
|
|
94
|
+
vB|xterm-boldso|xterm with bold for standout:\
|
|
95
|
+
:se=\E[m:so=\E[1m:tc=xterm-old:
|
|
96
|
+
vm|xterm-mono|monochrome xterm:\
|
|
97
|
+
:ut@:\
|
|
98
|
+
:Co@:NC@:kn#20:pa@:\
|
|
99
|
+
:AB@:AF@:Sb@:Sf@:op@:st@:tc=xterm-old:
|
|
100
|
+
#
|
|
101
|
+
# Alternate terminal description that "works" for interactive shells such as
|
|
102
|
+
# tcsh and bash.
|
|
103
|
+
xn|xterm-noapp|xterm with cursor keys in normal mode:\
|
|
104
|
+
:kd=\E[B:ke=\E>:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:te@:ti@:\
|
|
105
|
+
:tc=xterm:
|
|
106
|
+
#
|
|
107
|
+
# This should work for the commonly used "color xterm" variations (XFree86
|
|
108
|
+
# xterm, color_xterm, nxterm, rxvt). Note that it does not set 'bce', so for
|
|
109
|
+
# XFree86 and rxvt, some applications that use colors will be less efficient,
|
|
110
|
+
# and in a few special cases (with "smart" optimization) the wrong color will
|
|
111
|
+
# be painted in spots.
|
|
112
|
+
vc|xterm-color|generic "ANSI" color xterm:\
|
|
113
|
+
:Co#8:NC@:pa#64:\
|
|
114
|
+
:AB=\E[4%dm:AF=\E[3%dm:ac=:op=\E[m:tc=xterm-r6:
|
|
115
|
+
#
|
|
116
|
+
# These aliases are for compatibility with the terminfo; termcap cannot provide
|
|
117
|
+
# the extra features such as color initialization, but termcap applications
|
|
118
|
+
# still want the names.
|
|
119
|
+
x1|xterm-16color|xterm alias:\
|
|
120
|
+
:tc=xterm-new:
|
|
121
|
+
|
|
122
|
+
x2|xterm-88color|xterm alias:\
|
|
123
|
+
:Co#88:pa#7744:tc=xterm-256color:
|
|
124
|
+
|
|
125
|
+
x3|xterm-256color|xterm alias:\
|
|
126
|
+
:Co#256:pa#32767:\
|
|
127
|
+
:AB=\E[48;5;%dm:AF=\E[38;5;%dm:tc=xterm-new:
|
|
128
|
+
|
|
129
|
+
xi|xterm-nrc|xterm alias:\
|
|
130
|
+
:tc=xterm:
|
|
131
|
+
xr|xterm-rep|xterm alias:\
|
|
132
|
+
:tc=xterm:
|
|
133
|
+
xx|xterm-xmc|xterm alias:\
|
|
134
|
+
:sg#1:tc=xterm:
|
|
135
|
+
#
|
|
136
|
+
# An 8-bit description is doable with termcap, but there are probably no
|
|
137
|
+
# termcap (or BSD curses) applications that are able to use it.
|
|
138
|
+
x8|xterm-8bit|xterm terminal emulator 8-bit controls (X Window System):\
|
|
139
|
+
:am:km:mi:ms:xn:\
|
|
140
|
+
:co#80:it#8:li#24:\
|
|
141
|
+
:AL=\233%dL:DC=\233%dP:DL=\233%dM:DO=\233%dB:IC=\233%d@:\
|
|
142
|
+
:K2=\217y:Km=\233M:LE=\233%dD:RI=\233%dC:UP=\233%dA:\
|
|
143
|
+
:ae=\E(B:al=\233L:as=\E(0:bl=^G:bt=\233Z:cd=\233J:ce=\233K:\
|
|
144
|
+
:cl=\233H\2332J:cm=\233%i%d;%dH:cr=^M:cs=\233%i%d;%dr:\
|
|
145
|
+
:ct=\2333g:dc=\233P:dl=\233M:do=^J:ei=\2334l:ho=\233H:\
|
|
146
|
+
:im=\2334h:\
|
|
147
|
+
:is=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8:\
|
|
148
|
+
:k1=\23311~:k2=\23312~:k3=\23313~:k4=\23314~:k5=\23315~:\
|
|
149
|
+
:k6=\23317~:k7=\23318~:k8=\23319~:k9=\23320~:kD=\2333~:\
|
|
150
|
+
:kI=\2332~:kN=\2336~:kP=\2335~:kd=\217B:ke=\233?1l\E>:\
|
|
151
|
+
:kh=\2331~:kl=\217D:kr=\217C:ks=\233?1h\E=:ku=\217A:le=^H:\
|
|
152
|
+
:mb=\2335m:md=\2331m:me=\233m:mr=\2337m:nd=\233C:rc=\E8:\
|
|
153
|
+
:sc=\E7:se=\23327m:sf=^J:so=\2337m:sr=\215:st=\210:ta=^I:\
|
|
154
|
+
:te=\233?1049l:ti=\233?1049h:ue=\23324m:up=\233A:\
|
|
155
|
+
:us=\2334m:vb=\233?5h\233?5l:ve=\233?25l\233?25h:\
|
|
156
|
+
:vi=\233?25l:vs=\233?12;25h:tc=xterm+kbs:
|
|
157
|
+
#
|
|
158
|
+
hp|xterm-hp|xterm with hpterm function keys:\
|
|
159
|
+
:@7=\EF:k1=\Ep:k2=\Eq:k3=\Er:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:\
|
|
160
|
+
:k8=\Ew:kC=\EJ:kD=\EP:kI=\EQ:kN=\ES:kP=\ET:kd=\EB:kh=\Eh:\
|
|
161
|
+
:kl=\ED:kr=\EC:ku=\EA:tc=xterm-basic:
|
|
162
|
+
#
|
|
163
|
+
xS|xterm-sco|xterm with SCO function keys:\
|
|
164
|
+
:@7=\E[F:F1=\E[W:F2=\E[X:F3=\E[Y:F5=\E[a:F6=\E[b:F7=\E[c:\
|
|
165
|
+
:F8=\E[d:F9=\E[e:FA=\E[f:FB=\E[g:FC=\E[h:FD=\E[i:FE=\E[j:\
|
|
166
|
+
:FF=\E[k:ac=:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:\
|
|
167
|
+
:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:k;=\E[V:kD=\177:kI=\E[L:\
|
|
168
|
+
:kN=\E[G:kP=\E[I:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
|
|
169
|
+
:tc=xterm-basic:
|
|
170
|
+
#
|
|
171
|
+
v5|xterm-vt52|xterm emulating vt52:\
|
|
172
|
+
:bs:\
|
|
173
|
+
:co#80:it#8:li#24:\
|
|
174
|
+
:ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :\
|
|
175
|
+
:cr=^M:do=\EB:ho=\EH:kd=\EB:kl=\ED:kr=\EC:ku=\EA:le=\ED:\
|
|
176
|
+
:nd=\EC:nw=^M^J:sf=^J:sr=\EI:ta=^I:up=\EA:tc=xterm+kbs:
|
|
177
|
+
#
|
|
178
|
+
xs|xterm-sun|xterm with Sun functionkeys:\
|
|
179
|
+
:%1=\E[196z:&8=\E[195z:@0=\E[200z:@5=\E[197z:@7=\E[220z:\
|
|
180
|
+
:F1=\E[192z:F2=\E[193z:K2=\E[218z:Km=\E[M:k1=\E[224z:\
|
|
181
|
+
:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:k6=\E[229z:\
|
|
182
|
+
:k7=\E[230z:k8=\E[231z:k9=\E[232z:k;=\E[233z:kD=\E[3z:\
|
|
183
|
+
:kI=\E[2z:kN=\E[222z:kP=\E[216z:kh=\E[214z:\
|
|
184
|
+
:tc=xterm-basic:
|
|
185
|
+
#
|
|
186
|
+
# vi may work better with this entry, because vi doesn't use insert mode much.
|
|
187
|
+
# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\
|
|
188
|
+
vi|xterm-ic|xterm-vi|xterm with insert char:\
|
|
189
|
+
:mi@:\
|
|
190
|
+
:IC=\E[%d@:ei@:ic=\E[@:im@:tc=xterm:
|
|
191
|
+
#
|
|
192
|
+
# Compatible with the X11R6.3 xterm
|
|
193
|
+
r6|xterm-r6|xterm-old|X11R6 xterm:\
|
|
194
|
+
:am:bs:km:mi:ms:pt:xn:\
|
|
195
|
+
:co#80:kn#20:li#24:\
|
|
196
|
+
:*6=\E[4~:@0=\E[1~:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:\
|
|
197
|
+
:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
|
|
198
|
+
:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:\
|
|
199
|
+
:FA=\E[34~:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:\
|
|
200
|
+
:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:\
|
|
201
|
+
:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:eA=\E)0:ei=\E[4l:\
|
|
202
|
+
:ho=\E[H:im=\E[4h:\
|
|
203
|
+
:is=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:\
|
|
204
|
+
:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
|
|
205
|
+
:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
|
|
206
|
+
:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:\
|
|
207
|
+
:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:md=\E[1m:\
|
|
208
|
+
:me=\E[m:ml=\El:mr=\E[7m:mu=\Em:nd=\E[C:rc=\E8:\
|
|
209
|
+
:rs=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:sc=\E7:\
|
|
210
|
+
:se=\E[m:sf=^J:so=\E[7m:sr=\EM:te=\E[2J\E[?47l\E8:\
|
|
211
|
+
:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:tc=xterm+kbs:
|
|
212
|
+
#
|
|
213
|
+
# Compatible with the R5 xterm
|
|
214
|
+
r5|xterm-r5|X11R5 xterm X11R5:\
|
|
215
|
+
:am:bs:km:mi:ms:pt:xn:\
|
|
216
|
+
:co#80:kn#4:li#24:\
|
|
217
|
+
:@7=\E[4~:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
|
|
218
|
+
:IC=\E[%d@:UP=\E[%dA:al=\E[L:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
|
|
219
|
+
:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:\
|
|
220
|
+
:ei=\E[4l:ho=\E[H:im=\E[4h:\
|
|
221
|
+
:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
|
|
222
|
+
:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:kd=\EOB:\
|
|
223
|
+
:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
|
|
224
|
+
:ku=\EOA:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:\
|
|
225
|
+
:rs=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H:\
|
|
226
|
+
:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:te=\E[2J\E[?47l\E8:\
|
|
227
|
+
:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:tc=xterm+kbs:
|
|
228
|
+
#
|
|
229
|
+
# Customization begins here.
|
|
230
|
+
x0|xterm-xfree86|xterm terminal emulator (XFree86):\
|
|
231
|
+
:tc=xterm-new:
|
|
232
|
+
#
|
|
233
|
+
# This is the only entry which you should have to customize, since "xterm"
|
|
234
|
+
# is widely used for a variety of incompatible terminal emulations including
|
|
235
|
+
# color_xterm and rxvt.
|
|
236
|
+
v0|xterm|X11 terminal emulator:\
|
|
237
|
+
:tc=xterm-new:
|
|
238
|
+
# :tc=xterm-r6:
|
|
239
|
+
|
|
240
|
+
# This fragment is for people who cannot agree on what the backspace key
|
|
241
|
+
# should send.
|
|
242
|
+
xterm+kbs|fragment for backspace key:\
|
|
243
|
+
:kb=^H:
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# chokidar (vendored)
|
|
2
|
+
|
|
3
|
+
- Upstream: [chokidar](https://github.com/paulmillr/chokidar) **3.6.0**, MIT (`LICENSE`)
|
|
4
|
+
- Tarball: `https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz`
|
|
5
|
+
- Integrity: `sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==`
|
|
6
|
+
- Vendored: 2026-10-20, used by `lib/Watcher.js` (`pm2 start --watch`)
|
|
7
|
+
|
|
8
|
+
## Why
|
|
9
|
+
|
|
10
|
+
chokidar 3.x depends on `braces`, affected by GHSA-vfj7-8cjw-p6xm (uncontrolled
|
|
11
|
+
recursion / unbounded expansion, no patched release). chokidar 4+ drops glob
|
|
12
|
+
support, which `watch` / `ignore_watch` rely on. Its only `braces` call expands
|
|
13
|
+
the watched glob to prune directory traversal.
|
|
14
|
+
|
|
15
|
+
## Files
|
|
16
|
+
|
|
17
|
+
| File | State |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `lib/constants.js`, `lib/nodefs-handler.js`, `lib/fsevents-handler.js`, `LICENSE` | byte-identical to 3.6.0 |
|
|
20
|
+
| `index.js` | patched, see below |
|
|
21
|
+
| `lib/brace-expand.js` | new, bounded brace expansion |
|
|
22
|
+
|
|
23
|
+
Dropped: `package.json` (so SBOM / SCA scanners don't report a `chokidar@3.6.0`
|
|
24
|
+
with its `braces` dependency), `README.md`, `types/`.
|
|
25
|
+
The remaining dependencies (`anymatch`, `glob-parent`, `is-binary-path`, `is-glob`,
|
|
26
|
+
`normalize-path`, `readdirp`, optional `fsevents`) are pinned in pm2's `package.json`.
|
|
27
|
+
|
|
28
|
+
## Local changes (`index.js`)
|
|
29
|
+
|
|
30
|
+
1. `require('braces')` -> `require('./lib/brace-expand')`
|
|
31
|
+
2. `WatchHelper#getDirParts` returns `null` when `expandBraces()` returns `null`
|
|
32
|
+
3. constructor: `this.dirParts = this.getDirParts(path) || [[GLOBSTAR]]`
|
|
33
|
+
4. `filterDir`: entry path falls back to a plain split when it can't be expanded
|
|
34
|
+
|
|
35
|
+
## brace-expand.js
|
|
36
|
+
|
|
37
|
+
Supports `{a,b}` alternatives (nested, empty items) and `{x..y[..step]}`
|
|
38
|
+
numeric (zero padded, signed) and letter ranges, with the same results as
|
|
39
|
+
`braces.expand`: checked against braces 3.0.3 by
|
|
40
|
+
`test/programmatic/brace_expansion.mocha.js` (generated grammar: identical,
|
|
41
|
+
random input: null or identical).
|
|
42
|
+
|
|
43
|
+
Brace-free `[...]` / `(...)` chunks (`*.[jt]s`, `*.@(js|ts)`, `Program Files (x86)`,
|
|
44
|
+
`Dropbox (Personal)`, Next.js `app/(group)`) and a plain `$` are literal text.
|
|
45
|
+
|
|
46
|
+
Returns `null`, never throws, on: `\`, quotes (`'` `"` `` ` ``), NBSP / BOM,
|
|
47
|
+
`${`, any other bracket or paren (nested, unbalanced, holding `{ } , .` or
|
|
48
|
+
wrapping braces: `[{a,b}]`, `(a|{b,c})`, `[[:alpha:]]`), single item or
|
|
49
|
+
unbalanced braces, `..` inside an alternation, or past a limit:
|
|
50
|
+
`MAX_PATTERN_LENGTH` 10000, `MAX_DEPTH` 10, `MAX_EXPANSIONS` 256,
|
|
51
|
+
`MAX_OUTPUT_CHARS` 1e6.
|
|
52
|
+
The glob is resolved against `cwd` first, so these characters in `pm_cwd`
|
|
53
|
+
also return `null` for any brace glob.
|
|
54
|
+
|
|
55
|
+
On `null` the glob gets `[[GLOBSTAR]]` dir parts: no directory pruning, more
|
|
56
|
+
directories scanned and watched. Events are a **superset** of upstream, never
|
|
57
|
+
fewer: regular files are still filtered by the glob matcher (anymatch) and
|
|
58
|
+
`ignored`, but symlinks under the glob parent are no longer filtered by the
|
|
59
|
+
glob (upstream `filterPath` sends them to `filterDir`, which only checks
|
|
60
|
+
`ignored` against `[[GLOBSTAR]]`), so they can emit events (and restarts)
|
|
61
|
+
upstream would drop.
|
|
62
|
+
|
|
63
|
+
## Security maintenance
|
|
64
|
+
|
|
65
|
+
npm audit / Dependabot no longer see chokidar: **future chokidar 3.x advisories
|
|
66
|
+
won't be reported**. Watch https://github.com/paulmillr/chokidar/security and
|
|
67
|
+
the 3.x branch.
|
|
68
|
+
|
|
69
|
+
## Re-sync
|
|
70
|
+
|
|
71
|
+
1. `npm pack chokidar@3.x.y` and check the integrity against `npm view chokidar@3.x.y dist.integrity`
|
|
72
|
+
2. copy `lib/constants.js`, `lib/nodefs-handler.js`, `lib/fsevents-handler.js`, `LICENSE`
|
|
73
|
+
3. take the new `index.js`, re-apply the 4 changes above and the header
|
|
74
|
+
4. align the pinned dependency versions in pm2's `package.json`
|
|
75
|
+
5. bump the `chokidar` devDependency (differential and byte-identity tests) and update this file
|
|
76
|
+
6. `npx mocha test/programmatic/brace_expansion.mocha.js test/programmatic/chokidar_vendored.mocha.js`
|