blockmine 1.0.0 → 1.0.1
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/README.md +6 -3
- package/backend/.env +7 -0
- package/backend/node_modules/.bin/blockminejs +16 -0
- package/backend/node_modules/.bin/blockminejs.cmd +17 -0
- package/backend/node_modules/.bin/blockminejs.ps1 +28 -0
- package/backend/node_modules/.bin/nodemon +16 -0
- package/backend/node_modules/.bin/nodemon.cmd +17 -0
- package/backend/node_modules/.bin/nodemon.ps1 +28 -0
- package/backend/node_modules/.bin/nodetouch +16 -0
- package/backend/node_modules/.bin/nodetouch.cmd +17 -0
- package/backend/node_modules/.bin/nodetouch.ps1 +28 -0
- package/backend/node_modules/.bin/prisma +16 -0
- package/backend/node_modules/.bin/prisma.cmd +17 -0
- package/backend/node_modules/.bin/prisma.ps1 +28 -0
- 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 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
- 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 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
- 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 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +1 -0
- 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 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/.package-lock.json +2521 -0
- package/backend/node_modules/.prisma/client/client.d.ts +1 -0
- package/backend/node_modules/.prisma/client/client.js +4 -0
- package/backend/node_modules/.prisma/client/default.d.ts +1 -0
- package/backend/node_modules/.prisma/client/default.js +1 -0
- package/backend/node_modules/.prisma/client/deno/edge.d.ts +9 -0
- package/backend/node_modules/.prisma/client/edge.d.ts +1 -0
- package/backend/node_modules/.prisma/client/edge.js +263 -0
- package/backend/node_modules/.prisma/client/index-browser.js +258 -0
- package/backend/node_modules/.prisma/client/index.d.ts +15548 -0
- package/backend/node_modules/.prisma/client/index.js +286 -0
- package/backend/node_modules/.prisma/client/package.json +97 -0
- 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 +136 -0
- package/backend/node_modules/.prisma/client/wasm.d.ts +1 -0
- package/backend/node_modules/.prisma/client/wasm.js +258 -0
- package/backend/node_modules/@prisma/debug/LICENSE +201 -0
- package/backend/node_modules/@prisma/debug/README.md +29 -0
- package/backend/node_modules/@prisma/debug/dist/index.d.ts +35 -0
- package/backend/node_modules/@prisma/debug/dist/index.js +236 -0
- package/backend/node_modules/@prisma/debug/dist/util.d.ts +2 -0
- package/backend/node_modules/@prisma/debug/dist/util.js +74 -0
- package/backend/node_modules/@prisma/debug/package.json +37 -0
- package/backend/node_modules/@prisma/engines/LICENSE +201 -0
- package/backend/node_modules/@prisma/engines/README.md +13 -0
- package/backend/node_modules/@prisma/engines/dist/index.d.ts +18 -0
- package/backend/node_modules/@prisma/engines/dist/index.js +113 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +1 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +2048 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +1 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +128 -0
- 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 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
- 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 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/package.json +41 -0
- 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 +28 -0
- package/backend/node_modules/@prisma/engines-version/LICENSE +201 -0
- package/backend/node_modules/@prisma/engines-version/README.md +8 -0
- package/backend/node_modules/@prisma/engines-version/index.d.ts +1 -0
- package/backend/node_modules/@prisma/engines-version/index.js +5 -0
- package/backend/node_modules/@prisma/engines-version/package.json +27 -0
- package/backend/node_modules/@prisma/fetch-engine/LICENSE +201 -0
- package/backend/node_modules/@prisma/fetch-engine/README.md +8 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +5 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +2385 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +161 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +66 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +49 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +2457 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +1404 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +2385 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +44 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +159 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +8153 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +70 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +2786 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +4232 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +28 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +27 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/download.js +41 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +6 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +30 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +14 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/env.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +3 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +5 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/index.js +49 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +2 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/log.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +371 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +11 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/package.json +59 -0
- package/backend/node_modules/@prisma/get-platform/LICENSE +201 -0
- package/backend/node_modules/@prisma/get-platform/README.md +16 -0
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +4 -0
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +25 -0
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +2 -0
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +26 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +67 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +34 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +62 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +53 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +367 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +41 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +14956 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +43 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +580 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +70 -0
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +25 -0
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +105 -0
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +38 -0
- package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +7 -0
- package/backend/node_modules/@prisma/get-platform/dist/index.js +43 -0
- package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/link.js +26 -0
- package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/logger.js +29 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +27 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +28 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +108 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +27 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +205 -0
- package/backend/node_modules/@prisma/get-platform/package.json +49 -0
- package/backend/node_modules/anymatch/LICENSE +15 -0
- package/backend/node_modules/anymatch/README.md +87 -0
- package/backend/node_modules/anymatch/index.d.ts +20 -0
- package/backend/node_modules/anymatch/index.js +104 -0
- package/backend/node_modules/anymatch/package.json +48 -0
- package/backend/node_modules/binary-extensions/binary-extensions.json +263 -0
- package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/backend/node_modules/binary-extensions/index.d.ts +14 -0
- package/backend/node_modules/binary-extensions/index.js +1 -0
- package/backend/node_modules/binary-extensions/license +10 -0
- package/backend/node_modules/binary-extensions/package.json +40 -0
- package/backend/node_modules/binary-extensions/readme.md +25 -0
- package/backend/node_modules/brace-expansion/LICENSE +21 -0
- package/backend/node_modules/brace-expansion/README.md +129 -0
- package/backend/node_modules/brace-expansion/index.js +201 -0
- package/backend/node_modules/brace-expansion/package.json +47 -0
- package/backend/node_modules/braces/LICENSE +21 -0
- package/backend/node_modules/braces/README.md +586 -0
- package/backend/node_modules/braces/index.js +170 -0
- package/backend/node_modules/braces/lib/compile.js +60 -0
- package/backend/node_modules/braces/lib/constants.js +57 -0
- package/backend/node_modules/braces/lib/expand.js +113 -0
- package/backend/node_modules/braces/lib/parse.js +331 -0
- package/backend/node_modules/braces/lib/stringify.js +32 -0
- package/backend/node_modules/braces/lib/utils.js +122 -0
- package/backend/node_modules/braces/package.json +77 -0
- package/backend/node_modules/chokidar/LICENSE +21 -0
- package/backend/node_modules/chokidar/README.md +308 -0
- package/backend/node_modules/chokidar/index.js +973 -0
- package/backend/node_modules/chokidar/lib/constants.js +66 -0
- package/backend/node_modules/chokidar/lib/fsevents-handler.js +526 -0
- package/backend/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/backend/node_modules/chokidar/package.json +70 -0
- package/backend/node_modules/chokidar/types/index.d.ts +192 -0
- package/backend/node_modules/concat-map/.travis.yml +4 -0
- package/backend/node_modules/concat-map/LICENSE +18 -0
- package/backend/node_modules/concat-map/README.markdown +62 -0
- package/backend/node_modules/concat-map/example/map.js +6 -0
- package/backend/node_modules/concat-map/index.js +13 -0
- package/backend/node_modules/concat-map/package.json +43 -0
- package/backend/node_modules/concat-map/test/map.js +39 -0
- package/backend/node_modules/debug/LICENSE +20 -0
- package/backend/node_modules/debug/README.md +481 -0
- package/backend/node_modules/debug/package.json +64 -0
- package/backend/node_modules/debug/src/browser.js +272 -0
- package/backend/node_modules/debug/src/common.js +292 -0
- package/backend/node_modules/debug/src/index.js +10 -0
- package/backend/node_modules/debug/src/node.js +263 -0
- package/backend/node_modules/fill-range/LICENSE +21 -0
- package/backend/node_modules/fill-range/README.md +237 -0
- package/backend/node_modules/fill-range/index.js +248 -0
- package/backend/node_modules/fill-range/package.json +74 -0
- package/backend/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/backend/node_modules/glob-parent/LICENSE +15 -0
- package/backend/node_modules/glob-parent/README.md +137 -0
- package/backend/node_modules/glob-parent/index.js +42 -0
- package/backend/node_modules/glob-parent/package.json +48 -0
- package/backend/node_modules/has-flag/index.js +8 -0
- package/backend/node_modules/has-flag/license +9 -0
- package/backend/node_modules/has-flag/package.json +44 -0
- package/backend/node_modules/has-flag/readme.md +70 -0
- package/backend/node_modules/ignore-by-default/LICENSE +14 -0
- package/backend/node_modules/ignore-by-default/README.md +26 -0
- package/backend/node_modules/ignore-by-default/index.js +12 -0
- package/backend/node_modules/ignore-by-default/package.json +34 -0
- package/backend/node_modules/is-binary-path/index.d.ts +17 -0
- package/backend/node_modules/is-binary-path/index.js +7 -0
- package/backend/node_modules/is-binary-path/license +9 -0
- package/backend/node_modules/is-binary-path/package.json +40 -0
- package/backend/node_modules/is-binary-path/readme.md +34 -0
- package/backend/node_modules/is-extglob/LICENSE +21 -0
- package/backend/node_modules/is-extglob/README.md +107 -0
- package/backend/node_modules/is-extglob/index.js +20 -0
- package/backend/node_modules/is-extglob/package.json +69 -0
- package/backend/node_modules/is-glob/LICENSE +21 -0
- package/backend/node_modules/is-glob/README.md +206 -0
- package/backend/node_modules/is-glob/index.js +150 -0
- package/backend/node_modules/is-glob/package.json +81 -0
- package/backend/node_modules/is-number/LICENSE +21 -0
- package/backend/node_modules/is-number/README.md +187 -0
- package/backend/node_modules/is-number/index.js +18 -0
- package/backend/node_modules/is-number/package.json +82 -0
- package/backend/node_modules/minimatch/LICENSE +15 -0
- package/backend/node_modules/minimatch/README.md +230 -0
- package/backend/node_modules/minimatch/minimatch.js +947 -0
- package/backend/node_modules/minimatch/package.json +33 -0
- package/backend/node_modules/ms/index.js +162 -0
- package/backend/node_modules/ms/license.md +21 -0
- package/backend/node_modules/ms/package.json +38 -0
- package/backend/node_modules/ms/readme.md +59 -0
- package/backend/node_modules/nodemon/.prettierrc.json +3 -0
- package/backend/node_modules/nodemon/LICENSE +21 -0
- package/backend/node_modules/nodemon/README.md +441 -0
- package/backend/node_modules/nodemon/bin/nodemon.js +16 -0
- package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/backend/node_modules/nodemon/doc/cli/authors.txt +8 -0
- package/backend/node_modules/nodemon/doc/cli/config.txt +44 -0
- package/backend/node_modules/nodemon/doc/cli/help.txt +29 -0
- package/backend/node_modules/nodemon/doc/cli/logo.txt +20 -0
- package/backend/node_modules/nodemon/doc/cli/options.txt +36 -0
- package/backend/node_modules/nodemon/doc/cli/topics.txt +8 -0
- package/backend/node_modules/nodemon/doc/cli/usage.txt +3 -0
- package/backend/node_modules/nodemon/doc/cli/whoami.txt +9 -0
- package/backend/node_modules/nodemon/index.d.ts +125 -0
- package/backend/node_modules/nodemon/jsconfig.json +7 -0
- package/backend/node_modules/nodemon/lib/cli/index.js +49 -0
- package/backend/node_modules/nodemon/lib/cli/parse.js +230 -0
- package/backend/node_modules/nodemon/lib/config/command.js +43 -0
- package/backend/node_modules/nodemon/lib/config/defaults.js +34 -0
- package/backend/node_modules/nodemon/lib/config/exec.js +234 -0
- package/backend/node_modules/nodemon/lib/config/index.js +93 -0
- package/backend/node_modules/nodemon/lib/config/load.js +225 -0
- package/backend/node_modules/nodemon/lib/help/index.js +27 -0
- package/backend/node_modules/nodemon/lib/index.js +1 -0
- package/backend/node_modules/nodemon/lib/monitor/index.js +4 -0
- package/backend/node_modules/nodemon/lib/monitor/match.js +287 -0
- package/backend/node_modules/nodemon/lib/monitor/run.js +562 -0
- package/backend/node_modules/nodemon/lib/monitor/signals.js +34 -0
- package/backend/node_modules/nodemon/lib/monitor/watch.js +244 -0
- package/backend/node_modules/nodemon/lib/nodemon.js +317 -0
- package/backend/node_modules/nodemon/lib/rules/add.js +89 -0
- package/backend/node_modules/nodemon/lib/rules/index.js +53 -0
- package/backend/node_modules/nodemon/lib/rules/parse.js +43 -0
- package/backend/node_modules/nodemon/lib/spawn.js +74 -0
- package/backend/node_modules/nodemon/lib/utils/bus.js +44 -0
- package/backend/node_modules/nodemon/lib/utils/clone.js +40 -0
- package/backend/node_modules/nodemon/lib/utils/colour.js +26 -0
- package/backend/node_modules/nodemon/lib/utils/index.js +103 -0
- package/backend/node_modules/nodemon/lib/utils/log.js +82 -0
- package/backend/node_modules/nodemon/lib/utils/merge.js +47 -0
- package/backend/node_modules/nodemon/lib/version.js +100 -0
- package/backend/node_modules/nodemon/package.json +75 -0
- package/backend/node_modules/picomatch/CHANGELOG.md +136 -0
- package/backend/node_modules/picomatch/LICENSE +21 -0
- package/backend/node_modules/picomatch/README.md +708 -0
- package/backend/node_modules/picomatch/index.js +3 -0
- package/backend/node_modules/picomatch/lib/constants.js +179 -0
- package/backend/node_modules/picomatch/lib/parse.js +1091 -0
- package/backend/node_modules/picomatch/lib/picomatch.js +342 -0
- package/backend/node_modules/picomatch/lib/scan.js +391 -0
- package/backend/node_modules/picomatch/lib/utils.js +64 -0
- package/backend/node_modules/picomatch/package.json +81 -0
- package/backend/node_modules/prisma/LICENSE +201 -0
- package/backend/node_modules/prisma/README.md +84 -0
- package/backend/node_modules/prisma/build/child.js +82915 -0
- package/backend/node_modules/prisma/build/index.js +2591 -0
- package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
- package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +5 -0
- package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +3 -0
- package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +11 -0
- package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +10 -0
- package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/index.js +1 -0
- 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 +4 -0
- package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +7 -0
- package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +5 -0
- package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +7 -0
- package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +8 -0
- package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +3 -0
- package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/vendor.js +385 -0
- package/backend/node_modules/prisma/build/public/favicon.svg +5 -0
- package/backend/node_modules/prisma/build/public/http/databrowser.js +1 -0
- package/backend/node_modules/prisma/build/public/http/splash.js +1 -0
- package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
- package/backend/node_modules/prisma/build/public/index.css +1 -0
- package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +21 -0
- package/backend/node_modules/prisma/build/public/pages/http/splash.html +21 -0
- package/backend/node_modules/prisma/build/xdg-open +1066 -0
- package/backend/node_modules/prisma/package.json +136 -0
- package/backend/node_modules/prisma/preinstall/index.js +7 -0
- package/backend/node_modules/prisma/prisma-client/README.md +27 -0
- package/backend/node_modules/prisma/prisma-client/default.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/default.js +3 -0
- package/backend/node_modules/prisma/prisma-client/edge.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/edge.js +4 -0
- package/backend/node_modules/prisma/prisma-client/extension.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/extension.js +4 -0
- package/backend/node_modules/prisma/prisma-client/generator-build/index.js +10351 -0
- package/backend/node_modules/prisma/prisma-client/index-browser.js +3 -0
- package/backend/node_modules/prisma/prisma-client/index.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/index.js +4 -0
- package/backend/node_modules/prisma/prisma-client/package.json +281 -0
- package/backend/node_modules/prisma/prisma-client/react-native.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/react-native.js +3 -0
- package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/runtime/binary.js +210 -0
- package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +31 -0
- package/backend/node_modules/prisma/prisma-client/runtime/edge.js +31 -0
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +365 -0
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +13 -0
- package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +3403 -0
- package/backend/node_modules/prisma/prisma-client/runtime/library.js +143 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +3403 -0
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +80 -0
- package/backend/node_modules/prisma/prisma-client/scripts/colors.js +176 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +9 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +110 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +65 -0
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +5 -0
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +410 -0
- package/backend/node_modules/prisma/prisma-client/sql.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/sql.js +4 -0
- package/backend/node_modules/prisma/prisma-client/sql.mjs +1 -0
- package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/prisma/scripts/preinstall-entry.js +10 -0
- package/backend/node_modules/pstree.remy/.travis.yml +8 -0
- package/backend/node_modules/pstree.remy/LICENSE +7 -0
- package/backend/node_modules/pstree.remy/README.md +26 -0
- package/backend/node_modules/pstree.remy/lib/index.js +37 -0
- package/backend/node_modules/pstree.remy/lib/tree.js +37 -0
- package/backend/node_modules/pstree.remy/lib/utils.js +53 -0
- package/backend/node_modules/pstree.remy/package.json +33 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/index.js +13 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/out1 +10 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/out2 +29 -0
- package/backend/node_modules/pstree.remy/tests/index.test.js +51 -0
- package/backend/node_modules/readdirp/LICENSE +21 -0
- package/backend/node_modules/readdirp/README.md +122 -0
- package/backend/node_modules/readdirp/index.d.ts +43 -0
- package/backend/node_modules/readdirp/index.js +287 -0
- package/backend/node_modules/readdirp/package.json +122 -0
- package/backend/node_modules/simple-update-notifier/LICENSE +21 -0
- package/backend/node_modules/simple-update-notifier/README.md +82 -0
- package/backend/node_modules/simple-update-notifier/build/index.d.ts +13 -0
- package/backend/node_modules/simple-update-notifier/build/index.js +210 -0
- package/backend/node_modules/simple-update-notifier/package.json +100 -0
- package/backend/node_modules/simple-update-notifier/src/borderedText.ts +12 -0
- package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +17 -0
- package/backend/node_modules/simple-update-notifier/src/cache.ts +44 -0
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +35 -0
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +29 -0
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +82 -0
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +40 -0
- package/backend/node_modules/simple-update-notifier/src/index.spec.ts +27 -0
- package/backend/node_modules/simple-update-notifier/src/index.ts +34 -0
- package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +12 -0
- package/backend/node_modules/simple-update-notifier/src/types.ts +8 -0
- package/backend/node_modules/supports-color/browser.js +5 -0
- package/backend/node_modules/supports-color/index.js +131 -0
- package/backend/node_modules/supports-color/license +9 -0
- package/backend/node_modules/supports-color/package.json +53 -0
- package/backend/node_modules/supports-color/readme.md +66 -0
- package/backend/node_modules/to-regex-range/LICENSE +21 -0
- package/backend/node_modules/to-regex-range/README.md +305 -0
- package/backend/node_modules/to-regex-range/index.js +288 -0
- package/backend/node_modules/to-regex-range/package.json +88 -0
- package/backend/node_modules/touch/LICENSE +15 -0
- package/backend/node_modules/touch/README.md +52 -0
- package/backend/node_modules/touch/bin/nodetouch.js +112 -0
- package/backend/node_modules/touch/index.js +224 -0
- package/backend/node_modules/touch/package.json +25 -0
- package/backend/node_modules/undefsafe/.github/workflows/release.yml +25 -0
- package/backend/node_modules/undefsafe/.jscsrc +13 -0
- package/backend/node_modules/undefsafe/.jshintrc +16 -0
- package/backend/node_modules/undefsafe/.travis.yml +18 -0
- package/backend/node_modules/undefsafe/LICENSE +22 -0
- package/backend/node_modules/undefsafe/README.md +63 -0
- package/backend/node_modules/undefsafe/example.js +14 -0
- package/backend/node_modules/undefsafe/lib/undefsafe.js +125 -0
- package/backend/node_modules/undefsafe/package.json +34 -0
- package/backend/package.json +1 -14
- package/backend/prisma/dev.db +0 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +59 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +23 -0
- package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/README.md +64 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/index.js +98 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/package.json +13 -0
- package/backend/storage/plugins/bot_1/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_1/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_1/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_1/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_1/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +35 -0
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +18 -0
- package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_2/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_2/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_2/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_3/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_3/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_3/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_3/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_3/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_4/fly-keksik/index.js +111 -0
- package/backend/storage/plugins/bot_4/fly-keksik/package.json +59 -0
- package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_4/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_4/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_4/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_5/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_5/parser-keksik/index.js +117 -0
- package/backend/storage/plugins/bot_5/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_6/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_6/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_6/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_6/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_6/parser-keksik/package.json +40 -0
- package/package.json +29 -4
- package/frontend/package.json +0 -65
- 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/tailwind.config.js +0 -0
- package/vite.config.js +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
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;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
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.
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
};
|