@kubb/agent 4.28.1 → 4.29.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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +378 -642
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +4 -6
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +4 -6
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@kubb/fabric-core/dist/{defaultParser-BD_N68Bo.js → defaultParser-C1atU7yU.js} +2 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/{getRelativePath-C4Au07ON.js → getRelativePath-BcieQL5M.js} +1 -2
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +8 -9
- package/.output/server/node_modules/@kubb/fabric-core/dist/{Root-BQX3eHqb.js → onProcessExit-CF200hsz.js} +109 -190
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +3 -4
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +2 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +58 -298
- package/.output/server/node_modules/@kubb/fabric-core/package.json +8 -18
- package/.output/server/node_modules/@kubb/react-fabric/dist/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js} +1 -5
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +39 -41
- package/.output/server/node_modules/@kubb/react-fabric/dist/{jsx-runtime-CQFBnRKx.js → jsx-runtime-Dm7PKVbc.js} +6 -24
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +5 -4
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +3 -3
- package/.output/server/node_modules/@kubb/react-fabric/dist/{react--draJ5Pm.js → react-D652OKii.js} +31 -91
- package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-DqJsInTf.js → reactPlugin-BkDkx1cs.js} +410 -1650
- package/.output/server/node_modules/@kubb/react-fabric/package.json +8 -11
- package/.output/server/node_modules/empathic/access.js +39 -0
- package/.output/server/node_modules/empathic/access.mjs +34 -0
- package/.output/server/node_modules/empathic/find.js +81 -0
- package/.output/server/node_modules/empathic/find.mjs +76 -0
- package/.output/server/node_modules/empathic/package.json +49 -0
- package/.output/server/node_modules/empathic/package.mjs +52 -0
- package/.output/server/node_modules/empathic/resolve.js +31 -0
- package/.output/server/node_modules/empathic/resolve.mjs +27 -0
- package/.output/server/node_modules/empathic/walk.js +22 -0
- package/.output/server/node_modules/empathic/walk.mjs +20 -0
- package/.output/server/node_modules/tinyexec/dist/main.js +633 -0
- package/.output/server/node_modules/tinyexec/package.json +61 -0
- package/.output/server/package.json +6 -44
- package/package.json +19 -21
- package/.output/server/node_modules/.nitro/path-key@3.1.1/index.js +0 -16
- package/.output/server/node_modules/.nitro/path-key@3.1.1/package.json +0 -39
- package/.output/server/node_modules/.nitro/path-key@4.0.0/index.js +0 -12
- package/.output/server/node_modules/.nitro/path-key@4.0.0/package.json +0 -41
- package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/index.js +0 -421
- package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/package.json +0 -46
- package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-BVHe6Par.js +0 -22
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +0 -89
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +0 -34
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +0 -6
- package/.output/server/node_modules/@sec-ant/readable-stream/package.json +0 -98
- package/.output/server/node_modules/@sindresorhus/merge-streams/index.js +0 -265
- package/.output/server/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/.output/server/node_modules/balanced-match/index.js +0 -62
- package/.output/server/node_modules/balanced-match/package.json +0 -48
- package/.output/server/node_modules/brace-expansion/index.js +0 -201
- package/.output/server/node_modules/brace-expansion/package.json +0 -50
- package/.output/server/node_modules/bytes/index.js +0 -159
- package/.output/server/node_modules/bytes/package.json +0 -39
- package/.output/server/node_modules/concat-map/index.js +0 -13
- package/.output/server/node_modules/concat-map/package.json +0 -59
- package/.output/server/node_modules/content-disposition/index.js +0 -445
- package/.output/server/node_modules/content-disposition/package.json +0 -39
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/execa/index.js +0 -28
- package/.output/server/node_modules/execa/lib/arguments/command.js +0 -20
- package/.output/server/node_modules/execa/lib/arguments/cwd.js +0 -39
- package/.output/server/node_modules/execa/lib/arguments/encoding-option.js +0 -50
- package/.output/server/node_modules/execa/lib/arguments/escape.js +0 -88
- package/.output/server/node_modules/execa/lib/arguments/fd-options.js +0 -108
- package/.output/server/node_modules/execa/lib/arguments/file-url.js +0 -25
- package/.output/server/node_modules/execa/lib/arguments/options.js +0 -96
- package/.output/server/node_modules/execa/lib/arguments/shell.js +0 -11
- package/.output/server/node_modules/execa/lib/arguments/specific.js +0 -111
- package/.output/server/node_modules/execa/lib/convert/add.js +0 -15
- package/.output/server/node_modules/execa/lib/convert/concurrent.js +0 -33
- package/.output/server/node_modules/execa/lib/convert/duplex.js +0 -69
- package/.output/server/node_modules/execa/lib/convert/iterable.js +0 -34
- package/.output/server/node_modules/execa/lib/convert/readable.js +0 -113
- package/.output/server/node_modules/execa/lib/convert/shared.js +0 -46
- package/.output/server/node_modules/execa/lib/convert/writable.js +0 -90
- package/.output/server/node_modules/execa/lib/io/contents.js +0 -116
- package/.output/server/node_modules/execa/lib/io/input-sync.js +0 -44
- package/.output/server/node_modules/execa/lib/io/iterate.js +0 -110
- package/.output/server/node_modules/execa/lib/io/max-buffer.js +0 -89
- package/.output/server/node_modules/execa/lib/io/output-async.js +0 -80
- package/.output/server/node_modules/execa/lib/io/output-sync.js +0 -135
- package/.output/server/node_modules/execa/lib/io/pipeline.js +0 -48
- package/.output/server/node_modules/execa/lib/io/strip-newline.js +0 -12
- package/.output/server/node_modules/execa/lib/ipc/array.js +0 -4
- package/.output/server/node_modules/execa/lib/ipc/buffer-messages.js +0 -47
- package/.output/server/node_modules/execa/lib/ipc/forward.js +0 -56
- package/.output/server/node_modules/execa/lib/ipc/get-each.js +0 -89
- package/.output/server/node_modules/execa/lib/ipc/get-one.js +0 -69
- package/.output/server/node_modules/execa/lib/ipc/graceful.js +0 -72
- package/.output/server/node_modules/execa/lib/ipc/incoming.js +0 -79
- package/.output/server/node_modules/execa/lib/ipc/ipc-input.js +0 -44
- package/.output/server/node_modules/execa/lib/ipc/methods.js +0 -49
- package/.output/server/node_modules/execa/lib/ipc/outgoing.js +0 -47
- package/.output/server/node_modules/execa/lib/ipc/reference.js +0 -44
- package/.output/server/node_modules/execa/lib/ipc/send.js +0 -91
- package/.output/server/node_modules/execa/lib/ipc/strict.js +0 -113
- package/.output/server/node_modules/execa/lib/ipc/validation.js +0 -111
- package/.output/server/node_modules/execa/lib/methods/bind.js +0 -23
- package/.output/server/node_modules/execa/lib/methods/command.js +0 -43
- package/.output/server/node_modules/execa/lib/methods/create.js +0 -65
- package/.output/server/node_modules/execa/lib/methods/main-async.js +0 -194
- package/.output/server/node_modules/execa/lib/methods/main-sync.js +0 -163
- package/.output/server/node_modules/execa/lib/methods/node.js +0 -51
- package/.output/server/node_modules/execa/lib/methods/parameters.js +0 -31
- package/.output/server/node_modules/execa/lib/methods/promise.js +0 -15
- package/.output/server/node_modules/execa/lib/methods/script.js +0 -22
- package/.output/server/node_modules/execa/lib/methods/template.js +0 -153
- package/.output/server/node_modules/execa/lib/pipe/abort.js +0 -20
- package/.output/server/node_modules/execa/lib/pipe/pipe-arguments.js +0 -91
- package/.output/server/node_modules/execa/lib/pipe/sequence.js +0 -24
- package/.output/server/node_modules/execa/lib/pipe/setup.js +0 -72
- package/.output/server/node_modules/execa/lib/pipe/streaming.js +0 -51
- package/.output/server/node_modules/execa/lib/pipe/throw.js +0 -58
- package/.output/server/node_modules/execa/lib/resolve/all-async.js +0 -46
- package/.output/server/node_modules/execa/lib/resolve/all-sync.js +0 -33
- package/.output/server/node_modules/execa/lib/resolve/exit-async.js +0 -54
- package/.output/server/node_modules/execa/lib/resolve/exit-sync.js +0 -25
- package/.output/server/node_modules/execa/lib/resolve/stdio.js +0 -47
- package/.output/server/node_modules/execa/lib/resolve/wait-stream.js +0 -96
- package/.output/server/node_modules/execa/lib/resolve/wait-subprocess.js +0 -146
- package/.output/server/node_modules/execa/lib/return/duration.js +0 -8
- package/.output/server/node_modules/execa/lib/return/early-error.js +0 -60
- package/.output/server/node_modules/execa/lib/return/final-error.js +0 -40
- package/.output/server/node_modules/execa/lib/return/message.js +0 -157
- package/.output/server/node_modules/execa/lib/return/reject.js +0 -13
- package/.output/server/node_modules/execa/lib/return/result.js +0 -186
- package/.output/server/node_modules/execa/lib/stdio/direction.js +0 -76
- package/.output/server/node_modules/execa/lib/stdio/duplicate.js +0 -116
- package/.output/server/node_modules/execa/lib/stdio/handle-async.js +0 -52
- package/.output/server/node_modules/execa/lib/stdio/handle-sync.js +0 -57
- package/.output/server/node_modules/execa/lib/stdio/handle.js +0 -214
- package/.output/server/node_modules/execa/lib/stdio/input-option.js +0 -50
- package/.output/server/node_modules/execa/lib/stdio/native.js +0 -106
- package/.output/server/node_modules/execa/lib/stdio/stdio-option.js +0 -60
- package/.output/server/node_modules/execa/lib/stdio/type.js +0 -173
- package/.output/server/node_modules/execa/lib/terminate/cancel.js +0 -20
- package/.output/server/node_modules/execa/lib/terminate/cleanup.js +0 -16
- package/.output/server/node_modules/execa/lib/terminate/graceful.js +0 -71
- package/.output/server/node_modules/execa/lib/terminate/kill.js +0 -93
- package/.output/server/node_modules/execa/lib/terminate/signal.js +0 -70
- package/.output/server/node_modules/execa/lib/terminate/timeout.js +0 -21
- package/.output/server/node_modules/execa/lib/transform/encoding-transform.js +0 -51
- package/.output/server/node_modules/execa/lib/transform/generator.js +0 -107
- package/.output/server/node_modules/execa/lib/transform/normalize.js +0 -111
- package/.output/server/node_modules/execa/lib/transform/object-mode.js +0 -41
- package/.output/server/node_modules/execa/lib/transform/run-async.js +0 -60
- package/.output/server/node_modules/execa/lib/transform/run-sync.js +0 -50
- package/.output/server/node_modules/execa/lib/transform/split.js +0 -110
- package/.output/server/node_modules/execa/lib/transform/validate.js +0 -43
- package/.output/server/node_modules/execa/lib/utils/abort-signal.js +0 -8
- package/.output/server/node_modules/execa/lib/utils/deferred.js +0 -7
- package/.output/server/node_modules/execa/lib/utils/max-listeners.js +0 -14
- package/.output/server/node_modules/execa/lib/utils/standard-stream.js +0 -6
- package/.output/server/node_modules/execa/lib/utils/uint-array.js +0 -69
- package/.output/server/node_modules/execa/lib/verbose/complete.js +0 -24
- package/.output/server/node_modules/execa/lib/verbose/custom.js +0 -26
- package/.output/server/node_modules/execa/lib/verbose/default.js +0 -54
- package/.output/server/node_modules/execa/lib/verbose/error.js +0 -13
- package/.output/server/node_modules/execa/lib/verbose/info.js +0 -39
- package/.output/server/node_modules/execa/lib/verbose/ipc.js +0 -15
- package/.output/server/node_modules/execa/lib/verbose/log.js +0 -54
- package/.output/server/node_modules/execa/lib/verbose/output.js +0 -60
- package/.output/server/node_modules/execa/lib/verbose/start.js +0 -15
- package/.output/server/node_modules/execa/lib/verbose/values.js +0 -33
- package/.output/server/node_modules/execa/package.json +0 -105
- package/.output/server/node_modules/figures/index.js +0 -292
- package/.output/server/node_modules/figures/package.json +0 -49
- package/.output/server/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
- package/.output/server/node_modules/fs-extra/lib/copy/copy.js +0 -180
- package/.output/server/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/.output/server/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/.output/server/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/.output/server/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/.output/server/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/.output/server/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/.output/server/node_modules/fs-extra/lib/index.js +0 -16
- package/.output/server/node_modules/fs-extra/lib/json/index.js +0 -16
- package/.output/server/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/.output/server/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/.output/server/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/.output/server/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/.output/server/node_modules/fs-extra/lib/move/index.js +0 -7
- package/.output/server/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/.output/server/node_modules/fs-extra/lib/move/move.js +0 -59
- package/.output/server/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/.output/server/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/.output/server/node_modules/fs-extra/lib/util/async.js +0 -29
- package/.output/server/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/.output/server/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/.output/server/node_modules/fs-extra/package.json +0 -71
- package/.output/server/node_modules/get-stream/package.json +0 -60
- package/.output/server/node_modules/get-stream/source/array-buffer.js +0 -84
- package/.output/server/node_modules/get-stream/source/array.js +0 -32
- package/.output/server/node_modules/get-stream/source/buffer.js +0 -19
- package/.output/server/node_modules/get-stream/source/contents.js +0 -121
- package/.output/server/node_modules/get-stream/source/exports.js +0 -5
- package/.output/server/node_modules/get-stream/source/index.js +0 -13
- package/.output/server/node_modules/get-stream/source/stream.js +0 -65
- package/.output/server/node_modules/get-stream/source/string.js +0 -41
- package/.output/server/node_modules/get-stream/source/utils.js +0 -11
- package/.output/server/node_modules/graceful-fs/clone.js +0 -23
- package/.output/server/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/.output/server/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/.output/server/node_modules/graceful-fs/package.json +0 -53
- package/.output/server/node_modules/graceful-fs/polyfills.js +0 -355
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -70
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -16
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -34
- package/.output/server/node_modules/human-signals/package.json +0 -66
- package/.output/server/node_modules/is-plain-obj/index.js +0 -8
- package/.output/server/node_modules/is-plain-obj/package.json +0 -41
- package/.output/server/node_modules/is-stream/index.js +0 -37
- package/.output/server/node_modules/is-stream/package.json +0 -48
- package/.output/server/node_modules/is-unicode-supported/index.js +0 -21
- package/.output/server/node_modules/is-unicode-supported/package.json +0 -47
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/js-runtime/dist/index.js +0 -5
- package/.output/server/node_modules/js-runtime/package.json +0 -72
- package/.output/server/node_modules/jsonfile/index.js +0 -88
- package/.output/server/node_modules/jsonfile/package.json +0 -40
- package/.output/server/node_modules/jsonfile/utils.js +0 -14
- package/.output/server/node_modules/mime-db/db.json +0 -7088
- package/.output/server/node_modules/mime-db/index.js +0 -11
- package/.output/server/node_modules/mime-db/package.json +0 -57
- package/.output/server/node_modules/mime-types/index.js +0 -188
- package/.output/server/node_modules/mime-types/package.json +0 -43
- package/.output/server/node_modules/minimatch/minimatch.js +0 -947
- package/.output/server/node_modules/minimatch/package.json +0 -33
- package/.output/server/node_modules/natural-orderby/dist/main.js +0 -19
- package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.development.js +0 -420
- package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.production.min.js +0 -11
- package/.output/server/node_modules/natural-orderby/package.json +0 -119
- package/.output/server/node_modules/npm-run-path/index.js +0 -55
- package/.output/server/node_modules/npm-run-path/package.json +0 -52
- package/.output/server/node_modules/parse-ms/index.js +0 -45
- package/.output/server/node_modules/parse-ms/package.json +0 -47
- package/.output/server/node_modules/path-is-inside/lib/path-is-inside.js +0 -28
- package/.output/server/node_modules/path-is-inside/package.json +0 -27
- package/.output/server/node_modules/pretty-ms/index.js +0 -149
- package/.output/server/node_modules/pretty-ms/package.json +0 -55
- package/.output/server/node_modules/range-parser/index.js +0 -158
- package/.output/server/node_modules/range-parser/package.json +0 -40
- package/.output/server/node_modules/serve-handler/package.json +0 -68
- package/.output/server/node_modules/serve-handler/src/directory.js +0 -16
- package/.output/server/node_modules/serve-handler/src/error.js +0 -10
- package/.output/server/node_modules/serve-handler/src/glob-slash.js +0 -9
- package/.output/server/node_modules/serve-handler/src/index.js +0 -769
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/.output/server/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/.output/server/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/.output/server/node_modules/signal-exit/package.json +0 -106
- package/.output/server/node_modules/string-argv/index.js +0 -41
- package/.output/server/node_modules/string-argv/package.json +0 -51
- package/.output/server/node_modules/strip-final-newline/index.js +0 -26
- package/.output/server/node_modules/strip-final-newline/package.json +0 -49
- package/.output/server/node_modules/unicorn-magic/default.js +0 -14
- package/.output/server/node_modules/unicorn-magic/node.js +0 -49
- package/.output/server/node_modules/unicorn-magic/package.json +0 -62
- package/.output/server/node_modules/universalify/index.js +0 -24
- package/.output/server/node_modules/universalify/package.json +0 -34
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
- package/.output/server/node_modules/yoctocolors/base.js +0 -94
- package/.output/server/node_modules/yoctocolors/index.js +0 -2
- package/.output/server/node_modules/yoctocolors/package.json +0 -69
- /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/dist/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/package.json +0 -0
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
var constants = require('constants')
|
|
2
|
-
|
|
3
|
-
var origCwd = process.cwd
|
|
4
|
-
var cwd = null
|
|
5
|
-
|
|
6
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
|
|
7
|
-
|
|
8
|
-
process.cwd = function() {
|
|
9
|
-
if (!cwd)
|
|
10
|
-
cwd = origCwd.call(process)
|
|
11
|
-
return cwd
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
process.cwd()
|
|
15
|
-
} catch (er) {}
|
|
16
|
-
|
|
17
|
-
// This check is needed until node.js 12 is required
|
|
18
|
-
if (typeof process.chdir === 'function') {
|
|
19
|
-
var chdir = process.chdir
|
|
20
|
-
process.chdir = function (d) {
|
|
21
|
-
cwd = null
|
|
22
|
-
chdir.call(process, d)
|
|
23
|
-
}
|
|
24
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
module.exports = patch
|
|
28
|
-
|
|
29
|
-
function patch (fs) {
|
|
30
|
-
// (re-)implement some things that are known busted or missing.
|
|
31
|
-
|
|
32
|
-
// lchmod, broken prior to 0.6.2
|
|
33
|
-
// back-port the fix here.
|
|
34
|
-
if (constants.hasOwnProperty('O_SYMLINK') &&
|
|
35
|
-
process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
36
|
-
patchLchmod(fs)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// lutimes implementation, or no-op
|
|
40
|
-
if (!fs.lutimes) {
|
|
41
|
-
patchLutimes(fs)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// https://github.com/isaacs/node-graceful-fs/issues/4
|
|
45
|
-
// Chown should not fail on einval or eperm if non-root.
|
|
46
|
-
// It should not fail on enosys ever, as this just indicates
|
|
47
|
-
// that a fs doesn't support the intended operation.
|
|
48
|
-
|
|
49
|
-
fs.chown = chownFix(fs.chown)
|
|
50
|
-
fs.fchown = chownFix(fs.fchown)
|
|
51
|
-
fs.lchown = chownFix(fs.lchown)
|
|
52
|
-
|
|
53
|
-
fs.chmod = chmodFix(fs.chmod)
|
|
54
|
-
fs.fchmod = chmodFix(fs.fchmod)
|
|
55
|
-
fs.lchmod = chmodFix(fs.lchmod)
|
|
56
|
-
|
|
57
|
-
fs.chownSync = chownFixSync(fs.chownSync)
|
|
58
|
-
fs.fchownSync = chownFixSync(fs.fchownSync)
|
|
59
|
-
fs.lchownSync = chownFixSync(fs.lchownSync)
|
|
60
|
-
|
|
61
|
-
fs.chmodSync = chmodFixSync(fs.chmodSync)
|
|
62
|
-
fs.fchmodSync = chmodFixSync(fs.fchmodSync)
|
|
63
|
-
fs.lchmodSync = chmodFixSync(fs.lchmodSync)
|
|
64
|
-
|
|
65
|
-
fs.stat = statFix(fs.stat)
|
|
66
|
-
fs.fstat = statFix(fs.fstat)
|
|
67
|
-
fs.lstat = statFix(fs.lstat)
|
|
68
|
-
|
|
69
|
-
fs.statSync = statFixSync(fs.statSync)
|
|
70
|
-
fs.fstatSync = statFixSync(fs.fstatSync)
|
|
71
|
-
fs.lstatSync = statFixSync(fs.lstatSync)
|
|
72
|
-
|
|
73
|
-
// if lchmod/lchown do not exist, then make them no-ops
|
|
74
|
-
if (fs.chmod && !fs.lchmod) {
|
|
75
|
-
fs.lchmod = function (path, mode, cb) {
|
|
76
|
-
if (cb) process.nextTick(cb)
|
|
77
|
-
}
|
|
78
|
-
fs.lchmodSync = function () {}
|
|
79
|
-
}
|
|
80
|
-
if (fs.chown && !fs.lchown) {
|
|
81
|
-
fs.lchown = function (path, uid, gid, cb) {
|
|
82
|
-
if (cb) process.nextTick(cb)
|
|
83
|
-
}
|
|
84
|
-
fs.lchownSync = function () {}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// on Windows, A/V software can lock the directory, causing this
|
|
88
|
-
// to fail with an EACCES or EPERM if the directory contains newly
|
|
89
|
-
// created files. Try again on failure, for up to 60 seconds.
|
|
90
|
-
|
|
91
|
-
// Set the timeout this long because some Windows Anti-Virus, such as Parity
|
|
92
|
-
// bit9, may lock files for up to a minute, causing npm package install
|
|
93
|
-
// failures. Also, take care to yield the scheduler. Windows scheduling gives
|
|
94
|
-
// CPU to a busy looping process, which can cause the program causing the lock
|
|
95
|
-
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
|
96
|
-
if (platform === "win32") {
|
|
97
|
-
fs.rename = typeof fs.rename !== 'function' ? fs.rename
|
|
98
|
-
: (function (fs$rename) {
|
|
99
|
-
function rename (from, to, cb) {
|
|
100
|
-
var start = Date.now()
|
|
101
|
-
var backoff = 0;
|
|
102
|
-
fs$rename(from, to, function CB (er) {
|
|
103
|
-
if (er
|
|
104
|
-
&& (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY")
|
|
105
|
-
&& Date.now() - start < 60000) {
|
|
106
|
-
setTimeout(function() {
|
|
107
|
-
fs.stat(to, function (stater, st) {
|
|
108
|
-
if (stater && stater.code === "ENOENT")
|
|
109
|
-
fs$rename(from, to, CB);
|
|
110
|
-
else
|
|
111
|
-
cb(er)
|
|
112
|
-
})
|
|
113
|
-
}, backoff)
|
|
114
|
-
if (backoff < 100)
|
|
115
|
-
backoff += 10;
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
if (cb) cb(er)
|
|
119
|
-
})
|
|
120
|
-
}
|
|
121
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)
|
|
122
|
-
return rename
|
|
123
|
-
})(fs.rename)
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// if read() returns EAGAIN, then just try it again.
|
|
127
|
-
fs.read = typeof fs.read !== 'function' ? fs.read
|
|
128
|
-
: (function (fs$read) {
|
|
129
|
-
function read (fd, buffer, offset, length, position, callback_) {
|
|
130
|
-
var callback
|
|
131
|
-
if (callback_ && typeof callback_ === 'function') {
|
|
132
|
-
var eagCounter = 0
|
|
133
|
-
callback = function (er, _, __) {
|
|
134
|
-
if (er && er.code === 'EAGAIN' && eagCounter < 10) {
|
|
135
|
-
eagCounter ++
|
|
136
|
-
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
|
137
|
-
}
|
|
138
|
-
callback_.apply(this, arguments)
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// This ensures `util.promisify` works as it does for native `fs.read`.
|
|
145
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
|
|
146
|
-
return read
|
|
147
|
-
})(fs.read)
|
|
148
|
-
|
|
149
|
-
fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync
|
|
150
|
-
: (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
|
151
|
-
var eagCounter = 0
|
|
152
|
-
while (true) {
|
|
153
|
-
try {
|
|
154
|
-
return fs$readSync.call(fs, fd, buffer, offset, length, position)
|
|
155
|
-
} catch (er) {
|
|
156
|
-
if (er.code === 'EAGAIN' && eagCounter < 10) {
|
|
157
|
-
eagCounter ++
|
|
158
|
-
continue
|
|
159
|
-
}
|
|
160
|
-
throw er
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}})(fs.readSync)
|
|
164
|
-
|
|
165
|
-
function patchLchmod (fs) {
|
|
166
|
-
fs.lchmod = function (path, mode, callback) {
|
|
167
|
-
fs.open( path
|
|
168
|
-
, constants.O_WRONLY | constants.O_SYMLINK
|
|
169
|
-
, mode
|
|
170
|
-
, function (err, fd) {
|
|
171
|
-
if (err) {
|
|
172
|
-
if (callback) callback(err)
|
|
173
|
-
return
|
|
174
|
-
}
|
|
175
|
-
// prefer to return the chmod error, if one occurs,
|
|
176
|
-
// but still try to close, and report closing errors if they occur.
|
|
177
|
-
fs.fchmod(fd, mode, function (err) {
|
|
178
|
-
fs.close(fd, function(err2) {
|
|
179
|
-
if (callback) callback(err || err2)
|
|
180
|
-
})
|
|
181
|
-
})
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
fs.lchmodSync = function (path, mode) {
|
|
186
|
-
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
|
|
187
|
-
|
|
188
|
-
// prefer to return the chmod error, if one occurs,
|
|
189
|
-
// but still try to close, and report closing errors if they occur.
|
|
190
|
-
var threw = true
|
|
191
|
-
var ret
|
|
192
|
-
try {
|
|
193
|
-
ret = fs.fchmodSync(fd, mode)
|
|
194
|
-
threw = false
|
|
195
|
-
} finally {
|
|
196
|
-
if (threw) {
|
|
197
|
-
try {
|
|
198
|
-
fs.closeSync(fd)
|
|
199
|
-
} catch (er) {}
|
|
200
|
-
} else {
|
|
201
|
-
fs.closeSync(fd)
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return ret
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function patchLutimes (fs) {
|
|
209
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
|
210
|
-
fs.lutimes = function (path, at, mt, cb) {
|
|
211
|
-
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
|
212
|
-
if (er) {
|
|
213
|
-
if (cb) cb(er)
|
|
214
|
-
return
|
|
215
|
-
}
|
|
216
|
-
fs.futimes(fd, at, mt, function (er) {
|
|
217
|
-
fs.close(fd, function (er2) {
|
|
218
|
-
if (cb) cb(er || er2)
|
|
219
|
-
})
|
|
220
|
-
})
|
|
221
|
-
})
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
fs.lutimesSync = function (path, at, mt) {
|
|
225
|
-
var fd = fs.openSync(path, constants.O_SYMLINK)
|
|
226
|
-
var ret
|
|
227
|
-
var threw = true
|
|
228
|
-
try {
|
|
229
|
-
ret = fs.futimesSync(fd, at, mt)
|
|
230
|
-
threw = false
|
|
231
|
-
} finally {
|
|
232
|
-
if (threw) {
|
|
233
|
-
try {
|
|
234
|
-
fs.closeSync(fd)
|
|
235
|
-
} catch (er) {}
|
|
236
|
-
} else {
|
|
237
|
-
fs.closeSync(fd)
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return ret
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
} else if (fs.futimes) {
|
|
244
|
-
fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
|
245
|
-
fs.lutimesSync = function () {}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
function chmodFix (orig) {
|
|
250
|
-
if (!orig) return orig
|
|
251
|
-
return function (target, mode, cb) {
|
|
252
|
-
return orig.call(fs, target, mode, function (er) {
|
|
253
|
-
if (chownErOk(er)) er = null
|
|
254
|
-
if (cb) cb.apply(this, arguments)
|
|
255
|
-
})
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
function chmodFixSync (orig) {
|
|
260
|
-
if (!orig) return orig
|
|
261
|
-
return function (target, mode) {
|
|
262
|
-
try {
|
|
263
|
-
return orig.call(fs, target, mode)
|
|
264
|
-
} catch (er) {
|
|
265
|
-
if (!chownErOk(er)) throw er
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
function chownFix (orig) {
|
|
272
|
-
if (!orig) return orig
|
|
273
|
-
return function (target, uid, gid, cb) {
|
|
274
|
-
return orig.call(fs, target, uid, gid, function (er) {
|
|
275
|
-
if (chownErOk(er)) er = null
|
|
276
|
-
if (cb) cb.apply(this, arguments)
|
|
277
|
-
})
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
function chownFixSync (orig) {
|
|
282
|
-
if (!orig) return orig
|
|
283
|
-
return function (target, uid, gid) {
|
|
284
|
-
try {
|
|
285
|
-
return orig.call(fs, target, uid, gid)
|
|
286
|
-
} catch (er) {
|
|
287
|
-
if (!chownErOk(er)) throw er
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
function statFix (orig) {
|
|
293
|
-
if (!orig) return orig
|
|
294
|
-
// Older versions of Node erroneously returned signed integers for
|
|
295
|
-
// uid + gid.
|
|
296
|
-
return function (target, options, cb) {
|
|
297
|
-
if (typeof options === 'function') {
|
|
298
|
-
cb = options
|
|
299
|
-
options = null
|
|
300
|
-
}
|
|
301
|
-
function callback (er, stats) {
|
|
302
|
-
if (stats) {
|
|
303
|
-
if (stats.uid < 0) stats.uid += 0x100000000
|
|
304
|
-
if (stats.gid < 0) stats.gid += 0x100000000
|
|
305
|
-
}
|
|
306
|
-
if (cb) cb.apply(this, arguments)
|
|
307
|
-
}
|
|
308
|
-
return options ? orig.call(fs, target, options, callback)
|
|
309
|
-
: orig.call(fs, target, callback)
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function statFixSync (orig) {
|
|
314
|
-
if (!orig) return orig
|
|
315
|
-
// Older versions of Node erroneously returned signed integers for
|
|
316
|
-
// uid + gid.
|
|
317
|
-
return function (target, options) {
|
|
318
|
-
var stats = options ? orig.call(fs, target, options)
|
|
319
|
-
: orig.call(fs, target)
|
|
320
|
-
if (stats) {
|
|
321
|
-
if (stats.uid < 0) stats.uid += 0x100000000
|
|
322
|
-
if (stats.gid < 0) stats.gid += 0x100000000
|
|
323
|
-
}
|
|
324
|
-
return stats;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// ENOSYS means that the fs doesn't support the op. Just ignore
|
|
329
|
-
// that, because it doesn't matter.
|
|
330
|
-
//
|
|
331
|
-
// if there's no getuid, or if getuid() is something other
|
|
332
|
-
// than 0, and the error is EINVAL or EPERM, then just ignore
|
|
333
|
-
// it.
|
|
334
|
-
//
|
|
335
|
-
// This specific case is a silent failure in cp, install, tar,
|
|
336
|
-
// and most other unix tools that manage permissions.
|
|
337
|
-
//
|
|
338
|
-
// When running as root, or if other types of errors are
|
|
339
|
-
// encountered, then it's strict.
|
|
340
|
-
function chownErOk (er) {
|
|
341
|
-
if (!er)
|
|
342
|
-
return true
|
|
343
|
-
|
|
344
|
-
if (er.code === "ENOSYS")
|
|
345
|
-
return true
|
|
346
|
-
|
|
347
|
-
var nonroot = !process.getuid || process.getuid() !== 0
|
|
348
|
-
if (nonroot) {
|
|
349
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
350
|
-
return true
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
return false
|
|
354
|
-
}
|
|
355
|
-
}
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export 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"
|
|
273
|
-
}];
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import{constants}from"node:os";
|
|
2
|
-
|
|
3
|
-
import{SIGRTMAX}from"./realtime.js";
|
|
4
|
-
import{getSignals}from"./signals.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const getSignalsByName=()=>{
|
|
9
|
-
const signals=getSignals();
|
|
10
|
-
return Object.fromEntries(signals.map(getSignalByName))
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const getSignalByName=({
|
|
14
|
-
name,
|
|
15
|
-
number,
|
|
16
|
-
description,
|
|
17
|
-
supported,
|
|
18
|
-
action,
|
|
19
|
-
forced,
|
|
20
|
-
standard
|
|
21
|
-
})=>[name,{name,number,description,supported,action,forced,standard}];
|
|
22
|
-
|
|
23
|
-
export const signalsByName=getSignalsByName();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const getSignalsByNumber=()=>{
|
|
29
|
-
const signals=getSignals();
|
|
30
|
-
const length=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=(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=(number,signals)=>{
|
|
61
|
-
const signal=signals.find(({name})=>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
|
-
export const signalsByNumber=getSignalsByNumber();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export const getRealtimeSignals=()=>{
|
|
3
|
-
const length=SIGRTMAX-SIGRTMIN+1;
|
|
4
|
-
return Array.from({length},getRealtimeSignal)
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const getRealtimeSignal=(value,index)=>({
|
|
8
|
-
name:`SIGRT${index+1}`,
|
|
9
|
-
number:SIGRTMIN+index,
|
|
10
|
-
action:"terminate",
|
|
11
|
-
description:"Application-specific signal (realtime)",
|
|
12
|
-
standard:"posix"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const SIGRTMIN=34;
|
|
16
|
-
export const SIGRTMAX=64;
|