@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,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "npm-run-path",
|
|
3
|
-
"version": "6.0.0",
|
|
4
|
-
"description": "Get your PATH prepended with locally installed binaries",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/npm-run-path",
|
|
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
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsd"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"npm",
|
|
31
|
-
"run",
|
|
32
|
-
"path",
|
|
33
|
-
"package",
|
|
34
|
-
"bin",
|
|
35
|
-
"binary",
|
|
36
|
-
"binaries",
|
|
37
|
-
"script",
|
|
38
|
-
"cli",
|
|
39
|
-
"command-line",
|
|
40
|
-
"execute",
|
|
41
|
-
"executable"
|
|
42
|
-
],
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"path-key": "^4.0.0",
|
|
45
|
-
"unicorn-magic": "^0.3.0"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"ava": "^6.1.3",
|
|
49
|
-
"tsd": "^0.31.1",
|
|
50
|
-
"xo": "^0.59.3"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const toZeroIfInfinity = value => Number.isFinite(value) ? value : 0;
|
|
2
|
-
|
|
3
|
-
function parseNumber(milliseconds) {
|
|
4
|
-
return {
|
|
5
|
-
days: Math.trunc(milliseconds / 86_400_000),
|
|
6
|
-
hours: Math.trunc(milliseconds / 3_600_000 % 24),
|
|
7
|
-
minutes: Math.trunc(milliseconds / 60_000 % 60),
|
|
8
|
-
seconds: Math.trunc(milliseconds / 1000 % 60),
|
|
9
|
-
milliseconds: Math.trunc(milliseconds % 1000),
|
|
10
|
-
microseconds: Math.trunc(toZeroIfInfinity(milliseconds * 1000) % 1000),
|
|
11
|
-
nanoseconds: Math.trunc(toZeroIfInfinity(milliseconds * 1e6) % 1000),
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function parseBigint(milliseconds) {
|
|
16
|
-
return {
|
|
17
|
-
days: milliseconds / 86_400_000n,
|
|
18
|
-
hours: milliseconds / 3_600_000n % 24n,
|
|
19
|
-
minutes: milliseconds / 60_000n % 60n,
|
|
20
|
-
seconds: milliseconds / 1000n % 60n,
|
|
21
|
-
milliseconds: milliseconds % 1000n,
|
|
22
|
-
microseconds: 0n,
|
|
23
|
-
nanoseconds: 0n,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default function parseMilliseconds(milliseconds) {
|
|
28
|
-
switch (typeof milliseconds) {
|
|
29
|
-
case 'number': {
|
|
30
|
-
if (Number.isFinite(milliseconds)) {
|
|
31
|
-
return parseNumber(milliseconds);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
case 'bigint': {
|
|
38
|
-
return parseBigint(milliseconds);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// No default
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
throw new TypeError('Expected a finite number or bigint');
|
|
45
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "parse-ms",
|
|
3
|
-
"version": "4.0.0",
|
|
4
|
-
"description": "Parse milliseconds into an object",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/parse-ms",
|
|
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
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsd"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"browser",
|
|
31
|
-
"parse",
|
|
32
|
-
"time",
|
|
33
|
-
"ms",
|
|
34
|
-
"milliseconds",
|
|
35
|
-
"microseconds",
|
|
36
|
-
"nanoseconds",
|
|
37
|
-
"duration",
|
|
38
|
-
"period",
|
|
39
|
-
"range",
|
|
40
|
-
"interval"
|
|
41
|
-
],
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"ava": "^6.0.1",
|
|
44
|
-
"tsd": "^0.30.3",
|
|
45
|
-
"xo": "^0.56.0"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var path = require("path");
|
|
4
|
-
|
|
5
|
-
module.exports = function (thePath, potentialParent) {
|
|
6
|
-
// For inside-directory checking, we want to allow trailing slashes, so normalize.
|
|
7
|
-
thePath = stripTrailingSep(thePath);
|
|
8
|
-
potentialParent = stripTrailingSep(potentialParent);
|
|
9
|
-
|
|
10
|
-
// Node treats only Windows as case-insensitive in its path module; we follow those conventions.
|
|
11
|
-
if (process.platform === "win32") {
|
|
12
|
-
thePath = thePath.toLowerCase();
|
|
13
|
-
potentialParent = potentialParent.toLowerCase();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return thePath.lastIndexOf(potentialParent, 0) === 0 &&
|
|
17
|
-
(
|
|
18
|
-
thePath[potentialParent.length] === path.sep ||
|
|
19
|
-
thePath[potentialParent.length] === undefined
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
function stripTrailingSep(thePath) {
|
|
24
|
-
if (thePath[thePath.length - 1] === path.sep) {
|
|
25
|
-
return thePath.slice(0, -1);
|
|
26
|
-
}
|
|
27
|
-
return thePath;
|
|
28
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "path-is-inside",
|
|
3
|
-
"description": "Tests whether one path is inside another path",
|
|
4
|
-
"keywords": [
|
|
5
|
-
"path",
|
|
6
|
-
"directory",
|
|
7
|
-
"folder",
|
|
8
|
-
"inside",
|
|
9
|
-
"relative"
|
|
10
|
-
],
|
|
11
|
-
"version": "1.0.2",
|
|
12
|
-
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me)",
|
|
13
|
-
"license": "(WTFPL OR MIT)",
|
|
14
|
-
"repository": "domenic/path-is-inside",
|
|
15
|
-
"main": "lib/path-is-inside.js",
|
|
16
|
-
"files": [
|
|
17
|
-
"lib"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"test": "mocha",
|
|
21
|
-
"lint": "jshint lib"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"jshint": "~2.3.0",
|
|
25
|
-
"mocha": "~1.15.1"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import parseMilliseconds from 'parse-ms';
|
|
2
|
-
|
|
3
|
-
const isZero = value => value === 0 || value === 0n;
|
|
4
|
-
const pluralize = (word, count) => (count === 1 || count === 1n) ? word : `${word}s`;
|
|
5
|
-
|
|
6
|
-
const SECOND_ROUNDING_EPSILON = 0.000_000_1;
|
|
7
|
-
const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
|
|
8
|
-
|
|
9
|
-
export default function prettyMilliseconds(milliseconds, options) {
|
|
10
|
-
const isBigInt = typeof milliseconds === 'bigint';
|
|
11
|
-
if (!isBigInt && !Number.isFinite(milliseconds)) {
|
|
12
|
-
throw new TypeError('Expected a finite number or bigint');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
options = {...options};
|
|
16
|
-
|
|
17
|
-
const sign = milliseconds < 0 ? '-' : '';
|
|
18
|
-
milliseconds = milliseconds < 0 ? -milliseconds : milliseconds; // Cannot use `Math.abs()` because of BigInt support.
|
|
19
|
-
|
|
20
|
-
if (options.colonNotation) {
|
|
21
|
-
options.compact = false;
|
|
22
|
-
options.formatSubMilliseconds = false;
|
|
23
|
-
options.separateMilliseconds = false;
|
|
24
|
-
options.verbose = false;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (options.compact) {
|
|
28
|
-
options.unitCount = 1;
|
|
29
|
-
options.secondsDecimalDigits = 0;
|
|
30
|
-
options.millisecondsDecimalDigits = 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let result = [];
|
|
34
|
-
|
|
35
|
-
const floorDecimals = (value, decimalDigits) => {
|
|
36
|
-
const flooredInterimValue = Math.floor((value * (10 ** decimalDigits)) + SECOND_ROUNDING_EPSILON);
|
|
37
|
-
const flooredValue = Math.round(flooredInterimValue) / (10 ** decimalDigits);
|
|
38
|
-
return flooredValue.toFixed(decimalDigits);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const add = (value, long, short, valueString) => {
|
|
42
|
-
if (
|
|
43
|
-
(result.length === 0 || !options.colonNotation)
|
|
44
|
-
&& isZero(value)
|
|
45
|
-
&& !(options.colonNotation && short === 'm')) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
valueString ??= String(value);
|
|
50
|
-
if (options.colonNotation) {
|
|
51
|
-
const wholeDigits = valueString.includes('.') ? valueString.split('.')[0].length : valueString.length;
|
|
52
|
-
const minLength = result.length > 0 ? 2 : 1;
|
|
53
|
-
valueString = '0'.repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
|
54
|
-
} else {
|
|
55
|
-
valueString += options.verbose ? ' ' + pluralize(long, value) : short;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
result.push(valueString);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const parsed = parseMilliseconds(milliseconds);
|
|
62
|
-
const days = BigInt(parsed.days);
|
|
63
|
-
|
|
64
|
-
if (options.hideYearAndDays) {
|
|
65
|
-
add((BigInt(days) * 24n) + BigInt(parsed.hours), 'hour', 'h');
|
|
66
|
-
} else {
|
|
67
|
-
if (options.hideYear) {
|
|
68
|
-
add(days, 'day', 'd');
|
|
69
|
-
} else {
|
|
70
|
-
add(days / 365n, 'year', 'y');
|
|
71
|
-
add(days % 365n, 'day', 'd');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
add(Number(parsed.hours), 'hour', 'h');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
add(Number(parsed.minutes), 'minute', 'm');
|
|
78
|
-
|
|
79
|
-
if (!options.hideSeconds) {
|
|
80
|
-
if (
|
|
81
|
-
options.separateMilliseconds
|
|
82
|
-
|| options.formatSubMilliseconds
|
|
83
|
-
|| (!options.colonNotation && milliseconds < 1000 && !options.subSecondsAsDecimals)
|
|
84
|
-
) {
|
|
85
|
-
const seconds = Number(parsed.seconds);
|
|
86
|
-
const milliseconds = Number(parsed.milliseconds);
|
|
87
|
-
const microseconds = Number(parsed.microseconds);
|
|
88
|
-
const nanoseconds = Number(parsed.nanoseconds);
|
|
89
|
-
|
|
90
|
-
add(seconds, 'second', 's');
|
|
91
|
-
|
|
92
|
-
if (options.formatSubMilliseconds) {
|
|
93
|
-
add(milliseconds, 'millisecond', 'ms');
|
|
94
|
-
add(microseconds, 'microsecond', 'µs');
|
|
95
|
-
add(nanoseconds, 'nanosecond', 'ns');
|
|
96
|
-
} else {
|
|
97
|
-
const millisecondsAndBelow
|
|
98
|
-
= milliseconds
|
|
99
|
-
+ (microseconds / 1000)
|
|
100
|
-
+ (nanoseconds / 1e6);
|
|
101
|
-
|
|
102
|
-
const millisecondsDecimalDigits
|
|
103
|
-
= typeof options.millisecondsDecimalDigits === 'number'
|
|
104
|
-
? options.millisecondsDecimalDigits
|
|
105
|
-
: 0;
|
|
106
|
-
|
|
107
|
-
const roundedMilliseconds = millisecondsAndBelow >= 1
|
|
108
|
-
? Math.round(millisecondsAndBelow)
|
|
109
|
-
: Math.ceil(millisecondsAndBelow);
|
|
110
|
-
|
|
111
|
-
const millisecondsString = millisecondsDecimalDigits
|
|
112
|
-
? millisecondsAndBelow.toFixed(millisecondsDecimalDigits)
|
|
113
|
-
: roundedMilliseconds;
|
|
114
|
-
|
|
115
|
-
add(
|
|
116
|
-
Number.parseFloat(millisecondsString),
|
|
117
|
-
'millisecond',
|
|
118
|
-
'ms',
|
|
119
|
-
millisecondsString,
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
} else {
|
|
123
|
-
const seconds = (
|
|
124
|
-
(isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds)
|
|
125
|
-
/ 1000
|
|
126
|
-
) % 60;
|
|
127
|
-
const secondsDecimalDigits
|
|
128
|
-
= typeof options.secondsDecimalDigits === 'number'
|
|
129
|
-
? options.secondsDecimalDigits
|
|
130
|
-
: 1;
|
|
131
|
-
const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
|
|
132
|
-
const secondsString = options.keepDecimalsOnWholeSeconds
|
|
133
|
-
? secondsFixed
|
|
134
|
-
: secondsFixed.replace(/\.0+$/, '');
|
|
135
|
-
add(Number.parseFloat(secondsString), 'second', 's', secondsString);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (result.length === 0) {
|
|
140
|
-
return sign + '0' + (options.verbose ? ' milliseconds' : 'ms');
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const separator = options.colonNotation ? ':' : ' ';
|
|
144
|
-
if (typeof options.unitCount === 'number') {
|
|
145
|
-
result = result.slice(0, Math.max(options.unitCount, 1));
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return sign + result.join(separator);
|
|
149
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pretty-ms",
|
|
3
|
-
"version": "9.3.0",
|
|
4
|
-
"description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/pretty-ms",
|
|
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
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsd"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"pretty",
|
|
31
|
-
"prettify",
|
|
32
|
-
"human",
|
|
33
|
-
"humanize",
|
|
34
|
-
"humanized",
|
|
35
|
-
"readable",
|
|
36
|
-
"time",
|
|
37
|
-
"ms",
|
|
38
|
-
"milliseconds",
|
|
39
|
-
"duration",
|
|
40
|
-
"period",
|
|
41
|
-
"range",
|
|
42
|
-
"text",
|
|
43
|
-
"string",
|
|
44
|
-
"number",
|
|
45
|
-
"hrtime"
|
|
46
|
-
],
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"parse-ms": "^4.0.0"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"ava": "^6.2.0",
|
|
52
|
-
"tsd": "^0.31.2",
|
|
53
|
-
"xo": "^0.59.3"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* range-parser
|
|
3
|
-
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
4
|
-
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Module exports.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
module.exports = rangeParser
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Parse "Range" header `str` relative to the given file `size`.
|
|
19
|
-
*
|
|
20
|
-
* @param {Number} size
|
|
21
|
-
* @param {String} str
|
|
22
|
-
* @param {Object} [options]
|
|
23
|
-
* @return {Array}
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
function rangeParser (size, str, options) {
|
|
28
|
-
var index = str.indexOf('=')
|
|
29
|
-
|
|
30
|
-
if (index === -1) {
|
|
31
|
-
return -2
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// split the range string
|
|
35
|
-
var arr = str.slice(index + 1).split(',')
|
|
36
|
-
var ranges = []
|
|
37
|
-
|
|
38
|
-
// add ranges type
|
|
39
|
-
ranges.type = str.slice(0, index)
|
|
40
|
-
|
|
41
|
-
// parse all ranges
|
|
42
|
-
for (var i = 0; i < arr.length; i++) {
|
|
43
|
-
var range = arr[i].split('-')
|
|
44
|
-
var start = parseInt(range[0], 10)
|
|
45
|
-
var end = parseInt(range[1], 10)
|
|
46
|
-
|
|
47
|
-
// -nnn
|
|
48
|
-
if (isNaN(start)) {
|
|
49
|
-
start = size - end
|
|
50
|
-
end = size - 1
|
|
51
|
-
// nnn-
|
|
52
|
-
} else if (isNaN(end)) {
|
|
53
|
-
end = size - 1
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// limit last-byte-pos to current length
|
|
57
|
-
if (end > size - 1) {
|
|
58
|
-
end = size - 1
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// invalid or unsatisifiable
|
|
62
|
-
if (isNaN(start) || isNaN(end) || start > end || start < 0) {
|
|
63
|
-
continue
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// add range
|
|
67
|
-
ranges.push({
|
|
68
|
-
start: start,
|
|
69
|
-
end: end
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (ranges.length < 1) {
|
|
74
|
-
// unsatisifiable
|
|
75
|
-
return -1
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return options && options.combine
|
|
79
|
-
? combineRanges(ranges)
|
|
80
|
-
: ranges
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Combine overlapping & adjacent ranges.
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
function combineRanges (ranges) {
|
|
89
|
-
var ordered = ranges.map(mapWithIndex).sort(sortByRangeStart)
|
|
90
|
-
|
|
91
|
-
for (var j = 0, i = 1; i < ordered.length; i++) {
|
|
92
|
-
var range = ordered[i]
|
|
93
|
-
var current = ordered[j]
|
|
94
|
-
|
|
95
|
-
if (range.start > current.end + 1) {
|
|
96
|
-
// next range
|
|
97
|
-
ordered[++j] = range
|
|
98
|
-
} else if (range.end > current.end) {
|
|
99
|
-
// extend range
|
|
100
|
-
current.end = range.end
|
|
101
|
-
current.index = Math.min(current.index, range.index)
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// trim ordered array
|
|
106
|
-
ordered.length = j + 1
|
|
107
|
-
|
|
108
|
-
// generate combined range
|
|
109
|
-
var combined = ordered.sort(sortByRangeIndex).map(mapWithoutIndex)
|
|
110
|
-
|
|
111
|
-
// copy ranges type
|
|
112
|
-
combined.type = ranges.type
|
|
113
|
-
|
|
114
|
-
return combined
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Map function to add index value to ranges.
|
|
119
|
-
* @private
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
function mapWithIndex (range, index) {
|
|
123
|
-
return {
|
|
124
|
-
start: range.start,
|
|
125
|
-
end: range.end,
|
|
126
|
-
index: index
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Map function to remove index value from ranges.
|
|
132
|
-
* @private
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
function mapWithoutIndex (range) {
|
|
136
|
-
return {
|
|
137
|
-
start: range.start,
|
|
138
|
-
end: range.end
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Sort function to sort ranges by index.
|
|
144
|
-
* @private
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
function sortByRangeIndex (a, b) {
|
|
148
|
-
return a.index - b.index
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Sort function to sort ranges by start position.
|
|
153
|
-
* @private
|
|
154
|
-
*/
|
|
155
|
-
|
|
156
|
-
function sortByRangeStart (a, b) {
|
|
157
|
-
return a.start - b.start
|
|
158
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "range-parser",
|
|
3
|
-
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
|
|
4
|
-
"description": "Range header field string parser",
|
|
5
|
-
"version": "1.2.0",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
8
|
-
"James Wyatt Cready <wyatt.cready@lanetix.com>",
|
|
9
|
-
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
|
10
|
-
],
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"range",
|
|
14
|
-
"parser",
|
|
15
|
-
"http"
|
|
16
|
-
],
|
|
17
|
-
"repository": "jshttp/range-parser",
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"eslint": "2.11.1",
|
|
20
|
-
"eslint-config-standard": "5.3.1",
|
|
21
|
-
"eslint-plugin-promise": "1.1.0",
|
|
22
|
-
"eslint-plugin-standard": "1.3.2",
|
|
23
|
-
"istanbul": "0.4.3",
|
|
24
|
-
"mocha": "1.21.5"
|
|
25
|
-
},
|
|
26
|
-
"files": [
|
|
27
|
-
"HISTORY.md",
|
|
28
|
-
"LICENSE",
|
|
29
|
-
"index.js"
|
|
30
|
-
],
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">= 0.6"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"lint": "eslint **/*.js",
|
|
36
|
-
"test": "mocha --reporter spec",
|
|
37
|
-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
|
|
38
|
-
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "serve-handler",
|
|
3
|
-
"version": "6.1.6",
|
|
4
|
-
"description": "The routing foundation of `serve`",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "yarn run test-lint && yarn run test-integration",
|
|
8
|
-
"test-lint": "zeit-eslint --ext .jsx,.js .",
|
|
9
|
-
"test-integration": "jest --forceExit test/integration.test.js",
|
|
10
|
-
"lint-staged": "git diff --diff-filter=ACMRT --cached --name-only '*.js' '*.jsx' | xargs zeit-eslint",
|
|
11
|
-
"build-views": "dottojs -s ./src -d ./src",
|
|
12
|
-
"prepublishOnly": "yarn run build-views"
|
|
13
|
-
},
|
|
14
|
-
"repository": "vercel/serve-handler",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"static",
|
|
17
|
-
"deployment",
|
|
18
|
-
"server"
|
|
19
|
-
],
|
|
20
|
-
"author": "leo",
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"files": [
|
|
23
|
-
"src/index.js",
|
|
24
|
-
"src/glob-slash.js",
|
|
25
|
-
"src/directory.js",
|
|
26
|
-
"src/error.js"
|
|
27
|
-
],
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@zeit/eslint-config-node": "0.2.13",
|
|
30
|
-
"@zeit/git-hooks": "0.1.4",
|
|
31
|
-
"commander": "2.15.1",
|
|
32
|
-
"dot": "1.1.3",
|
|
33
|
-
"eslint": "6.1.0",
|
|
34
|
-
"fs-extra": "6.0.1",
|
|
35
|
-
"jest": "29.7.0",
|
|
36
|
-
"micro": "9.3.2",
|
|
37
|
-
"node-fetch": "2.6.1",
|
|
38
|
-
"request": "2.87.0",
|
|
39
|
-
"sleep-promise": "6.0.0",
|
|
40
|
-
"test-listen": "1.1.0"
|
|
41
|
-
},
|
|
42
|
-
"eslintConfig": {
|
|
43
|
-
"extends": [
|
|
44
|
-
"@zeit/eslint-config-node"
|
|
45
|
-
],
|
|
46
|
-
"env": {
|
|
47
|
-
"jest": true
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"eslintIgnore": [
|
|
51
|
-
"error.js",
|
|
52
|
-
"directory.js",
|
|
53
|
-
"coverage"
|
|
54
|
-
],
|
|
55
|
-
"git": {
|
|
56
|
-
"pre-commit": "lint-staged"
|
|
57
|
-
},
|
|
58
|
-
"dependencies": {
|
|
59
|
-
"bytes": "3.0.0",
|
|
60
|
-
"content-disposition": "0.5.2",
|
|
61
|
-
"mime-types": "2.1.18",
|
|
62
|
-
"minimatch": "3.1.2",
|
|
63
|
-
"path-is-inside": "1.0.2",
|
|
64
|
-
"path-to-regexp": "3.3.0",
|
|
65
|
-
"range-parser": "1.2.0"
|
|
66
|
-
},
|
|
67
|
-
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
|
|
68
|
-
}
|