blockmine 1.0.1 → 1.0.6
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/backend/cli.js +1 -1
- package/backend/package.json +13 -0
- package/backend/src/server.js +6 -4
- package/frontend/dist/assets/{index-Dh-PcVh1.js → index-DjU4Tk7J.js} +226 -226
- package/frontend/dist/index.html +1 -1
- package/frontend/dist/monacoeditorwork/css.worker.bundle.js +77 -77
- package/frontend/dist/monacoeditorwork/editor.worker.bundle.js +76 -76
- package/frontend/dist/monacoeditorwork/html.worker.bundle.js +77 -77
- package/frontend/dist/monacoeditorwork/json.worker.bundle.js +77 -77
- package/frontend/dist/monacoeditorwork/ts.worker.bundle.js +77 -77
- package/frontend/package.json +65 -0
- package/image/1.png +0 -0
- package/image/2.png +0 -0
- package/image/3.png +0 -0
- package/image/logo.png +0 -0
- package/package.json +7 -20
- package/tailwind.config.js +0 -0
- package/vite.config.js +0 -0
- package/backend/.env +0 -7
- package/backend/node_modules/.bin/blockminejs +0 -16
- package/backend/node_modules/.bin/blockminejs.cmd +0 -17
- package/backend/node_modules/.bin/blockminejs.ps1 +0 -28
- package/backend/node_modules/.bin/nodemon +0 -16
- package/backend/node_modules/.bin/nodemon.cmd +0 -17
- package/backend/node_modules/.bin/nodemon.ps1 +0 -28
- package/backend/node_modules/.bin/nodetouch +0 -16
- package/backend/node_modules/.bin/nodetouch.cmd +0 -17
- package/backend/node_modules/.bin/nodetouch.ps1 +0 -28
- package/backend/node_modules/.bin/prisma +0 -16
- package/backend/node_modules/.bin/prisma.cmd +0 -17
- package/backend/node_modules/.bin/prisma.ps1 +0 -28
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.gz.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.gz.sha256 +0 -1
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +0 -1
- package/backend/node_modules/.package-lock.json +0 -2521
- package/backend/node_modules/.prisma/client/client.d.ts +0 -1
- package/backend/node_modules/.prisma/client/client.js +0 -4
- package/backend/node_modules/.prisma/client/default.d.ts +0 -1
- package/backend/node_modules/.prisma/client/default.js +0 -1
- package/backend/node_modules/.prisma/client/deno/edge.d.ts +0 -9
- package/backend/node_modules/.prisma/client/edge.d.ts +0 -1
- package/backend/node_modules/.prisma/client/edge.js +0 -263
- package/backend/node_modules/.prisma/client/index-browser.js +0 -258
- package/backend/node_modules/.prisma/client/index.d.ts +0 -15548
- package/backend/node_modules/.prisma/client/index.js +0 -286
- package/backend/node_modules/.prisma/client/package.json +0 -97
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp14264 +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp18496 +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp24408 +0 -0
- package/backend/node_modules/.prisma/client/schema.prisma +0 -136
- package/backend/node_modules/.prisma/client/wasm.d.ts +0 -1
- package/backend/node_modules/.prisma/client/wasm.js +0 -258
- package/backend/node_modules/@prisma/debug/LICENSE +0 -201
- package/backend/node_modules/@prisma/debug/README.md +0 -29
- package/backend/node_modules/@prisma/debug/dist/index.d.ts +0 -35
- package/backend/node_modules/@prisma/debug/dist/index.js +0 -236
- package/backend/node_modules/@prisma/debug/dist/util.d.ts +0 -2
- package/backend/node_modules/@prisma/debug/dist/util.js +0 -74
- package/backend/node_modules/@prisma/debug/package.json +0 -37
- package/backend/node_modules/@prisma/engines/LICENSE +0 -201
- package/backend/node_modules/@prisma/engines/README.md +0 -13
- package/backend/node_modules/@prisma/engines/dist/index.d.ts +0 -18
- package/backend/node_modules/@prisma/engines/dist/index.js +0 -113
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +0 -1
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +0 -2048
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +0 -1
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +0 -128
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +0 -1
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +0 -1
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +0 -1
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +0 -1
- package/backend/node_modules/@prisma/engines/package.json +0 -41
- package/backend/node_modules/@prisma/engines/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/@prisma/engines/schema-engine-windows.exe +0 -0
- package/backend/node_modules/@prisma/engines/scripts/postinstall.js +0 -28
- package/backend/node_modules/@prisma/engines-version/LICENSE +0 -201
- package/backend/node_modules/@prisma/engines-version/README.md +0 -8
- package/backend/node_modules/@prisma/engines-version/index.d.ts +0 -1
- package/backend/node_modules/@prisma/engines-version/index.js +0 -5
- package/backend/node_modules/@prisma/engines-version/package.json +0 -27
- package/backend/node_modules/@prisma/fetch-engine/LICENSE +0 -201
- package/backend/node_modules/@prisma/fetch-engine/README.md +0 -8
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +0 -5
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +0 -25
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +0 -1
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +0 -25
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +0 -2385
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +0 -161
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +0 -66
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +0 -49
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +0 -2457
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +0 -1404
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +0 -2385
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +0 -44
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +0 -159
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +0 -8153
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +0 -70
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +0 -2786
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +0 -4232
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +0 -29
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +0 -1
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +0 -28
- package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +0 -27
- package/backend/node_modules/@prisma/fetch-engine/dist/download.js +0 -41
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +0 -6
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +0 -30
- package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +0 -14
- package/backend/node_modules/@prisma/fetch-engine/dist/env.js +0 -29
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +0 -1
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +0 -25
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +0 -3
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +0 -25
- package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +0 -5
- package/backend/node_modules/@prisma/fetch-engine/dist/index.js +0 -49
- package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +0 -2
- package/backend/node_modules/@prisma/fetch-engine/dist/log.js +0 -25
- package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +0 -371
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +0 -11
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +0 -29
- package/backend/node_modules/@prisma/fetch-engine/package.json +0 -59
- package/backend/node_modules/@prisma/get-platform/LICENSE +0 -201
- package/backend/node_modules/@prisma/get-platform/README.md +0 -16
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +0 -4
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +0 -25
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +0 -2
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +0 -26
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +0 -67
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +0 -34
- package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +0 -1
- package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +0 -62
- package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +0 -53
- package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +0 -367
- package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +0 -41
- package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +0 -14956
- package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +0 -43
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +0 -580
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +0 -70
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +0 -8
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +0 -25
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +0 -105
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +0 -38
- package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +0 -7
- package/backend/node_modules/@prisma/get-platform/dist/index.js +0 -43
- package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +0 -1
- package/backend/node_modules/@prisma/get-platform/dist/link.js +0 -26
- package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +0 -8
- package/backend/node_modules/@prisma/get-platform/dist/logger.js +0 -29
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +0 -8
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +0 -27
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +0 -1
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +0 -28
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +0 -108
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +0 -27
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +0 -205
- package/backend/node_modules/@prisma/get-platform/package.json +0 -49
- package/backend/node_modules/anymatch/LICENSE +0 -15
- package/backend/node_modules/anymatch/README.md +0 -87
- package/backend/node_modules/anymatch/index.d.ts +0 -20
- package/backend/node_modules/anymatch/index.js +0 -104
- package/backend/node_modules/anymatch/package.json +0 -48
- package/backend/node_modules/binary-extensions/binary-extensions.json +0 -263
- package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
- package/backend/node_modules/binary-extensions/index.d.ts +0 -14
- package/backend/node_modules/binary-extensions/index.js +0 -1
- package/backend/node_modules/binary-extensions/license +0 -10
- package/backend/node_modules/binary-extensions/package.json +0 -40
- package/backend/node_modules/binary-extensions/readme.md +0 -25
- package/backend/node_modules/brace-expansion/LICENSE +0 -21
- package/backend/node_modules/brace-expansion/README.md +0 -129
- package/backend/node_modules/brace-expansion/index.js +0 -201
- package/backend/node_modules/brace-expansion/package.json +0 -47
- package/backend/node_modules/braces/LICENSE +0 -21
- package/backend/node_modules/braces/README.md +0 -586
- package/backend/node_modules/braces/index.js +0 -170
- package/backend/node_modules/braces/lib/compile.js +0 -60
- package/backend/node_modules/braces/lib/constants.js +0 -57
- package/backend/node_modules/braces/lib/expand.js +0 -113
- package/backend/node_modules/braces/lib/parse.js +0 -331
- package/backend/node_modules/braces/lib/stringify.js +0 -32
- package/backend/node_modules/braces/lib/utils.js +0 -122
- package/backend/node_modules/braces/package.json +0 -77
- package/backend/node_modules/chokidar/LICENSE +0 -21
- package/backend/node_modules/chokidar/README.md +0 -308
- package/backend/node_modules/chokidar/index.js +0 -973
- package/backend/node_modules/chokidar/lib/constants.js +0 -66
- package/backend/node_modules/chokidar/lib/fsevents-handler.js +0 -526
- package/backend/node_modules/chokidar/lib/nodefs-handler.js +0 -654
- package/backend/node_modules/chokidar/package.json +0 -70
- package/backend/node_modules/chokidar/types/index.d.ts +0 -192
- package/backend/node_modules/concat-map/.travis.yml +0 -4
- package/backend/node_modules/concat-map/LICENSE +0 -18
- package/backend/node_modules/concat-map/README.markdown +0 -62
- package/backend/node_modules/concat-map/example/map.js +0 -6
- package/backend/node_modules/concat-map/index.js +0 -13
- package/backend/node_modules/concat-map/package.json +0 -43
- package/backend/node_modules/concat-map/test/map.js +0 -39
- package/backend/node_modules/debug/LICENSE +0 -20
- package/backend/node_modules/debug/README.md +0 -481
- package/backend/node_modules/debug/package.json +0 -64
- package/backend/node_modules/debug/src/browser.js +0 -272
- package/backend/node_modules/debug/src/common.js +0 -292
- package/backend/node_modules/debug/src/index.js +0 -10
- package/backend/node_modules/debug/src/node.js +0 -263
- package/backend/node_modules/fill-range/LICENSE +0 -21
- package/backend/node_modules/fill-range/README.md +0 -237
- package/backend/node_modules/fill-range/index.js +0 -248
- package/backend/node_modules/fill-range/package.json +0 -74
- package/backend/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/backend/node_modules/glob-parent/LICENSE +0 -15
- package/backend/node_modules/glob-parent/README.md +0 -137
- package/backend/node_modules/glob-parent/index.js +0 -42
- package/backend/node_modules/glob-parent/package.json +0 -48
- package/backend/node_modules/has-flag/index.js +0 -8
- package/backend/node_modules/has-flag/license +0 -9
- package/backend/node_modules/has-flag/package.json +0 -44
- package/backend/node_modules/has-flag/readme.md +0 -70
- package/backend/node_modules/ignore-by-default/LICENSE +0 -14
- package/backend/node_modules/ignore-by-default/README.md +0 -26
- package/backend/node_modules/ignore-by-default/index.js +0 -12
- package/backend/node_modules/ignore-by-default/package.json +0 -34
- package/backend/node_modules/is-binary-path/index.d.ts +0 -17
- package/backend/node_modules/is-binary-path/index.js +0 -7
- package/backend/node_modules/is-binary-path/license +0 -9
- package/backend/node_modules/is-binary-path/package.json +0 -40
- package/backend/node_modules/is-binary-path/readme.md +0 -34
- package/backend/node_modules/is-extglob/LICENSE +0 -21
- package/backend/node_modules/is-extglob/README.md +0 -107
- package/backend/node_modules/is-extglob/index.js +0 -20
- package/backend/node_modules/is-extglob/package.json +0 -69
- package/backend/node_modules/is-glob/LICENSE +0 -21
- package/backend/node_modules/is-glob/README.md +0 -206
- package/backend/node_modules/is-glob/index.js +0 -150
- package/backend/node_modules/is-glob/package.json +0 -81
- package/backend/node_modules/is-number/LICENSE +0 -21
- package/backend/node_modules/is-number/README.md +0 -187
- package/backend/node_modules/is-number/index.js +0 -18
- package/backend/node_modules/is-number/package.json +0 -82
- package/backend/node_modules/minimatch/LICENSE +0 -15
- package/backend/node_modules/minimatch/README.md +0 -230
- package/backend/node_modules/minimatch/minimatch.js +0 -947
- package/backend/node_modules/minimatch/package.json +0 -33
- package/backend/node_modules/ms/index.js +0 -162
- package/backend/node_modules/ms/license.md +0 -21
- package/backend/node_modules/ms/package.json +0 -38
- package/backend/node_modules/ms/readme.md +0 -59
- package/backend/node_modules/nodemon/.prettierrc.json +0 -3
- package/backend/node_modules/nodemon/LICENSE +0 -21
- package/backend/node_modules/nodemon/README.md +0 -441
- package/backend/node_modules/nodemon/bin/nodemon.js +0 -16
- package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/backend/node_modules/nodemon/doc/cli/authors.txt +0 -8
- package/backend/node_modules/nodemon/doc/cli/config.txt +0 -44
- package/backend/node_modules/nodemon/doc/cli/help.txt +0 -29
- package/backend/node_modules/nodemon/doc/cli/logo.txt +0 -20
- package/backend/node_modules/nodemon/doc/cli/options.txt +0 -36
- package/backend/node_modules/nodemon/doc/cli/topics.txt +0 -8
- package/backend/node_modules/nodemon/doc/cli/usage.txt +0 -3
- package/backend/node_modules/nodemon/doc/cli/whoami.txt +0 -9
- package/backend/node_modules/nodemon/index.d.ts +0 -125
- package/backend/node_modules/nodemon/jsconfig.json +0 -7
- package/backend/node_modules/nodemon/lib/cli/index.js +0 -49
- package/backend/node_modules/nodemon/lib/cli/parse.js +0 -230
- package/backend/node_modules/nodemon/lib/config/command.js +0 -43
- package/backend/node_modules/nodemon/lib/config/defaults.js +0 -34
- package/backend/node_modules/nodemon/lib/config/exec.js +0 -234
- package/backend/node_modules/nodemon/lib/config/index.js +0 -93
- package/backend/node_modules/nodemon/lib/config/load.js +0 -225
- package/backend/node_modules/nodemon/lib/help/index.js +0 -27
- package/backend/node_modules/nodemon/lib/index.js +0 -1
- package/backend/node_modules/nodemon/lib/monitor/index.js +0 -4
- package/backend/node_modules/nodemon/lib/monitor/match.js +0 -287
- package/backend/node_modules/nodemon/lib/monitor/run.js +0 -562
- package/backend/node_modules/nodemon/lib/monitor/signals.js +0 -34
- package/backend/node_modules/nodemon/lib/monitor/watch.js +0 -244
- package/backend/node_modules/nodemon/lib/nodemon.js +0 -317
- package/backend/node_modules/nodemon/lib/rules/add.js +0 -89
- package/backend/node_modules/nodemon/lib/rules/index.js +0 -53
- package/backend/node_modules/nodemon/lib/rules/parse.js +0 -43
- package/backend/node_modules/nodemon/lib/spawn.js +0 -74
- package/backend/node_modules/nodemon/lib/utils/bus.js +0 -44
- package/backend/node_modules/nodemon/lib/utils/clone.js +0 -40
- package/backend/node_modules/nodemon/lib/utils/colour.js +0 -26
- package/backend/node_modules/nodemon/lib/utils/index.js +0 -103
- package/backend/node_modules/nodemon/lib/utils/log.js +0 -82
- package/backend/node_modules/nodemon/lib/utils/merge.js +0 -47
- package/backend/node_modules/nodemon/lib/version.js +0 -100
- package/backend/node_modules/nodemon/package.json +0 -75
- package/backend/node_modules/picomatch/CHANGELOG.md +0 -136
- package/backend/node_modules/picomatch/LICENSE +0 -21
- package/backend/node_modules/picomatch/README.md +0 -708
- package/backend/node_modules/picomatch/index.js +0 -3
- package/backend/node_modules/picomatch/lib/constants.js +0 -179
- package/backend/node_modules/picomatch/lib/parse.js +0 -1091
- package/backend/node_modules/picomatch/lib/picomatch.js +0 -342
- package/backend/node_modules/picomatch/lib/scan.js +0 -391
- package/backend/node_modules/picomatch/lib/utils.js +0 -64
- package/backend/node_modules/picomatch/package.json +0 -81
- package/backend/node_modules/prisma/LICENSE +0 -201
- package/backend/node_modules/prisma/README.md +0 -84
- package/backend/node_modules/prisma/build/child.js +0 -82915
- package/backend/node_modules/prisma/build/index.js +0 -2591
- package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
- package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +0 -5
- package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +0 -3
- package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +0 -11
- package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +0 -10
- package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +0 -6
- package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +0 -6
- package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/index.js +0 -1
- package/backend/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/logotype.a960b169.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +0 -7
- package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +0 -5
- package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +0 -6
- package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +0 -7
- package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +0 -8
- package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +0 -3
- package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +0 -4
- package/backend/node_modules/prisma/build/public/assets/vendor.js +0 -385
- package/backend/node_modules/prisma/build/public/favicon.svg +0 -5
- package/backend/node_modules/prisma/build/public/http/databrowser.js +0 -1
- package/backend/node_modules/prisma/build/public/http/splash.js +0 -1
- package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
- package/backend/node_modules/prisma/build/public/index.css +0 -1
- package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +0 -21
- package/backend/node_modules/prisma/build/public/pages/http/splash.html +0 -21
- package/backend/node_modules/prisma/build/xdg-open +0 -1066
- package/backend/node_modules/prisma/package.json +0 -136
- package/backend/node_modules/prisma/preinstall/index.js +0 -7
- package/backend/node_modules/prisma/prisma-client/README.md +0 -27
- package/backend/node_modules/prisma/prisma-client/default.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/default.js +0 -3
- package/backend/node_modules/prisma/prisma-client/edge.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/edge.js +0 -4
- package/backend/node_modules/prisma/prisma-client/extension.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/extension.js +0 -4
- package/backend/node_modules/prisma/prisma-client/generator-build/index.js +0 -10351
- package/backend/node_modules/prisma/prisma-client/index-browser.js +0 -3
- package/backend/node_modules/prisma/prisma-client/index.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/index.js +0 -4
- package/backend/node_modules/prisma/prisma-client/package.json +0 -281
- package/backend/node_modules/prisma/prisma-client/react-native.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/react-native.js +0 -3
- package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/runtime/binary.js +0 -210
- package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +0 -31
- package/backend/node_modules/prisma/prisma-client/runtime/edge.js +0 -31
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +0 -365
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +0 -13
- package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +0 -3403
- package/backend/node_modules/prisma/prisma-client/runtime/library.js +0 -143
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +0 -2
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +0 -2
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +0 -2
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +0 -3403
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +0 -80
- package/backend/node_modules/prisma/prisma-client/scripts/colors.js +0 -176
- package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +0 -9
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +0 -110
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +0 -65
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +0 -5
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +0 -410
- package/backend/node_modules/prisma/prisma-client/sql.d.ts +0 -1
- package/backend/node_modules/prisma/prisma-client/sql.js +0 -4
- package/backend/node_modules/prisma/prisma-client/sql.mjs +0 -1
- package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/prisma/scripts/preinstall-entry.js +0 -10
- package/backend/node_modules/pstree.remy/.travis.yml +0 -8
- package/backend/node_modules/pstree.remy/LICENSE +0 -7
- package/backend/node_modules/pstree.remy/README.md +0 -26
- package/backend/node_modules/pstree.remy/lib/index.js +0 -37
- package/backend/node_modules/pstree.remy/lib/tree.js +0 -37
- package/backend/node_modules/pstree.remy/lib/utils.js +0 -53
- package/backend/node_modules/pstree.remy/package.json +0 -33
- package/backend/node_modules/pstree.remy/tests/fixtures/index.js +0 -13
- package/backend/node_modules/pstree.remy/tests/fixtures/out1 +0 -10
- package/backend/node_modules/pstree.remy/tests/fixtures/out2 +0 -29
- package/backend/node_modules/pstree.remy/tests/index.test.js +0 -51
- package/backend/node_modules/readdirp/LICENSE +0 -21
- package/backend/node_modules/readdirp/README.md +0 -122
- package/backend/node_modules/readdirp/index.d.ts +0 -43
- package/backend/node_modules/readdirp/index.js +0 -287
- package/backend/node_modules/readdirp/package.json +0 -122
- package/backend/node_modules/simple-update-notifier/LICENSE +0 -21
- package/backend/node_modules/simple-update-notifier/README.md +0 -82
- package/backend/node_modules/simple-update-notifier/build/index.d.ts +0 -13
- package/backend/node_modules/simple-update-notifier/build/index.js +0 -210
- package/backend/node_modules/simple-update-notifier/package.json +0 -100
- package/backend/node_modules/simple-update-notifier/src/borderedText.ts +0 -12
- package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +0 -17
- package/backend/node_modules/simple-update-notifier/src/cache.ts +0 -44
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +0 -35
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +0 -29
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +0 -82
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +0 -40
- package/backend/node_modules/simple-update-notifier/src/index.spec.ts +0 -27
- package/backend/node_modules/simple-update-notifier/src/index.ts +0 -34
- package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +0 -12
- package/backend/node_modules/simple-update-notifier/src/types.ts +0 -8
- package/backend/node_modules/supports-color/browser.js +0 -5
- package/backend/node_modules/supports-color/index.js +0 -131
- package/backend/node_modules/supports-color/license +0 -9
- package/backend/node_modules/supports-color/package.json +0 -53
- package/backend/node_modules/supports-color/readme.md +0 -66
- package/backend/node_modules/to-regex-range/LICENSE +0 -21
- package/backend/node_modules/to-regex-range/README.md +0 -305
- package/backend/node_modules/to-regex-range/index.js +0 -288
- package/backend/node_modules/to-regex-range/package.json +0 -88
- package/backend/node_modules/touch/LICENSE +0 -15
- package/backend/node_modules/touch/README.md +0 -52
- package/backend/node_modules/touch/bin/nodetouch.js +0 -112
- package/backend/node_modules/touch/index.js +0 -224
- package/backend/node_modules/touch/package.json +0 -25
- package/backend/node_modules/undefsafe/.github/workflows/release.yml +0 -25
- package/backend/node_modules/undefsafe/.jscsrc +0 -13
- package/backend/node_modules/undefsafe/.jshintrc +0 -16
- package/backend/node_modules/undefsafe/.travis.yml +0 -18
- package/backend/node_modules/undefsafe/LICENSE +0 -22
- package/backend/node_modules/undefsafe/README.md +0 -63
- package/backend/node_modules/undefsafe/example.js +0 -14
- package/backend/node_modules/undefsafe/lib/undefsafe.js +0 -125
- package/backend/node_modules/undefsafe/package.json +0 -34
- package/backend/prisma/dev.db +0 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +0 -59
- package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +0 -23
- package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +0 -66
- package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +0 -20
- package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +0 -81
- package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +0 -46
- package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +0 -14
- package/backend/storage/plugins/bot_1/clan-role-manager/README.md +0 -64
- package/backend/storage/plugins/bot_1/clan-role-manager/index.js +0 -98
- package/backend/storage/plugins/bot_1/clan-role-manager/package.json +0 -13
- package/backend/storage/plugins/bot_1/clan-welcome/index.js +0 -32
- package/backend/storage/plugins/bot_1/clan-welcome/package.json +0 -22
- package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +0 -12
- package/backend/storage/plugins/bot_1/parser-keksik/README.md +0 -65
- package/backend/storage/plugins/bot_1/parser-keksik/index.js +0 -135
- package/backend/storage/plugins/bot_1/parser-keksik/package.json +0 -40
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +0 -35
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +0 -18
- package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +0 -12
- package/backend/storage/plugins/bot_2/parser-keksik/README.md +0 -65
- package/backend/storage/plugins/bot_2/parser-keksik/index.js +0 -135
- package/backend/storage/plugins/bot_2/parser-keksik/package.json +0 -40
- package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +0 -66
- package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +0 -20
- package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +0 -81
- package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +0 -46
- package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +0 -14
- package/backend/storage/plugins/bot_3/clan-welcome/index.js +0 -32
- package/backend/storage/plugins/bot_3/clan-welcome/package.json +0 -22
- package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +0 -12
- package/backend/storage/plugins/bot_3/parser-keksik/README.md +0 -65
- package/backend/storage/plugins/bot_3/parser-keksik/index.js +0 -135
- package/backend/storage/plugins/bot_3/parser-keksik/package.json +0 -40
- package/backend/storage/plugins/bot_4/fly-keksik/index.js +0 -111
- package/backend/storage/plugins/bot_4/fly-keksik/package.json +0 -59
- package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +0 -12
- package/backend/storage/plugins/bot_4/parser-keksik/README.md +0 -65
- package/backend/storage/plugins/bot_4/parser-keksik/index.js +0 -135
- package/backend/storage/plugins/bot_4/parser-keksik/package.json +0 -40
- package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +0 -66
- package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +0 -20
- package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +0 -12
- package/backend/storage/plugins/bot_5/parser-keksik/README.md +0 -65
- package/backend/storage/plugins/bot_5/parser-keksik/index.js +0 -117
- package/backend/storage/plugins/bot_5/parser-keksik/package.json +0 -40
- package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +0 -81
- package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +0 -46
- package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +0 -14
- package/backend/storage/plugins/bot_6/clan-welcome/index.js +0 -32
- package/backend/storage/plugins/bot_6/clan-welcome/package.json +0 -22
- package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +0 -12
- package/backend/storage/plugins/bot_6/parser-keksik/README.md +0 -65
- package/backend/storage/plugins/bot_6/parser-keksik/index.js +0 -135
- package/backend/storage/plugins/bot_6/parser-keksik/package.json +0 -40
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
const util = require('util');
|
|
11
|
-
const toRegexRange = require('to-regex-range');
|
|
12
|
-
|
|
13
|
-
const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
14
|
-
|
|
15
|
-
const transform = toNumber => {
|
|
16
|
-
return value => toNumber === true ? Number(value) : String(value);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const isValidValue = value => {
|
|
20
|
-
return typeof value === 'number' || (typeof value === 'string' && value !== '');
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const isNumber = num => Number.isInteger(+num);
|
|
24
|
-
|
|
25
|
-
const zeros = input => {
|
|
26
|
-
let value = `${input}`;
|
|
27
|
-
let index = -1;
|
|
28
|
-
if (value[0] === '-') value = value.slice(1);
|
|
29
|
-
if (value === '0') return false;
|
|
30
|
-
while (value[++index] === '0');
|
|
31
|
-
return index > 0;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const stringify = (start, end, options) => {
|
|
35
|
-
if (typeof start === 'string' || typeof end === 'string') {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
return options.stringify === true;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const pad = (input, maxLength, toNumber) => {
|
|
42
|
-
if (maxLength > 0) {
|
|
43
|
-
let dash = input[0] === '-' ? '-' : '';
|
|
44
|
-
if (dash) input = input.slice(1);
|
|
45
|
-
input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0'));
|
|
46
|
-
}
|
|
47
|
-
if (toNumber === false) {
|
|
48
|
-
return String(input);
|
|
49
|
-
}
|
|
50
|
-
return input;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const toMaxLen = (input, maxLength) => {
|
|
54
|
-
let negative = input[0] === '-' ? '-' : '';
|
|
55
|
-
if (negative) {
|
|
56
|
-
input = input.slice(1);
|
|
57
|
-
maxLength--;
|
|
58
|
-
}
|
|
59
|
-
while (input.length < maxLength) input = '0' + input;
|
|
60
|
-
return negative ? ('-' + input) : input;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
const toSequence = (parts, options, maxLen) => {
|
|
64
|
-
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
65
|
-
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
66
|
-
|
|
67
|
-
let prefix = options.capture ? '' : '?:';
|
|
68
|
-
let positives = '';
|
|
69
|
-
let negatives = '';
|
|
70
|
-
let result;
|
|
71
|
-
|
|
72
|
-
if (parts.positives.length) {
|
|
73
|
-
positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|');
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (parts.negatives.length) {
|
|
77
|
-
negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (positives && negatives) {
|
|
81
|
-
result = `${positives}|${negatives}`;
|
|
82
|
-
} else {
|
|
83
|
-
result = positives || negatives;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (options.wrap) {
|
|
87
|
-
return `(${prefix}${result})`;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return result;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const toRange = (a, b, isNumbers, options) => {
|
|
94
|
-
if (isNumbers) {
|
|
95
|
-
return toRegexRange(a, b, { wrap: false, ...options });
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
let start = String.fromCharCode(a);
|
|
99
|
-
if (a === b) return start;
|
|
100
|
-
|
|
101
|
-
let stop = String.fromCharCode(b);
|
|
102
|
-
return `[${start}-${stop}]`;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
const toRegex = (start, end, options) => {
|
|
106
|
-
if (Array.isArray(start)) {
|
|
107
|
-
let wrap = options.wrap === true;
|
|
108
|
-
let prefix = options.capture ? '' : '?:';
|
|
109
|
-
return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
|
|
110
|
-
}
|
|
111
|
-
return toRegexRange(start, end, options);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
const rangeError = (...args) => {
|
|
115
|
-
return new RangeError('Invalid range arguments: ' + util.inspect(...args));
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const invalidRange = (start, end, options) => {
|
|
119
|
-
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
120
|
-
return [];
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const invalidStep = (step, options) => {
|
|
124
|
-
if (options.strictRanges === true) {
|
|
125
|
-
throw new TypeError(`Expected step "${step}" to be a number`);
|
|
126
|
-
}
|
|
127
|
-
return [];
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const fillNumbers = (start, end, step = 1, options = {}) => {
|
|
131
|
-
let a = Number(start);
|
|
132
|
-
let b = Number(end);
|
|
133
|
-
|
|
134
|
-
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
135
|
-
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
136
|
-
return [];
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// fix negative zero
|
|
140
|
-
if (a === 0) a = 0;
|
|
141
|
-
if (b === 0) b = 0;
|
|
142
|
-
|
|
143
|
-
let descending = a > b;
|
|
144
|
-
let startString = String(start);
|
|
145
|
-
let endString = String(end);
|
|
146
|
-
let stepString = String(step);
|
|
147
|
-
step = Math.max(Math.abs(step), 1);
|
|
148
|
-
|
|
149
|
-
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
150
|
-
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
151
|
-
let toNumber = padded === false && stringify(start, end, options) === false;
|
|
152
|
-
let format = options.transform || transform(toNumber);
|
|
153
|
-
|
|
154
|
-
if (options.toRegex && step === 1) {
|
|
155
|
-
return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
let parts = { negatives: [], positives: [] };
|
|
159
|
-
let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
|
|
160
|
-
let range = [];
|
|
161
|
-
let index = 0;
|
|
162
|
-
|
|
163
|
-
while (descending ? a >= b : a <= b) {
|
|
164
|
-
if (options.toRegex === true && step > 1) {
|
|
165
|
-
push(a);
|
|
166
|
-
} else {
|
|
167
|
-
range.push(pad(format(a, index), maxLen, toNumber));
|
|
168
|
-
}
|
|
169
|
-
a = descending ? a - step : a + step;
|
|
170
|
-
index++;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
if (options.toRegex === true) {
|
|
174
|
-
return step > 1
|
|
175
|
-
? toSequence(parts, options, maxLen)
|
|
176
|
-
: toRegex(range, null, { wrap: false, ...options });
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
return range;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
const fillLetters = (start, end, step = 1, options = {}) => {
|
|
183
|
-
if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) {
|
|
184
|
-
return invalidRange(start, end, options);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
let format = options.transform || (val => String.fromCharCode(val));
|
|
188
|
-
let a = `${start}`.charCodeAt(0);
|
|
189
|
-
let b = `${end}`.charCodeAt(0);
|
|
190
|
-
|
|
191
|
-
let descending = a > b;
|
|
192
|
-
let min = Math.min(a, b);
|
|
193
|
-
let max = Math.max(a, b);
|
|
194
|
-
|
|
195
|
-
if (options.toRegex && step === 1) {
|
|
196
|
-
return toRange(min, max, false, options);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
let range = [];
|
|
200
|
-
let index = 0;
|
|
201
|
-
|
|
202
|
-
while (descending ? a >= b : a <= b) {
|
|
203
|
-
range.push(format(a, index));
|
|
204
|
-
a = descending ? a - step : a + step;
|
|
205
|
-
index++;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
if (options.toRegex === true) {
|
|
209
|
-
return toRegex(range, null, { wrap: false, options });
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
return range;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
const fill = (start, end, step, options = {}) => {
|
|
216
|
-
if (end == null && isValidValue(start)) {
|
|
217
|
-
return [start];
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (!isValidValue(start) || !isValidValue(end)) {
|
|
221
|
-
return invalidRange(start, end, options);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (typeof step === 'function') {
|
|
225
|
-
return fill(start, end, 1, { transform: step });
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (isObject(step)) {
|
|
229
|
-
return fill(start, end, 0, step);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
let opts = { ...options };
|
|
233
|
-
if (opts.capture === true) opts.wrap = true;
|
|
234
|
-
step = step || opts.step || 1;
|
|
235
|
-
|
|
236
|
-
if (!isNumber(step)) {
|
|
237
|
-
if (step != null && !isObject(step)) return invalidStep(step, opts);
|
|
238
|
-
return fill(start, end, 1, step);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
if (isNumber(start) && isNumber(end)) {
|
|
242
|
-
return fillNumbers(start, end, step, opts);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
module.exports = fill;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fill-range",
|
|
3
|
-
"description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`",
|
|
4
|
-
"version": "7.1.1",
|
|
5
|
-
"homepage": "https://github.com/jonschlinkert/fill-range",
|
|
6
|
-
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
-
"contributors": [
|
|
8
|
-
"Edo Rivai (edo.rivai.nl)",
|
|
9
|
-
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
|
|
10
|
-
"Paul Miller (paulmillr.com)",
|
|
11
|
-
"Rouven Weßling (www.rouvenwessling.de)",
|
|
12
|
-
"(https://github.com/wtgtybhertgeghgtwtg)"
|
|
13
|
-
],
|
|
14
|
-
"repository": "jonschlinkert/fill-range",
|
|
15
|
-
"bugs": {
|
|
16
|
-
"url": "https://github.com/jonschlinkert/fill-range/issues"
|
|
17
|
-
},
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"files": [
|
|
20
|
-
"index.js"
|
|
21
|
-
],
|
|
22
|
-
"main": "index.js",
|
|
23
|
-
"engines": {
|
|
24
|
-
"node": ">=8"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
|
|
28
|
-
"mocha": "mocha --reporter dot",
|
|
29
|
-
"test": "npm run lint && npm run mocha",
|
|
30
|
-
"test:ci": "npm run test:cover",
|
|
31
|
-
"test:cover": "nyc npm run mocha"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"to-regex-range": "^5.0.1"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"gulp-format-md": "^2.0.0",
|
|
38
|
-
"mocha": "^6.1.1",
|
|
39
|
-
"nyc": "^15.1.0"
|
|
40
|
-
},
|
|
41
|
-
"keywords": [
|
|
42
|
-
"alpha",
|
|
43
|
-
"alphabetical",
|
|
44
|
-
"array",
|
|
45
|
-
"bash",
|
|
46
|
-
"brace",
|
|
47
|
-
"expand",
|
|
48
|
-
"expansion",
|
|
49
|
-
"fill",
|
|
50
|
-
"glob",
|
|
51
|
-
"match",
|
|
52
|
-
"matches",
|
|
53
|
-
"matching",
|
|
54
|
-
"number",
|
|
55
|
-
"numerical",
|
|
56
|
-
"range",
|
|
57
|
-
"ranges",
|
|
58
|
-
"regex",
|
|
59
|
-
"sh"
|
|
60
|
-
],
|
|
61
|
-
"verb": {
|
|
62
|
-
"toc": false,
|
|
63
|
-
"layout": "default",
|
|
64
|
-
"tasks": [
|
|
65
|
-
"readme"
|
|
66
|
-
],
|
|
67
|
-
"plugins": [
|
|
68
|
-
"gulp-format-md"
|
|
69
|
-
],
|
|
70
|
-
"lint": {
|
|
71
|
-
"reflinks": true
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
### [5.1.2](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) (2021-03-06)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* eliminate ReDoS ([#36](https://github.com/gulpjs/glob-parent/issues/36)) ([f923116](https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366))
|
|
7
|
-
|
|
8
|
-
### [5.1.1](https://github.com/gulpjs/glob-parent/compare/v5.1.0...v5.1.1) (2021-01-27)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* unescape exclamation mark ([#26](https://github.com/gulpjs/glob-parent/issues/26)) ([a98874f](https://github.com/gulpjs/glob-parent/commit/a98874f1a59e407f4fb1beb0db4efa8392da60bb))
|
|
14
|
-
|
|
15
|
-
## [5.1.0](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.0) (2021-01-27)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Features
|
|
19
|
-
|
|
20
|
-
* add `flipBackslashes` option to disable auto conversion of slashes (closes [#24](https://github.com/gulpjs/glob-parent/issues/24)) ([#25](https://github.com/gulpjs/glob-parent/issues/25)) ([eecf91d](https://github.com/gulpjs/glob-parent/commit/eecf91d5e3834ed78aee39c4eaaae654d76b87b3))
|
|
21
|
-
|
|
22
|
-
## [5.0.0](https://github.com/gulpjs/glob-parent/compare/v4.0.0...v5.0.0) (2021-01-27)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### ⚠ BREAKING CHANGES
|
|
26
|
-
|
|
27
|
-
* Drop support for node <6 & bump dependencies
|
|
28
|
-
|
|
29
|
-
### Miscellaneous Chores
|
|
30
|
-
|
|
31
|
-
* Drop support for node <6 & bump dependencies ([896c0c0](https://github.com/gulpjs/glob-parent/commit/896c0c00b4e7362f60b96e7fc295ae929245255a))
|
|
32
|
-
|
|
33
|
-
## [4.0.0](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v4.0.0) (2021-01-27)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### ⚠ BREAKING CHANGES
|
|
37
|
-
|
|
38
|
-
* question marks are valid path characters on Windows so avoid flagging as a glob when alone
|
|
39
|
-
* Update is-glob dependency
|
|
40
|
-
|
|
41
|
-
### Features
|
|
42
|
-
|
|
43
|
-
* hoist regexps and strings for performance gains ([4a80667](https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e))
|
|
44
|
-
* question marks are valid path characters on Windows so avoid flagging as a glob when alone ([2a551dd](https://github.com/gulpjs/glob-parent/commit/2a551dd0dc3235e78bf3c94843d4107072d17841))
|
|
45
|
-
* Update is-glob dependency ([e41fcd8](https://github.com/gulpjs/glob-parent/commit/e41fcd895d1f7bc617dba45c9d935a7949b9c281))
|
|
46
|
-
|
|
47
|
-
## [3.1.0](https://github.com/gulpjs/glob-parent/compare/v3.0.1...v3.1.0) (2021-01-27)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Features
|
|
51
|
-
|
|
52
|
-
* allow basic win32 backslash use ([272afa5](https://github.com/gulpjs/glob-parent/commit/272afa5fd070fc0f796386a5993d4ee4a846988b))
|
|
53
|
-
* handle extglobs (parentheses) containing separators ([7db1bdb](https://github.com/gulpjs/glob-parent/commit/7db1bdb0756e55fd14619e8ce31aa31b17b117fd))
|
|
54
|
-
* new approach to braces/brackets handling ([8269bd8](https://github.com/gulpjs/glob-parent/commit/8269bd89290d99fac9395a354fb56fdcdb80f0be))
|
|
55
|
-
* pre-process braces/brackets sections ([9ef8a87](https://github.com/gulpjs/glob-parent/commit/9ef8a87f66b1a43d0591e7a8e4fc5a18415ee388))
|
|
56
|
-
* preserve escaped brace/bracket at end of string ([8cfb0ba](https://github.com/gulpjs/glob-parent/commit/8cfb0ba84202d51571340dcbaf61b79d16a26c76))
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Bug Fixes
|
|
60
|
-
|
|
61
|
-
* trailing escaped square brackets ([99ec9fe](https://github.com/gulpjs/glob-parent/commit/99ec9fecc60ee488ded20a94dd4f18b4f55c4ccf))
|
|
62
|
-
|
|
63
|
-
### [3.0.1](https://github.com/gulpjs/glob-parent/compare/v3.0.0...v3.0.1) (2021-01-27)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Features
|
|
67
|
-
|
|
68
|
-
* use path-dirname ponyfill ([cdbea5f](https://github.com/gulpjs/glob-parent/commit/cdbea5f32a58a54e001a75ddd7c0fccd4776aacc))
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Bug Fixes
|
|
72
|
-
|
|
73
|
-
* unescape glob-escaped dirnames on output ([598c533](https://github.com/gulpjs/glob-parent/commit/598c533bdf49c1428bc063aa9b8db40c5a86b030))
|
|
74
|
-
|
|
75
|
-
## [3.0.0](https://github.com/gulpjs/glob-parent/compare/v2.0.0...v3.0.0) (2021-01-27)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### ⚠ BREAKING CHANGES
|
|
79
|
-
|
|
80
|
-
* update is-glob dependency
|
|
81
|
-
|
|
82
|
-
### Features
|
|
83
|
-
|
|
84
|
-
* update is-glob dependency ([5c5f8ef](https://github.com/gulpjs/glob-parent/commit/5c5f8efcee362a8e7638cf8220666acd8784f6bd))
|
|
85
|
-
|
|
86
|
-
## [2.0.0](https://github.com/gulpjs/glob-parent/compare/v1.3.0...v2.0.0) (2021-01-27)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### Features
|
|
90
|
-
|
|
91
|
-
* move up to dirname regardless of glob characters ([f97fb83](https://github.com/gulpjs/glob-parent/commit/f97fb83be2e0a9fc8d3b760e789d2ecadd6aa0c2))
|
|
92
|
-
|
|
93
|
-
## [1.3.0](https://github.com/gulpjs/glob-parent/compare/v1.2.0...v1.3.0) (2021-01-27)
|
|
94
|
-
|
|
95
|
-
## [1.2.0](https://github.com/gulpjs/glob-parent/compare/v1.1.0...v1.2.0) (2021-01-27)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Reverts
|
|
99
|
-
|
|
100
|
-
* feat: make regex test strings smaller ([dc80fa9](https://github.com/gulpjs/glob-parent/commit/dc80fa9658dca20549cfeba44bbd37d5246fcce0))
|
|
101
|
-
|
|
102
|
-
## [1.1.0](https://github.com/gulpjs/glob-parent/compare/v1.0.0...v1.1.0) (2021-01-27)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### Features
|
|
106
|
-
|
|
107
|
-
* make regex test strings smaller ([cd83220](https://github.com/gulpjs/glob-parent/commit/cd832208638f45169f986d80fcf66e401f35d233))
|
|
108
|
-
|
|
109
|
-
## 1.0.0 (2021-01-27)
|
|
110
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015, 2019 Elan Shanker
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://gulpjs.com">
|
|
3
|
-
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
|
4
|
-
</a>
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
# glob-parent
|
|
8
|
-
|
|
9
|
-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
|
|
10
|
-
|
|
11
|
-
Extract the non-magic parent path from a glob string.
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var globParent = require('glob-parent');
|
|
17
|
-
|
|
18
|
-
globParent('path/to/*.js'); // 'path/to'
|
|
19
|
-
globParent('/root/path/to/*.js'); // '/root/path/to'
|
|
20
|
-
globParent('/*.js'); // '/'
|
|
21
|
-
globParent('*.js'); // '.'
|
|
22
|
-
globParent('**/*.js'); // '.'
|
|
23
|
-
globParent('path/{to,from}'); // 'path'
|
|
24
|
-
globParent('path/!(to|from)'); // 'path'
|
|
25
|
-
globParent('path/?(to|from)'); // 'path'
|
|
26
|
-
globParent('path/+(to|from)'); // 'path'
|
|
27
|
-
globParent('path/*(to|from)'); // 'path'
|
|
28
|
-
globParent('path/@(to|from)'); // 'path'
|
|
29
|
-
globParent('path/**/*'); // 'path'
|
|
30
|
-
|
|
31
|
-
// if provided a non-glob path, returns the nearest dir
|
|
32
|
-
globParent('path/foo/bar.js'); // 'path/foo'
|
|
33
|
-
globParent('path/foo/'); // 'path/foo'
|
|
34
|
-
globParent('path/foo'); // 'path' (see issue #3 for details)
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## API
|
|
38
|
-
|
|
39
|
-
### `globParent(maybeGlobString, [options])`
|
|
40
|
-
|
|
41
|
-
Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below.
|
|
42
|
-
|
|
43
|
-
#### options
|
|
44
|
-
|
|
45
|
-
```js
|
|
46
|
-
{
|
|
47
|
-
// Disables the automatic conversion of slashes for Windows
|
|
48
|
-
flipBackslashes: true
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Escaping
|
|
53
|
-
|
|
54
|
-
The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
|
|
55
|
-
|
|
56
|
-
- `?` (question mark) unless used as a path segment alone
|
|
57
|
-
- `*` (asterisk)
|
|
58
|
-
- `|` (pipe)
|
|
59
|
-
- `(` (opening parenthesis)
|
|
60
|
-
- `)` (closing parenthesis)
|
|
61
|
-
- `{` (opening curly brace)
|
|
62
|
-
- `}` (closing curly brace)
|
|
63
|
-
- `[` (opening bracket)
|
|
64
|
-
- `]` (closing bracket)
|
|
65
|
-
|
|
66
|
-
**Example**
|
|
67
|
-
|
|
68
|
-
```js
|
|
69
|
-
globParent('foo/[bar]/') // 'foo'
|
|
70
|
-
globParent('foo/\\[bar]/') // 'foo/[bar]'
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Limitations
|
|
74
|
-
|
|
75
|
-
### Braces & Brackets
|
|
76
|
-
This library attempts a quick and imperfect method of determining which path
|
|
77
|
-
parts have glob magic without fully parsing/lexing the pattern. There are some
|
|
78
|
-
advanced use cases that can trip it up, such as nested braces where the outer
|
|
79
|
-
pair is escaped and the inner one contains a path separator. If you find
|
|
80
|
-
yourself in the unlikely circumstance of being affected by this or need to
|
|
81
|
-
ensure higher-fidelity glob handling in your library, it is recommended that you
|
|
82
|
-
pre-process your input with [expand-braces] and/or [expand-brackets].
|
|
83
|
-
|
|
84
|
-
### Windows
|
|
85
|
-
Backslashes are not valid path separators for globs. If a path with backslashes
|
|
86
|
-
is provided anyway, for simple cases, glob-parent will replace the path
|
|
87
|
-
separator for you and return the non-glob parent path (now with
|
|
88
|
-
forward-slashes, which are still valid as Windows path separators).
|
|
89
|
-
|
|
90
|
-
This cannot be used in conjunction with escape characters.
|
|
91
|
-
|
|
92
|
-
```js
|
|
93
|
-
// BAD
|
|
94
|
-
globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'
|
|
95
|
-
|
|
96
|
-
// GOOD
|
|
97
|
-
globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
If you are using escape characters for a pattern without path parts (i.e.
|
|
101
|
-
relative to `cwd`), prefix with `./` to avoid confusing glob-parent.
|
|
102
|
-
|
|
103
|
-
```js
|
|
104
|
-
// BAD
|
|
105
|
-
globParent('foo \\[bar]') // 'foo '
|
|
106
|
-
globParent('foo \\[bar]*') // 'foo '
|
|
107
|
-
|
|
108
|
-
// GOOD
|
|
109
|
-
globParent('./foo \\[bar]') // 'foo [bar]'
|
|
110
|
-
globParent('./foo \\[bar]*') // '.'
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## License
|
|
114
|
-
|
|
115
|
-
ISC
|
|
116
|
-
|
|
117
|
-
[expand-braces]: https://github.com/jonschlinkert/expand-braces
|
|
118
|
-
[expand-brackets]: https://github.com/jonschlinkert/expand-brackets
|
|
119
|
-
|
|
120
|
-
[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg
|
|
121
|
-
[npm-url]: https://www.npmjs.com/package/glob-parent
|
|
122
|
-
[npm-image]: https://img.shields.io/npm/v/glob-parent.svg
|
|
123
|
-
|
|
124
|
-
[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master
|
|
125
|
-
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master
|
|
126
|
-
|
|
127
|
-
[travis-url]: https://travis-ci.org/gulpjs/glob-parent
|
|
128
|
-
[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci
|
|
129
|
-
|
|
130
|
-
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent
|
|
131
|
-
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor
|
|
132
|
-
|
|
133
|
-
[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent
|
|
134
|
-
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg
|
|
135
|
-
|
|
136
|
-
[gitter-url]: https://gitter.im/gulpjs/gulp
|
|
137
|
-
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var isGlob = require('is-glob');
|
|
4
|
-
var pathPosixDirname = require('path').posix.dirname;
|
|
5
|
-
var isWin32 = require('os').platform() === 'win32';
|
|
6
|
-
|
|
7
|
-
var slash = '/';
|
|
8
|
-
var backslash = /\\/g;
|
|
9
|
-
var enclosure = /[\{\[].*[\}\]]$/;
|
|
10
|
-
var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
|
|
11
|
-
var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param {string} str
|
|
15
|
-
* @param {Object} opts
|
|
16
|
-
* @param {boolean} [opts.flipBackslashes=true]
|
|
17
|
-
* @returns {string}
|
|
18
|
-
*/
|
|
19
|
-
module.exports = function globParent(str, opts) {
|
|
20
|
-
var options = Object.assign({ flipBackslashes: true }, opts);
|
|
21
|
-
|
|
22
|
-
// flip windows path separators
|
|
23
|
-
if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
|
|
24
|
-
str = str.replace(backslash, slash);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// special case for strings ending in enclosure containing path separator
|
|
28
|
-
if (enclosure.test(str)) {
|
|
29
|
-
str += slash;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// preserves full path in case of trailing path separator
|
|
33
|
-
str += 'a';
|
|
34
|
-
|
|
35
|
-
// remove path parts that are globby
|
|
36
|
-
do {
|
|
37
|
-
str = pathPosixDirname(str);
|
|
38
|
-
} while (isGlob(str) || globby.test(str));
|
|
39
|
-
|
|
40
|
-
// remove escape chars and return result
|
|
41
|
-
return str.replace(escaped, '$1');
|
|
42
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "glob-parent",
|
|
3
|
-
"version": "5.1.2",
|
|
4
|
-
"description": "Extract the non-magic parent path from a glob string.",
|
|
5
|
-
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Elan Shanker (https://github.com/es128)",
|
|
8
|
-
"Blaine Bublitz <blaine.bublitz@gmail.com>"
|
|
9
|
-
],
|
|
10
|
-
"repository": "gulpjs/glob-parent",
|
|
11
|
-
"license": "ISC",
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">= 6"
|
|
14
|
-
},
|
|
15
|
-
"main": "index.js",
|
|
16
|
-
"files": [
|
|
17
|
-
"LICENSE",
|
|
18
|
-
"index.js"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"lint": "eslint .",
|
|
22
|
-
"pretest": "npm run lint",
|
|
23
|
-
"test": "nyc mocha --async-only",
|
|
24
|
-
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
|
|
25
|
-
"coveralls": "nyc report --reporter=text-lcov | coveralls"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"is-glob": "^4.0.1"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"coveralls": "^3.0.11",
|
|
32
|
-
"eslint": "^2.13.1",
|
|
33
|
-
"eslint-config-gulp": "^3.0.1",
|
|
34
|
-
"expect": "^1.20.2",
|
|
35
|
-
"mocha": "^6.0.2",
|
|
36
|
-
"nyc": "^13.3.0"
|
|
37
|
-
},
|
|
38
|
-
"keywords": [
|
|
39
|
-
"glob",
|
|
40
|
-
"parent",
|
|
41
|
-
"strip",
|
|
42
|
-
"path",
|
|
43
|
-
"dirname",
|
|
44
|
-
"directory",
|
|
45
|
-
"base",
|
|
46
|
-
"wildcard"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
module.exports = (flag, argv) => {
|
|
3
|
-
argv = argv || process.argv;
|
|
4
|
-
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
|
5
|
-
const pos = argv.indexOf(prefix + flag);
|
|
6
|
-
const terminatorPos = argv.indexOf('--');
|
|
7
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
8
|
-
};
|