@oneblink/release-cli 1.2.0-beta.3 → 1.2.0-beta.4
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/package.json +1 -2
- package/node_modules/@yarnpkg/lockfile/README.md +0 -22
- package/node_modules/@yarnpkg/lockfile/index.js +0 -10273
- package/node_modules/@yarnpkg/lockfile/package.json +0 -19
- package/node_modules/ansi-styles/index.js +0 -165
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/package.json +0 -60
- package/node_modules/ansi-styles/readme.md +0 -147
- package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -97
- package/node_modules/balanced-match/index.js +0 -62
- package/node_modules/balanced-match/package.json +0 -52
- package/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/brace-expansion/package.json +0 -51
- package/node_modules/braces/CHANGELOG.md +0 -184
- package/node_modules/braces/LICENSE +0 -21
- package/node_modules/braces/README.md +0 -593
- package/node_modules/braces/index.js +0 -170
- package/node_modules/braces/lib/compile.js +0 -57
- package/node_modules/braces/lib/constants.js +0 -57
- package/node_modules/braces/lib/expand.js +0 -113
- package/node_modules/braces/lib/parse.js +0 -333
- package/node_modules/braces/lib/stringify.js +0 -32
- package/node_modules/braces/lib/utils.js +0 -112
- package/node_modules/braces/package.json +0 -81
- package/node_modules/chalk/index.js +0 -228
- package/node_modules/chalk/index.js.flow +0 -93
- package/node_modules/chalk/license +0 -9
- package/node_modules/chalk/package.json +0 -75
- package/node_modules/chalk/readme.md +0 -314
- package/node_modules/chalk/templates.js +0 -128
- package/node_modules/chalk/types/index.d.ts +0 -97
- package/node_modules/ci-info/CHANGELOG.md +0 -78
- package/node_modules/ci-info/LICENSE +0 -21
- package/node_modules/ci-info/README.md +0 -108
- package/node_modules/ci-info/index.js +0 -66
- package/node_modules/ci-info/package.json +0 -40
- package/node_modules/ci-info/vendors.json +0 -153
- package/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -868
- package/node_modules/color-convert/index.js +0 -78
- package/node_modules/color-convert/package.json +0 -50
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/.eslintrc.json +0 -43
- package/node_modules/color-name/.npmignore +0 -107
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -29
- package/node_modules/color-name/test.js +0 -7
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -47
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/escape-string-regexp/index.js +0 -11
- package/node_modules/escape-string-regexp/license +0 -21
- package/node_modules/escape-string-regexp/package.json +0 -45
- package/node_modules/escape-string-regexp/readme.md +0 -27
- package/node_modules/fill-range/LICENSE +0 -21
- package/node_modules/fill-range/README.md +0 -237
- package/node_modules/fill-range/index.js +0 -249
- package/node_modules/fill-range/package.json +0 -73
- package/node_modules/find-yarn-workspace-root/CHANGELOG.md +0 -53
- package/node_modules/find-yarn-workspace-root/LICENSE +0 -201
- package/node_modules/find-yarn-workspace-root/README.md +0 -56
- package/node_modules/find-yarn-workspace-root/index.d.ts +0 -3
- package/node_modules/find-yarn-workspace-root/index.js +0 -53
- package/node_modules/find-yarn-workspace-root/package.json +0 -38
- package/node_modules/fs-extra/CHANGELOG.md +0 -842
- package/node_modules/fs-extra/LICENSE +0 -15
- package/node_modules/fs-extra/README.md +0 -261
- package/node_modules/fs-extra/lib/copy/copy.js +0 -246
- package/node_modules/fs-extra/lib/copy/index.js +0 -6
- package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -193
- package/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
- package/node_modules/fs-extra/lib/empty/index.js +0 -48
- package/node_modules/fs-extra/lib/ensure/file.js +0 -49
- package/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/node_modules/fs-extra/lib/ensure/link.js +0 -61
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -99
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -31
- package/node_modules/fs-extra/lib/ensure/symlink.js +0 -63
- package/node_modules/fs-extra/lib/fs/index.js +0 -104
- package/node_modules/fs-extra/lib/index.js +0 -28
- package/node_modules/fs-extra/lib/json/index.js +0 -16
- package/node_modules/fs-extra/lib/json/jsonfile.js +0 -12
- package/node_modules/fs-extra/lib/json/output-json-sync.js +0 -18
- package/node_modules/fs-extra/lib/json/output-json.js +0 -27
- package/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +0 -54
- package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +0 -63
- package/node_modules/fs-extra/lib/mkdirs/win32.js +0 -25
- package/node_modules/fs-extra/lib/move/index.js +0 -82
- package/node_modules/fs-extra/lib/move-sync/index.js +0 -117
- package/node_modules/fs-extra/lib/output/index.js +0 -40
- package/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/node_modules/fs-extra/lib/remove/index.js +0 -9
- package/node_modules/fs-extra/lib/remove/rimraf.js +0 -314
- package/node_modules/fs-extra/lib/util/buffer.js +0 -12
- package/node_modules/fs-extra/lib/util/utimes.js +0 -79
- package/node_modules/fs-extra/package.json +0 -72
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -30
- package/node_modules/glob/LICENSE +0 -21
- package/node_modules/glob/README.md +0 -375
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/glob/common.js +0 -240
- package/node_modules/glob/glob.js +0 -790
- package/node_modules/glob/package.json +0 -50
- package/node_modules/glob/sync.js +0 -486
- package/node_modules/graceful-fs/LICENSE +0 -15
- package/node_modules/graceful-fs/README.md +0 -133
- package/node_modules/graceful-fs/clone.js +0 -23
- package/node_modules/graceful-fs/graceful-fs.js +0 -373
- package/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/node_modules/graceful-fs/package.json +0 -54
- package/node_modules/graceful-fs/polyfills.js +0 -346
- package/node_modules/has-flag/index.js +0 -8
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/package.json +0 -48
- package/node_modules/has-flag/readme.md +0 -70
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -33
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -33
- package/node_modules/is-ci/CHANGELOG.md +0 -14
- package/node_modules/is-ci/LICENSE +0 -21
- package/node_modules/is-ci/README.md +0 -50
- package/node_modules/is-ci/bin.js +0 -4
- package/node_modules/is-ci/index.js +0 -3
- package/node_modules/is-ci/package.json +0 -42
- package/node_modules/is-docker/cli.js +0 -5
- package/node_modules/is-docker/index.d.ts +0 -15
- package/node_modules/is-docker/index.js +0 -29
- package/node_modules/is-docker/license +0 -9
- package/node_modules/is-docker/package.json +0 -46
- package/node_modules/is-docker/readme.md +0 -27
- package/node_modules/is-number/LICENSE +0 -21
- package/node_modules/is-number/README.md +0 -187
- package/node_modules/is-number/index.js +0 -18
- package/node_modules/is-number/package.json +0 -86
- package/node_modules/is-wsl/index.d.ts +0 -15
- package/node_modules/is-wsl/index.js +0 -31
- package/node_modules/is-wsl/license +0 -9
- package/node_modules/is-wsl/package.json +0 -49
- package/node_modules/is-wsl/readme.md +0 -36
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -35
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/jsonfile/CHANGELOG.md +0 -145
- package/node_modules/jsonfile/LICENSE +0 -15
- package/node_modules/jsonfile/README.md +0 -168
- package/node_modules/jsonfile/index.js +0 -134
- package/node_modules/jsonfile/package.json +0 -41
- package/node_modules/klaw-sync/CHANGELOG.md +0 -73
- package/node_modules/klaw-sync/LICENSE +0 -20
- package/node_modules/klaw-sync/README.md +0 -164
- package/node_modules/klaw-sync/klaw-sync.js +0 -29
- package/node_modules/klaw-sync/package.json +0 -51
- package/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/lru-cache/README.md +0 -166
- package/node_modules/lru-cache/index.js +0 -334
- package/node_modules/lru-cache/package.json +0 -38
- package/node_modules/micromatch/CHANGELOG.md +0 -109
- package/node_modules/micromatch/LICENSE +0 -21
- package/node_modules/micromatch/README.md +0 -1008
- package/node_modules/micromatch/index.js +0 -467
- package/node_modules/micromatch/package.json +0 -123
- package/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/minimatch/README.md +0 -209
- package/node_modules/minimatch/minimatch.js +0 -923
- package/node_modules/minimatch/package.json +0 -34
- package/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/example/parse.js +0 -2
- package/node_modules/minimist/index.js +0 -245
- package/node_modules/minimist/package.json +0 -49
- package/node_modules/minimist/readme.markdown +0 -95
- package/node_modules/minimist/test/all_bool.js +0 -32
- package/node_modules/minimist/test/bool.js +0 -178
- package/node_modules/minimist/test/dash.js +0 -31
- package/node_modules/minimist/test/default_bool.js +0 -35
- package/node_modules/minimist/test/dotted.js +0 -22
- package/node_modules/minimist/test/kv_short.js +0 -16
- package/node_modules/minimist/test/long.js +0 -31
- package/node_modules/minimist/test/num.js +0 -36
- package/node_modules/minimist/test/parse.js +0 -197
- package/node_modules/minimist/test/parse_modified.js +0 -9
- package/node_modules/minimist/test/proto.js +0 -44
- package/node_modules/minimist/test/short.js +0 -67
- package/node_modules/minimist/test/stop_early.js +0 -15
- package/node_modules/minimist/test/unknown.js +0 -102
- package/node_modules/minimist/test/whitespace.js +0 -8
- package/node_modules/nice-try/CHANGELOG.md +0 -21
- package/node_modules/nice-try/LICENSE +0 -21
- package/node_modules/nice-try/README.md +0 -32
- package/node_modules/nice-try/package.json +0 -37
- package/node_modules/nice-try/src/index.js +0 -12
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -37
- package/node_modules/open/index.d.ts +0 -88
- package/node_modules/open/index.js +0 -195
- package/node_modules/open/license +0 -9
- package/node_modules/open/package.json +0 -64
- package/node_modules/open/readme.md +0 -154
- package/node_modules/open/xdg-open +0 -1066
- package/node_modules/os-tmpdir/index.js +0 -25
- package/node_modules/os-tmpdir/license +0 -21
- package/node_modules/os-tmpdir/package.json +0 -45
- package/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/patch-package/CHANGELOG.md +0 -389
- package/node_modules/patch-package/LICENSE +0 -19
- package/node_modules/patch-package/README.md +0 -269
- package/node_modules/patch-package/dist/PackageDetails.js +0 -102
- package/node_modules/patch-package/dist/PackageDetails.test.js +0 -228
- package/node_modules/patch-package/dist/applyPatches.js +0 -261
- package/node_modules/patch-package/dist/assertNever.js +0 -8
- package/node_modules/patch-package/dist/createIssue.js +0 -83
- package/node_modules/patch-package/dist/detectPackageManager.js +0 -64
- package/node_modules/patch-package/dist/filterFiles.js +0 -17
- package/node_modules/patch-package/dist/getAppRootPath.js +0 -22
- package/node_modules/patch-package/dist/getPackageResolution.js +0 -85
- package/node_modules/patch-package/dist/getPackageVersion.js +0 -9
- package/node_modules/patch-package/dist/index.js +0 -161
- package/node_modules/patch-package/dist/makePatch.js +0 -231
- package/node_modules/patch-package/dist/makeRegExp.js +0 -28
- package/node_modules/patch-package/dist/packageIsDevDependency.js +0 -15
- package/node_modules/patch-package/dist/packageIsDevDependency.test.js +0 -32
- package/node_modules/patch-package/dist/patch/apply.js +0 -197
- package/node_modules/patch-package/dist/patch/parse.js +0 -330
- package/node_modules/patch-package/dist/patch/read.js +0 -49
- package/node_modules/patch-package/dist/patch/reverse.js +0 -96
- package/node_modules/patch-package/dist/patchFs.js +0 -20
- package/node_modules/patch-package/dist/path.js +0 -17
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.js +0 -21
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.test.js +0 -22
- package/node_modules/patch-package/dist/spawnSafe.js +0 -28
- package/node_modules/patch-package/index.js +0 -3
- package/node_modules/patch-package/node_modules/cross-spawn/CHANGELOG.md +0 -100
- package/node_modules/patch-package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/patch-package/node_modules/cross-spawn/README.md +0 -94
- package/node_modules/patch-package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/patch-package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/patch-package/node_modules/cross-spawn/lib/parse.js +0 -125
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/escape.js +0 -45
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/readShebang.js +0 -32
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -47
- package/node_modules/patch-package/node_modules/cross-spawn/package.json +0 -80
- package/node_modules/patch-package/node_modules/path-key/index.js +0 -13
- package/node_modules/patch-package/node_modules/path-key/license +0 -21
- package/node_modules/patch-package/node_modules/path-key/package.json +0 -43
- package/node_modules/patch-package/node_modules/path-key/readme.md +0 -51
- package/node_modules/patch-package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/patch-package/node_modules/rimraf/README.md +0 -101
- package/node_modules/patch-package/node_modules/rimraf/bin.js +0 -50
- package/node_modules/patch-package/node_modules/rimraf/package.json +0 -33
- package/node_modules/patch-package/node_modules/rimraf/rimraf.js +0 -372
- package/node_modules/patch-package/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/patch-package/node_modules/semver/LICENSE +0 -15
- package/node_modules/patch-package/node_modules/semver/README.md +0 -412
- package/node_modules/patch-package/node_modules/semver/bin/semver +0 -160
- package/node_modules/patch-package/node_modules/semver/package.json +0 -32
- package/node_modules/patch-package/node_modules/semver/range.bnf +0 -16
- package/node_modules/patch-package/node_modules/semver/semver.js +0 -1483
- package/node_modules/patch-package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/patch-package/node_modules/shebang-command/license +0 -21
- package/node_modules/patch-package/node_modules/shebang-command/package.json +0 -43
- package/node_modules/patch-package/node_modules/shebang-command/readme.md +0 -39
- package/node_modules/patch-package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/patch-package/node_modules/shebang-regex/license +0 -21
- package/node_modules/patch-package/node_modules/shebang-regex/package.json +0 -36
- package/node_modules/patch-package/node_modules/shebang-regex/readme.md +0 -29
- package/node_modules/patch-package/node_modules/slash/index.js +0 -11
- package/node_modules/patch-package/node_modules/slash/license +0 -9
- package/node_modules/patch-package/node_modules/slash/package.json +0 -38
- package/node_modules/patch-package/node_modules/slash/readme.md +0 -44
- package/node_modules/patch-package/node_modules/which/CHANGELOG.md +0 -152
- package/node_modules/patch-package/node_modules/which/LICENSE +0 -15
- package/node_modules/patch-package/node_modules/which/README.md +0 -51
- package/node_modules/patch-package/node_modules/which/bin/which +0 -52
- package/node_modules/patch-package/node_modules/which/package.json +0 -34
- package/node_modules/patch-package/node_modules/which/which.js +0 -135
- package/node_modules/patch-package/package.json +0 -100
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -47
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/picomatch/CHANGELOG.md +0 -120
- package/node_modules/picomatch/LICENSE +0 -21
- package/node_modules/picomatch/README.md +0 -691
- package/node_modules/picomatch/index.js +0 -3
- package/node_modules/picomatch/lib/constants.js +0 -179
- package/node_modules/picomatch/lib/parse.js +0 -1078
- package/node_modules/picomatch/lib/picomatch.js +0 -339
- package/node_modules/picomatch/lib/scan.js +0 -385
- package/node_modules/picomatch/lib/utils.js +0 -64
- package/node_modules/picomatch/package.json +0 -85
- package/node_modules/semver/CHANGELOG.md +0 -111
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -566
- package/node_modules/semver/bin/semver.js +0 -173
- package/node_modules/semver/classes/comparator.js +0 -135
- package/node_modules/semver/classes/index.js +0 -5
- package/node_modules/semver/classes/range.js +0 -510
- package/node_modules/semver/classes/semver.js +0 -287
- package/node_modules/semver/functions/clean.js +0 -6
- package/node_modules/semver/functions/cmp.js +0 -48
- package/node_modules/semver/functions/coerce.js +0 -51
- package/node_modules/semver/functions/compare-build.js +0 -7
- package/node_modules/semver/functions/compare-loose.js +0 -3
- package/node_modules/semver/functions/compare.js +0 -5
- package/node_modules/semver/functions/diff.js +0 -23
- package/node_modules/semver/functions/eq.js +0 -3
- package/node_modules/semver/functions/gt.js +0 -3
- package/node_modules/semver/functions/gte.js +0 -3
- package/node_modules/semver/functions/inc.js +0 -15
- package/node_modules/semver/functions/lt.js +0 -3
- package/node_modules/semver/functions/lte.js +0 -3
- package/node_modules/semver/functions/major.js +0 -3
- package/node_modules/semver/functions/minor.js +0 -3
- package/node_modules/semver/functions/neq.js +0 -3
- package/node_modules/semver/functions/parse.js +0 -33
- package/node_modules/semver/functions/patch.js +0 -3
- package/node_modules/semver/functions/prerelease.js +0 -6
- package/node_modules/semver/functions/rcompare.js +0 -3
- package/node_modules/semver/functions/rsort.js +0 -3
- package/node_modules/semver/functions/satisfies.js +0 -10
- package/node_modules/semver/functions/sort.js +0 -3
- package/node_modules/semver/functions/valid.js +0 -6
- package/node_modules/semver/index.js +0 -48
- package/node_modules/semver/internal/constants.js +0 -17
- package/node_modules/semver/internal/debug.js +0 -9
- package/node_modules/semver/internal/identifiers.js +0 -23
- package/node_modules/semver/internal/parse-options.js +0 -11
- package/node_modules/semver/internal/re.js +0 -182
- package/node_modules/semver/package.json +0 -45
- package/node_modules/semver/preload.js +0 -2
- package/node_modules/semver/range.bnf +0 -16
- package/node_modules/semver/ranges/gtr.js +0 -4
- package/node_modules/semver/ranges/intersects.js +0 -7
- package/node_modules/semver/ranges/ltr.js +0 -4
- package/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/node_modules/semver/ranges/min-version.js +0 -60
- package/node_modules/semver/ranges/outside.js +0 -80
- package/node_modules/semver/ranges/simplify.js +0 -44
- package/node_modules/semver/ranges/subset.js +0 -222
- package/node_modules/semver/ranges/to-comparators.js +0 -8
- package/node_modules/semver/ranges/valid.js +0 -11
- package/node_modules/supports-color/browser.js +0 -5
- package/node_modules/supports-color/index.js +0 -131
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/package.json +0 -57
- package/node_modules/supports-color/readme.md +0 -66
- package/node_modules/tmp/LICENSE +0 -21
- package/node_modules/tmp/README.md +0 -314
- package/node_modules/tmp/lib/tmp.js +0 -611
- package/node_modules/tmp/package.json +0 -42
- package/node_modules/to-regex-range/LICENSE +0 -21
- package/node_modules/to-regex-range/README.md +0 -305
- package/node_modules/to-regex-range/index.js +0 -288
- package/node_modules/to-regex-range/package.json +0 -92
- package/node_modules/universalify/LICENSE +0 -20
- package/node_modules/universalify/README.md +0 -76
- package/node_modules/universalify/index.js +0 -25
- package/node_modules/universalify/package.json +0 -38
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -33
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/README.md +0 -204
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/package.json +0 -33
- package/node_modules/yallist/yallist.js +0 -426
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
node-klaw-sync
|
|
2
|
-
==============
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/klaw-sync)
|
|
5
|
-
[](https://travis-ci.org/manidlou/node-klaw-sync)
|
|
6
|
-
[](https://ci.appveyor.com/project/manidlou/node-klaw-sync/branch/master)
|
|
7
|
-
[](https://standardjs.com)
|
|
8
|
-
[](https://snyk.io/test/npm/klaw-sync)
|
|
9
|
-
|
|
10
|
-
`klaw-sync` is a Node.js recursive and fast file system walker, which is the synchronous counterpart of [klaw](https://github.com/jprichardson/node-klaw). It lists all files and directories inside a directory recursively and returns an array of objects that each object has two properties: `path` and `stats`. `path` is the full path of the file or directory and `stats` is an instance of [fs.Stats](https://nodejs.org/api/fs.html#fs_class_fs_stats).
|
|
11
|
-
|
|
12
|
-
Install
|
|
13
|
-
-------
|
|
14
|
-
|
|
15
|
-
npm i klaw-sync
|
|
16
|
-
|
|
17
|
-
Usage
|
|
18
|
-
-----
|
|
19
|
-
|
|
20
|
-
### klawSync(directory[, options])
|
|
21
|
-
|
|
22
|
-
- `directory` `<String>`
|
|
23
|
-
- `options` `<Object>` (optional) _all options are `false` by default_
|
|
24
|
-
- `nodir` `<Boolean>`
|
|
25
|
-
- return only files (ignore directories).
|
|
26
|
-
- `nofile` `<Boolean>`
|
|
27
|
-
- return only directories (ignore files).
|
|
28
|
-
- `depthLimit`: `<Number>`
|
|
29
|
-
- the number of times to recurse before stopping. `-1` for unlimited.
|
|
30
|
-
- `fs`: `<Object>`
|
|
31
|
-
- custom `fs`, useful when mocking `fs` object.
|
|
32
|
-
- `filter` `<Function>`
|
|
33
|
-
- function that gets one argument `fn({path: '', stats: {}})` and returns true to include or false to exclude the item.
|
|
34
|
-
- `traverseAll` `<Boolean>`
|
|
35
|
-
- traverse all subdirectories, regardless of `filter` option. (When set to `true`, `traverseAll` produces similar behavior to the default behavior prior to v4.0.0. The current default of `traverseAll: false` is equivalent to the old `noRecurseOnFailedFilter: true`).
|
|
36
|
-
- **Return:** `<Array<Object>>` `[{path: '', stats: {}}]`
|
|
37
|
-
|
|
38
|
-
Examples
|
|
39
|
-
--------
|
|
40
|
-
|
|
41
|
-
```js
|
|
42
|
-
const klawSync = require('klaw-sync')
|
|
43
|
-
|
|
44
|
-
const paths = klawSync('/some/dir')
|
|
45
|
-
// paths = [{path: '/some/dir/dir1', stats: {}}, {path: '/some/dir/file1', stats: {}}]
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
_**catch error**_
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
const klawSync = require('klaw-sync')
|
|
52
|
-
|
|
53
|
-
let paths
|
|
54
|
-
try {
|
|
55
|
-
paths = klawSync('/some/dir')
|
|
56
|
-
} catch (er) {
|
|
57
|
-
console.error(er)
|
|
58
|
-
}
|
|
59
|
-
console.dir(paths)
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
_**files only**_
|
|
63
|
-
|
|
64
|
-
```js
|
|
65
|
-
const klawSync = require('klaw-sync')
|
|
66
|
-
|
|
67
|
-
const files = klawSync('/some/dir', {nodir: true})
|
|
68
|
-
// files = [{path: '/some/dir/file1', stats: {}}, {path: '/some/dir/file2', stats: {}}]
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
_**directories only**_
|
|
72
|
-
|
|
73
|
-
```js
|
|
74
|
-
const klawSync = require('klaw-sync')
|
|
75
|
-
|
|
76
|
-
const dirs = klawSync('/some/dir', {nofile: true})
|
|
77
|
-
// dirs = [{path: '/some/dir/dir1', stats: {}}, {path: '/some/dir/dir2', stats: {}}]
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
_**ignore hidden directories**_
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
```js
|
|
84
|
-
const path = require('path')
|
|
85
|
-
const klawSync = require('klaw-sync')
|
|
86
|
-
|
|
87
|
-
const filterFn = item => {
|
|
88
|
-
const basename = path.basename(item.path)
|
|
89
|
-
return basename === '.' || basename[0] !== '.'
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const paths = klawSync('/some/dir', { filter: filterFn})
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
_**filter based on stats**_
|
|
96
|
-
|
|
97
|
-
Here `traverseAll` option is required since we still want to read all directories even if they don't pass the `filter` function, to see if their contents do pass the `filter` function.
|
|
98
|
-
|
|
99
|
-
```js
|
|
100
|
-
const klawSync = require('klaw-sync')
|
|
101
|
-
|
|
102
|
-
const refTime = new Date(2017, 3, 24).getTime()
|
|
103
|
-
const filterFn = item => item.stats.mtime.getTime() > refTime
|
|
104
|
-
|
|
105
|
-
const paths = klawSync('/some/dir', { filter: filterFn })
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Run tests
|
|
109
|
-
---------
|
|
110
|
-
|
|
111
|
-
lint: `npm run lint`
|
|
112
|
-
|
|
113
|
-
unit test: `npm run unit`
|
|
114
|
-
|
|
115
|
-
lint & unit: `npm test`
|
|
116
|
-
|
|
117
|
-
benchmark: `npm run benchmark`
|
|
118
|
-
|
|
119
|
-
Performance compare to other similar modules
|
|
120
|
-
-----------------------------------------------
|
|
121
|
-
|
|
122
|
-
Running some [benchmark](https://github.com/bestiejs/benchmark.js) tests on these modules:
|
|
123
|
-
|
|
124
|
-
- `klaw-sync`
|
|
125
|
-
- [walk-sync](https://github.com/joliss/node-walk-sync)
|
|
126
|
-
|
|
127
|
-
(as of Jan 25, 2017) `klaw-sync` is the fastest module!
|
|
128
|
-
|
|
129
|
-
##### results (tested on Ubuntu 18.04, Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 8 CPUs, 8g RAM, node v10.9.0)
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
Running benchmark tests..
|
|
133
|
-
|
|
134
|
-
root dir length: 1110
|
|
135
|
-
walk-sync x 139 ops/sec ±2.48% (76 runs sampled)
|
|
136
|
-
klaw-sync x 163 ops/sec ±1.20% (80 runs sampled)
|
|
137
|
-
Fastest is klaw-sync
|
|
138
|
-
|
|
139
|
-
root dir length: 11110
|
|
140
|
-
walk-sync x 13.23 ops/sec ±1.10% (37 runs sampled)
|
|
141
|
-
klaw-sync x 15.10 ops/sec ±1.06% (41 runs sampled)
|
|
142
|
-
Fastest is klaw-sync
|
|
143
|
-
|
|
144
|
-
root dir length: 111110
|
|
145
|
-
walk-sync x 1.17 ops/sec ±2.06% (7 runs sampled)
|
|
146
|
-
klaw-sync x 1.25 ops/sec ±2.10% (8 runs sampled)
|
|
147
|
-
Fastest is klaw-sync
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
Credit
|
|
151
|
-
------
|
|
152
|
-
|
|
153
|
-
Special thanks to:
|
|
154
|
-
|
|
155
|
-
- [agnivade](https://github.com/agnivade)
|
|
156
|
-
- [jprichardson](https://github.com/jprichardson)
|
|
157
|
-
- [RyanZim](https://github.com/RyanZim)
|
|
158
|
-
|
|
159
|
-
for their contribution and support.
|
|
160
|
-
|
|
161
|
-
License
|
|
162
|
-
-------
|
|
163
|
-
|
|
164
|
-
Licensed under MIT
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
const fs = require('graceful-fs')
|
|
3
|
-
const path = require('path')
|
|
4
|
-
|
|
5
|
-
function klawSync (dir, opts, ls) {
|
|
6
|
-
if (!ls) {
|
|
7
|
-
ls = []
|
|
8
|
-
dir = path.resolve(dir)
|
|
9
|
-
opts = opts || {}
|
|
10
|
-
opts.fs = opts.fs || fs
|
|
11
|
-
if (opts.depthLimit > -1) opts.rootDepth = dir.split(path.sep).length + 1
|
|
12
|
-
}
|
|
13
|
-
const paths = opts.fs.readdirSync(dir).map(p => dir + path.sep + p)
|
|
14
|
-
for (var i = 0; i < paths.length; i += 1) {
|
|
15
|
-
const pi = paths[i]
|
|
16
|
-
const st = opts.fs.statSync(pi)
|
|
17
|
-
const item = {path: pi, stats: st}
|
|
18
|
-
const isUnderDepthLimit = (!opts.rootDepth || pi.split(path.sep).length - opts.rootDepth < opts.depthLimit)
|
|
19
|
-
const filterResult = opts.filter ? opts.filter(item) : true
|
|
20
|
-
const isDir = st.isDirectory()
|
|
21
|
-
const shouldAdd = filterResult && (isDir ? !opts.nodir : !opts.nofile)
|
|
22
|
-
const shouldTraverse = isDir && isUnderDepthLimit && (opts.traverseAll || filterResult)
|
|
23
|
-
if (shouldAdd) ls.push(item)
|
|
24
|
-
if (shouldTraverse) ls = klawSync(pi, opts, ls)
|
|
25
|
-
}
|
|
26
|
-
return ls
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
module.exports = klawSync
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "klaw-sync",
|
|
3
|
-
"version": "6.0.0",
|
|
4
|
-
"description": "Recursive, synchronous, and fast file system walker",
|
|
5
|
-
"main": "klaw-sync.js",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/manidlou/node-klaw-sync.git"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"fs",
|
|
12
|
-
"walk",
|
|
13
|
-
"walker",
|
|
14
|
-
"walk-sync",
|
|
15
|
-
"klaw",
|
|
16
|
-
"readdir-sync"
|
|
17
|
-
],
|
|
18
|
-
"author": "Mani Maghsoudlou",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://github.com/manidlou/node-klaw-sync/issues"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://github.com/manidlou/node-klaw-sync#readme",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"graceful-fs": "^4.1.11"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"benchmark": "^2.1.4",
|
|
29
|
-
"fs-extra": "^5.0.0",
|
|
30
|
-
"memory-fs": "^0.4.1",
|
|
31
|
-
"mkp": "^1.0.1",
|
|
32
|
-
"mocha": "^5.1.1",
|
|
33
|
-
"standard": "^11.0.1",
|
|
34
|
-
"walk-sync": "^0.3.3"
|
|
35
|
-
},
|
|
36
|
-
"standard": {
|
|
37
|
-
"env": [
|
|
38
|
-
"mocha"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"lint": "standard",
|
|
43
|
-
"unit": "mocha",
|
|
44
|
-
"test": "npm run lint && npm run unit",
|
|
45
|
-
"benchmark": "node ./benchmark/bm.js"
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
,"_resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz"
|
|
49
|
-
,"_integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ=="
|
|
50
|
-
,"_from": "klaw-sync@6.0.0"
|
|
51
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
# lru cache
|
|
2
|
-
|
|
3
|
-
A cache object that deletes the least-recently-used items.
|
|
4
|
-
|
|
5
|
-
[](https://travis-ci.org/isaacs/node-lru-cache) [](https://coveralls.io/github/isaacs/node-lru-cache)
|
|
6
|
-
|
|
7
|
-
## Installation:
|
|
8
|
-
|
|
9
|
-
```javascript
|
|
10
|
-
npm install lru-cache --save
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage:
|
|
14
|
-
|
|
15
|
-
```javascript
|
|
16
|
-
var LRU = require("lru-cache")
|
|
17
|
-
, options = { max: 500
|
|
18
|
-
, length: function (n, key) { return n * 2 + key.length }
|
|
19
|
-
, dispose: function (key, n) { n.close() }
|
|
20
|
-
, maxAge: 1000 * 60 * 60 }
|
|
21
|
-
, cache = new LRU(options)
|
|
22
|
-
, otherCache = new LRU(50) // sets just the max size
|
|
23
|
-
|
|
24
|
-
cache.set("key", "value")
|
|
25
|
-
cache.get("key") // "value"
|
|
26
|
-
|
|
27
|
-
// non-string keys ARE fully supported
|
|
28
|
-
// but note that it must be THE SAME object, not
|
|
29
|
-
// just a JSON-equivalent object.
|
|
30
|
-
var someObject = { a: 1 }
|
|
31
|
-
cache.set(someObject, 'a value')
|
|
32
|
-
// Object keys are not toString()-ed
|
|
33
|
-
cache.set('[object Object]', 'a different value')
|
|
34
|
-
assert.equal(cache.get(someObject), 'a value')
|
|
35
|
-
// A similar object with same keys/values won't work,
|
|
36
|
-
// because it's a different object identity
|
|
37
|
-
assert.equal(cache.get({ a: 1 }), undefined)
|
|
38
|
-
|
|
39
|
-
cache.reset() // empty the cache
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
If you put more stuff in it, then items will fall out.
|
|
43
|
-
|
|
44
|
-
If you try to put an oversized thing in it, then it'll fall out right
|
|
45
|
-
away.
|
|
46
|
-
|
|
47
|
-
## Options
|
|
48
|
-
|
|
49
|
-
* `max` The maximum size of the cache, checked by applying the length
|
|
50
|
-
function to all values in the cache. Not setting this is kind of
|
|
51
|
-
silly, since that's the whole purpose of this lib, but it defaults
|
|
52
|
-
to `Infinity`. Setting it to a non-number or negative number will
|
|
53
|
-
throw a `TypeError`. Setting it to 0 makes it be `Infinity`.
|
|
54
|
-
* `maxAge` Maximum age in ms. Items are not pro-actively pruned out
|
|
55
|
-
as they age, but if you try to get an item that is too old, it'll
|
|
56
|
-
drop it and return undefined instead of giving it to you.
|
|
57
|
-
Setting this to a negative value will make everything seem old!
|
|
58
|
-
Setting it to a non-number will throw a `TypeError`.
|
|
59
|
-
* `length` Function that is used to calculate the length of stored
|
|
60
|
-
items. If you're storing strings or buffers, then you probably want
|
|
61
|
-
to do something like `function(n, key){return n.length}`. The default is
|
|
62
|
-
`function(){return 1}`, which is fine if you want to store `max`
|
|
63
|
-
like-sized things. The item is passed as the first argument, and
|
|
64
|
-
the key is passed as the second argumnet.
|
|
65
|
-
* `dispose` Function that is called on items when they are dropped
|
|
66
|
-
from the cache. This can be handy if you want to close file
|
|
67
|
-
descriptors or do other cleanup tasks when items are no longer
|
|
68
|
-
accessible. Called with `key, value`. It's called *before*
|
|
69
|
-
actually removing the item from the internal cache, so if you want
|
|
70
|
-
to immediately put it back in, you'll have to do that in a
|
|
71
|
-
`nextTick` or `setTimeout` callback or it won't do anything.
|
|
72
|
-
* `stale` By default, if you set a `maxAge`, it'll only actually pull
|
|
73
|
-
stale items out of the cache when you `get(key)`. (That is, it's
|
|
74
|
-
not pre-emptively doing a `setTimeout` or anything.) If you set
|
|
75
|
-
`stale:true`, it'll return the stale value before deleting it. If
|
|
76
|
-
you don't set this, then it'll return `undefined` when you try to
|
|
77
|
-
get a stale entry, as if it had already been deleted.
|
|
78
|
-
* `noDisposeOnSet` By default, if you set a `dispose()` method, then
|
|
79
|
-
it'll be called whenever a `set()` operation overwrites an existing
|
|
80
|
-
key. If you set this option, `dispose()` will only be called when a
|
|
81
|
-
key falls out of the cache, not when it is overwritten.
|
|
82
|
-
* `updateAgeOnGet` When using time-expiring entries with `maxAge`,
|
|
83
|
-
setting this to `true` will make each item's effective time update
|
|
84
|
-
to the current time whenever it is retrieved from cache, causing it
|
|
85
|
-
to not expire. (It can still fall out of cache based on recency of
|
|
86
|
-
use, of course.)
|
|
87
|
-
|
|
88
|
-
## API
|
|
89
|
-
|
|
90
|
-
* `set(key, value, maxAge)`
|
|
91
|
-
* `get(key) => value`
|
|
92
|
-
|
|
93
|
-
Both of these will update the "recently used"-ness of the key.
|
|
94
|
-
They do what you think. `maxAge` is optional and overrides the
|
|
95
|
-
cache `maxAge` option if provided.
|
|
96
|
-
|
|
97
|
-
If the key is not found, `get()` will return `undefined`.
|
|
98
|
-
|
|
99
|
-
The key and val can be any value.
|
|
100
|
-
|
|
101
|
-
* `peek(key)`
|
|
102
|
-
|
|
103
|
-
Returns the key value (or `undefined` if not found) without
|
|
104
|
-
updating the "recently used"-ness of the key.
|
|
105
|
-
|
|
106
|
-
(If you find yourself using this a lot, you *might* be using the
|
|
107
|
-
wrong sort of data structure, but there are some use cases where
|
|
108
|
-
it's handy.)
|
|
109
|
-
|
|
110
|
-
* `del(key)`
|
|
111
|
-
|
|
112
|
-
Deletes a key out of the cache.
|
|
113
|
-
|
|
114
|
-
* `reset()`
|
|
115
|
-
|
|
116
|
-
Clear the cache entirely, throwing away all values.
|
|
117
|
-
|
|
118
|
-
* `has(key)`
|
|
119
|
-
|
|
120
|
-
Check if a key is in the cache, without updating the recent-ness
|
|
121
|
-
or deleting it for being stale.
|
|
122
|
-
|
|
123
|
-
* `forEach(function(value,key,cache), [thisp])`
|
|
124
|
-
|
|
125
|
-
Just like `Array.prototype.forEach`. Iterates over all the keys
|
|
126
|
-
in the cache, in order of recent-ness. (Ie, more recently used
|
|
127
|
-
items are iterated over first.)
|
|
128
|
-
|
|
129
|
-
* `rforEach(function(value,key,cache), [thisp])`
|
|
130
|
-
|
|
131
|
-
The same as `cache.forEach(...)` but items are iterated over in
|
|
132
|
-
reverse order. (ie, less recently used items are iterated over
|
|
133
|
-
first.)
|
|
134
|
-
|
|
135
|
-
* `keys()`
|
|
136
|
-
|
|
137
|
-
Return an array of the keys in the cache.
|
|
138
|
-
|
|
139
|
-
* `values()`
|
|
140
|
-
|
|
141
|
-
Return an array of the values in the cache.
|
|
142
|
-
|
|
143
|
-
* `length`
|
|
144
|
-
|
|
145
|
-
Return total length of objects in cache taking into account
|
|
146
|
-
`length` options function.
|
|
147
|
-
|
|
148
|
-
* `itemCount`
|
|
149
|
-
|
|
150
|
-
Return total quantity of objects currently in cache. Note, that
|
|
151
|
-
`stale` (see options) items are returned as part of this item
|
|
152
|
-
count.
|
|
153
|
-
|
|
154
|
-
* `dump()`
|
|
155
|
-
|
|
156
|
-
Return an array of the cache entries ready for serialization and usage
|
|
157
|
-
with 'destinationCache.load(arr)`.
|
|
158
|
-
|
|
159
|
-
* `load(cacheEntriesArray)`
|
|
160
|
-
|
|
161
|
-
Loads another cache entries array, obtained with `sourceCache.dump()`,
|
|
162
|
-
into the cache. The destination cache is reset before loading new entries
|
|
163
|
-
|
|
164
|
-
* `prune()`
|
|
165
|
-
|
|
166
|
-
Manually iterates over the entire cache proactively pruning old entries
|