@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,201 +0,0 @@
|
|
|
1
|
-
var concatMap = require('concat-map');
|
|
2
|
-
var balanced = require('balanced-match');
|
|
3
|
-
|
|
4
|
-
module.exports = expandTop;
|
|
5
|
-
|
|
6
|
-
var escSlash = '\0SLASH'+Math.random()+'\0';
|
|
7
|
-
var escOpen = '\0OPEN'+Math.random()+'\0';
|
|
8
|
-
var escClose = '\0CLOSE'+Math.random()+'\0';
|
|
9
|
-
var escComma = '\0COMMA'+Math.random()+'\0';
|
|
10
|
-
var escPeriod = '\0PERIOD'+Math.random()+'\0';
|
|
11
|
-
|
|
12
|
-
function numeric(str) {
|
|
13
|
-
return parseInt(str, 10) == str
|
|
14
|
-
? parseInt(str, 10)
|
|
15
|
-
: str.charCodeAt(0);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function escapeBraces(str) {
|
|
19
|
-
return str.split('\\\\').join(escSlash)
|
|
20
|
-
.split('\\{').join(escOpen)
|
|
21
|
-
.split('\\}').join(escClose)
|
|
22
|
-
.split('\\,').join(escComma)
|
|
23
|
-
.split('\\.').join(escPeriod);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function unescapeBraces(str) {
|
|
27
|
-
return str.split(escSlash).join('\\')
|
|
28
|
-
.split(escOpen).join('{')
|
|
29
|
-
.split(escClose).join('}')
|
|
30
|
-
.split(escComma).join(',')
|
|
31
|
-
.split(escPeriod).join('.');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// Basically just str.split(","), but handling cases
|
|
36
|
-
// where we have nested braced sections, which should be
|
|
37
|
-
// treated as individual members, like {a,{b,c},d}
|
|
38
|
-
function parseCommaParts(str) {
|
|
39
|
-
if (!str)
|
|
40
|
-
return [''];
|
|
41
|
-
|
|
42
|
-
var parts = [];
|
|
43
|
-
var m = balanced('{', '}', str);
|
|
44
|
-
|
|
45
|
-
if (!m)
|
|
46
|
-
return str.split(',');
|
|
47
|
-
|
|
48
|
-
var pre = m.pre;
|
|
49
|
-
var body = m.body;
|
|
50
|
-
var post = m.post;
|
|
51
|
-
var p = pre.split(',');
|
|
52
|
-
|
|
53
|
-
p[p.length-1] += '{' + body + '}';
|
|
54
|
-
var postParts = parseCommaParts(post);
|
|
55
|
-
if (post.length) {
|
|
56
|
-
p[p.length-1] += postParts.shift();
|
|
57
|
-
p.push.apply(p, postParts);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
parts.push.apply(parts, p);
|
|
61
|
-
|
|
62
|
-
return parts;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function expandTop(str) {
|
|
66
|
-
if (!str)
|
|
67
|
-
return [];
|
|
68
|
-
|
|
69
|
-
// I don't know why Bash 4.3 does this, but it does.
|
|
70
|
-
// Anything starting with {} will have the first two bytes preserved
|
|
71
|
-
// but *only* at the top level, so {},a}b will not expand to anything,
|
|
72
|
-
// but a{},b}c will be expanded to [a}c,abc].
|
|
73
|
-
// One could argue that this is a bug in Bash, but since the goal of
|
|
74
|
-
// this module is to match Bash's rules, we escape a leading {}
|
|
75
|
-
if (str.substr(0, 2) === '{}') {
|
|
76
|
-
str = '\\{\\}' + str.substr(2);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function identity(e) {
|
|
83
|
-
return e;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function embrace(str) {
|
|
87
|
-
return '{' + str + '}';
|
|
88
|
-
}
|
|
89
|
-
function isPadded(el) {
|
|
90
|
-
return /^-?0\d/.test(el);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function lte(i, y) {
|
|
94
|
-
return i <= y;
|
|
95
|
-
}
|
|
96
|
-
function gte(i, y) {
|
|
97
|
-
return i >= y;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function expand(str, isTop) {
|
|
101
|
-
var expansions = [];
|
|
102
|
-
|
|
103
|
-
var m = balanced('{', '}', str);
|
|
104
|
-
if (!m || /\$$/.test(m.pre)) return [str];
|
|
105
|
-
|
|
106
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
107
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
108
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
109
|
-
var isOptions = m.body.indexOf(',') >= 0;
|
|
110
|
-
if (!isSequence && !isOptions) {
|
|
111
|
-
// {a},b}
|
|
112
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
113
|
-
str = m.pre + '{' + m.body + escClose + m.post;
|
|
114
|
-
return expand(str);
|
|
115
|
-
}
|
|
116
|
-
return [str];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
var n;
|
|
120
|
-
if (isSequence) {
|
|
121
|
-
n = m.body.split(/\.\./);
|
|
122
|
-
} else {
|
|
123
|
-
n = parseCommaParts(m.body);
|
|
124
|
-
if (n.length === 1) {
|
|
125
|
-
// x{{a,b}}y ==> x{a}y x{b}y
|
|
126
|
-
n = expand(n[0], false).map(embrace);
|
|
127
|
-
if (n.length === 1) {
|
|
128
|
-
var post = m.post.length
|
|
129
|
-
? expand(m.post, false)
|
|
130
|
-
: [''];
|
|
131
|
-
return post.map(function(p) {
|
|
132
|
-
return m.pre + n[0] + p;
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// at this point, n is the parts, and we know it's not a comma set
|
|
139
|
-
// with a single entry.
|
|
140
|
-
|
|
141
|
-
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
|
142
|
-
var pre = m.pre;
|
|
143
|
-
var post = m.post.length
|
|
144
|
-
? expand(m.post, false)
|
|
145
|
-
: [''];
|
|
146
|
-
|
|
147
|
-
var N;
|
|
148
|
-
|
|
149
|
-
if (isSequence) {
|
|
150
|
-
var x = numeric(n[0]);
|
|
151
|
-
var y = numeric(n[1]);
|
|
152
|
-
var width = Math.max(n[0].length, n[1].length)
|
|
153
|
-
var incr = n.length == 3
|
|
154
|
-
? Math.abs(numeric(n[2]))
|
|
155
|
-
: 1;
|
|
156
|
-
var test = lte;
|
|
157
|
-
var reverse = y < x;
|
|
158
|
-
if (reverse) {
|
|
159
|
-
incr *= -1;
|
|
160
|
-
test = gte;
|
|
161
|
-
}
|
|
162
|
-
var pad = n.some(isPadded);
|
|
163
|
-
|
|
164
|
-
N = [];
|
|
165
|
-
|
|
166
|
-
for (var i = x; test(i, y); i += incr) {
|
|
167
|
-
var c;
|
|
168
|
-
if (isAlphaSequence) {
|
|
169
|
-
c = String.fromCharCode(i);
|
|
170
|
-
if (c === '\\')
|
|
171
|
-
c = '';
|
|
172
|
-
} else {
|
|
173
|
-
c = String(i);
|
|
174
|
-
if (pad) {
|
|
175
|
-
var need = width - c.length;
|
|
176
|
-
if (need > 0) {
|
|
177
|
-
var z = new Array(need + 1).join('0');
|
|
178
|
-
if (i < 0)
|
|
179
|
-
c = '-' + z + c.slice(1);
|
|
180
|
-
else
|
|
181
|
-
c = z + c;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
N.push(c);
|
|
186
|
-
}
|
|
187
|
-
} else {
|
|
188
|
-
N = concatMap(n, function(el) { return expand(el, false) });
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
for (var j = 0; j < N.length; j++) {
|
|
192
|
-
for (var k = 0; k < post.length; k++) {
|
|
193
|
-
var expansion = pre + N[j] + post[k];
|
|
194
|
-
if (!isTop || isSequence || expansion)
|
|
195
|
-
expansions.push(expansion);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return expansions;
|
|
200
|
-
}
|
|
201
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "brace-expansion",
|
|
3
|
-
"description": "Brace expansion as known from sh/bash",
|
|
4
|
-
"version": "1.1.12",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git://github.com/juliangruber/brace-expansion.git"
|
|
8
|
-
},
|
|
9
|
-
"homepage": "https://github.com/juliangruber/brace-expansion",
|
|
10
|
-
"main": "index.js",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"test": "tape test/*.js",
|
|
13
|
-
"gentest": "bash test/generate.sh",
|
|
14
|
-
"bench": "matcha test/perf/bench.js"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"balanced-match": "^1.0.0",
|
|
18
|
-
"concat-map": "0.0.1"
|
|
19
|
-
},
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"matcha": "^0.7.0",
|
|
22
|
-
"tape": "^4.6.0"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [],
|
|
25
|
-
"author": {
|
|
26
|
-
"name": "Julian Gruber",
|
|
27
|
-
"email": "mail@juliangruber.com",
|
|
28
|
-
"url": "http://juliangruber.com"
|
|
29
|
-
},
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"testling": {
|
|
32
|
-
"files": "test/*.js",
|
|
33
|
-
"browsers": [
|
|
34
|
-
"ie/8..latest",
|
|
35
|
-
"firefox/20..latest",
|
|
36
|
-
"firefox/nightly",
|
|
37
|
-
"chrome/25..latest",
|
|
38
|
-
"chrome/canary",
|
|
39
|
-
"opera/12..latest",
|
|
40
|
-
"opera/next",
|
|
41
|
-
"safari/5.1..latest",
|
|
42
|
-
"ipad/6.0..latest",
|
|
43
|
-
"iphone/6.0..latest",
|
|
44
|
-
"android-browser/4.2..latest"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"publishConfig": {
|
|
48
|
-
"tag": "1.x"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* bytes
|
|
3
|
-
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
4
|
-
* Copyright(c) 2015 Jed Watson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Module exports.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
module.exports = bytes;
|
|
16
|
-
module.exports.format = format;
|
|
17
|
-
module.exports.parse = parse;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Module variables.
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
|
|
25
|
-
|
|
26
|
-
var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
|
|
27
|
-
|
|
28
|
-
var map = {
|
|
29
|
-
b: 1,
|
|
30
|
-
kb: 1 << 10,
|
|
31
|
-
mb: 1 << 20,
|
|
32
|
-
gb: 1 << 30,
|
|
33
|
-
tb: ((1 << 30) * 1024)
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Convert the given value in bytes into a string or parse to string to an integer in bytes.
|
|
40
|
-
*
|
|
41
|
-
* @param {string|number} value
|
|
42
|
-
* @param {{
|
|
43
|
-
* case: [string],
|
|
44
|
-
* decimalPlaces: [number]
|
|
45
|
-
* fixedDecimals: [boolean]
|
|
46
|
-
* thousandsSeparator: [string]
|
|
47
|
-
* unitSeparator: [string]
|
|
48
|
-
* }} [options] bytes options.
|
|
49
|
-
*
|
|
50
|
-
* @returns {string|number|null}
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
function bytes(value, options) {
|
|
54
|
-
if (typeof value === 'string') {
|
|
55
|
-
return parse(value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (typeof value === 'number') {
|
|
59
|
-
return format(value, options);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Format the given value in bytes into a string.
|
|
67
|
-
*
|
|
68
|
-
* If the value is negative, it is kept as such. If it is a float,
|
|
69
|
-
* it is rounded.
|
|
70
|
-
*
|
|
71
|
-
* @param {number} value
|
|
72
|
-
* @param {object} [options]
|
|
73
|
-
* @param {number} [options.decimalPlaces=2]
|
|
74
|
-
* @param {number} [options.fixedDecimals=false]
|
|
75
|
-
* @param {string} [options.thousandsSeparator=]
|
|
76
|
-
* @param {string} [options.unit=]
|
|
77
|
-
* @param {string} [options.unitSeparator=]
|
|
78
|
-
*
|
|
79
|
-
* @returns {string|null}
|
|
80
|
-
* @public
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
function format(value, options) {
|
|
84
|
-
if (!Number.isFinite(value)) {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
var mag = Math.abs(value);
|
|
89
|
-
var thousandsSeparator = (options && options.thousandsSeparator) || '';
|
|
90
|
-
var unitSeparator = (options && options.unitSeparator) || '';
|
|
91
|
-
var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2;
|
|
92
|
-
var fixedDecimals = Boolean(options && options.fixedDecimals);
|
|
93
|
-
var unit = (options && options.unit) || '';
|
|
94
|
-
|
|
95
|
-
if (!unit || !map[unit.toLowerCase()]) {
|
|
96
|
-
if (mag >= map.tb) {
|
|
97
|
-
unit = 'TB';
|
|
98
|
-
} else if (mag >= map.gb) {
|
|
99
|
-
unit = 'GB';
|
|
100
|
-
} else if (mag >= map.mb) {
|
|
101
|
-
unit = 'MB';
|
|
102
|
-
} else if (mag >= map.kb) {
|
|
103
|
-
unit = 'KB';
|
|
104
|
-
} else {
|
|
105
|
-
unit = 'B';
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var val = value / map[unit.toLowerCase()];
|
|
110
|
-
var str = val.toFixed(decimalPlaces);
|
|
111
|
-
|
|
112
|
-
if (!fixedDecimals) {
|
|
113
|
-
str = str.replace(formatDecimalsRegExp, '$1');
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
if (thousandsSeparator) {
|
|
117
|
-
str = str.replace(formatThousandsRegExp, thousandsSeparator);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return str + unitSeparator + unit;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Parse the string value into an integer in bytes.
|
|
125
|
-
*
|
|
126
|
-
* If no unit is given, it is assumed the value is in bytes.
|
|
127
|
-
*
|
|
128
|
-
* @param {number|string} val
|
|
129
|
-
*
|
|
130
|
-
* @returns {number|null}
|
|
131
|
-
* @public
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
function parse(val) {
|
|
135
|
-
if (typeof val === 'number' && !isNaN(val)) {
|
|
136
|
-
return val;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (typeof val !== 'string') {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// Test if the string passed is valid
|
|
144
|
-
var results = parseRegExp.exec(val);
|
|
145
|
-
var floatValue;
|
|
146
|
-
var unit = 'b';
|
|
147
|
-
|
|
148
|
-
if (!results) {
|
|
149
|
-
// Nothing could be extracted from the given string
|
|
150
|
-
floatValue = parseInt(val, 10);
|
|
151
|
-
unit = 'b'
|
|
152
|
-
} else {
|
|
153
|
-
// Retrieve the value and the unit
|
|
154
|
-
floatValue = parseFloat(results[1]);
|
|
155
|
-
unit = results[4].toLowerCase();
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return Math.floor(map[unit] * floatValue);
|
|
159
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bytes",
|
|
3
|
-
"description": "Utility to parse a string bytes to bytes and vice-versa",
|
|
4
|
-
"version": "3.0.0",
|
|
5
|
-
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Jed Watson <jed.watson@me.com>",
|
|
8
|
-
"Théo FIDRY <theo.fidry@gmail.com>"
|
|
9
|
-
],
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"keywords": [
|
|
12
|
-
"byte",
|
|
13
|
-
"bytes",
|
|
14
|
-
"utility",
|
|
15
|
-
"parse",
|
|
16
|
-
"parser",
|
|
17
|
-
"convert",
|
|
18
|
-
"converter"
|
|
19
|
-
],
|
|
20
|
-
"repository": "visionmedia/bytes.js",
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"mocha": "2.5.3",
|
|
23
|
-
"nyc": "10.3.2"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"History.md",
|
|
27
|
-
"LICENSE",
|
|
28
|
-
"Readme.md",
|
|
29
|
-
"index.js"
|
|
30
|
-
],
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">= 0.8"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"test": "mocha --check-leaks --reporter spec",
|
|
36
|
-
"test-ci": "nyc --reporter=text npm test",
|
|
37
|
-
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = function (xs, fn) {
|
|
2
|
-
var res = [];
|
|
3
|
-
for (var i = 0; i < xs.length; i++) {
|
|
4
|
-
var x = fn(xs[i], i);
|
|
5
|
-
if (isArray(x)) res.push.apply(res, x);
|
|
6
|
-
else res.push(x);
|
|
7
|
-
}
|
|
8
|
-
return res;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
var isArray = Array.isArray || function (xs) {
|
|
12
|
-
return Object.prototype.toString.call(xs) === '[object Array]';
|
|
13
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "concat-map",
|
|
3
|
-
"description": "concatenative mapdashery",
|
|
4
|
-
"version": "0.0.1",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git://github.com/substack/node-concat-map.git"
|
|
8
|
-
},
|
|
9
|
-
"main": "index.js",
|
|
10
|
-
"keywords": [
|
|
11
|
-
"concat",
|
|
12
|
-
"concatMap",
|
|
13
|
-
"map",
|
|
14
|
-
"functional",
|
|
15
|
-
"higher-order"
|
|
16
|
-
],
|
|
17
|
-
"directories": {
|
|
18
|
-
"example": "example",
|
|
19
|
-
"test": "test"
|
|
20
|
-
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"test": "tape test/*.js"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"tape": "~2.4.0"
|
|
26
|
-
},
|
|
27
|
-
"license": "MIT",
|
|
28
|
-
"author": {
|
|
29
|
-
"name": "James Halliday",
|
|
30
|
-
"email": "mail@substack.net",
|
|
31
|
-
"url": "http://substack.net"
|
|
32
|
-
},
|
|
33
|
-
"testling": {
|
|
34
|
-
"files": "test/*.js",
|
|
35
|
-
"browsers": {
|
|
36
|
-
"ie": [
|
|
37
|
-
6,
|
|
38
|
-
7,
|
|
39
|
-
8,
|
|
40
|
-
9
|
|
41
|
-
],
|
|
42
|
-
"ff": [
|
|
43
|
-
3.5,
|
|
44
|
-
10,
|
|
45
|
-
15
|
|
46
|
-
],
|
|
47
|
-
"chrome": [
|
|
48
|
-
10,
|
|
49
|
-
22
|
|
50
|
-
],
|
|
51
|
-
"safari": [
|
|
52
|
-
5.1
|
|
53
|
-
],
|
|
54
|
-
"opera": [
|
|
55
|
-
12
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|