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,29 @@
|
|
|
1
|
+
cat: /proc/4087/stat: No such file or directory
|
|
2
|
+
cat: /proc/4088/stat: No such file or directory
|
|
3
|
+
1 (init) S 0 1 1 0 -1 4210944 9227 55994 29 319 7 5 68 16 20 0 1 0 1286281 33660928 855 18446744073709551615 1 1 0 0 0 0 0 4096 536962595 0 0 0 17 4 0 0 3 0 0 0 0 0 0 0 0 0 0
|
|
4
|
+
1032 (ntpd) S 1 1032 1032 0 -1 4211008 178 0 1 0 0 0 0 0 20 0 1 0 1287033 25743360 1058 18446744073709551615 1 1 0 0 0 0 0 4096 27207 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
5
|
+
126 (irqbalance) S 1 126 126 0 -1 1077952832 1217 0 0 0 1 6 0 0 20 0 1 0 1286749 20189184 647 18446744073709551615 1 1 0 0 0 0 0 0 3 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
6
|
+
181 (mysqld) S 1 181 181 0 -1 4210944 6399 0 46 0 8 6 0 0 20 0 22 0 1286761 748453888 14476 18446744073709551615 1 1 0 0 0 0 552967 4096 26345 0 0 0 17 4 0 0 10 0 0 0 0 0 0 0 0 0 0
|
|
7
|
+
194 (memcached) S 1 187 187 0 -1 4210944 252 0 4 0 0 0 0 0 20 0 6 0 1286766 333221888 648 18446744073709551615 1 1 0 0 0 0 0 4096 2 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
8
|
+
243 (dbus-daemon) S 1 243 243 0 -1 4211008 67 0 0 0 0 0 0 0 20 0 1 0 1286779 40087552 598 18446744073709551615 1 1 0 0 0 0 0 0 16385 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
9
|
+
254 (rsyslogd) S 1 254 254 0 -1 4211008 107 0 0 0 2 2 0 0 20 0 3 0 1286782 186601472 696 18446744073709551615 1 1 0 0 0 0 0 16781830 1133601 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
10
|
+
265 (systemd-logind) S 1 265 265 0 -1 4210944 276 0 2 0 0 0 0 0 20 0 1 0 1286786 35880960 720 18446744073709551615 1 1 0 0 0 0 0 0 0 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
11
|
+
333 (postgres) S 1 303 303 0 -1 4210688 3169 3466 15 18 0 1 1 1 20 0 1 0 1286817 156073984 5002 18446744073709551615 1 1 0 0 0 0 0 19935232 84487 0 0 0 17 5 0 0 1 0 0 0 0 0 0 0 0 0 0
|
|
12
|
+
359 (postgres) S 333 359 359 0 -1 4210752 90 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16805888 2567 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
13
|
+
360 (postgres) S 333 360 360 0 -1 4210752 119 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16791554 16901 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
14
|
+
361 (postgres) S 333 361 361 0 -1 4210752 87 0 0 0 0 0 0 0 20 0 1 0 1286822 156073984 827 18446744073709551615 1 1 0 0 0 0 0 16791552 16903 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
15
|
+
362 (postgres) S 333 362 362 0 -1 4210752 292 0 3 0 0 0 0 0 20 0 1 0 1286822 156930048 1373 18446744073709551615 1 1 0 0 0 0 0 19927040 27271 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
16
|
+
363 (postgres) S 333 363 363 0 -1 4210752 82 0 0 0 0 0 0 0 20 0 1 0 1286822 115924992 887 18446744073709551615 1 1 0 0 0 0 0 16808450 5 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
17
|
+
4050 (npm) S 50 50 50 34817 50 4210688 5109 0 0 0 36 3 0 0 20 0 10 0 1292968 738025472 10051 18446744073709551615 4194304 33165900 140723623956256 0 0 0 0 4096 134300162 0 0 0 17 4 0 0 0 0 0 35263056 35370992 48369664 140723623964237 140723623964294 140723623964294 140723623968712 0
|
|
18
|
+
4060 (sh) S 4050 50 50 34817 50 4210688 121 0 0 0 0 0 0 0 20 0 1 0 1293007 4579328 174 18446744073709551615 94347643936768 94347644049516 140735136055088 0 0 0 0 0 65538 1 0 0 17 5 0 0 0 0 0 94347646148008 94347646153216 94347660038144 140735136063095 140735136063129 140735136063129 140735136071664 0
|
|
19
|
+
4061 (node) S 4060 50 50 34817 50 4210688 6501 0 0 0 42 2 0 0 20 0 6 0 1293008 705769472 10211 18446744073709551615 4194304 33165900 140730532686288 0 0 0 0 4096 2072111671 0 0 0 17 5 0 0 0 0 0 35263056 35370992 45867008 140730532695579 140730532695657 140730532695657 140730532704200 0
|
|
20
|
+
4067 (node) S 4061 50 50 34817 50 4210688 6746 221 0 0 38 3 0 0 20 0 10 0 1293051 738910208 10527 18446744073709551615 4194304 33165900 140724824971632 0 0 0 0 4096 2072111671 0 0 0 17 4 0 0 0 0 0 35263056 35370992 68595712 140724824980995 140724824981063 140724824981063 140724824989640 0
|
|
21
|
+
4079 (sh) S 4067 50 50 34817 50 4210688 118 0 0 0 0 0 0 0 20 0 1 0 1293092 4579328 194 18446744073709551615 94573702131712 94573702244460 140724712357120 0 0 0 0 0 65538 1 0 0 17 4 0 0 0 0 0 94573704342952 94573704348160 94573718511616 140724712361487 140724712361583 140724712361583 140724712370160 0
|
|
22
|
+
4080 (node) S 4079 50 50 34817 50 4210688 2428 0 0 0 8 1 0 0 20 0 6 0 1293093 693059584 7251 18446744073709551615 4194304 33165900 140726023392816 0 0 0 0 4096 134234626 0 0 0 17 5 0 0 0 0 0 35263056 35370992 55226368 140726023396847 140726023396935 140726023396935 140726023405512 0
|
|
23
|
+
4086 (sh) S 4067 50 50 34817 50 4210688 131 244 0 0 0 0 0 0 20 0 1 0 1293143 4579328 200 18446744073709551615 94347550273536 94347550386284 140737219399136 0 0 0 0 0 65538 1 0 0 17 5 0 0 0 0 0 94347552484776 94347552489984 94347554299904 140737219403308 140737219403375 140737219403375 140737219411952 0
|
|
24
|
+
4089 (xargs) S 4086 50 50 34817 50 4210688 333 1924 0 0 0 0 0 0 20 0 1 0 1293143 17600512 477 18446744073709551615 4194304 4232732 140721633759248 0 0 0 0 0 0 1 0 0 17 5 0 0 0 0 0 6331920 6332980 32182272 140721633762891 140721633762920 140721633762920 140721633771497 0
|
|
25
|
+
50 (bash) S 0 50 50 34817 50 4210944 43914 1032463 9 705 44 21 4213 818 20 0 1 0 1286336 42266624 3599 18446744073709551615 4194304 5173404 140732749083280 0 0 0 65536 4 1132560123 1 0 0 17 4 0 0 410 0 0 7273968 7310504 21196800 140732749086490 140732749086517 140732749086517 140732749086702 0
|
|
26
|
+
79 (acpid) S 1 79 79 0 -1 4210752 46 0 0 0 0 0 0 0 20 0 1 0 1286717 4493312 407 18446744073709551615 1 1 0 0 0 0 0 4096 16391 0 0 0 17 5 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
27
|
+
83 (sshd) S 1 83 83 0 -1 4210944 354 0 27 0 0 0 0 0 20 0 1 0 1286718 62873600 1290 18446744073709551615 1 1 0 0 0 0 0 4096 81925 0 0 0 17 4 0 0 30 0 0 0 0 0 0 0 0 0 0
|
|
28
|
+
94 (cron) S 1 94 94 0 -1 1077952576 103 449 0 1 0 0 0 0 20 0 1 0 1286743 24240128 559 18446744073709551615 1 1 0 0 0 0 0 0 65537 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
29
|
+
95 (atd) S 1 95 95 0 -1 1077952576 28 0 0 0 0 0 0 0 20 0 1 0 1286743 19615744 41 18446744073709551615 1 1 0 0 0 0 0 0 81923 0 0 0 17 4 0 0 0 0 0 0 0 0 0 0 0 0 0
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const tap = require('tap');
|
|
2
|
+
const test = tap.test;
|
|
3
|
+
const readFile = require('fs').readFileSync;
|
|
4
|
+
const spawn = require('child_process').spawn;
|
|
5
|
+
const pstree = require('../');
|
|
6
|
+
const { tree, pidsForTree, getStat } = require('../lib/utils');
|
|
7
|
+
|
|
8
|
+
if (process.platform !== 'darwin') {
|
|
9
|
+
test('reads from /proc', async (t) => {
|
|
10
|
+
const ps = await getStat();
|
|
11
|
+
t.ok(ps.split('\n').length > 1);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
test('tree for live env', async (t) => {
|
|
16
|
+
const pid = 4079;
|
|
17
|
+
const fixture = readFile(__dirname + '/fixtures/out2', 'utf8');
|
|
18
|
+
const ps = await tree(fixture);
|
|
19
|
+
t.deepEqual(
|
|
20
|
+
pidsForTree(ps, pid).map((_) => _.PID),
|
|
21
|
+
['4080']
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
function testTree(t, runCallCount) {
|
|
26
|
+
const sub = spawn('node', [`${__dirname}/fixtures/index.js`, runCallCount], {
|
|
27
|
+
stdio: 'pipe',
|
|
28
|
+
});
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
const pid = sub.pid;
|
|
31
|
+
|
|
32
|
+
pstree(pid, (error, pids) => {
|
|
33
|
+
pids.concat([pid]).forEach((p) => {
|
|
34
|
+
spawn('kill', ['-s', 'SIGTERM', p]);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// the fixture launches `sh` which launches node which is why we
|
|
38
|
+
// are looking for two processes.
|
|
39
|
+
// Important: IDKW but MacOS seems to skip the `sh` process. no idea.
|
|
40
|
+
t.equal(pids.length, runCallCount * 2);
|
|
41
|
+
t.end();
|
|
42
|
+
});
|
|
43
|
+
}, 1000);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
test('can read full process tree', (t) => {
|
|
47
|
+
testTree(t, 1);
|
|
48
|
+
});
|
|
49
|
+
test('can read full process tree with multiple processes', (t) => {
|
|
50
|
+
testTree(t, 2);
|
|
51
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# readdirp [](https://github.com/paulmillr/readdirp)
|
|
2
|
+
|
|
3
|
+
Recursive version of [fs.readdir](https://nodejs.org/api/fs.html#fs_fs_readdir_path_options_callback). Exposes a **stream API** and a **promise API**.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm install readdirp
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```javascript
|
|
11
|
+
const readdirp = require('readdirp');
|
|
12
|
+
|
|
13
|
+
// Use streams to achieve small RAM & CPU footprint.
|
|
14
|
+
// 1) Streams example with for-await.
|
|
15
|
+
for await (const entry of readdirp('.')) {
|
|
16
|
+
const {path} = entry;
|
|
17
|
+
console.log(`${JSON.stringify({path})}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// 2) Streams example, non for-await.
|
|
21
|
+
// Print out all JS files along with their size within the current folder & subfolders.
|
|
22
|
+
readdirp('.', {fileFilter: '*.js', alwaysStat: true})
|
|
23
|
+
.on('data', (entry) => {
|
|
24
|
+
const {path, stats: {size}} = entry;
|
|
25
|
+
console.log(`${JSON.stringify({path, size})}`);
|
|
26
|
+
})
|
|
27
|
+
// Optionally call stream.destroy() in `warn()` in order to abort and cause 'close' to be emitted
|
|
28
|
+
.on('warn', error => console.error('non-fatal error', error))
|
|
29
|
+
.on('error', error => console.error('fatal error', error))
|
|
30
|
+
.on('end', () => console.log('done'));
|
|
31
|
+
|
|
32
|
+
// 3) Promise example. More RAM and CPU than streams / for-await.
|
|
33
|
+
const files = await readdirp.promise('.');
|
|
34
|
+
console.log(files.map(file => file.path));
|
|
35
|
+
|
|
36
|
+
// Other options.
|
|
37
|
+
readdirp('test', {
|
|
38
|
+
fileFilter: '*.js',
|
|
39
|
+
directoryFilter: ['!.git', '!*modules']
|
|
40
|
+
// directoryFilter: (di) => di.basename.length === 9
|
|
41
|
+
type: 'files_directories',
|
|
42
|
+
depth: 1
|
|
43
|
+
});
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
For more examples, check out `examples` directory.
|
|
47
|
+
|
|
48
|
+
## API
|
|
49
|
+
|
|
50
|
+
`const stream = readdirp(root[, options])` — **Stream API**
|
|
51
|
+
|
|
52
|
+
- Reads given root recursively and returns a `stream` of [entry infos](#entryinfo)
|
|
53
|
+
- Optionally can be used like `for await (const entry of stream)` with node.js 10+ (`asyncIterator`).
|
|
54
|
+
- `on('data', (entry) => {})` [entry info](#entryinfo) for every file / dir.
|
|
55
|
+
- `on('warn', (error) => {})` non-fatal `Error` that prevents a file / dir from being processed. Example: inaccessible to the user.
|
|
56
|
+
- `on('error', (error) => {})` fatal `Error` which also ends the stream. Example: illegal options where passed.
|
|
57
|
+
- `on('end')` — we are done. Called when all entries were found and no more will be emitted.
|
|
58
|
+
- `on('close')` — stream is destroyed via `stream.destroy()`.
|
|
59
|
+
Could be useful if you want to manually abort even on a non fatal error.
|
|
60
|
+
At that point the stream is no longer `readable` and no more entries, warning or errors are emitted
|
|
61
|
+
- To learn more about streams, consult the very detailed [nodejs streams documentation](https://nodejs.org/api/stream.html)
|
|
62
|
+
or the [stream-handbook](https://github.com/substack/stream-handbook)
|
|
63
|
+
|
|
64
|
+
`const entries = await readdirp.promise(root[, options])` — **Promise API**. Returns a list of [entry infos](#entryinfo).
|
|
65
|
+
|
|
66
|
+
First argument is awalys `root`, path in which to start reading and recursing into subdirectories.
|
|
67
|
+
|
|
68
|
+
### options
|
|
69
|
+
|
|
70
|
+
- `fileFilter: ["*.js"]`: filter to include or exclude files. A `Function`, Glob string or Array of glob strings.
|
|
71
|
+
- **Function**: a function that takes an entry info as a parameter and returns true to include or false to exclude the entry
|
|
72
|
+
- **Glob string**: a string (e.g., `*.js`) which is matched using [picomatch](https://github.com/micromatch/picomatch), so go there for more
|
|
73
|
+
information. Globstars (`**`) are not supported since specifying a recursive pattern for an already recursive function doesn't make sense. Negated globs (as explained in the minimatch documentation) are allowed, e.g., `!*.txt` matches everything but text files.
|
|
74
|
+
- **Array of glob strings**: either need to be all inclusive or all exclusive (negated) patterns otherwise an error is thrown.
|
|
75
|
+
`['*.json', '*.js']` includes all JavaScript and Json files.
|
|
76
|
+
`['!.git', '!node_modules']` includes all directories except the '.git' and 'node_modules'.
|
|
77
|
+
- Directories that do not pass a filter will not be recursed into.
|
|
78
|
+
- `directoryFilter: ['!.git']`: filter to include/exclude directories found and to recurse into. Directories that do not pass a filter will not be recursed into.
|
|
79
|
+
- `depth: 5`: depth at which to stop recursing even if more subdirectories are found
|
|
80
|
+
- `type: 'files'`: determines if data events on the stream should be emitted for `'files'` (default), `'directories'`, `'files_directories'`, or `'all'`. Setting to `'all'` will also include entries for other types of file descriptors like character devices, unix sockets and named pipes.
|
|
81
|
+
- `alwaysStat: false`: always return `stats` property for every file. Default is `false`, readdirp will return `Dirent` entries. Setting it to `true` can double readdir execution time - use it only when you need file `size`, `mtime` etc. Cannot be enabled on node <10.10.0.
|
|
82
|
+
- `lstat: false`: include symlink entries in the stream along with files. When `true`, `fs.lstat` would be used instead of `fs.stat`
|
|
83
|
+
|
|
84
|
+
### `EntryInfo`
|
|
85
|
+
|
|
86
|
+
Has the following properties:
|
|
87
|
+
|
|
88
|
+
- `path: 'assets/javascripts/react.js'`: path to the file/directory (relative to given root)
|
|
89
|
+
- `fullPath: '/Users/dev/projects/app/assets/javascripts/react.js'`: full path to the file/directory found
|
|
90
|
+
- `basename: 'react.js'`: name of the file/directory
|
|
91
|
+
- `dirent: fs.Dirent`: built-in [dir entry object](https://nodejs.org/api/fs.html#fs_class_fs_dirent) - only with `alwaysStat: false`
|
|
92
|
+
- `stats: fs.Stats`: built in [stat object](https://nodejs.org/api/fs.html#fs_class_fs_stats) - only with `alwaysStat: true`
|
|
93
|
+
|
|
94
|
+
## Changelog
|
|
95
|
+
|
|
96
|
+
- 3.5 (Oct 13, 2020) disallows recursive directory-based symlinks.
|
|
97
|
+
Before, it could have entered infinite loop.
|
|
98
|
+
- 3.4 (Mar 19, 2020) adds support for directory-based symlinks.
|
|
99
|
+
- 3.3 (Dec 6, 2019) stabilizes RAM consumption and enables perf management with `highWaterMark` option. Fixes race conditions related to `for-await` looping.
|
|
100
|
+
- 3.2 (Oct 14, 2019) improves performance by 250% and makes streams implementation more idiomatic.
|
|
101
|
+
- 3.1 (Jul 7, 2019) brings `bigint` support to `stat` output on Windows. This is backwards-incompatible for some cases. Be careful. It you use it incorrectly, you'll see "TypeError: Cannot mix BigInt and other types, use explicit conversions".
|
|
102
|
+
- 3.0 brings huge performance improvements and stream backpressure support.
|
|
103
|
+
- Upgrading 2.x to 3.x:
|
|
104
|
+
- Signature changed from `readdirp(options)` to `readdirp(root, options)`
|
|
105
|
+
- Replaced callback API with promise API.
|
|
106
|
+
- Renamed `entryType` option to `type`
|
|
107
|
+
- Renamed `entryType: 'both'` to `'files_directories'`
|
|
108
|
+
- `EntryInfo`
|
|
109
|
+
- Renamed `stat` to `stats`
|
|
110
|
+
- Emitted only when `alwaysStat: true`
|
|
111
|
+
- `dirent` is emitted instead of `stats` by default with `alwaysStat: false`
|
|
112
|
+
- Renamed `name` to `basename`
|
|
113
|
+
- Removed `parentDir` and `fullParentDir` properties
|
|
114
|
+
- Supported node.js versions:
|
|
115
|
+
- 3.x: node 8+
|
|
116
|
+
- 2.x: node 0.6+
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (<https://paulmillr.com>)
|
|
121
|
+
|
|
122
|
+
MIT License, see [LICENSE](LICENSE) file.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// TypeScript Version: 3.2
|
|
2
|
+
|
|
3
|
+
/// <reference types="node" lib="esnext" />
|
|
4
|
+
|
|
5
|
+
import * as fs from 'fs';
|
|
6
|
+
import { Readable } from 'stream';
|
|
7
|
+
|
|
8
|
+
declare namespace readdir {
|
|
9
|
+
interface EntryInfo {
|
|
10
|
+
path: string;
|
|
11
|
+
fullPath: string;
|
|
12
|
+
basename: string;
|
|
13
|
+
stats?: fs.Stats;
|
|
14
|
+
dirent?: fs.Dirent;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ReaddirpOptions {
|
|
18
|
+
root?: string;
|
|
19
|
+
fileFilter?: string | string[] | ((entry: EntryInfo) => boolean);
|
|
20
|
+
directoryFilter?: string | string[] | ((entry: EntryInfo) => boolean);
|
|
21
|
+
type?: 'files' | 'directories' | 'files_directories' | 'all';
|
|
22
|
+
lstat?: boolean;
|
|
23
|
+
depth?: number;
|
|
24
|
+
alwaysStat?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface ReaddirpStream extends Readable, AsyncIterable<EntryInfo> {
|
|
28
|
+
read(): EntryInfo;
|
|
29
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<EntryInfo>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function promise(
|
|
33
|
+
root: string,
|
|
34
|
+
options?: ReaddirpOptions
|
|
35
|
+
): Promise<EntryInfo[]>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare function readdir(
|
|
39
|
+
root: string,
|
|
40
|
+
options?: readdir.ReaddirpOptions
|
|
41
|
+
): readdir.ReaddirpStream;
|
|
42
|
+
|
|
43
|
+
export = readdir;
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const { Readable } = require('stream');
|
|
5
|
+
const sysPath = require('path');
|
|
6
|
+
const { promisify } = require('util');
|
|
7
|
+
const picomatch = require('picomatch');
|
|
8
|
+
|
|
9
|
+
const readdir = promisify(fs.readdir);
|
|
10
|
+
const stat = promisify(fs.stat);
|
|
11
|
+
const lstat = promisify(fs.lstat);
|
|
12
|
+
const realpath = promisify(fs.realpath);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {Object} EntryInfo
|
|
16
|
+
* @property {String} path
|
|
17
|
+
* @property {String} fullPath
|
|
18
|
+
* @property {fs.Stats=} stats
|
|
19
|
+
* @property {fs.Dirent=} dirent
|
|
20
|
+
* @property {String} basename
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const BANG = '!';
|
|
24
|
+
const RECURSIVE_ERROR_CODE = 'READDIRP_RECURSIVE_ERROR';
|
|
25
|
+
const NORMAL_FLOW_ERRORS = new Set(['ENOENT', 'EPERM', 'EACCES', 'ELOOP', RECURSIVE_ERROR_CODE]);
|
|
26
|
+
const FILE_TYPE = 'files';
|
|
27
|
+
const DIR_TYPE = 'directories';
|
|
28
|
+
const FILE_DIR_TYPE = 'files_directories';
|
|
29
|
+
const EVERYTHING_TYPE = 'all';
|
|
30
|
+
const ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE];
|
|
31
|
+
|
|
32
|
+
const isNormalFlowError = error => NORMAL_FLOW_ERRORS.has(error.code);
|
|
33
|
+
const [maj, min] = process.versions.node.split('.').slice(0, 2).map(n => Number.parseInt(n, 10));
|
|
34
|
+
const wantBigintFsStats = process.platform === 'win32' && (maj > 10 || (maj === 10 && min >= 5));
|
|
35
|
+
|
|
36
|
+
const normalizeFilter = filter => {
|
|
37
|
+
if (filter === undefined) return;
|
|
38
|
+
if (typeof filter === 'function') return filter;
|
|
39
|
+
|
|
40
|
+
if (typeof filter === 'string') {
|
|
41
|
+
const glob = picomatch(filter.trim());
|
|
42
|
+
return entry => glob(entry.basename);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (Array.isArray(filter)) {
|
|
46
|
+
const positive = [];
|
|
47
|
+
const negative = [];
|
|
48
|
+
for (const item of filter) {
|
|
49
|
+
const trimmed = item.trim();
|
|
50
|
+
if (trimmed.charAt(0) === BANG) {
|
|
51
|
+
negative.push(picomatch(trimmed.slice(1)));
|
|
52
|
+
} else {
|
|
53
|
+
positive.push(picomatch(trimmed));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (negative.length > 0) {
|
|
58
|
+
if (positive.length > 0) {
|
|
59
|
+
return entry =>
|
|
60
|
+
positive.some(f => f(entry.basename)) && !negative.some(f => f(entry.basename));
|
|
61
|
+
}
|
|
62
|
+
return entry => !negative.some(f => f(entry.basename));
|
|
63
|
+
}
|
|
64
|
+
return entry => positive.some(f => f(entry.basename));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
class ReaddirpStream extends Readable {
|
|
69
|
+
static get defaultOptions() {
|
|
70
|
+
return {
|
|
71
|
+
root: '.',
|
|
72
|
+
/* eslint-disable no-unused-vars */
|
|
73
|
+
fileFilter: (path) => true,
|
|
74
|
+
directoryFilter: (path) => true,
|
|
75
|
+
/* eslint-enable no-unused-vars */
|
|
76
|
+
type: FILE_TYPE,
|
|
77
|
+
lstat: false,
|
|
78
|
+
depth: 2147483648,
|
|
79
|
+
alwaysStat: false
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(options = {}) {
|
|
84
|
+
super({
|
|
85
|
+
objectMode: true,
|
|
86
|
+
autoDestroy: true,
|
|
87
|
+
highWaterMark: options.highWaterMark || 4096
|
|
88
|
+
});
|
|
89
|
+
const opts = { ...ReaddirpStream.defaultOptions, ...options };
|
|
90
|
+
const { root, type } = opts;
|
|
91
|
+
|
|
92
|
+
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
93
|
+
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
94
|
+
|
|
95
|
+
const statMethod = opts.lstat ? lstat : stat;
|
|
96
|
+
// Use bigint stats if it's windows and stat() supports options (node 10+).
|
|
97
|
+
if (wantBigintFsStats) {
|
|
98
|
+
this._stat = path => statMethod(path, { bigint: true });
|
|
99
|
+
} else {
|
|
100
|
+
this._stat = statMethod;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
this._maxDepth = opts.depth;
|
|
104
|
+
this._wantsDir = [DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
|
|
105
|
+
this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
|
|
106
|
+
this._wantsEverything = type === EVERYTHING_TYPE;
|
|
107
|
+
this._root = sysPath.resolve(root);
|
|
108
|
+
this._isDirent = ('Dirent' in fs) && !opts.alwaysStat;
|
|
109
|
+
this._statsProp = this._isDirent ? 'dirent' : 'stats';
|
|
110
|
+
this._rdOptions = { encoding: 'utf8', withFileTypes: this._isDirent };
|
|
111
|
+
|
|
112
|
+
// Launch stream with one parent, the root dir.
|
|
113
|
+
this.parents = [this._exploreDir(root, 1)];
|
|
114
|
+
this.reading = false;
|
|
115
|
+
this.parent = undefined;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
async _read(batch) {
|
|
119
|
+
if (this.reading) return;
|
|
120
|
+
this.reading = true;
|
|
121
|
+
|
|
122
|
+
try {
|
|
123
|
+
while (!this.destroyed && batch > 0) {
|
|
124
|
+
const { path, depth, files = [] } = this.parent || {};
|
|
125
|
+
|
|
126
|
+
if (files.length > 0) {
|
|
127
|
+
const slice = files.splice(0, batch).map(dirent => this._formatEntry(dirent, path));
|
|
128
|
+
for (const entry of await Promise.all(slice)) {
|
|
129
|
+
if (this.destroyed) return;
|
|
130
|
+
|
|
131
|
+
const entryType = await this._getEntryType(entry);
|
|
132
|
+
if (entryType === 'directory' && this._directoryFilter(entry)) {
|
|
133
|
+
if (depth <= this._maxDepth) {
|
|
134
|
+
this.parents.push(this._exploreDir(entry.fullPath, depth + 1));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (this._wantsDir) {
|
|
138
|
+
this.push(entry);
|
|
139
|
+
batch--;
|
|
140
|
+
}
|
|
141
|
+
} else if ((entryType === 'file' || this._includeAsFile(entry)) && this._fileFilter(entry)) {
|
|
142
|
+
if (this._wantsFile) {
|
|
143
|
+
this.push(entry);
|
|
144
|
+
batch--;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
const parent = this.parents.pop();
|
|
150
|
+
if (!parent) {
|
|
151
|
+
this.push(null);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
this.parent = await parent;
|
|
155
|
+
if (this.destroyed) return;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
} catch (error) {
|
|
159
|
+
this.destroy(error);
|
|
160
|
+
} finally {
|
|
161
|
+
this.reading = false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
async _exploreDir(path, depth) {
|
|
166
|
+
let files;
|
|
167
|
+
try {
|
|
168
|
+
files = await readdir(path, this._rdOptions);
|
|
169
|
+
} catch (error) {
|
|
170
|
+
this._onError(error);
|
|
171
|
+
}
|
|
172
|
+
return { files, depth, path };
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
async _formatEntry(dirent, path) {
|
|
176
|
+
let entry;
|
|
177
|
+
try {
|
|
178
|
+
const basename = this._isDirent ? dirent.name : dirent;
|
|
179
|
+
const fullPath = sysPath.resolve(sysPath.join(path, basename));
|
|
180
|
+
entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename };
|
|
181
|
+
entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
|
|
182
|
+
} catch (err) {
|
|
183
|
+
this._onError(err);
|
|
184
|
+
}
|
|
185
|
+
return entry;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
_onError(err) {
|
|
189
|
+
if (isNormalFlowError(err) && !this.destroyed) {
|
|
190
|
+
this.emit('warn', err);
|
|
191
|
+
} else {
|
|
192
|
+
this.destroy(err);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
async _getEntryType(entry) {
|
|
197
|
+
// entry may be undefined, because a warning or an error were emitted
|
|
198
|
+
// and the statsProp is undefined
|
|
199
|
+
const stats = entry && entry[this._statsProp];
|
|
200
|
+
if (!stats) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (stats.isFile()) {
|
|
204
|
+
return 'file';
|
|
205
|
+
}
|
|
206
|
+
if (stats.isDirectory()) {
|
|
207
|
+
return 'directory';
|
|
208
|
+
}
|
|
209
|
+
if (stats && stats.isSymbolicLink()) {
|
|
210
|
+
const full = entry.fullPath;
|
|
211
|
+
try {
|
|
212
|
+
const entryRealPath = await realpath(full);
|
|
213
|
+
const entryRealPathStats = await lstat(entryRealPath);
|
|
214
|
+
if (entryRealPathStats.isFile()) {
|
|
215
|
+
return 'file';
|
|
216
|
+
}
|
|
217
|
+
if (entryRealPathStats.isDirectory()) {
|
|
218
|
+
const len = entryRealPath.length;
|
|
219
|
+
if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) {
|
|
220
|
+
const recursiveError = new Error(
|
|
221
|
+
`Circular symlink detected: "${full}" points to "${entryRealPath}"`
|
|
222
|
+
);
|
|
223
|
+
recursiveError.code = RECURSIVE_ERROR_CODE;
|
|
224
|
+
return this._onError(recursiveError);
|
|
225
|
+
}
|
|
226
|
+
return 'directory';
|
|
227
|
+
}
|
|
228
|
+
} catch (error) {
|
|
229
|
+
this._onError(error);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
_includeAsFile(entry) {
|
|
235
|
+
const stats = entry && entry[this._statsProp];
|
|
236
|
+
|
|
237
|
+
return stats && this._wantsEverything && !stats.isDirectory();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @typedef {Object} ReaddirpArguments
|
|
243
|
+
* @property {Function=} fileFilter
|
|
244
|
+
* @property {Function=} directoryFilter
|
|
245
|
+
* @property {String=} type
|
|
246
|
+
* @property {Number=} depth
|
|
247
|
+
* @property {String=} root
|
|
248
|
+
* @property {Boolean=} lstat
|
|
249
|
+
* @property {Boolean=} bigint
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Main function which ends up calling readdirRec and reads all files and directories in given root recursively.
|
|
254
|
+
* @param {String} root Root directory
|
|
255
|
+
* @param {ReaddirpArguments=} options Options to specify root (start directory), filters and recursion depth
|
|
256
|
+
*/
|
|
257
|
+
const readdirp = (root, options = {}) => {
|
|
258
|
+
let type = options.entryType || options.type;
|
|
259
|
+
if (type === 'both') type = FILE_DIR_TYPE; // backwards-compatibility
|
|
260
|
+
if (type) options.type = type;
|
|
261
|
+
if (!root) {
|
|
262
|
+
throw new Error('readdirp: root argument is required. Usage: readdirp(root, options)');
|
|
263
|
+
} else if (typeof root !== 'string') {
|
|
264
|
+
throw new TypeError('readdirp: root argument must be a string. Usage: readdirp(root, options)');
|
|
265
|
+
} else if (type && !ALL_TYPES.includes(type)) {
|
|
266
|
+
throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(', ')}`);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
options.root = root;
|
|
270
|
+
return new ReaddirpStream(options);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
const readdirpPromise = (root, options = {}) => {
|
|
274
|
+
return new Promise((resolve, reject) => {
|
|
275
|
+
const files = [];
|
|
276
|
+
readdirp(root, options)
|
|
277
|
+
.on('data', entry => files.push(entry))
|
|
278
|
+
.on('end', () => resolve(files))
|
|
279
|
+
.on('error', error => reject(error));
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
readdirp.promise = readdirpPromise;
|
|
284
|
+
readdirp.ReaddirpStream = ReaddirpStream;
|
|
285
|
+
readdirp.default = readdirp;
|
|
286
|
+
|
|
287
|
+
module.exports = readdirp;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "readdirp",
|
|
3
|
+
"description": "Recursive version of fs.readdir with streaming API.",
|
|
4
|
+
"version": "3.6.0",
|
|
5
|
+
"homepage": "https://github.com/paulmillr/readdirp",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git://github.com/paulmillr/readdirp.git"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/paulmillr/readdirp/issues"
|
|
13
|
+
},
|
|
14
|
+
"author": "Thorsten Lorenz <thlorenz@gmx.de> (thlorenz.com)",
|
|
15
|
+
"contributors": [
|
|
16
|
+
"Thorsten Lorenz <thlorenz@gmx.de> (thlorenz.com)",
|
|
17
|
+
"Paul Miller (https://paulmillr.com)"
|
|
18
|
+
],
|
|
19
|
+
"main": "index.js",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=8.10.0"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"index.js",
|
|
25
|
+
"index.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"keywords": [
|
|
28
|
+
"recursive",
|
|
29
|
+
"fs",
|
|
30
|
+
"stream",
|
|
31
|
+
"streams",
|
|
32
|
+
"readdir",
|
|
33
|
+
"filesystem",
|
|
34
|
+
"find",
|
|
35
|
+
"filter"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"dtslint": "dtslint",
|
|
39
|
+
"nyc": "nyc",
|
|
40
|
+
"mocha": "mocha --exit",
|
|
41
|
+
"lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .",
|
|
42
|
+
"test": "npm run lint && nyc npm run mocha"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"picomatch": "^2.2.1"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^14",
|
|
49
|
+
"chai": "^4.2",
|
|
50
|
+
"chai-subset": "^1.6",
|
|
51
|
+
"dtslint": "^3.3.0",
|
|
52
|
+
"eslint": "^7.0.0",
|
|
53
|
+
"mocha": "^7.1.1",
|
|
54
|
+
"nyc": "^15.0.0",
|
|
55
|
+
"rimraf": "^3.0.0",
|
|
56
|
+
"typescript": "^4.0.3"
|
|
57
|
+
},
|
|
58
|
+
"nyc": {
|
|
59
|
+
"reporter": [
|
|
60
|
+
"html",
|
|
61
|
+
"text"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"eslintConfig": {
|
|
65
|
+
"root": true,
|
|
66
|
+
"extends": "eslint:recommended",
|
|
67
|
+
"parserOptions": {
|
|
68
|
+
"ecmaVersion": 9,
|
|
69
|
+
"sourceType": "script"
|
|
70
|
+
},
|
|
71
|
+
"env": {
|
|
72
|
+
"node": true,
|
|
73
|
+
"es6": true
|
|
74
|
+
},
|
|
75
|
+
"rules": {
|
|
76
|
+
"array-callback-return": "error",
|
|
77
|
+
"no-empty": [
|
|
78
|
+
"error",
|
|
79
|
+
{
|
|
80
|
+
"allowEmptyCatch": true
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"no-else-return": [
|
|
84
|
+
"error",
|
|
85
|
+
{
|
|
86
|
+
"allowElseIf": false
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"no-lonely-if": "error",
|
|
90
|
+
"no-var": "error",
|
|
91
|
+
"object-shorthand": "error",
|
|
92
|
+
"prefer-arrow-callback": [
|
|
93
|
+
"error",
|
|
94
|
+
{
|
|
95
|
+
"allowNamedFunctions": true
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"prefer-const": [
|
|
99
|
+
"error",
|
|
100
|
+
{
|
|
101
|
+
"ignoreReadBeforeAssign": true
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"prefer-destructuring": [
|
|
105
|
+
"error",
|
|
106
|
+
{
|
|
107
|
+
"object": true,
|
|
108
|
+
"array": false
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"prefer-spread": "error",
|
|
112
|
+
"prefer-template": "error",
|
|
113
|
+
"radix": "error",
|
|
114
|
+
"semi": "error",
|
|
115
|
+
"strict": "error",
|
|
116
|
+
"quotes": [
|
|
117
|
+
"error",
|
|
118
|
+
"single"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|