porffor 0.1.0
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/CNAME +1 -0
- package/LICENSE +21 -0
- package/README.md +275 -0
- package/compiler/builtins/base64.js +92 -0
- package/compiler/builtins.js +770 -0
- package/compiler/codeGen.js +2027 -0
- package/compiler/decompile.js +102 -0
- package/compiler/embedding.js +19 -0
- package/compiler/encoding.js +217 -0
- package/compiler/expression.js +70 -0
- package/compiler/index.js +67 -0
- package/compiler/opt.js +436 -0
- package/compiler/parse.js +8 -0
- package/compiler/prototype.js +272 -0
- package/compiler/sections.js +154 -0
- package/compiler/wasmSpec.js +200 -0
- package/compiler/wrap.js +119 -0
- package/index.html +1264 -0
- package/logo.png +0 -0
- package/package.json +23 -0
- package/porf.cmd +2 -0
- package/runner/compare.js +35 -0
- package/runner/index.js +32 -0
- package/runner/info.js +54 -0
- package/runner/profile.js +47 -0
- package/runner/repl.js +99 -0
- package/runner/sizes.js +38 -0
- package/runner/transform.js +36 -0
- package/sw.js +26 -0
- package/test/array_1.js +8 -0
- package/test/array_push.js +8 -0
- package/test/assignop_1.js +15 -0
- package/test/bitwise_1.js +6 -0
- package/test/bool_1.js +3 -0
- package/test/boolean.js +6 -0
- package/test/break_1.js +6 -0
- package/test/break_2.js +12 -0
- package/test/conditional_1.js +3 -0
- package/test/conditional_2.js +4 -0
- package/test/console_1.js +2 -0
- package/test/continue_1.js +6 -0
- package/test/continue_2.js +10 -0
- package/test/empty.js +1 -0
- package/test/ending_exp_1.js +2 -0
- package/test/ending_exp_2.js +6 -0
- package/test/eq_1.js +4 -0
- package/test/eq_2.js +4 -0
- package/test/eq_3.js +5 -0
- package/test/export_1.js +9 -0
- package/test/factorial.js +3 -0
- package/test/fibonacci.js +16 -0
- package/test/float_div0.js +2 -0
- package/test/float_frac.js +2 -0
- package/test/float_isfinite.js +29 -0
- package/test/float_isinteger.js +13 -0
- package/test/float_isnan.js +20 -0
- package/test/float_issafeinteger.js +11 -0
- package/test/float_large.js +2 -0
- package/test/float_math_funcs.js +24 -0
- package/test/float_math_random.js +6 -0
- package/test/float_nan.js +3 -0
- package/test/float_number_values.js +12 -0
- package/test/for_1.js +4 -0
- package/test/for_2.js +4 -0
- package/test/func_1.js +16 -0
- package/test/func_2.js +6 -0
- package/test/func_3.js +10 -0
- package/test/global_1.js +8 -0
- package/test/global_2.js +10 -0
- package/test/if_1.js +6 -0
- package/test/if_2.js +9 -0
- package/test/if_3.js +7 -0
- package/test/iife_1.js +8 -0
- package/test/iife_2.js +8 -0
- package/test/index.js +93 -0
- package/test/int_number_values.js +6 -0
- package/test/logic_1.js +7 -0
- package/test/logic_2.js +7 -0
- package/test/math_1.js +6 -0
- package/test/math_2.js +12 -0
- package/test/math_3.js +6 -0
- package/test/number_func.js +4 -0
- package/test/return_1.js +8 -0
- package/test/return_2.js +11 -0
- package/test/tailcall_1.js +10 -0
- package/test/throw_1.js +2 -0
- package/test/throw_2.js +4 -0
- package/test/throw_3.js +2 -0
- package/test/throw_4.js +3 -0
- package/test/try_1.js +7 -0
- package/test/unary_1.js +4 -0
- package/test/unary_2.js +5 -0
- package/test/unary_3.js +6 -0
- package/test/unary_4.js +12 -0
- package/test/unary_5.js +8 -0
- package/test/undefined_1.js +8 -0
- package/test/undefined_2.js +10 -0
- package/test/updateexp_1.js +9 -0
- package/test/vars_1.js +5 -0
- package/test/vars_2.js +9 -0
- package/test/while_1.js +6 -0
- package/test262/compare.js +30 -0
- package/test262/index.js +314 -0
- package/test262/node_modules/.bin/esparse +12 -0
- package/test262/node_modules/.bin/esparse.cmd +17 -0
- package/test262/node_modules/.bin/esparse.ps1 +28 -0
- package/test262/node_modules/.bin/esvalidate +12 -0
- package/test262/node_modules/.bin/esvalidate.cmd +17 -0
- package/test262/node_modules/.bin/esvalidate.ps1 +28 -0
- package/test262/node_modules/.bin/js-yaml +12 -0
- package/test262/node_modules/.bin/js-yaml.cmd +17 -0
- package/test262/node_modules/.bin/js-yaml.ps1 +28 -0
- package/test262/node_modules/.package-lock.json +0 -0
- package/test262/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/test262/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/test262/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/test262/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/test262/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/test262/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/test262/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/test262/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/test262/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/test262/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/test262/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/test262/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/test262/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/test262/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/test262/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/test262/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/test262/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/test262/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/test262/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/test262/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/test262/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/test262/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/test262/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/test262/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/test262/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/test262/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/test262/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/test262/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/test262/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/test262/node_modules/argparse/CHANGELOG.md +185 -0
- package/test262/node_modules/argparse/LICENSE +21 -0
- package/test262/node_modules/argparse/README.md +257 -0
- package/test262/node_modules/argparse/index.js +3 -0
- package/test262/node_modules/argparse/lib/action/append/constant.js +47 -0
- package/test262/node_modules/argparse/lib/action/append.js +53 -0
- package/test262/node_modules/argparse/lib/action/count.js +40 -0
- package/test262/node_modules/argparse/lib/action/help.js +47 -0
- package/test262/node_modules/argparse/lib/action/store/constant.js +43 -0
- package/test262/node_modules/argparse/lib/action/store/false.js +27 -0
- package/test262/node_modules/argparse/lib/action/store/true.js +26 -0
- package/test262/node_modules/argparse/lib/action/store.js +50 -0
- package/test262/node_modules/argparse/lib/action/subparsers.js +149 -0
- package/test262/node_modules/argparse/lib/action/version.js +47 -0
- package/test262/node_modules/argparse/lib/action.js +146 -0
- package/test262/node_modules/argparse/lib/action_container.js +482 -0
- package/test262/node_modules/argparse/lib/argparse.js +14 -0
- package/test262/node_modules/argparse/lib/argument/error.js +50 -0
- package/test262/node_modules/argparse/lib/argument/exclusive.js +54 -0
- package/test262/node_modules/argparse/lib/argument/group.js +75 -0
- package/test262/node_modules/argparse/lib/argument_parser.js +1161 -0
- package/test262/node_modules/argparse/lib/const.js +21 -0
- package/test262/node_modules/argparse/lib/help/added_formatters.js +87 -0
- package/test262/node_modules/argparse/lib/help/formatter.js +795 -0
- package/test262/node_modules/argparse/lib/namespace.js +76 -0
- package/test262/node_modules/argparse/lib/utils.js +57 -0
- package/test262/node_modules/argparse/package.json +34 -0
- package/test262/node_modules/braces/CHANGELOG.md +184 -0
- package/test262/node_modules/braces/LICENSE +21 -0
- package/test262/node_modules/braces/README.md +593 -0
- package/test262/node_modules/braces/index.js +170 -0
- package/test262/node_modules/braces/lib/compile.js +57 -0
- package/test262/node_modules/braces/lib/constants.js +57 -0
- package/test262/node_modules/braces/lib/expand.js +113 -0
- package/test262/node_modules/braces/lib/parse.js +333 -0
- package/test262/node_modules/braces/lib/stringify.js +32 -0
- package/test262/node_modules/braces/lib/utils.js +112 -0
- package/test262/node_modules/braces/package.json +77 -0
- package/test262/node_modules/esprima/ChangeLog +235 -0
- package/test262/node_modules/esprima/LICENSE.BSD +21 -0
- package/test262/node_modules/esprima/README.md +46 -0
- package/test262/node_modules/esprima/bin/esparse.js +139 -0
- package/test262/node_modules/esprima/bin/esvalidate.js +236 -0
- package/test262/node_modules/esprima/dist/esprima.js +6709 -0
- package/test262/node_modules/esprima/package.json +112 -0
- package/test262/node_modules/fast-glob/LICENSE +21 -0
- package/test262/node_modules/fast-glob/README.md +859 -0
- package/test262/node_modules/fast-glob/out/index.d.ts +40 -0
- package/test262/node_modules/fast-glob/out/index.js +102 -0
- package/test262/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/test262/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/test262/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/test262/node_modules/fast-glob/out/providers/async.js +23 -0
- package/test262/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/test262/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/test262/node_modules/fast-glob/out/providers/filters/entry.d.ts +16 -0
- package/test262/node_modules/fast-glob/out/providers/filters/entry.js +63 -0
- package/test262/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/test262/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/test262/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/test262/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/test262/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/test262/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/test262/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/test262/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/test262/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/test262/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/test262/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/test262/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/test262/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/test262/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/test262/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/test262/node_modules/fast-glob/out/readers/async.js +35 -0
- package/test262/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/test262/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/test262/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/test262/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/test262/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/test262/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/test262/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/test262/node_modules/fast-glob/out/settings.js +57 -0
- package/test262/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/test262/node_modules/fast-glob/out/types/index.js +2 -0
- package/test262/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/test262/node_modules/fast-glob/out/utils/array.js +22 -0
- package/test262/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/test262/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/test262/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/test262/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/test262/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/test262/node_modules/fast-glob/out/utils/index.js +17 -0
- package/test262/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/test262/node_modules/fast-glob/out/utils/path.js +68 -0
- package/test262/node_modules/fast-glob/out/utils/pattern.d.ts +47 -0
- package/test262/node_modules/fast-glob/out/utils/pattern.js +188 -0
- package/test262/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/test262/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/test262/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/test262/node_modules/fast-glob/out/utils/string.js +11 -0
- package/test262/node_modules/fast-glob/package.json +81 -0
- package/test262/node_modules/fastq/.github/dependabot.yml +11 -0
- package/test262/node_modules/fastq/.github/workflows/ci.yml +50 -0
- package/test262/node_modules/fastq/LICENSE +13 -0
- package/test262/node_modules/fastq/README.md +309 -0
- package/test262/node_modules/fastq/bench.js +66 -0
- package/test262/node_modules/fastq/example.js +14 -0
- package/test262/node_modules/fastq/example.mjs +11 -0
- package/test262/node_modules/fastq/index.d.ts +37 -0
- package/test262/node_modules/fastq/package.json +52 -0
- package/test262/node_modules/fastq/queue.js +289 -0
- package/test262/node_modules/fastq/test/example.ts +81 -0
- package/test262/node_modules/fastq/test/promise.js +248 -0
- package/test262/node_modules/fastq/test/test.js +566 -0
- package/test262/node_modules/fastq/test/tsconfig.json +11 -0
- package/test262/node_modules/fill-range/LICENSE +21 -0
- package/test262/node_modules/fill-range/README.md +237 -0
- package/test262/node_modules/fill-range/index.js +249 -0
- package/test262/node_modules/fill-range/package.json +69 -0
- package/test262/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/test262/node_modules/glob-parent/LICENSE +15 -0
- package/test262/node_modules/glob-parent/README.md +137 -0
- package/test262/node_modules/glob-parent/index.js +42 -0
- package/test262/node_modules/glob-parent/package.json +48 -0
- package/test262/node_modules/graceful-fs/LICENSE +15 -0
- package/test262/node_modules/graceful-fs/README.md +143 -0
- package/test262/node_modules/graceful-fs/clone.js +23 -0
- package/test262/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/test262/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/test262/node_modules/graceful-fs/package.json +53 -0
- package/test262/node_modules/graceful-fs/polyfills.js +355 -0
- package/test262/node_modules/is-extglob/LICENSE +21 -0
- package/test262/node_modules/is-extglob/README.md +107 -0
- package/test262/node_modules/is-extglob/index.js +20 -0
- package/test262/node_modules/is-extglob/package.json +69 -0
- package/test262/node_modules/is-glob/LICENSE +21 -0
- package/test262/node_modules/is-glob/README.md +206 -0
- package/test262/node_modules/is-glob/index.js +150 -0
- package/test262/node_modules/is-glob/package.json +81 -0
- package/test262/node_modules/is-number/LICENSE +21 -0
- package/test262/node_modules/is-number/README.md +187 -0
- package/test262/node_modules/is-number/index.js +18 -0
- package/test262/node_modules/is-number/package.json +82 -0
- package/test262/node_modules/js-yaml/CHANGELOG.md +557 -0
- package/test262/node_modules/js-yaml/LICENSE +21 -0
- package/test262/node_modules/js-yaml/README.md +299 -0
- package/test262/node_modules/js-yaml/bin/js-yaml.js +132 -0
- package/test262/node_modules/js-yaml/dist/js-yaml.js +3989 -0
- package/test262/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/test262/node_modules/js-yaml/index.js +7 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/test262/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/test262/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/test262/node_modules/js-yaml/package.json +49 -0
- package/test262/node_modules/klaw/CHANGELOG.md +62 -0
- package/test262/node_modules/klaw/LICENSE +15 -0
- package/test262/node_modules/klaw/README.md +252 -0
- package/test262/node_modules/klaw/package.json +40 -0
- package/test262/node_modules/klaw/src/index.js +56 -0
- package/test262/node_modules/merge2/LICENSE +21 -0
- package/test262/node_modules/merge2/README.md +144 -0
- package/test262/node_modules/merge2/index.js +144 -0
- package/test262/node_modules/merge2/package.json +43 -0
- package/test262/node_modules/micromatch/LICENSE +21 -0
- package/test262/node_modules/micromatch/README.md +1011 -0
- package/test262/node_modules/micromatch/index.js +467 -0
- package/test262/node_modules/micromatch/package.json +119 -0
- package/test262/node_modules/picomatch/CHANGELOG.md +136 -0
- package/test262/node_modules/picomatch/LICENSE +21 -0
- package/test262/node_modules/picomatch/README.md +708 -0
- package/test262/node_modules/picomatch/index.js +3 -0
- package/test262/node_modules/picomatch/lib/constants.js +179 -0
- package/test262/node_modules/picomatch/lib/parse.js +1091 -0
- package/test262/node_modules/picomatch/lib/picomatch.js +342 -0
- package/test262/node_modules/picomatch/lib/scan.js +391 -0
- package/test262/node_modules/picomatch/lib/utils.js +64 -0
- package/test262/node_modules/picomatch/package.json +81 -0
- package/test262/node_modules/queue-microtask/LICENSE +20 -0
- package/test262/node_modules/queue-microtask/README.md +90 -0
- package/test262/node_modules/queue-microtask/index.d.ts +2 -0
- package/test262/node_modules/queue-microtask/index.js +9 -0
- package/test262/node_modules/queue-microtask/package.json +55 -0
- package/test262/node_modules/reusify/.coveralls.yml +1 -0
- package/test262/node_modules/reusify/.travis.yml +28 -0
- package/test262/node_modules/reusify/LICENSE +22 -0
- package/test262/node_modules/reusify/README.md +145 -0
- package/test262/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/test262/node_modules/reusify/benchmarks/fib.js +13 -0
- package/test262/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/test262/node_modules/reusify/package.json +45 -0
- package/test262/node_modules/reusify/reusify.js +33 -0
- package/test262/node_modules/reusify/test.js +66 -0
- package/test262/node_modules/run-parallel/LICENSE +20 -0
- package/test262/node_modules/run-parallel/README.md +85 -0
- package/test262/node_modules/run-parallel/index.js +51 -0
- package/test262/node_modules/run-parallel/package.json +58 -0
- package/test262/node_modules/sprintf-js/LICENSE +24 -0
- package/test262/node_modules/sprintf-js/README.md +88 -0
- package/test262/node_modules/sprintf-js/bower.json +14 -0
- package/test262/node_modules/sprintf-js/demo/angular.html +20 -0
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
- package/test262/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
- package/test262/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/test262/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
- package/test262/node_modules/sprintf-js/gruntfile.js +36 -0
- package/test262/node_modules/sprintf-js/package.json +22 -0
- package/test262/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
- package/test262/node_modules/sprintf-js/src/sprintf.js +208 -0
- package/test262/node_modules/sprintf-js/test/test.js +82 -0
- package/test262/node_modules/test262-stream/.jshintignore +2 -0
- package/test262/node_modules/test262-stream/.jshintrc +6 -0
- package/test262/node_modules/test262-stream/.travis.yml +5 -0
- package/test262/node_modules/test262-stream/CONTRIBUTING.md +37 -0
- package/test262/node_modules/test262-stream/LICENSE-MICROSOFT.txt +27 -0
- package/test262/node_modules/test262-stream/LICENSE.txt +27 -0
- package/test262/node_modules/test262-stream/README.md +71 -0
- package/test262/node_modules/test262-stream/lib/builder.js +46 -0
- package/test262/node_modules/test262-stream/lib/compile.js +24 -0
- package/test262/node_modules/test262-stream/lib/create-scenarios.js +29 -0
- package/test262/node_modules/test262-stream/lib/index.js +187 -0
- package/test262/node_modules/test262-stream/lib/test-file.js +150 -0
- package/test262/node_modules/test262-stream/package.json +26 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-missing-harness/fake-test262/test/a-test-file.js +16 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/package.json +3 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/test/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/package.json +3 -0
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/test/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/asyncNegative_default.js +49 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/asyncNegative_strict_mode.js +50 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/async_default.js +48 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/async_strict_mode.js +49 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/bothStrict_default.js +46 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/bothStrict_strict_mode.js +47 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/error_default.js +39 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/error_strict_mode.js +40 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/module_default.js +37 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/module_strict_mode.js +38 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/negative-empty_default.js +37 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/negative-empty_strict_mode.js +38 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/noStrict_default.js +36 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/rawNoStrict_default.js +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/rawStrict_default.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/strict_strict_mode.js +41 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/asyncNegative_default.json +22 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/asyncNegative_strict_mode.json +22 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/async_default.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/async_strict_mode.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/bothStrict_default.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/bothStrict_strict_mode.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/error_default.json +19 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/error_strict_mode.json +19 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/module_default.json +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/module_strict_mode.json +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/negative-empty_default.json +19 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/negative-empty_strict_mode.json +19 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/noStrict_default.json +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/rawNoStrict_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/rawStrict_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/strict_strict_mode.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/async.js +10 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/asyncNegative.js +11 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/bothStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/error.js +8 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/module.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/module_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/negative-empty.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/noStrict.js +5 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/rawNoStrict.js +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/rawStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-content/test/bothStrict_default.js +46 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-content/test/bothStrict_strict_mode.js +47 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_default.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_strict_mode.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/bothStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-0_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-1_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-2_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-3_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-4_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-5_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-6_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-7_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-8_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-9_FIXTURE.txt +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/raw_default.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_default.js +38 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_strict_mode.js +39 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/raw_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_default.json +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_strict_mode.json +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/raw.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/runtime.js +7 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_default.js +11 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_strict_mode.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/async_default.js +10 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/async_strict_mode.js +11 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_default.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_strict_mode.js +16 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/error_default.js +8 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/error_strict_mode.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/module_default.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/module_strict_mode.js +7 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_default.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_strict_mode.js +7 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/noStrict_default.js +5 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/rawNoStrict_default.js +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/rawStrict_default.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/strict_strict_mode.js +10 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_default.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_strict_mode.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/async_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/async_strict_mode.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_strict_mode.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/error_default.json +16 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/error_strict_mode.json +16 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/module_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/module_strict_mode.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_default.json +16 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_strict_mode.json +16 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/noStrict_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/rawNoStrict_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/rawStrict_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/strict_strict_mode.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/async.js +10 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/asyncNegative.js +11 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/bothStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/error.js +8 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/module.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/module_FIXTURE.js +2 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/negative-empty.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/noStrict.js +5 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/rawNoStrict.js +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/rawStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/expected-content/test/strict_strict_mode.js +41 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/expected-metadata/test/strict_strict_mode.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/package.json +3 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/test/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/expected-content/test/strict_strict_mode.js +41 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/expected-metadata/test/strict_strict_mode.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/package.json +3 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/test/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_default.js +44 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_strict_mode.js +45 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-and-license-on-same-line_default.js +20 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-multiline-block_default.js +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls_default.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-and-license-on-same-line_default.js +20 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-multiline-block_default.js +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps_default.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/rawWithLicense_default.js +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw_default.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_default.json +22 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_strict_mode.json +22 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-and-license-on-same-line_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-multiline-block_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-and-license-on-same-line_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-multiline-block_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/rawWithLicense_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw_default.json +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/missing-raw-flag.js +13 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-and-license-on-same-line.js +20 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-multiline-block.js +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-and-license-on-same-line.js +20 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-multiline-block.js +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/rawWithLicense.js +21 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/doneprintHandle.js +9 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/sta.js +13 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/async_default.js +52 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/async_strict_mode.js +53 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/bothStrict_default.js +47 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/bothStrict_strict_mode.js +48 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/async_default.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/async_strict_mode.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_default.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_strict_mode.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/test/async.js +10 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/test/bothStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_default.js +49 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_strict_mode.js +50 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/async_default.js +48 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/async_strict_mode.js +49 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/bothStrict_default.js +46 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/bothStrict_strict_mode.js +47 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/strict/no/noStrict_default.js +36 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/strict/no/rawNoStrict_default.js +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_default.json +22 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_strict_mode.json +22 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/async_default.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/async_strict_mode.json +18 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_default.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_strict_mode.json +24 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/strict/no/noStrict_default.json +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/strict/no/rawNoStrict_default.json +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/assert.js +17 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/doneprintHandle.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/sta.js +12 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/async/async.js +10 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/async/asyncNegative.js +11 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/bothStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/error.js +8 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/negative-empty.js +6 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/no/noStrict.js +5 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/no/rawNoStrict.js +14 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/rawStrict.js +15 -0
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/strict.js +9 -0
- package/test262/node_modules/test262-stream/test/test.js +319 -0
- package/test262/node_modules/to-regex-range/LICENSE +21 -0
- package/test262/node_modules/to-regex-range/README.md +305 -0
- package/test262/node_modules/to-regex-range/index.js +288 -0
- package/test262/node_modules/to-regex-range/package.json +88 -0
- package/test262/package-lock.json +279 -0
- package/test262/package.json +6 -0
- package/test262/prelude.js +75 -0
- package/test262/results.json +1 -0
- package/util/enum.js +20 -0
@@ -0,0 +1,467 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const util = require('util');
|
4
|
+
const braces = require('braces');
|
5
|
+
const picomatch = require('picomatch');
|
6
|
+
const utils = require('picomatch/lib/utils');
|
7
|
+
const isEmptyString = val => val === '' || val === './';
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Returns an array of strings that match one or more glob patterns.
|
11
|
+
*
|
12
|
+
* ```js
|
13
|
+
* const mm = require('micromatch');
|
14
|
+
* // mm(list, patterns[, options]);
|
15
|
+
*
|
16
|
+
* console.log(mm(['a.js', 'a.txt'], ['*.js']));
|
17
|
+
* //=> [ 'a.js' ]
|
18
|
+
* ```
|
19
|
+
* @param {String|Array<string>} `list` List of strings to match.
|
20
|
+
* @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
|
21
|
+
* @param {Object} `options` See available [options](#options)
|
22
|
+
* @return {Array} Returns an array of matches
|
23
|
+
* @summary false
|
24
|
+
* @api public
|
25
|
+
*/
|
26
|
+
|
27
|
+
const micromatch = (list, patterns, options) => {
|
28
|
+
patterns = [].concat(patterns);
|
29
|
+
list = [].concat(list);
|
30
|
+
|
31
|
+
let omit = new Set();
|
32
|
+
let keep = new Set();
|
33
|
+
let items = new Set();
|
34
|
+
let negatives = 0;
|
35
|
+
|
36
|
+
let onResult = state => {
|
37
|
+
items.add(state.output);
|
38
|
+
if (options && options.onResult) {
|
39
|
+
options.onResult(state);
|
40
|
+
}
|
41
|
+
};
|
42
|
+
|
43
|
+
for (let i = 0; i < patterns.length; i++) {
|
44
|
+
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
|
45
|
+
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
46
|
+
if (negated) negatives++;
|
47
|
+
|
48
|
+
for (let item of list) {
|
49
|
+
let matched = isMatch(item, true);
|
50
|
+
|
51
|
+
let match = negated ? !matched.isMatch : matched.isMatch;
|
52
|
+
if (!match) continue;
|
53
|
+
|
54
|
+
if (negated) {
|
55
|
+
omit.add(matched.output);
|
56
|
+
} else {
|
57
|
+
omit.delete(matched.output);
|
58
|
+
keep.add(matched.output);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
let result = negatives === patterns.length ? [...items] : [...keep];
|
64
|
+
let matches = result.filter(item => !omit.has(item));
|
65
|
+
|
66
|
+
if (options && matches.length === 0) {
|
67
|
+
if (options.failglob === true) {
|
68
|
+
throw new Error(`No matches found for "${patterns.join(', ')}"`);
|
69
|
+
}
|
70
|
+
|
71
|
+
if (options.nonull === true || options.nullglob === true) {
|
72
|
+
return options.unescape ? patterns.map(p => p.replace(/\\/g, '')) : patterns;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
return matches;
|
77
|
+
};
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Backwards compatibility
|
81
|
+
*/
|
82
|
+
|
83
|
+
micromatch.match = micromatch;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Returns a matcher function from the given glob `pattern` and `options`.
|
87
|
+
* The returned function takes a string to match as its only argument and returns
|
88
|
+
* true if the string is a match.
|
89
|
+
*
|
90
|
+
* ```js
|
91
|
+
* const mm = require('micromatch');
|
92
|
+
* // mm.matcher(pattern[, options]);
|
93
|
+
*
|
94
|
+
* const isMatch = mm.matcher('*.!(*a)');
|
95
|
+
* console.log(isMatch('a.a')); //=> false
|
96
|
+
* console.log(isMatch('a.b')); //=> true
|
97
|
+
* ```
|
98
|
+
* @param {String} `pattern` Glob pattern
|
99
|
+
* @param {Object} `options`
|
100
|
+
* @return {Function} Returns a matcher function.
|
101
|
+
* @api public
|
102
|
+
*/
|
103
|
+
|
104
|
+
micromatch.matcher = (pattern, options) => picomatch(pattern, options);
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
108
|
+
*
|
109
|
+
* ```js
|
110
|
+
* const mm = require('micromatch');
|
111
|
+
* // mm.isMatch(string, patterns[, options]);
|
112
|
+
*
|
113
|
+
* console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
114
|
+
* console.log(mm.isMatch('a.a', 'b.*')); //=> false
|
115
|
+
* ```
|
116
|
+
* @param {String} `str` The string to test.
|
117
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
118
|
+
* @param {Object} `[options]` See available [options](#options).
|
119
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
120
|
+
* @api public
|
121
|
+
*/
|
122
|
+
|
123
|
+
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Backwards compatibility
|
127
|
+
*/
|
128
|
+
|
129
|
+
micromatch.any = micromatch.isMatch;
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
133
|
+
*
|
134
|
+
* ```js
|
135
|
+
* const mm = require('micromatch');
|
136
|
+
* // mm.not(list, patterns[, options]);
|
137
|
+
*
|
138
|
+
* console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
|
139
|
+
* //=> ['b.b', 'c.c']
|
140
|
+
* ```
|
141
|
+
* @param {Array} `list` Array of strings to match.
|
142
|
+
* @param {String|Array} `patterns` One or more glob pattern to use for matching.
|
143
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
144
|
+
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
145
|
+
* @api public
|
146
|
+
*/
|
147
|
+
|
148
|
+
micromatch.not = (list, patterns, options = {}) => {
|
149
|
+
patterns = [].concat(patterns).map(String);
|
150
|
+
let result = new Set();
|
151
|
+
let items = [];
|
152
|
+
|
153
|
+
let onResult = state => {
|
154
|
+
if (options.onResult) options.onResult(state);
|
155
|
+
items.push(state.output);
|
156
|
+
};
|
157
|
+
|
158
|
+
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
159
|
+
|
160
|
+
for (let item of items) {
|
161
|
+
if (!matches.has(item)) {
|
162
|
+
result.add(item);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
return [...result];
|
166
|
+
};
|
167
|
+
|
168
|
+
/**
|
169
|
+
* Returns true if the given `string` contains the given pattern. Similar
|
170
|
+
* to [.isMatch](#isMatch) but the pattern can match any part of the string.
|
171
|
+
*
|
172
|
+
* ```js
|
173
|
+
* var mm = require('micromatch');
|
174
|
+
* // mm.contains(string, pattern[, options]);
|
175
|
+
*
|
176
|
+
* console.log(mm.contains('aa/bb/cc', '*b'));
|
177
|
+
* //=> true
|
178
|
+
* console.log(mm.contains('aa/bb/cc', '*d'));
|
179
|
+
* //=> false
|
180
|
+
* ```
|
181
|
+
* @param {String} `str` The string to match.
|
182
|
+
* @param {String|Array} `patterns` Glob pattern to use for matching.
|
183
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
184
|
+
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
185
|
+
* @api public
|
186
|
+
*/
|
187
|
+
|
188
|
+
micromatch.contains = (str, pattern, options) => {
|
189
|
+
if (typeof str !== 'string') {
|
190
|
+
throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
191
|
+
}
|
192
|
+
|
193
|
+
if (Array.isArray(pattern)) {
|
194
|
+
return pattern.some(p => micromatch.contains(str, p, options));
|
195
|
+
}
|
196
|
+
|
197
|
+
if (typeof pattern === 'string') {
|
198
|
+
if (isEmptyString(str) || isEmptyString(pattern)) {
|
199
|
+
return false;
|
200
|
+
}
|
201
|
+
|
202
|
+
if (str.includes(pattern) || (str.startsWith('./') && str.slice(2).includes(pattern))) {
|
203
|
+
return true;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
return micromatch.isMatch(str, pattern, { ...options, contains: true });
|
208
|
+
};
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Filter the keys of the given object with the given `glob` pattern
|
212
|
+
* and `options`. Does not attempt to match nested keys. If you need this feature,
|
213
|
+
* use [glob-object][] instead.
|
214
|
+
*
|
215
|
+
* ```js
|
216
|
+
* const mm = require('micromatch');
|
217
|
+
* // mm.matchKeys(object, patterns[, options]);
|
218
|
+
*
|
219
|
+
* const obj = { aa: 'a', ab: 'b', ac: 'c' };
|
220
|
+
* console.log(mm.matchKeys(obj, '*b'));
|
221
|
+
* //=> { ab: 'b' }
|
222
|
+
* ```
|
223
|
+
* @param {Object} `object` The object with keys to filter.
|
224
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
225
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
226
|
+
* @return {Object} Returns an object with only keys that match the given patterns.
|
227
|
+
* @api public
|
228
|
+
*/
|
229
|
+
|
230
|
+
micromatch.matchKeys = (obj, patterns, options) => {
|
231
|
+
if (!utils.isObject(obj)) {
|
232
|
+
throw new TypeError('Expected the first argument to be an object');
|
233
|
+
}
|
234
|
+
let keys = micromatch(Object.keys(obj), patterns, options);
|
235
|
+
let res = {};
|
236
|
+
for (let key of keys) res[key] = obj[key];
|
237
|
+
return res;
|
238
|
+
};
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
|
242
|
+
*
|
243
|
+
* ```js
|
244
|
+
* const mm = require('micromatch');
|
245
|
+
* // mm.some(list, patterns[, options]);
|
246
|
+
*
|
247
|
+
* console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
248
|
+
* // true
|
249
|
+
* console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
|
250
|
+
* // false
|
251
|
+
* ```
|
252
|
+
* @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
|
253
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
254
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
255
|
+
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
256
|
+
* @api public
|
257
|
+
*/
|
258
|
+
|
259
|
+
micromatch.some = (list, patterns, options) => {
|
260
|
+
let items = [].concat(list);
|
261
|
+
|
262
|
+
for (let pattern of [].concat(patterns)) {
|
263
|
+
let isMatch = picomatch(String(pattern), options);
|
264
|
+
if (items.some(item => isMatch(item))) {
|
265
|
+
return true;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
return false;
|
269
|
+
};
|
270
|
+
|
271
|
+
/**
|
272
|
+
* Returns true if every string in the given `list` matches
|
273
|
+
* any of the given glob `patterns`.
|
274
|
+
*
|
275
|
+
* ```js
|
276
|
+
* const mm = require('micromatch');
|
277
|
+
* // mm.every(list, patterns[, options]);
|
278
|
+
*
|
279
|
+
* console.log(mm.every('foo.js', ['foo.js']));
|
280
|
+
* // true
|
281
|
+
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
|
282
|
+
* // true
|
283
|
+
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
284
|
+
* // false
|
285
|
+
* console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
|
286
|
+
* // false
|
287
|
+
* ```
|
288
|
+
* @param {String|Array} `list` The string or array of strings to test.
|
289
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
290
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
291
|
+
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
292
|
+
* @api public
|
293
|
+
*/
|
294
|
+
|
295
|
+
micromatch.every = (list, patterns, options) => {
|
296
|
+
let items = [].concat(list);
|
297
|
+
|
298
|
+
for (let pattern of [].concat(patterns)) {
|
299
|
+
let isMatch = picomatch(String(pattern), options);
|
300
|
+
if (!items.every(item => isMatch(item))) {
|
301
|
+
return false;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
return true;
|
305
|
+
};
|
306
|
+
|
307
|
+
/**
|
308
|
+
* Returns true if **all** of the given `patterns` match
|
309
|
+
* the specified string.
|
310
|
+
*
|
311
|
+
* ```js
|
312
|
+
* const mm = require('micromatch');
|
313
|
+
* // mm.all(string, patterns[, options]);
|
314
|
+
*
|
315
|
+
* console.log(mm.all('foo.js', ['foo.js']));
|
316
|
+
* // true
|
317
|
+
*
|
318
|
+
* console.log(mm.all('foo.js', ['*.js', '!foo.js']));
|
319
|
+
* // false
|
320
|
+
*
|
321
|
+
* console.log(mm.all('foo.js', ['*.js', 'foo.js']));
|
322
|
+
* // true
|
323
|
+
*
|
324
|
+
* console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
|
325
|
+
* // true
|
326
|
+
* ```
|
327
|
+
* @param {String|Array} `str` The string to test.
|
328
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
329
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
330
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
331
|
+
* @api public
|
332
|
+
*/
|
333
|
+
|
334
|
+
micromatch.all = (str, patterns, options) => {
|
335
|
+
if (typeof str !== 'string') {
|
336
|
+
throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
337
|
+
}
|
338
|
+
|
339
|
+
return [].concat(patterns).every(p => picomatch(p, options)(str));
|
340
|
+
};
|
341
|
+
|
342
|
+
/**
|
343
|
+
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
344
|
+
*
|
345
|
+
* ```js
|
346
|
+
* const mm = require('micromatch');
|
347
|
+
* // mm.capture(pattern, string[, options]);
|
348
|
+
*
|
349
|
+
* console.log(mm.capture('test/*.js', 'test/foo.js'));
|
350
|
+
* //=> ['foo']
|
351
|
+
* console.log(mm.capture('test/*.js', 'foo/bar.css'));
|
352
|
+
* //=> null
|
353
|
+
* ```
|
354
|
+
* @param {String} `glob` Glob pattern to use for matching.
|
355
|
+
* @param {String} `input` String to match
|
356
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
357
|
+
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
358
|
+
* @api public
|
359
|
+
*/
|
360
|
+
|
361
|
+
micromatch.capture = (glob, input, options) => {
|
362
|
+
let posix = utils.isWindows(options);
|
363
|
+
let regex = picomatch.makeRe(String(glob), { ...options, capture: true });
|
364
|
+
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
365
|
+
|
366
|
+
if (match) {
|
367
|
+
return match.slice(1).map(v => v === void 0 ? '' : v);
|
368
|
+
}
|
369
|
+
};
|
370
|
+
|
371
|
+
/**
|
372
|
+
* Create a regular expression from the given glob `pattern`.
|
373
|
+
*
|
374
|
+
* ```js
|
375
|
+
* const mm = require('micromatch');
|
376
|
+
* // mm.makeRe(pattern[, options]);
|
377
|
+
*
|
378
|
+
* console.log(mm.makeRe('*.js'));
|
379
|
+
* //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
|
380
|
+
* ```
|
381
|
+
* @param {String} `pattern` A glob pattern to convert to regex.
|
382
|
+
* @param {Object} `options`
|
383
|
+
* @return {RegExp} Returns a regex created from the given pattern.
|
384
|
+
* @api public
|
385
|
+
*/
|
386
|
+
|
387
|
+
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
388
|
+
|
389
|
+
/**
|
390
|
+
* Scan a glob pattern to separate the pattern into segments. Used
|
391
|
+
* by the [split](#split) method.
|
392
|
+
*
|
393
|
+
* ```js
|
394
|
+
* const mm = require('micromatch');
|
395
|
+
* const state = mm.scan(pattern[, options]);
|
396
|
+
* ```
|
397
|
+
* @param {String} `pattern`
|
398
|
+
* @param {Object} `options`
|
399
|
+
* @return {Object} Returns an object with
|
400
|
+
* @api public
|
401
|
+
*/
|
402
|
+
|
403
|
+
micromatch.scan = (...args) => picomatch.scan(...args);
|
404
|
+
|
405
|
+
/**
|
406
|
+
* Parse a glob pattern to create the source string for a regular
|
407
|
+
* expression.
|
408
|
+
*
|
409
|
+
* ```js
|
410
|
+
* const mm = require('micromatch');
|
411
|
+
* const state = mm.parse(pattern[, options]);
|
412
|
+
* ```
|
413
|
+
* @param {String} `glob`
|
414
|
+
* @param {Object} `options`
|
415
|
+
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
416
|
+
* @api public
|
417
|
+
*/
|
418
|
+
|
419
|
+
micromatch.parse = (patterns, options) => {
|
420
|
+
let res = [];
|
421
|
+
for (let pattern of [].concat(patterns || [])) {
|
422
|
+
for (let str of braces(String(pattern), options)) {
|
423
|
+
res.push(picomatch.parse(str, options));
|
424
|
+
}
|
425
|
+
}
|
426
|
+
return res;
|
427
|
+
};
|
428
|
+
|
429
|
+
/**
|
430
|
+
* Process the given brace `pattern`.
|
431
|
+
*
|
432
|
+
* ```js
|
433
|
+
* const { braces } = require('micromatch');
|
434
|
+
* console.log(braces('foo/{a,b,c}/bar'));
|
435
|
+
* //=> [ 'foo/(a|b|c)/bar' ]
|
436
|
+
*
|
437
|
+
* console.log(braces('foo/{a,b,c}/bar', { expand: true }));
|
438
|
+
* //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
|
439
|
+
* ```
|
440
|
+
* @param {String} `pattern` String with brace pattern to process.
|
441
|
+
* @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
|
442
|
+
* @return {Array}
|
443
|
+
* @api public
|
444
|
+
*/
|
445
|
+
|
446
|
+
micromatch.braces = (pattern, options) => {
|
447
|
+
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
448
|
+
if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) {
|
449
|
+
return [pattern];
|
450
|
+
}
|
451
|
+
return braces(pattern, options);
|
452
|
+
};
|
453
|
+
|
454
|
+
/**
|
455
|
+
* Expand braces
|
456
|
+
*/
|
457
|
+
|
458
|
+
micromatch.braceExpand = (pattern, options) => {
|
459
|
+
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
460
|
+
return micromatch.braces(pattern, { ...options, expand: true });
|
461
|
+
};
|
462
|
+
|
463
|
+
/**
|
464
|
+
* Expose micromatch
|
465
|
+
*/
|
466
|
+
|
467
|
+
module.exports = micromatch;
|
@@ -0,0 +1,119 @@
|
|
1
|
+
{
|
2
|
+
"name": "micromatch",
|
3
|
+
"description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.",
|
4
|
+
"version": "4.0.5",
|
5
|
+
"homepage": "https://github.com/micromatch/micromatch",
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
7
|
+
"contributors": [
|
8
|
+
"(https://github.com/DianeLooney)",
|
9
|
+
"Amila Welihinda (amilajack.com)",
|
10
|
+
"Bogdan Chadkin (https://github.com/TrySound)",
|
11
|
+
"Brian Woodward (https://twitter.com/doowb)",
|
12
|
+
"Devon Govett (http://badassjs.com)",
|
13
|
+
"Elan Shanker (https://github.com/es128)",
|
14
|
+
"Fabrício Matté (https://ultcombo.js.org)",
|
15
|
+
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
|
16
|
+
"Martin Kolárik (https://kolarik.sk)",
|
17
|
+
"Olsten Larck (https://i.am.charlike.online)",
|
18
|
+
"Paul Miller (paulmillr.com)",
|
19
|
+
"Tom Byrer (https://github.com/tomByrer)",
|
20
|
+
"Tyler Akins (http://rumkin.com)",
|
21
|
+
"Peter Bright <drpizza@quiscalusmexicanus.org> (https://github.com/drpizza)",
|
22
|
+
"Kuba Juszczyk (https://github.com/ku8ar)"
|
23
|
+
],
|
24
|
+
"repository": "micromatch/micromatch",
|
25
|
+
"bugs": {
|
26
|
+
"url": "https://github.com/micromatch/micromatch/issues"
|
27
|
+
},
|
28
|
+
"license": "MIT",
|
29
|
+
"files": [
|
30
|
+
"index.js"
|
31
|
+
],
|
32
|
+
"main": "index.js",
|
33
|
+
"engines": {
|
34
|
+
"node": ">=8.6"
|
35
|
+
},
|
36
|
+
"scripts": {
|
37
|
+
"test": "mocha"
|
38
|
+
},
|
39
|
+
"dependencies": {
|
40
|
+
"braces": "^3.0.2",
|
41
|
+
"picomatch": "^2.3.1"
|
42
|
+
},
|
43
|
+
"devDependencies": {
|
44
|
+
"fill-range": "^7.0.1",
|
45
|
+
"gulp-format-md": "^2.0.0",
|
46
|
+
"minimatch": "^5.0.1",
|
47
|
+
"mocha": "^9.2.2",
|
48
|
+
"time-require": "github:jonschlinkert/time-require"
|
49
|
+
},
|
50
|
+
"keywords": [
|
51
|
+
"bash",
|
52
|
+
"bracket",
|
53
|
+
"character-class",
|
54
|
+
"expand",
|
55
|
+
"expansion",
|
56
|
+
"expression",
|
57
|
+
"extglob",
|
58
|
+
"extglobs",
|
59
|
+
"file",
|
60
|
+
"files",
|
61
|
+
"filter",
|
62
|
+
"find",
|
63
|
+
"glob",
|
64
|
+
"globbing",
|
65
|
+
"globs",
|
66
|
+
"globstar",
|
67
|
+
"lookahead",
|
68
|
+
"lookaround",
|
69
|
+
"lookbehind",
|
70
|
+
"match",
|
71
|
+
"matcher",
|
72
|
+
"matches",
|
73
|
+
"matching",
|
74
|
+
"micromatch",
|
75
|
+
"minimatch",
|
76
|
+
"multimatch",
|
77
|
+
"negate",
|
78
|
+
"negation",
|
79
|
+
"path",
|
80
|
+
"pattern",
|
81
|
+
"patterns",
|
82
|
+
"posix",
|
83
|
+
"regex",
|
84
|
+
"regexp",
|
85
|
+
"regular",
|
86
|
+
"shell",
|
87
|
+
"star",
|
88
|
+
"wildcard"
|
89
|
+
],
|
90
|
+
"verb": {
|
91
|
+
"toc": "collapsible",
|
92
|
+
"layout": "default",
|
93
|
+
"tasks": [
|
94
|
+
"readme"
|
95
|
+
],
|
96
|
+
"plugins": [
|
97
|
+
"gulp-format-md"
|
98
|
+
],
|
99
|
+
"lint": {
|
100
|
+
"reflinks": true
|
101
|
+
},
|
102
|
+
"related": {
|
103
|
+
"list": [
|
104
|
+
"braces",
|
105
|
+
"expand-brackets",
|
106
|
+
"extglob",
|
107
|
+
"fill-range",
|
108
|
+
"nanomatch"
|
109
|
+
]
|
110
|
+
},
|
111
|
+
"reflinks": [
|
112
|
+
"extglob",
|
113
|
+
"fill-range",
|
114
|
+
"glob-object",
|
115
|
+
"minimatch",
|
116
|
+
"multimatch"
|
117
|
+
]
|
118
|
+
}
|
119
|
+
}
|