@oneblink/release-cli 1.2.0-beta.2 → 1.2.0-beta.3
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/node_modules/@yarnpkg/lockfile/README.md +22 -0
- package/node_modules/@yarnpkg/lockfile/index.js +10273 -0
- package/node_modules/@yarnpkg/lockfile/package.json +19 -0
- package/node_modules/ansi-styles/index.js +165 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +60 -0
- package/node_modules/ansi-styles/readme.md +147 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +52 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +51 -0
- package/node_modules/braces/CHANGELOG.md +184 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +593 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +57 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +333 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +112 -0
- package/node_modules/braces/package.json +81 -0
- package/node_modules/chalk/index.js +228 -0
- package/node_modules/chalk/index.js.flow +93 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +75 -0
- package/node_modules/chalk/readme.md +314 -0
- package/node_modules/chalk/templates.js +128 -0
- package/node_modules/chalk/types/index.d.ts +97 -0
- package/node_modules/changelog-parser/.DS_Store +0 -0
- package/node_modules/changelog-parser/.travis.yml +7 -0
- package/node_modules/changelog-parser/CHANGELOG.md +128 -0
- package/node_modules/changelog-parser/CONTRIBUTING.md +55 -0
- package/node_modules/changelog-parser/LICENSE.md +15 -0
- package/node_modules/changelog-parser/README.md +247 -0
- package/node_modules/changelog-parser/bin/cli.js +19 -0
- package/node_modules/changelog-parser/index.js +201 -0
- package/node_modules/changelog-parser/package.json +54 -0
- package/node_modules/changelog-parser/test/fixtures/CHANGELOG.md +44 -0
- package/node_modules/changelog-parser/test/fixtures/expected.js +113 -0
- package/node_modules/changelog-parser/test/fixtures/remove-markdown-expected.js +113 -0
- package/node_modules/changelog-parser/test/index.js +105 -0
- package/node_modules/ci-info/CHANGELOG.md +78 -0
- package/node_modules/ci-info/LICENSE +21 -0
- package/node_modules/ci-info/README.md +108 -0
- package/node_modules/ci-info/index.js +66 -0
- package/node_modules/ci-info/package.json +40 -0
- package/node_modules/ci-info/vendors.json +153 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color-convert/index.js +78 -0
- package/node_modules/color-convert/package.json +50 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +29 -0
- package/node_modules/color-name/test.js +7 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +47 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/escape-string-regexp/index.js +11 -0
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +45 -0
- package/node_modules/escape-string-regexp/readme.md +27 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +249 -0
- package/node_modules/fill-range/package.json +73 -0
- package/node_modules/find-yarn-workspace-root/CHANGELOG.md +53 -0
- package/node_modules/find-yarn-workspace-root/LICENSE +201 -0
- package/node_modules/find-yarn-workspace-root/README.md +56 -0
- package/node_modules/find-yarn-workspace-root/index.d.ts +3 -0
- package/node_modules/find-yarn-workspace-root/index.js +53 -0
- package/node_modules/find-yarn-workspace-root/package.json +38 -0
- package/node_modules/fs-extra/CHANGELOG.md +842 -0
- package/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/fs-extra/README.md +261 -0
- package/node_modules/fs-extra/lib/copy/copy.js +246 -0
- package/node_modules/fs-extra/lib/copy/index.js +6 -0
- package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +193 -0
- package/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
- package/node_modules/fs-extra/lib/empty/index.js +48 -0
- package/node_modules/fs-extra/lib/ensure/file.js +49 -0
- package/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/fs-extra/lib/ensure/link.js +61 -0
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
- package/node_modules/fs-extra/lib/fs/index.js +104 -0
- package/node_modules/fs-extra/lib/index.js +28 -0
- package/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/fs-extra/lib/json/jsonfile.js +12 -0
- package/node_modules/fs-extra/lib/json/output-json-sync.js +18 -0
- package/node_modules/fs-extra/lib/json/output-json.js +27 -0
- package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +54 -0
- package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +63 -0
- package/node_modules/fs-extra/lib/mkdirs/win32.js +25 -0
- package/node_modules/fs-extra/lib/move/index.js +82 -0
- package/node_modules/fs-extra/lib/move-sync/index.js +117 -0
- package/node_modules/fs-extra/lib/output/index.js +40 -0
- package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/fs-extra/lib/remove/index.js +9 -0
- package/node_modules/fs-extra/lib/remove/rimraf.js +314 -0
- package/node_modules/fs-extra/lib/util/buffer.js +12 -0
- package/node_modules/fs-extra/lib/util/utimes.js +79 -0
- package/node_modules/fs-extra/package.json +72 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +30 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +375 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/glob/common.js +240 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +50 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +133 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +373 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +54 -0
- package/node_modules/graceful-fs/polyfills.js +346 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +48 -0
- package/node_modules/has-flag/readme.md +70 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +33 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +33 -0
- package/node_modules/is-ci/CHANGELOG.md +14 -0
- package/node_modules/is-ci/LICENSE +21 -0
- package/node_modules/is-ci/README.md +50 -0
- package/node_modules/is-ci/bin.js +4 -0
- package/node_modules/is-ci/index.js +3 -0
- package/node_modules/is-ci/package.json +42 -0
- package/node_modules/is-docker/cli.js +5 -0
- package/node_modules/is-docker/index.d.ts +15 -0
- package/node_modules/is-docker/index.js +29 -0
- package/node_modules/is-docker/license +9 -0
- package/node_modules/is-docker/package.json +46 -0
- package/node_modules/is-docker/readme.md +27 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +86 -0
- package/node_modules/is-wsl/index.d.ts +15 -0
- package/node_modules/is-wsl/index.js +31 -0
- package/node_modules/is-wsl/license +9 -0
- package/node_modules/is-wsl/package.json +49 -0
- package/node_modules/is-wsl/readme.md +36 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +35 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jsonfile/CHANGELOG.md +145 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +168 -0
- package/node_modules/jsonfile/index.js +134 -0
- package/node_modules/jsonfile/package.json +41 -0
- package/node_modules/klaw-sync/CHANGELOG.md +73 -0
- package/node_modules/klaw-sync/LICENSE +20 -0
- package/node_modules/klaw-sync/README.md +164 -0
- package/node_modules/klaw-sync/klaw-sync.js +29 -0
- package/node_modules/klaw-sync/package.json +51 -0
- package/node_modules/line-reader/LICENSE +20 -0
- package/node_modules/line-reader/README.md +75 -0
- package/node_modules/line-reader/lib/line_reader.js +174 -0
- package/node_modules/line-reader/package.json +18 -0
- package/node_modules/line-reader/test/data/empty_file.txt +0 -0
- package/node_modules/line-reader/test/data/multi_separator_file.txt +2 -0
- package/node_modules/line-reader/test/data/multibyte_file.txt +2 -0
- package/node_modules/line-reader/test/data/normal_file.txt +6 -0
- package/node_modules/line-reader/test/data/one_line_file.txt +1 -0
- package/node_modules/line-reader/test/data/separator_file.txt +2 -0
- package/node_modules/line-reader/test/data/three_line_file.txt +3 -0
- package/node_modules/line-reader/test/line_reader.js +222 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +166 -0
- package/node_modules/lru-cache/index.js +334 -0
- package/node_modules/lru-cache/package.json +38 -0
- package/node_modules/micromatch/CHANGELOG.md +109 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1008 -0
- package/node_modules/micromatch/index.js +467 -0
- package/node_modules/micromatch/package.json +123 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +209 -0
- package/node_modules/minimatch/minimatch.js +923 -0
- package/node_modules/minimatch/package.json +34 -0
- package/node_modules/minimist/.travis.yml +8 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/example/parse.js +2 -0
- package/node_modules/minimist/index.js +245 -0
- package/node_modules/minimist/package.json +49 -0
- package/node_modules/minimist/readme.markdown +95 -0
- package/node_modules/minimist/test/all_bool.js +32 -0
- package/node_modules/minimist/test/bool.js +178 -0
- package/node_modules/minimist/test/dash.js +31 -0
- package/node_modules/minimist/test/default_bool.js +35 -0
- package/node_modules/minimist/test/dotted.js +22 -0
- package/node_modules/minimist/test/kv_short.js +16 -0
- package/node_modules/minimist/test/long.js +31 -0
- package/node_modules/minimist/test/num.js +36 -0
- package/node_modules/minimist/test/parse.js +197 -0
- package/node_modules/minimist/test/parse_modified.js +9 -0
- package/node_modules/minimist/test/proto.js +44 -0
- package/node_modules/minimist/test/short.js +67 -0
- package/node_modules/minimist/test/stop_early.js +15 -0
- package/node_modules/minimist/test/unknown.js +102 -0
- package/node_modules/minimist/test/whitespace.js +8 -0
- package/node_modules/nice-try/CHANGELOG.md +21 -0
- package/node_modules/nice-try/LICENSE +21 -0
- package/node_modules/nice-try/README.md +32 -0
- package/node_modules/nice-try/package.json +37 -0
- package/node_modules/nice-try/src/index.js +12 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +37 -0
- package/node_modules/open/index.d.ts +88 -0
- package/node_modules/open/index.js +195 -0
- package/node_modules/open/license +9 -0
- package/node_modules/open/package.json +64 -0
- package/node_modules/open/readme.md +154 -0
- package/node_modules/open/xdg-open +1066 -0
- package/node_modules/os-tmpdir/index.js +25 -0
- package/node_modules/os-tmpdir/license +21 -0
- package/node_modules/os-tmpdir/package.json +45 -0
- package/node_modules/os-tmpdir/readme.md +32 -0
- package/node_modules/patch-package/CHANGELOG.md +389 -0
- package/node_modules/patch-package/LICENSE +19 -0
- package/node_modules/patch-package/README.md +269 -0
- package/node_modules/patch-package/dist/PackageDetails.js +102 -0
- package/node_modules/patch-package/dist/PackageDetails.test.js +228 -0
- package/node_modules/patch-package/dist/applyPatches.js +261 -0
- package/node_modules/patch-package/dist/assertNever.js +8 -0
- package/node_modules/patch-package/dist/createIssue.js +83 -0
- package/node_modules/patch-package/dist/detectPackageManager.js +64 -0
- package/node_modules/patch-package/dist/filterFiles.js +17 -0
- package/node_modules/patch-package/dist/getAppRootPath.js +22 -0
- package/node_modules/patch-package/dist/getPackageResolution.js +85 -0
- package/node_modules/patch-package/dist/getPackageVersion.js +9 -0
- package/node_modules/patch-package/dist/index.js +161 -0
- package/node_modules/patch-package/dist/makePatch.js +231 -0
- package/node_modules/patch-package/dist/makeRegExp.js +28 -0
- package/node_modules/patch-package/dist/packageIsDevDependency.js +15 -0
- package/node_modules/patch-package/dist/packageIsDevDependency.test.js +32 -0
- package/node_modules/patch-package/dist/patch/apply.js +197 -0
- package/node_modules/patch-package/dist/patch/parse.js +330 -0
- package/node_modules/patch-package/dist/patch/read.js +49 -0
- package/node_modules/patch-package/dist/patch/reverse.js +96 -0
- package/node_modules/patch-package/dist/patchFs.js +20 -0
- package/node_modules/patch-package/dist/path.js +17 -0
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.js +21 -0
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.test.js +22 -0
- package/node_modules/patch-package/dist/spawnSafe.js +28 -0
- package/node_modules/patch-package/index.js +3 -0
- package/node_modules/patch-package/node_modules/cross-spawn/CHANGELOG.md +100 -0
- package/node_modules/patch-package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/patch-package/node_modules/cross-spawn/README.md +94 -0
- package/node_modules/patch-package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/parse.js +125 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/resolveCommand.js +47 -0
- package/node_modules/patch-package/node_modules/cross-spawn/package.json +80 -0
- package/node_modules/patch-package/node_modules/path-key/index.js +13 -0
- package/node_modules/patch-package/node_modules/path-key/license +21 -0
- package/node_modules/patch-package/node_modules/path-key/package.json +43 -0
- package/node_modules/patch-package/node_modules/path-key/readme.md +51 -0
- package/node_modules/patch-package/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/patch-package/node_modules/rimraf/README.md +101 -0
- package/node_modules/patch-package/node_modules/rimraf/bin.js +50 -0
- package/node_modules/patch-package/node_modules/rimraf/package.json +33 -0
- package/node_modules/patch-package/node_modules/rimraf/rimraf.js +372 -0
- package/node_modules/patch-package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/patch-package/node_modules/semver/LICENSE +15 -0
- package/node_modules/patch-package/node_modules/semver/README.md +412 -0
- package/node_modules/patch-package/node_modules/semver/bin/semver +160 -0
- package/node_modules/patch-package/node_modules/semver/package.json +32 -0
- package/node_modules/patch-package/node_modules/semver/range.bnf +16 -0
- package/node_modules/patch-package/node_modules/semver/semver.js +1483 -0
- package/node_modules/patch-package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/patch-package/node_modules/shebang-command/license +21 -0
- package/node_modules/patch-package/node_modules/shebang-command/package.json +43 -0
- package/node_modules/patch-package/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/patch-package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/patch-package/node_modules/shebang-regex/license +21 -0
- package/node_modules/patch-package/node_modules/shebang-regex/package.json +36 -0
- package/node_modules/patch-package/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/patch-package/node_modules/slash/index.js +11 -0
- package/node_modules/patch-package/node_modules/slash/license +9 -0
- package/node_modules/patch-package/node_modules/slash/package.json +38 -0
- package/node_modules/patch-package/node_modules/slash/readme.md +44 -0
- package/node_modules/patch-package/node_modules/which/CHANGELOG.md +152 -0
- package/node_modules/patch-package/node_modules/which/LICENSE +15 -0
- package/node_modules/patch-package/node_modules/which/README.md +51 -0
- package/node_modules/patch-package/node_modules/which/bin/which +52 -0
- package/node_modules/patch-package/node_modules/which/package.json +34 -0
- package/node_modules/patch-package/node_modules/which/which.js +135 -0
- package/node_modules/patch-package/package.json +100 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +47 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/picomatch/CHANGELOG.md +120 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +691 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1078 -0
- package/node_modules/picomatch/lib/picomatch.js +339 -0
- package/node_modules/picomatch/lib/scan.js +385 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +85 -0
- package/node_modules/remove-markdown/.npmignore +1 -0
- package/node_modules/remove-markdown/LICENSE +21 -0
- package/node_modules/remove-markdown/README.md +44 -0
- package/node_modules/remove-markdown/index.js +60 -0
- package/node_modules/remove-markdown/package.json +31 -0
- package/node_modules/remove-markdown/test/remove-markdown.js +139 -0
- package/node_modules/semver/CHANGELOG.md +111 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +566 -0
- package/node_modules/semver/bin/semver.js +173 -0
- package/node_modules/semver/classes/comparator.js +135 -0
- package/node_modules/semver/classes/index.js +5 -0
- package/node_modules/semver/classes/range.js +510 -0
- package/node_modules/semver/classes/semver.js +287 -0
- package/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/semver/functions/cmp.js +48 -0
- package/node_modules/semver/functions/coerce.js +51 -0
- package/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/semver/functions/diff.js +23 -0
- package/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/semver/functions/inc.js +15 -0
- package/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/semver/functions/major.js +3 -0
- package/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/semver/functions/parse.js +33 -0
- package/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/semver/index.js +48 -0
- package/node_modules/semver/internal/constants.js +17 -0
- package/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/semver/internal/parse-options.js +11 -0
- package/node_modules/semver/internal/re.js +182 -0
- package/node_modules/semver/package.json +45 -0
- package/node_modules/semver/preload.js +2 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/semver/ranges/min-version.js +60 -0
- package/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/semver/ranges/simplify.js +44 -0
- package/node_modules/semver/ranges/subset.js +222 -0
- package/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +131 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +57 -0
- package/node_modules/supports-color/readme.md +66 -0
- package/node_modules/tmp/LICENSE +21 -0
- package/node_modules/tmp/README.md +314 -0
- package/node_modules/tmp/lib/tmp.js +611 -0
- package/node_modules/tmp/package.json +42 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +92 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +25 -0
- package/node_modules/universalify/package.json +38 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +33 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +33 -0
- package/node_modules/yallist/yallist.js +426 -0
- package/package.json +5 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const win32 = process.platform === 'win32';
|
|
5
|
+
const {
|
|
6
|
+
REGEX_BACKSLASH,
|
|
7
|
+
REGEX_REMOVE_BACKSLASH,
|
|
8
|
+
REGEX_SPECIAL_CHARS,
|
|
9
|
+
REGEX_SPECIAL_CHARS_GLOBAL
|
|
10
|
+
} = require('./constants');
|
|
11
|
+
|
|
12
|
+
exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
13
|
+
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
14
|
+
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
|
|
15
|
+
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
16
|
+
exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
17
|
+
|
|
18
|
+
exports.removeBackslashes = str => {
|
|
19
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, match => {
|
|
20
|
+
return match === '\\' ? '' : match;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.supportsLookbehinds = () => {
|
|
25
|
+
const segs = process.version.slice(1).split('.').map(Number);
|
|
26
|
+
if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.isWindows = options => {
|
|
33
|
+
if (options && typeof options.windows === 'boolean') {
|
|
34
|
+
return options.windows;
|
|
35
|
+
}
|
|
36
|
+
return win32 === true || path.sep === '\\';
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.escapeLast = (input, char, lastIdx) => {
|
|
40
|
+
const idx = input.lastIndexOf(char, lastIdx);
|
|
41
|
+
if (idx === -1) return input;
|
|
42
|
+
if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
|
|
43
|
+
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.removePrefix = (input, state = {}) => {
|
|
47
|
+
let output = input;
|
|
48
|
+
if (output.startsWith('./')) {
|
|
49
|
+
output = output.slice(2);
|
|
50
|
+
state.prefix = './';
|
|
51
|
+
}
|
|
52
|
+
return output;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
56
|
+
const prepend = options.contains ? '' : '^';
|
|
57
|
+
const append = options.contains ? '' : '$';
|
|
58
|
+
|
|
59
|
+
let output = `${prepend}(?:${input})${append}`;
|
|
60
|
+
if (state.negated === true) {
|
|
61
|
+
output = `(?:^(?!${output}).*$)`;
|
|
62
|
+
}
|
|
63
|
+
return output;
|
|
64
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "picomatch",
|
|
3
|
+
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
|
|
4
|
+
"version": "2.2.3",
|
|
5
|
+
"homepage": "https://github.com/micromatch/picomatch",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"funding": "https://github.com/sponsors/jonschlinkert",
|
|
8
|
+
"repository": "micromatch/picomatch",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/micromatch/picomatch/issues"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"files": [
|
|
14
|
+
"index.js",
|
|
15
|
+
"lib"
|
|
16
|
+
],
|
|
17
|
+
"main": "index.js",
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=8.6"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
|
|
23
|
+
"mocha": "mocha --reporter dot",
|
|
24
|
+
"test": "npm run lint && npm run mocha",
|
|
25
|
+
"test:ci": "npm run test:cover",
|
|
26
|
+
"test:cover": "nyc npm run mocha"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"eslint": "^6.8.0",
|
|
30
|
+
"fill-range": "^7.0.1",
|
|
31
|
+
"gulp-format-md": "^2.0.0",
|
|
32
|
+
"mocha": "^6.2.2",
|
|
33
|
+
"nyc": "^15.0.0",
|
|
34
|
+
"time-require": "github:jonschlinkert/time-require"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"glob",
|
|
38
|
+
"match",
|
|
39
|
+
"picomatch"
|
|
40
|
+
],
|
|
41
|
+
"nyc": {
|
|
42
|
+
"reporter": [
|
|
43
|
+
"html",
|
|
44
|
+
"lcov",
|
|
45
|
+
"text-summary"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"verb": {
|
|
49
|
+
"toc": {
|
|
50
|
+
"render": true,
|
|
51
|
+
"method": "preWrite",
|
|
52
|
+
"maxdepth": 3
|
|
53
|
+
},
|
|
54
|
+
"layout": "empty",
|
|
55
|
+
"tasks": [
|
|
56
|
+
"readme"
|
|
57
|
+
],
|
|
58
|
+
"plugins": [
|
|
59
|
+
"gulp-format-md"
|
|
60
|
+
],
|
|
61
|
+
"lint": {
|
|
62
|
+
"reflinks": true
|
|
63
|
+
},
|
|
64
|
+
"related": {
|
|
65
|
+
"list": [
|
|
66
|
+
"braces",
|
|
67
|
+
"micromatch"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"reflinks": [
|
|
71
|
+
"braces",
|
|
72
|
+
"expand-brackets",
|
|
73
|
+
"extglob",
|
|
74
|
+
"fill-range",
|
|
75
|
+
"micromatch",
|
|
76
|
+
"minimatch",
|
|
77
|
+
"nanomatch",
|
|
78
|
+
"picomatch"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
,"_resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.3.tgz"
|
|
83
|
+
,"_integrity": "sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg=="
|
|
84
|
+
,"_from": "picomatch@2.2.3"
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
node_modules/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Stian Grytøyr
|
|
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,44 @@
|
|
|
1
|
+
[](https://circleci.com/gh/stiang/remove-markdown)
|
|
2
|
+
|
|
3
|
+
## What is it?
|
|
4
|
+
**remove-markdown** is a node.js module that will remove (strip) Markdown formatting from a text. "Markdown formatting" means pretty much anything that doesn’t look like regular text, like square brackets, asterisks etc.
|
|
5
|
+
|
|
6
|
+
## When do I need it?
|
|
7
|
+
The typical use case is to display an excerpt of a Markdown text, without the actual Markdown (or rendered HTML, for that matter), for example in a list of posts.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
npm install remove-markdown
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
```js
|
|
17
|
+
const removeMd = require('remove-markdown');
|
|
18
|
+
const markdown = '# This is a heading\n\nThis is a paragraph with [a link](http://www.disney.com/) in it.';
|
|
19
|
+
const plainText = removeMd(markdown); // plainText is now 'This is a heading\n\nThis is a paragraph with a link in it.'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
You can also supply an options object to the function. Currently, the following options are supported:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
var plainText = removeMd(markdown, {
|
|
26
|
+
stripListLeaders: true , // strip list leaders (default: true)
|
|
27
|
+
listUnicodeChar: '', // char to insert instead of stripped list leaders (default: '')
|
|
28
|
+
gfm: true // support GitHub-Flavored Markdown (default: true)
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Setting `stripListLeaders` to false will retain any list characters (`*, -, +, (digit).`).
|
|
33
|
+
|
|
34
|
+
## TODO
|
|
35
|
+
PRs are very much welcome.
|
|
36
|
+
* Allow the RegEx expressions to be customized per rule
|
|
37
|
+
* Make the rules more robust, support more edge cases
|
|
38
|
+
* Add more (comprehensive) tests
|
|
39
|
+
|
|
40
|
+
## Credits
|
|
41
|
+
The code is based on [Markdown Service Tools - Strip Markdown](http://brettterpstra.com/2013/10/18/a-markdown-service-to-strip-markdown/) by Brett Terpstra.
|
|
42
|
+
|
|
43
|
+
## Author
|
|
44
|
+
Stian Grytøyr
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
module.exports = function(md, options) {
|
|
2
|
+
options = options || {};
|
|
3
|
+
options.listUnicodeChar = options.hasOwnProperty('listUnicodeChar') ? options.listUnicodeChar : false;
|
|
4
|
+
options.stripListLeaders = options.hasOwnProperty('stripListLeaders') ? options.stripListLeaders : true;
|
|
5
|
+
options.gfm = options.hasOwnProperty('gfm') ? options.gfm : true;
|
|
6
|
+
|
|
7
|
+
var output = md || '';
|
|
8
|
+
|
|
9
|
+
// Remove horizontal rules (stripListHeaders conflict with this rule, which is why it has been moved to the top)
|
|
10
|
+
output = output.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm, '');
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
if (options.stripListLeaders) {
|
|
14
|
+
if (options.listUnicodeChar)
|
|
15
|
+
output = output.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, options.listUnicodeChar + ' $1');
|
|
16
|
+
else
|
|
17
|
+
output = output.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, '$1');
|
|
18
|
+
}
|
|
19
|
+
if (options.gfm) {
|
|
20
|
+
output = output
|
|
21
|
+
// Header
|
|
22
|
+
.replace(/\n={2,}/g, '\n')
|
|
23
|
+
// Strikethrough
|
|
24
|
+
.replace(/~~/g, '')
|
|
25
|
+
// Fenced codeblocks
|
|
26
|
+
.replace(/`{3}.*\n/g, '');
|
|
27
|
+
}
|
|
28
|
+
output = output
|
|
29
|
+
// Remove HTML tags
|
|
30
|
+
.replace(/<[^>]*>/g, '')
|
|
31
|
+
// Remove setext-style headers
|
|
32
|
+
.replace(/^[=\-]{2,}\s*$/g, '')
|
|
33
|
+
// Remove footnotes?
|
|
34
|
+
.replace(/\[\^.+?\](\: .*?$)?/g, '')
|
|
35
|
+
.replace(/\s{0,2}\[.*?\]: .*?$/g, '')
|
|
36
|
+
// Remove images
|
|
37
|
+
.replace(/\!\[.*?\][\[\(].*?[\]\)]/g, '')
|
|
38
|
+
// Remove inline links
|
|
39
|
+
.replace(/\[(.*?)\][\[\(].*?[\]\)]/g, '$1')
|
|
40
|
+
// Remove blockquotes
|
|
41
|
+
.replace(/^\s{0,3}>\s?/g, '')
|
|
42
|
+
// Remove reference-style links?
|
|
43
|
+
.replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g, '')
|
|
44
|
+
// Remove atx-style headers
|
|
45
|
+
.replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm, '$1$2$3')
|
|
46
|
+
// Remove emphasis (repeat the line to remove double emphasis)
|
|
47
|
+
.replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g, '$2')
|
|
48
|
+
.replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g, '$2')
|
|
49
|
+
// Remove code blocks
|
|
50
|
+
.replace(/(`{3,})(.*?)\1/gm, '$2')
|
|
51
|
+
// Remove inline code
|
|
52
|
+
.replace(/`(.+?)`/g, '$1')
|
|
53
|
+
// Replace two or more newlines with exactly two? Not entirely sure this belongs here...
|
|
54
|
+
.replace(/\n{2,}/g, '\n\n');
|
|
55
|
+
} catch(e) {
|
|
56
|
+
console.error(e);
|
|
57
|
+
return md;
|
|
58
|
+
}
|
|
59
|
+
return output;
|
|
60
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "remove-markdown",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Remove Markdown formatting from text",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "./node_modules/.bin/mocha -R spec test/remove-markdown.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/stiang/remove-markdown.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"markdown"
|
|
15
|
+
],
|
|
16
|
+
"author": "Stian Grytøyr",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/stiang/remove-markdown/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/stiang/remove-markdown",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"chai": "^4.0.2",
|
|
24
|
+
"mocha": "^2.1.0",
|
|
25
|
+
"should": "^5.0.0"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
,"_resolved": "https://registry.npmjs.org/remove-markdown/-/remove-markdown-0.2.2.tgz"
|
|
29
|
+
,"_integrity": "sha1-ZrDO66n7d8qWNrsbAwfOIaMqEqY="
|
|
30
|
+
,"_from": "remove-markdown@0.2.2"
|
|
31
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const expect = require('chai').expect;
|
|
3
|
+
const removeMd = require('../');
|
|
4
|
+
|
|
5
|
+
describe('remove Markdown', function () {
|
|
6
|
+
describe('removeMd', function () {
|
|
7
|
+
it('should leave a string alone without markdown', function () {
|
|
8
|
+
const string = 'Javascript Developers are the best.';
|
|
9
|
+
expect(removeMd(string)).to.equal(string);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('should strip out remaining markdown', function () {
|
|
13
|
+
const string = '*Javascript* developers are the _best_.';
|
|
14
|
+
const expected = 'Javascript developers are the best.';
|
|
15
|
+
expect(removeMd(string)).to.equal(expected);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should leave non-matching markdown markdown', function () {
|
|
19
|
+
const string = '*Javascript* developers* are the _best_.';
|
|
20
|
+
const expected = 'Javascript developers* are the best.';
|
|
21
|
+
expect(removeMd(string)).to.equal(expected);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('should leave non-matching markdown, but strip empty anchors', function () {
|
|
25
|
+
const string = '*Javascript* [developers]()* are the _best_.';
|
|
26
|
+
const expected = 'Javascript developers* are the best.';
|
|
27
|
+
expect(removeMd(string)).to.equal(expected);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should strip HTML', function () {
|
|
31
|
+
const string = '<p>Hello World</p>';
|
|
32
|
+
const expected = 'Hello World';
|
|
33
|
+
expect(removeMd(string)).to.equal(expected);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('should strip anchors', function () {
|
|
37
|
+
const string = '*Javascript* [developers](https://engineering.condenast.io/)* are the _best_.';
|
|
38
|
+
const expected = 'Javascript developers* are the best.';
|
|
39
|
+
expect(removeMd(string)).to.equal(expected);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('should strip img tags', function () {
|
|
43
|
+
const string = '*Javascript* developers are the _best_.';
|
|
44
|
+
const expected = 'Javascript developers are the best.';
|
|
45
|
+
expect(removeMd(string)).to.equal(expected);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('should strip code tags', function () {
|
|
49
|
+
const string = 'In `Getting Started` we set up `something` foo.';
|
|
50
|
+
const expected = 'In Getting Started we set up something foo.';
|
|
51
|
+
expect(removeMd(string)).to.equal(expected);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('should leave hashtags in headings', function () {
|
|
55
|
+
const string = '## This #heading contains #hashtags';
|
|
56
|
+
const expected = 'This #heading contains #hashtags';
|
|
57
|
+
expect(removeMd(string)).to.equal(expected);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('should remove emphasis', function () {
|
|
61
|
+
const string = 'I italicized an *I* and it _made_ me *sad*.';
|
|
62
|
+
const expected = 'I italicized an I and it made me sad.';
|
|
63
|
+
expect(removeMd(string)).to.equal(expected);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('should remove double emphasis', function () {
|
|
67
|
+
const string = '**this sentence has __double styling__**';
|
|
68
|
+
const expected = 'this sentence has double styling';
|
|
69
|
+
expect(removeMd(string)).to.equal(expected);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it('should remove horizontal rules', function () {
|
|
73
|
+
const string = 'Some text on a line\n\n---\n\nA line below';
|
|
74
|
+
const expected = 'Some text on a line\n\nA line below';
|
|
75
|
+
expect(removeMd(string)).to.equal(expected);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it('should remove horizontal rules with space-separated asterisks', function () {
|
|
79
|
+
const string = 'Some text on a line\n\n* * *\n\nA line below';
|
|
80
|
+
const expected = 'Some text on a line\n\nA line below';
|
|
81
|
+
expect(removeMd(string)).to.equal(expected);
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
it('should remove blockquotes', function () {
|
|
85
|
+
const string = '>I am a blockquote';
|
|
86
|
+
const expected = 'I am a blockquote';
|
|
87
|
+
expect(removeMd(string)).to.equal(expected);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it('should remove blockquotes with spaces', function () {
|
|
91
|
+
const string = '> I am a blockquote';
|
|
92
|
+
const expected = 'I am a blockquote';
|
|
93
|
+
expect(removeMd(string)).to.equal(expected);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it('should remove indented blockquotes', function () {
|
|
97
|
+
var tests = [
|
|
98
|
+
{ string: ' > I am a blockquote', expected: 'I am a blockquote' },
|
|
99
|
+
{ string: ' > I am a blockquote', expected: 'I am a blockquote' },
|
|
100
|
+
{ string: ' > I am a blockquote', expected: 'I am a blockquote' },
|
|
101
|
+
];
|
|
102
|
+
tests.forEach(function (test) {
|
|
103
|
+
expect(removeMd(test.string)).to.equal(test.expected);
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it('should not remove greater than signs', function () {
|
|
108
|
+
var tests = [
|
|
109
|
+
{ string: '100 > 0', expected: '100 > 0' },
|
|
110
|
+
{ string: '100 >= 0', expected: '100 >= 0' },
|
|
111
|
+
{ string: '100>0', expected: '100>0' },
|
|
112
|
+
{ string: '> 100 > 0', expected: '100 > 0' },
|
|
113
|
+
{ string: '1 < 100', expected: '1 < 100' },
|
|
114
|
+
{ string: '1 <= 100', expected: '1 <= 100' },
|
|
115
|
+
];
|
|
116
|
+
tests.forEach(function (test) {
|
|
117
|
+
expect(removeMd(test.string)).to.equal(test.expected);
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it('should strip unordered list leaders', function () {
|
|
122
|
+
const string = 'Some text on a line\n\n* A list Item\n* Another list item';
|
|
123
|
+
const expected = 'Some text on a line\n\nA list Item\nAnother list item';
|
|
124
|
+
expect(removeMd(string)).to.equal(expected);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
it('should strip ordered list leaders', function () {
|
|
128
|
+
const string = 'Some text on a line\n\n9. A list Item\n10. Another list item';
|
|
129
|
+
const expected = 'Some text on a line\n\nA list Item\nAnother list item';
|
|
130
|
+
expect(removeMd(string)).to.equal(expected);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
it('should handle paragraphs with markdown', function () {
|
|
134
|
+
const paragraph = '\n## This is a heading ##\n\nThis is a paragraph with [a link](http://www.disney.com/).\n\n### This is another heading\n\nIn `Getting Started` we set up `something` foo.\n\n * Some list\n * With items\n * Even indented';
|
|
135
|
+
const expected = '\nThis is a heading\n\nThis is a paragraph with a link.\n\nThis is another heading\n\nIn Getting Started we set up something foo.\n\n Some list\n With items\n Even indented';
|
|
136
|
+
expect(removeMd(paragraph)).to.equal(expected);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
});
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# changes log
|
|
2
|
+
|
|
3
|
+
## 7.3.0
|
|
4
|
+
|
|
5
|
+
* Add `subset(r1, r2)` method to determine if `r1` range is entirely
|
|
6
|
+
contained by `r2` range.
|
|
7
|
+
|
|
8
|
+
## 7.2.3
|
|
9
|
+
|
|
10
|
+
* Fix handling of `includePrelease` mode where version ranges like `1.0.0 -
|
|
11
|
+
2.0.0` would include `3.0.0-pre` and not `1.0.0-pre`.
|
|
12
|
+
|
|
13
|
+
## 7.2.2
|
|
14
|
+
|
|
15
|
+
* Fix bug where `2.0.0-pre` would be included in `^1.0.0` if
|
|
16
|
+
`includePrerelease` was set to true.
|
|
17
|
+
|
|
18
|
+
## 7.2.0
|
|
19
|
+
|
|
20
|
+
* Add `simplifyRange` method to attempt to generate a more human-readable
|
|
21
|
+
range expression that is equivalent to a supplied range, for a given set
|
|
22
|
+
of versions.
|
|
23
|
+
|
|
24
|
+
## 7.1.2
|
|
25
|
+
|
|
26
|
+
* Remove fancy lazy-loading logic, as it was causing problems for webpack
|
|
27
|
+
users.
|
|
28
|
+
|
|
29
|
+
## 7.1.0
|
|
30
|
+
|
|
31
|
+
* Add `require('semver/preload')` to load the entire module without using
|
|
32
|
+
lazy getter methods.
|
|
33
|
+
|
|
34
|
+
## 7.0.0
|
|
35
|
+
|
|
36
|
+
* Refactor module into separate files for better tree-shaking
|
|
37
|
+
* Drop support for very old node versions, use const/let, `=>` functions,
|
|
38
|
+
and classes.
|
|
39
|
+
|
|
40
|
+
## 6.3.0
|
|
41
|
+
|
|
42
|
+
* Expose the token enum on the exports
|
|
43
|
+
|
|
44
|
+
## 6.2.0
|
|
45
|
+
|
|
46
|
+
* Coerce numbers to strings when passed to semver.coerce()
|
|
47
|
+
* Add `rtl` option to coerce from right to left
|
|
48
|
+
|
|
49
|
+
## 6.1.3
|
|
50
|
+
|
|
51
|
+
* Handle X-ranges properly in includePrerelease mode
|
|
52
|
+
|
|
53
|
+
## 6.1.2
|
|
54
|
+
|
|
55
|
+
* Do not throw when testing invalid version strings
|
|
56
|
+
|
|
57
|
+
## 6.1.1
|
|
58
|
+
|
|
59
|
+
* Add options support for semver.coerce()
|
|
60
|
+
* Handle undefined version passed to Range.test
|
|
61
|
+
|
|
62
|
+
## 6.1.0
|
|
63
|
+
|
|
64
|
+
* Add semver.compareBuild function
|
|
65
|
+
* Support `*` in semver.intersects
|
|
66
|
+
|
|
67
|
+
## 6.0
|
|
68
|
+
|
|
69
|
+
* Fix `intersects` logic.
|
|
70
|
+
|
|
71
|
+
This is technically a bug fix, but since it is also a change to behavior
|
|
72
|
+
that may require users updating their code, it is marked as a major
|
|
73
|
+
version increment.
|
|
74
|
+
|
|
75
|
+
## 5.7
|
|
76
|
+
|
|
77
|
+
* Add `minVersion` method
|
|
78
|
+
|
|
79
|
+
## 5.6
|
|
80
|
+
|
|
81
|
+
* Move boolean `loose` param to an options object, with
|
|
82
|
+
backwards-compatibility protection.
|
|
83
|
+
* Add ability to opt out of special prerelease version handling with
|
|
84
|
+
the `includePrerelease` option flag.
|
|
85
|
+
|
|
86
|
+
## 5.5
|
|
87
|
+
|
|
88
|
+
* Add version coercion capabilities
|
|
89
|
+
|
|
90
|
+
## 5.4
|
|
91
|
+
|
|
92
|
+
* Add intersection checking
|
|
93
|
+
|
|
94
|
+
## 5.3
|
|
95
|
+
|
|
96
|
+
* Add `minSatisfying` method
|
|
97
|
+
|
|
98
|
+
## 5.2
|
|
99
|
+
|
|
100
|
+
* Add `prerelease(v)` that returns prerelease components
|
|
101
|
+
|
|
102
|
+
## 5.1
|
|
103
|
+
|
|
104
|
+
* Add Backus-Naur for ranges
|
|
105
|
+
* Remove excessively cute inspection methods
|
|
106
|
+
|
|
107
|
+
## 5.0
|
|
108
|
+
|
|
109
|
+
* Remove AMD/Browserified build artifacts
|
|
110
|
+
* Fix ltr and gtr when using the `*` range
|
|
111
|
+
* Fix for range `*` with a prerelease identifier
|
|
@@ -0,0 +1,15 @@
|
|
|
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.
|