porffor 0.1.0 → 0.2.0-77e30e8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -204
- package/compiler/2c.js +377 -0
- package/compiler/builtins/base64.js +91 -91
- package/compiler/builtins.js +19 -13
- package/compiler/codeGen.js +1313 -418
- package/compiler/decompile.js +35 -9
- package/compiler/embedding.js +9 -5
- package/compiler/encoding.js +8 -2
- package/compiler/index.js +55 -17
- package/compiler/log.js +15 -0
- package/compiler/opt.js +357 -258
- package/compiler/parse.js +24 -1
- package/compiler/prototype.js +263 -56
- package/compiler/sections.js +51 -8
- package/compiler/wasmSpec.js +3 -0
- package/compiler/wrap.js +21 -7
- package/package.json +6 -1
- package/porf.cmd +1 -1
- package/rhemyn/README.md +37 -0
- package/rhemyn/compile.js +214 -0
- package/rhemyn/parse.js +321 -0
- package/rhemyn/test/parse.js +59 -0
- package/runner/index.js +54 -31
- package/runner/info.js +37 -2
- package/runner/profile.js +1 -2
- package/runner/repl.js +13 -11
- package/runner/results.json +1 -0
- package/runner/transform.js +15 -36
- package/runner/version.js +10 -0
- package/CNAME +0 -1
- package/index.html +0 -1264
- package/logo.png +0 -0
- package/sw.js +0 -26
- package/test/array_1.js +0 -8
- package/test/array_push.js +0 -8
- package/test/assignop_1.js +0 -15
- package/test/bitwise_1.js +0 -6
- package/test/bool_1.js +0 -3
- package/test/boolean.js +0 -6
- package/test/break_1.js +0 -6
- package/test/break_2.js +0 -12
- package/test/conditional_1.js +0 -3
- package/test/conditional_2.js +0 -4
- package/test/console_1.js +0 -2
- package/test/continue_1.js +0 -6
- package/test/continue_2.js +0 -10
- package/test/empty.js +0 -1
- package/test/ending_exp_1.js +0 -2
- package/test/ending_exp_2.js +0 -6
- package/test/eq_1.js +0 -4
- package/test/eq_2.js +0 -4
- package/test/eq_3.js +0 -5
- package/test/export_1.js +0 -9
- package/test/factorial.js +0 -3
- package/test/fibonacci.js +0 -16
- package/test/float_div0.js +0 -2
- package/test/float_frac.js +0 -2
- package/test/float_isfinite.js +0 -29
- package/test/float_isinteger.js +0 -13
- package/test/float_isnan.js +0 -20
- package/test/float_issafeinteger.js +0 -11
- package/test/float_large.js +0 -2
- package/test/float_math_funcs.js +0 -24
- package/test/float_math_random.js +0 -6
- package/test/float_nan.js +0 -3
- package/test/float_number_values.js +0 -12
- package/test/for_1.js +0 -4
- package/test/for_2.js +0 -4
- package/test/func_1.js +0 -16
- package/test/func_2.js +0 -6
- package/test/func_3.js +0 -10
- package/test/global_1.js +0 -8
- package/test/global_2.js +0 -10
- package/test/if_1.js +0 -6
- package/test/if_2.js +0 -9
- package/test/if_3.js +0 -7
- package/test/iife_1.js +0 -8
- package/test/iife_2.js +0 -8
- package/test/index.js +0 -93
- package/test/int_number_values.js +0 -6
- package/test/logic_1.js +0 -7
- package/test/logic_2.js +0 -7
- package/test/math_1.js +0 -6
- package/test/math_2.js +0 -12
- package/test/math_3.js +0 -6
- package/test/number_func.js +0 -4
- package/test/return_1.js +0 -8
- package/test/return_2.js +0 -11
- package/test/tailcall_1.js +0 -10
- package/test/throw_1.js +0 -2
- package/test/throw_2.js +0 -4
- package/test/throw_3.js +0 -2
- package/test/throw_4.js +0 -3
- package/test/try_1.js +0 -7
- package/test/unary_1.js +0 -4
- package/test/unary_2.js +0 -5
- package/test/unary_3.js +0 -6
- package/test/unary_4.js +0 -12
- package/test/unary_5.js +0 -8
- package/test/undefined_1.js +0 -8
- package/test/undefined_2.js +0 -10
- package/test/updateexp_1.js +0 -9
- package/test/vars_1.js +0 -5
- package/test/vars_2.js +0 -9
- package/test/while_1.js +0 -6
- package/test262/compare.js +0 -30
- package/test262/index.js +0 -314
- package/test262/node_modules/.bin/esparse +0 -12
- package/test262/node_modules/.bin/esparse.cmd +0 -17
- package/test262/node_modules/.bin/esparse.ps1 +0 -28
- package/test262/node_modules/.bin/esvalidate +0 -12
- package/test262/node_modules/.bin/esvalidate.cmd +0 -17
- package/test262/node_modules/.bin/esvalidate.ps1 +0 -28
- package/test262/node_modules/.bin/js-yaml +0 -12
- package/test262/node_modules/.bin/js-yaml.cmd +0 -17
- package/test262/node_modules/.bin/js-yaml.ps1 +0 -28
- package/test262/node_modules/.package-lock.json +0 -0
- package/test262/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
- package/test262/node_modules/@nodelib/fs.scandir/README.md +0 -171
- package/test262/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/test262/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
- package/test262/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
- package/test262/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
- package/test262/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/test262/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
- package/test262/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/test262/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
- package/test262/node_modules/@nodelib/fs.scandir/package.json +0 -44
- package/test262/node_modules/@nodelib/fs.stat/LICENSE +0 -21
- package/test262/node_modules/@nodelib/fs.stat/README.md +0 -126
- package/test262/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/test262/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
- package/test262/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.stat/out/index.js +0 -26
- package/test262/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
- package/test262/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
- package/test262/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
- package/test262/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/test262/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
- package/test262/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
- package/test262/node_modules/@nodelib/fs.stat/package.json +0 -37
- package/test262/node_modules/@nodelib/fs.walk/LICENSE +0 -21
- package/test262/node_modules/@nodelib/fs.walk/README.md +0 -215
- package/test262/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/test262/node_modules/@nodelib/fs.walk/out/index.js +0 -34
- package/test262/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
- package/test262/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
- package/test262/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
- package/test262/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
- package/test262/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
- package/test262/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/test262/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
- package/test262/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
- package/test262/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
- package/test262/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/test262/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
- package/test262/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
- package/test262/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
- package/test262/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/test262/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
- package/test262/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/test262/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
- package/test262/node_modules/@nodelib/fs.walk/package.json +0 -44
- package/test262/node_modules/argparse/CHANGELOG.md +0 -185
- package/test262/node_modules/argparse/LICENSE +0 -21
- package/test262/node_modules/argparse/README.md +0 -257
- package/test262/node_modules/argparse/index.js +0 -3
- package/test262/node_modules/argparse/lib/action/append/constant.js +0 -47
- package/test262/node_modules/argparse/lib/action/append.js +0 -53
- package/test262/node_modules/argparse/lib/action/count.js +0 -40
- package/test262/node_modules/argparse/lib/action/help.js +0 -47
- package/test262/node_modules/argparse/lib/action/store/constant.js +0 -43
- package/test262/node_modules/argparse/lib/action/store/false.js +0 -27
- package/test262/node_modules/argparse/lib/action/store/true.js +0 -26
- package/test262/node_modules/argparse/lib/action/store.js +0 -50
- package/test262/node_modules/argparse/lib/action/subparsers.js +0 -149
- package/test262/node_modules/argparse/lib/action/version.js +0 -47
- package/test262/node_modules/argparse/lib/action.js +0 -146
- package/test262/node_modules/argparse/lib/action_container.js +0 -482
- package/test262/node_modules/argparse/lib/argparse.js +0 -14
- package/test262/node_modules/argparse/lib/argument/error.js +0 -50
- package/test262/node_modules/argparse/lib/argument/exclusive.js +0 -54
- package/test262/node_modules/argparse/lib/argument/group.js +0 -75
- package/test262/node_modules/argparse/lib/argument_parser.js +0 -1161
- package/test262/node_modules/argparse/lib/const.js +0 -21
- package/test262/node_modules/argparse/lib/help/added_formatters.js +0 -87
- package/test262/node_modules/argparse/lib/help/formatter.js +0 -795
- package/test262/node_modules/argparse/lib/namespace.js +0 -76
- package/test262/node_modules/argparse/lib/utils.js +0 -57
- package/test262/node_modules/argparse/package.json +0 -34
- package/test262/node_modules/braces/CHANGELOG.md +0 -184
- package/test262/node_modules/braces/LICENSE +0 -21
- package/test262/node_modules/braces/README.md +0 -593
- package/test262/node_modules/braces/index.js +0 -170
- package/test262/node_modules/braces/lib/compile.js +0 -57
- package/test262/node_modules/braces/lib/constants.js +0 -57
- package/test262/node_modules/braces/lib/expand.js +0 -113
- package/test262/node_modules/braces/lib/parse.js +0 -333
- package/test262/node_modules/braces/lib/stringify.js +0 -32
- package/test262/node_modules/braces/lib/utils.js +0 -112
- package/test262/node_modules/braces/package.json +0 -77
- package/test262/node_modules/esprima/ChangeLog +0 -235
- package/test262/node_modules/esprima/LICENSE.BSD +0 -21
- package/test262/node_modules/esprima/README.md +0 -46
- package/test262/node_modules/esprima/bin/esparse.js +0 -139
- package/test262/node_modules/esprima/bin/esvalidate.js +0 -236
- package/test262/node_modules/esprima/dist/esprima.js +0 -6709
- package/test262/node_modules/esprima/package.json +0 -112
- package/test262/node_modules/fast-glob/LICENSE +0 -21
- package/test262/node_modules/fast-glob/README.md +0 -859
- package/test262/node_modules/fast-glob/out/index.d.ts +0 -40
- package/test262/node_modules/fast-glob/out/index.js +0 -102
- package/test262/node_modules/fast-glob/out/managers/tasks.d.ts +0 -22
- package/test262/node_modules/fast-glob/out/managers/tasks.js +0 -110
- package/test262/node_modules/fast-glob/out/providers/async.d.ts +0 -9
- package/test262/node_modules/fast-glob/out/providers/async.js +0 -23
- package/test262/node_modules/fast-glob/out/providers/filters/deep.d.ts +0 -16
- package/test262/node_modules/fast-glob/out/providers/filters/deep.js +0 -62
- package/test262/node_modules/fast-glob/out/providers/filters/entry.d.ts +0 -16
- package/test262/node_modules/fast-glob/out/providers/filters/entry.js +0 -63
- package/test262/node_modules/fast-glob/out/providers/filters/error.d.ts +0 -8
- package/test262/node_modules/fast-glob/out/providers/filters/error.js +0 -15
- package/test262/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +0 -33
- package/test262/node_modules/fast-glob/out/providers/matchers/matcher.js +0 -45
- package/test262/node_modules/fast-glob/out/providers/matchers/partial.d.ts +0 -4
- package/test262/node_modules/fast-glob/out/providers/matchers/partial.js +0 -38
- package/test262/node_modules/fast-glob/out/providers/provider.d.ts +0 -19
- package/test262/node_modules/fast-glob/out/providers/provider.js +0 -48
- package/test262/node_modules/fast-glob/out/providers/stream.d.ts +0 -11
- package/test262/node_modules/fast-glob/out/providers/stream.js +0 -31
- package/test262/node_modules/fast-glob/out/providers/sync.d.ts +0 -9
- package/test262/node_modules/fast-glob/out/providers/sync.js +0 -23
- package/test262/node_modules/fast-glob/out/providers/transformers/entry.d.ts +0 -8
- package/test262/node_modules/fast-glob/out/providers/transformers/entry.js +0 -26
- package/test262/node_modules/fast-glob/out/readers/async.d.ts +0 -10
- package/test262/node_modules/fast-glob/out/readers/async.js +0 -35
- package/test262/node_modules/fast-glob/out/readers/reader.d.ts +0 -15
- package/test262/node_modules/fast-glob/out/readers/reader.js +0 -33
- package/test262/node_modules/fast-glob/out/readers/stream.d.ts +0 -14
- package/test262/node_modules/fast-glob/out/readers/stream.js +0 -55
- package/test262/node_modules/fast-glob/out/readers/sync.d.ts +0 -12
- package/test262/node_modules/fast-glob/out/readers/sync.js +0 -43
- package/test262/node_modules/fast-glob/out/settings.d.ts +0 -164
- package/test262/node_modules/fast-glob/out/settings.js +0 -57
- package/test262/node_modules/fast-glob/out/types/index.d.ts +0 -31
- package/test262/node_modules/fast-glob/out/types/index.js +0 -2
- package/test262/node_modules/fast-glob/out/utils/array.d.ts +0 -2
- package/test262/node_modules/fast-glob/out/utils/array.js +0 -22
- package/test262/node_modules/fast-glob/out/utils/errno.d.ts +0 -2
- package/test262/node_modules/fast-glob/out/utils/errno.js +0 -7
- package/test262/node_modules/fast-glob/out/utils/fs.d.ts +0 -4
- package/test262/node_modules/fast-glob/out/utils/fs.js +0 -19
- package/test262/node_modules/fast-glob/out/utils/index.d.ts +0 -8
- package/test262/node_modules/fast-glob/out/utils/index.js +0 -17
- package/test262/node_modules/fast-glob/out/utils/path.d.ts +0 -13
- package/test262/node_modules/fast-glob/out/utils/path.js +0 -68
- package/test262/node_modules/fast-glob/out/utils/pattern.d.ts +0 -47
- package/test262/node_modules/fast-glob/out/utils/pattern.js +0 -188
- package/test262/node_modules/fast-glob/out/utils/stream.d.ts +0 -4
- package/test262/node_modules/fast-glob/out/utils/stream.js +0 -17
- package/test262/node_modules/fast-glob/out/utils/string.d.ts +0 -2
- package/test262/node_modules/fast-glob/out/utils/string.js +0 -11
- package/test262/node_modules/fast-glob/package.json +0 -81
- package/test262/node_modules/fastq/.github/dependabot.yml +0 -11
- package/test262/node_modules/fastq/.github/workflows/ci.yml +0 -50
- package/test262/node_modules/fastq/LICENSE +0 -13
- package/test262/node_modules/fastq/README.md +0 -309
- package/test262/node_modules/fastq/bench.js +0 -66
- package/test262/node_modules/fastq/example.js +0 -14
- package/test262/node_modules/fastq/example.mjs +0 -11
- package/test262/node_modules/fastq/index.d.ts +0 -37
- package/test262/node_modules/fastq/package.json +0 -52
- package/test262/node_modules/fastq/queue.js +0 -289
- package/test262/node_modules/fastq/test/example.ts +0 -81
- package/test262/node_modules/fastq/test/promise.js +0 -248
- package/test262/node_modules/fastq/test/test.js +0 -566
- package/test262/node_modules/fastq/test/tsconfig.json +0 -11
- package/test262/node_modules/fill-range/LICENSE +0 -21
- package/test262/node_modules/fill-range/README.md +0 -237
- package/test262/node_modules/fill-range/index.js +0 -249
- package/test262/node_modules/fill-range/package.json +0 -69
- package/test262/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/test262/node_modules/glob-parent/LICENSE +0 -15
- package/test262/node_modules/glob-parent/README.md +0 -137
- package/test262/node_modules/glob-parent/index.js +0 -42
- package/test262/node_modules/glob-parent/package.json +0 -48
- package/test262/node_modules/graceful-fs/LICENSE +0 -15
- package/test262/node_modules/graceful-fs/README.md +0 -143
- package/test262/node_modules/graceful-fs/clone.js +0 -23
- package/test262/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/test262/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/test262/node_modules/graceful-fs/package.json +0 -53
- package/test262/node_modules/graceful-fs/polyfills.js +0 -355
- package/test262/node_modules/is-extglob/LICENSE +0 -21
- package/test262/node_modules/is-extglob/README.md +0 -107
- package/test262/node_modules/is-extglob/index.js +0 -20
- package/test262/node_modules/is-extglob/package.json +0 -69
- package/test262/node_modules/is-glob/LICENSE +0 -21
- package/test262/node_modules/is-glob/README.md +0 -206
- package/test262/node_modules/is-glob/index.js +0 -150
- package/test262/node_modules/is-glob/package.json +0 -81
- package/test262/node_modules/is-number/LICENSE +0 -21
- package/test262/node_modules/is-number/README.md +0 -187
- package/test262/node_modules/is-number/index.js +0 -18
- package/test262/node_modules/is-number/package.json +0 -82
- package/test262/node_modules/js-yaml/CHANGELOG.md +0 -557
- package/test262/node_modules/js-yaml/LICENSE +0 -21
- package/test262/node_modules/js-yaml/README.md +0 -299
- package/test262/node_modules/js-yaml/bin/js-yaml.js +0 -132
- package/test262/node_modules/js-yaml/dist/js-yaml.js +0 -3989
- package/test262/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
- package/test262/node_modules/js-yaml/index.js +0 -7
- package/test262/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
- package/test262/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
- package/test262/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
- package/test262/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
- package/test262/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
- package/test262/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
- package/test262/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
- package/test262/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
- package/test262/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
- package/test262/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- package/test262/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
- package/test262/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
- package/test262/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
- package/test262/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
- package/test262/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
- package/test262/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
- package/test262/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
- package/test262/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
- package/test262/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
- package/test262/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
- package/test262/node_modules/js-yaml/lib/js-yaml.js +0 -39
- package/test262/node_modules/js-yaml/package.json +0 -49
- package/test262/node_modules/klaw/CHANGELOG.md +0 -62
- package/test262/node_modules/klaw/LICENSE +0 -15
- package/test262/node_modules/klaw/README.md +0 -252
- package/test262/node_modules/klaw/package.json +0 -40
- package/test262/node_modules/klaw/src/index.js +0 -56
- package/test262/node_modules/merge2/LICENSE +0 -21
- package/test262/node_modules/merge2/README.md +0 -144
- package/test262/node_modules/merge2/index.js +0 -144
- package/test262/node_modules/merge2/package.json +0 -43
- package/test262/node_modules/micromatch/LICENSE +0 -21
- package/test262/node_modules/micromatch/README.md +0 -1011
- package/test262/node_modules/micromatch/index.js +0 -467
- package/test262/node_modules/micromatch/package.json +0 -119
- package/test262/node_modules/picomatch/CHANGELOG.md +0 -136
- package/test262/node_modules/picomatch/LICENSE +0 -21
- package/test262/node_modules/picomatch/README.md +0 -708
- package/test262/node_modules/picomatch/index.js +0 -3
- package/test262/node_modules/picomatch/lib/constants.js +0 -179
- package/test262/node_modules/picomatch/lib/parse.js +0 -1091
- package/test262/node_modules/picomatch/lib/picomatch.js +0 -342
- package/test262/node_modules/picomatch/lib/scan.js +0 -391
- package/test262/node_modules/picomatch/lib/utils.js +0 -64
- package/test262/node_modules/picomatch/package.json +0 -81
- package/test262/node_modules/queue-microtask/LICENSE +0 -20
- package/test262/node_modules/queue-microtask/README.md +0 -90
- package/test262/node_modules/queue-microtask/index.d.ts +0 -2
- package/test262/node_modules/queue-microtask/index.js +0 -9
- package/test262/node_modules/queue-microtask/package.json +0 -55
- package/test262/node_modules/reusify/.coveralls.yml +0 -1
- package/test262/node_modules/reusify/.travis.yml +0 -28
- package/test262/node_modules/reusify/LICENSE +0 -22
- package/test262/node_modules/reusify/README.md +0 -145
- package/test262/node_modules/reusify/benchmarks/createNoCodeFunction.js +0 -30
- package/test262/node_modules/reusify/benchmarks/fib.js +0 -13
- package/test262/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +0 -38
- package/test262/node_modules/reusify/package.json +0 -45
- package/test262/node_modules/reusify/reusify.js +0 -33
- package/test262/node_modules/reusify/test.js +0 -66
- package/test262/node_modules/run-parallel/LICENSE +0 -20
- package/test262/node_modules/run-parallel/README.md +0 -85
- package/test262/node_modules/run-parallel/index.js +0 -51
- package/test262/node_modules/run-parallel/package.json +0 -58
- package/test262/node_modules/sprintf-js/LICENSE +0 -24
- package/test262/node_modules/sprintf-js/README.md +0 -88
- package/test262/node_modules/sprintf-js/bower.json +0 -14
- package/test262/node_modules/sprintf-js/demo/angular.html +0 -20
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
- package/test262/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
- package/test262/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
- package/test262/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
- package/test262/node_modules/sprintf-js/gruntfile.js +0 -36
- package/test262/node_modules/sprintf-js/package.json +0 -22
- package/test262/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
- package/test262/node_modules/sprintf-js/src/sprintf.js +0 -208
- package/test262/node_modules/sprintf-js/test/test.js +0 -82
- package/test262/node_modules/test262-stream/.jshintignore +0 -2
- package/test262/node_modules/test262-stream/.jshintrc +0 -6
- package/test262/node_modules/test262-stream/.travis.yml +0 -5
- package/test262/node_modules/test262-stream/CONTRIBUTING.md +0 -37
- package/test262/node_modules/test262-stream/LICENSE-MICROSOFT.txt +0 -27
- package/test262/node_modules/test262-stream/LICENSE.txt +0 -27
- package/test262/node_modules/test262-stream/README.md +0 -71
- package/test262/node_modules/test262-stream/lib/builder.js +0 -46
- package/test262/node_modules/test262-stream/lib/compile.js +0 -24
- package/test262/node_modules/test262-stream/lib/create-scenarios.js +0 -29
- package/test262/node_modules/test262-stream/lib/index.js +0 -187
- package/test262/node_modules/test262-stream/lib/test-file.js +0 -150
- package/test262/node_modules/test262-stream/package.json +0 -26
- package/test262/node_modules/test262-stream/test/collateral/invalid-missing-harness/fake-test262/test/a-test-file.js +0 -16
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/asyncNegative_default.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/asyncNegative_strict_mode.js +0 -50
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/async_default.js +0 -48
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/async_strict_mode.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/bothStrict_default.js +0 -46
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/error_default.js +0 -39
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/error_strict_mode.js +0 -40
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/module_default.js +0 -37
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/module_strict_mode.js +0 -38
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/negative-empty_default.js +0 -37
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/negative-empty_strict_mode.js +0 -38
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/noStrict_default.js +0 -36
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/rawNoStrict_default.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/rawStrict_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/strict_strict_mode.js +0 -41
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/asyncNegative_default.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/asyncNegative_strict_mode.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/async_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/async_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/error_default.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/error_strict_mode.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/module_default.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/module_strict_mode.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/negative-empty_default.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/negative-empty_strict_mode.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/noStrict_default.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/rawNoStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/rawStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/asyncNegative.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/error.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/module.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/module_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/negative-empty.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/noStrict.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/rawNoStrict.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/rawStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-content/test/bothStrict_default.js +0 -46
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-0_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-1_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-2_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-3_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-4_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-5_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-6_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-7_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-8_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-9_FIXTURE.txt +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/raw_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_default.js +0 -38
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_strict_mode.js +0 -39
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/raw_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_default.json +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_strict_mode.json +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/raw.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/runtime.js +0 -7
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_default.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_strict_mode.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/async_default.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/async_strict_mode.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_strict_mode.js +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/error_default.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/error_strict_mode.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/module_default.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/module_strict_mode.js +0 -7
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_default.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_strict_mode.js +0 -7
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/noStrict_default.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/rawNoStrict_default.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/rawStrict_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/strict_strict_mode.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/async_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/async_strict_mode.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/error_default.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/error_strict_mode.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/module_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/module_strict_mode.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_default.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_strict_mode.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/noStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/rawNoStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/rawStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/strict_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/asyncNegative.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/error.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/module.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/module_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/negative-empty.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/noStrict.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/rawNoStrict.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/rawStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/expected-content/test/strict_strict_mode.js +0 -41
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/expected-content/test/strict_strict_mode.js +0 -41
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_default.js +0 -44
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_strict_mode.js +0 -45
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-and-license-on-same-line_default.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-multiline-block_default.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls_default.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-and-license-on-same-line_default.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-multiline-block_default.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps_default.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/rawWithLicense_default.js +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw_default.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_default.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_strict_mode.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-and-license-on-same-line_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-multiline-block_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-and-license-on-same-line_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-multiline-block_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/rawWithLicense_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/missing-raw-flag.js +0 -13
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-and-license-on-same-line.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-multiline-block.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-and-license-on-same-line.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-multiline-block.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/rawWithLicense.js +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/doneprintHandle.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/sta.js +0 -13
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/async_default.js +0 -52
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/async_strict_mode.js +0 -53
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/bothStrict_default.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/bothStrict_strict_mode.js +0 -48
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/async_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/async_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/test/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_default.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_strict_mode.js +0 -50
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/async_default.js +0 -48
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/async_strict_mode.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/bothStrict_default.js +0 -46
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/strict/no/noStrict_default.js +0 -36
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/strict/no/rawNoStrict_default.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_default.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_strict_mode.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/async_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/async_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/strict/no/noStrict_default.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/strict/no/rawNoStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/async/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/async/asyncNegative.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/error.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/negative-empty.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/no/noStrict.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/no/rawNoStrict.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/rawStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/test.js +0 -319
- package/test262/node_modules/to-regex-range/LICENSE +0 -21
- package/test262/node_modules/to-regex-range/README.md +0 -305
- package/test262/node_modules/to-regex-range/index.js +0 -288
- package/test262/node_modules/to-regex-range/package.json +0 -88
- package/test262/package-lock.json +0 -279
- package/test262/package.json +0 -6
- package/test262/prelude.js +0 -75
- package/test262/results.json +0 -1
@@ -1,467 +0,0 @@
|
|
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;
|
@@ -1,119 +0,0 @@
|
|
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
|
-
}
|