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,40 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
import * as taskManager from './managers/tasks';
|
3
|
-
import { Options as OptionsInternal } from './settings';
|
4
|
-
import { Entry as EntryInternal, FileSystemAdapter as FileSystemAdapterInternal, Pattern as PatternInternal } from './types';
|
5
|
-
type EntryObjectModePredicate = {
|
6
|
-
[TKey in keyof Pick<OptionsInternal, 'objectMode'>]-?: true;
|
7
|
-
};
|
8
|
-
type EntryStatsPredicate = {
|
9
|
-
[TKey in keyof Pick<OptionsInternal, 'stats'>]-?: true;
|
10
|
-
};
|
11
|
-
type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate;
|
12
|
-
declare function FastGlob(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): Promise<EntryInternal[]>;
|
13
|
-
declare function FastGlob(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Promise<string[]>;
|
14
|
-
declare namespace FastGlob {
|
15
|
-
type Options = OptionsInternal;
|
16
|
-
type Entry = EntryInternal;
|
17
|
-
type Task = taskManager.Task;
|
18
|
-
type Pattern = PatternInternal;
|
19
|
-
type FileSystemAdapter = FileSystemAdapterInternal;
|
20
|
-
const glob: typeof FastGlob;
|
21
|
-
const globSync: typeof sync;
|
22
|
-
const globStream: typeof stream;
|
23
|
-
const async: typeof FastGlob;
|
24
|
-
function sync(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): EntryInternal[];
|
25
|
-
function sync(source: PatternInternal | PatternInternal[], options?: OptionsInternal): string[];
|
26
|
-
function stream(source: PatternInternal | PatternInternal[], options?: OptionsInternal): NodeJS.ReadableStream;
|
27
|
-
function generateTasks(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Task[];
|
28
|
-
function isDynamicPattern(source: PatternInternal, options?: OptionsInternal): boolean;
|
29
|
-
function escapePath(source: string): PatternInternal;
|
30
|
-
function convertPathToPattern(source: string): PatternInternal;
|
31
|
-
namespace posix {
|
32
|
-
function escapePath(source: string): PatternInternal;
|
33
|
-
function convertPathToPattern(source: string): PatternInternal;
|
34
|
-
}
|
35
|
-
namespace win32 {
|
36
|
-
function escapePath(source: string): PatternInternal;
|
37
|
-
function convertPathToPattern(source: string): PatternInternal;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
export = FastGlob;
|
@@ -1,102 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
const taskManager = require("./managers/tasks");
|
3
|
-
const async_1 = require("./providers/async");
|
4
|
-
const stream_1 = require("./providers/stream");
|
5
|
-
const sync_1 = require("./providers/sync");
|
6
|
-
const settings_1 = require("./settings");
|
7
|
-
const utils = require("./utils");
|
8
|
-
async function FastGlob(source, options) {
|
9
|
-
assertPatternsInput(source);
|
10
|
-
const works = getWorks(source, async_1.default, options);
|
11
|
-
const result = await Promise.all(works);
|
12
|
-
return utils.array.flatten(result);
|
13
|
-
}
|
14
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/60
|
15
|
-
// eslint-disable-next-line no-redeclare
|
16
|
-
(function (FastGlob) {
|
17
|
-
FastGlob.glob = FastGlob;
|
18
|
-
FastGlob.globSync = sync;
|
19
|
-
FastGlob.globStream = stream;
|
20
|
-
FastGlob.async = FastGlob;
|
21
|
-
function sync(source, options) {
|
22
|
-
assertPatternsInput(source);
|
23
|
-
const works = getWorks(source, sync_1.default, options);
|
24
|
-
return utils.array.flatten(works);
|
25
|
-
}
|
26
|
-
FastGlob.sync = sync;
|
27
|
-
function stream(source, options) {
|
28
|
-
assertPatternsInput(source);
|
29
|
-
const works = getWorks(source, stream_1.default, options);
|
30
|
-
/**
|
31
|
-
* The stream returned by the provider cannot work with an asynchronous iterator.
|
32
|
-
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
33
|
-
* This affects performance (+25%). I don't see best solution right now.
|
34
|
-
*/
|
35
|
-
return utils.stream.merge(works);
|
36
|
-
}
|
37
|
-
FastGlob.stream = stream;
|
38
|
-
function generateTasks(source, options) {
|
39
|
-
assertPatternsInput(source);
|
40
|
-
const patterns = [].concat(source);
|
41
|
-
const settings = new settings_1.default(options);
|
42
|
-
return taskManager.generate(patterns, settings);
|
43
|
-
}
|
44
|
-
FastGlob.generateTasks = generateTasks;
|
45
|
-
function isDynamicPattern(source, options) {
|
46
|
-
assertPatternsInput(source);
|
47
|
-
const settings = new settings_1.default(options);
|
48
|
-
return utils.pattern.isDynamicPattern(source, settings);
|
49
|
-
}
|
50
|
-
FastGlob.isDynamicPattern = isDynamicPattern;
|
51
|
-
function escapePath(source) {
|
52
|
-
assertPatternsInput(source);
|
53
|
-
return utils.path.escape(source);
|
54
|
-
}
|
55
|
-
FastGlob.escapePath = escapePath;
|
56
|
-
function convertPathToPattern(source) {
|
57
|
-
assertPatternsInput(source);
|
58
|
-
return utils.path.convertPathToPattern(source);
|
59
|
-
}
|
60
|
-
FastGlob.convertPathToPattern = convertPathToPattern;
|
61
|
-
let posix;
|
62
|
-
(function (posix) {
|
63
|
-
function escapePath(source) {
|
64
|
-
assertPatternsInput(source);
|
65
|
-
return utils.path.escapePosixPath(source);
|
66
|
-
}
|
67
|
-
posix.escapePath = escapePath;
|
68
|
-
function convertPathToPattern(source) {
|
69
|
-
assertPatternsInput(source);
|
70
|
-
return utils.path.convertPosixPathToPattern(source);
|
71
|
-
}
|
72
|
-
posix.convertPathToPattern = convertPathToPattern;
|
73
|
-
})(posix = FastGlob.posix || (FastGlob.posix = {}));
|
74
|
-
let win32;
|
75
|
-
(function (win32) {
|
76
|
-
function escapePath(source) {
|
77
|
-
assertPatternsInput(source);
|
78
|
-
return utils.path.escapeWindowsPath(source);
|
79
|
-
}
|
80
|
-
win32.escapePath = escapePath;
|
81
|
-
function convertPathToPattern(source) {
|
82
|
-
assertPatternsInput(source);
|
83
|
-
return utils.path.convertWindowsPathToPattern(source);
|
84
|
-
}
|
85
|
-
win32.convertPathToPattern = convertPathToPattern;
|
86
|
-
})(win32 = FastGlob.win32 || (FastGlob.win32 = {}));
|
87
|
-
})(FastGlob || (FastGlob = {}));
|
88
|
-
function getWorks(source, _Provider, options) {
|
89
|
-
const patterns = [].concat(source);
|
90
|
-
const settings = new settings_1.default(options);
|
91
|
-
const tasks = taskManager.generate(patterns, settings);
|
92
|
-
const provider = new _Provider(settings);
|
93
|
-
return tasks.map(provider.read, provider);
|
94
|
-
}
|
95
|
-
function assertPatternsInput(input) {
|
96
|
-
const source = [].concat(input);
|
97
|
-
const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
|
98
|
-
if (!isValidSource) {
|
99
|
-
throw new TypeError('Patterns must be a string (non empty) or an array of strings');
|
100
|
-
}
|
101
|
-
}
|
102
|
-
module.exports = FastGlob;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import Settings from '../settings';
|
2
|
-
import { Pattern, PatternsGroup } from '../types';
|
3
|
-
export type Task = {
|
4
|
-
base: string;
|
5
|
-
dynamic: boolean;
|
6
|
-
patterns: Pattern[];
|
7
|
-
positive: Pattern[];
|
8
|
-
negative: Pattern[];
|
9
|
-
};
|
10
|
-
export declare function generate(input: Pattern[], settings: Settings): Task[];
|
11
|
-
/**
|
12
|
-
* Returns tasks grouped by basic pattern directories.
|
13
|
-
*
|
14
|
-
* Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
|
15
|
-
* This is necessary because directory traversal starts at the base directory and goes deeper.
|
16
|
-
*/
|
17
|
-
export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[];
|
18
|
-
export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
|
19
|
-
export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[];
|
20
|
-
export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup;
|
21
|
-
export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[];
|
22
|
-
export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task;
|
@@ -1,110 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
4
|
-
const utils = require("../utils");
|
5
|
-
function generate(input, settings) {
|
6
|
-
const patterns = processPatterns(input, settings);
|
7
|
-
const ignore = processPatterns(settings.ignore, settings);
|
8
|
-
const positivePatterns = getPositivePatterns(patterns);
|
9
|
-
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
10
|
-
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
11
|
-
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
12
|
-
const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false);
|
13
|
-
const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true);
|
14
|
-
return staticTasks.concat(dynamicTasks);
|
15
|
-
}
|
16
|
-
exports.generate = generate;
|
17
|
-
function processPatterns(input, settings) {
|
18
|
-
let patterns = input;
|
19
|
-
/**
|
20
|
-
* The original pattern like `{,*,**,a/*}` can lead to problems checking the depth when matching entry
|
21
|
-
* and some problems with the micromatch package (see fast-glob issues: #365, #394).
|
22
|
-
*
|
23
|
-
* To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
|
24
|
-
* in matching in the case of a large set of patterns after expansion.
|
25
|
-
*/
|
26
|
-
if (settings.braceExpansion) {
|
27
|
-
patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
28
|
-
}
|
29
|
-
/**
|
30
|
-
* If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
|
31
|
-
* at any nesting level.
|
32
|
-
*
|
33
|
-
* We do this here, because otherwise we have to complicate the filtering logic. For example, we need to change
|
34
|
-
* the pattern in the filter before creating a regular expression. There is no need to change the patterns
|
35
|
-
* in the application. Only on the input.
|
36
|
-
*/
|
37
|
-
if (settings.baseNameMatch) {
|
38
|
-
patterns = patterns.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`);
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
|
42
|
-
*/
|
43
|
-
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* Returns tasks grouped by basic pattern directories.
|
47
|
-
*
|
48
|
-
* Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
|
49
|
-
* This is necessary because directory traversal starts at the base directory and goes deeper.
|
50
|
-
*/
|
51
|
-
function convertPatternsToTasks(positive, negative, dynamic) {
|
52
|
-
const tasks = [];
|
53
|
-
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
54
|
-
const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive);
|
55
|
-
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
56
|
-
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
57
|
-
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
58
|
-
/*
|
59
|
-
* For the sake of reducing future accesses to the file system, we merge all tasks within the current directory
|
60
|
-
* into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest.
|
61
|
-
*/
|
62
|
-
if ('.' in insideCurrentDirectoryGroup) {
|
63
|
-
tasks.push(convertPatternGroupToTask('.', patternsInsideCurrentDirectory, negative, dynamic));
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
|
67
|
-
}
|
68
|
-
return tasks;
|
69
|
-
}
|
70
|
-
exports.convertPatternsToTasks = convertPatternsToTasks;
|
71
|
-
function getPositivePatterns(patterns) {
|
72
|
-
return utils.pattern.getPositivePatterns(patterns);
|
73
|
-
}
|
74
|
-
exports.getPositivePatterns = getPositivePatterns;
|
75
|
-
function getNegativePatternsAsPositive(patterns, ignore) {
|
76
|
-
const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore);
|
77
|
-
const positive = negative.map(utils.pattern.convertToPositivePattern);
|
78
|
-
return positive;
|
79
|
-
}
|
80
|
-
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
81
|
-
function groupPatternsByBaseDirectory(patterns) {
|
82
|
-
const group = {};
|
83
|
-
return patterns.reduce((collection, pattern) => {
|
84
|
-
const base = utils.pattern.getBaseDirectory(pattern);
|
85
|
-
if (base in collection) {
|
86
|
-
collection[base].push(pattern);
|
87
|
-
}
|
88
|
-
else {
|
89
|
-
collection[base] = [pattern];
|
90
|
-
}
|
91
|
-
return collection;
|
92
|
-
}, group);
|
93
|
-
}
|
94
|
-
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
95
|
-
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
96
|
-
return Object.keys(positive).map((base) => {
|
97
|
-
return convertPatternGroupToTask(base, positive[base], negative, dynamic);
|
98
|
-
});
|
99
|
-
}
|
100
|
-
exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
|
101
|
-
function convertPatternGroupToTask(base, positive, negative, dynamic) {
|
102
|
-
return {
|
103
|
-
dynamic,
|
104
|
-
positive,
|
105
|
-
negative,
|
106
|
-
base,
|
107
|
-
patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
|
108
|
-
};
|
109
|
-
}
|
110
|
-
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Task } from '../managers/tasks';
|
2
|
-
import { Entry, EntryItem, ReaderOptions } from '../types';
|
3
|
-
import ReaderAsync from '../readers/async';
|
4
|
-
import Provider from './provider';
|
5
|
-
export default class ProviderAsync extends Provider<Promise<EntryItem[]>> {
|
6
|
-
protected _reader: ReaderAsync;
|
7
|
-
read(task: Task): Promise<EntryItem[]>;
|
8
|
-
api(root: string, task: Task, options: ReaderOptions): Promise<Entry[]>;
|
9
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const async_1 = require("../readers/async");
|
4
|
-
const provider_1 = require("./provider");
|
5
|
-
class ProviderAsync extends provider_1.default {
|
6
|
-
constructor() {
|
7
|
-
super(...arguments);
|
8
|
-
this._reader = new async_1.default(this._settings);
|
9
|
-
}
|
10
|
-
async read(task) {
|
11
|
-
const root = this._getRootDirectory(task);
|
12
|
-
const options = this._getReaderOptions(task);
|
13
|
-
const entries = await this.api(root, task, options);
|
14
|
-
return entries.map((entry) => options.transform(entry));
|
15
|
-
}
|
16
|
-
api(root, task, options) {
|
17
|
-
if (task.dynamic) {
|
18
|
-
return this._reader.dynamic(root, options);
|
19
|
-
}
|
20
|
-
return this._reader.static(task.patterns, options);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.default = ProviderAsync;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { MicromatchOptions, EntryFilterFunction, Pattern } from '../../types';
|
2
|
-
import Settings from '../../settings';
|
3
|
-
export default class DeepFilter {
|
4
|
-
private readonly _settings;
|
5
|
-
private readonly _micromatchOptions;
|
6
|
-
constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
|
7
|
-
getFilter(basePath: string, positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
|
8
|
-
private _getMatcher;
|
9
|
-
private _getNegativePatternsRe;
|
10
|
-
private _filter;
|
11
|
-
private _isSkippedByDeep;
|
12
|
-
private _getEntryLevel;
|
13
|
-
private _isSkippedSymbolicLink;
|
14
|
-
private _isSkippedByPositivePatterns;
|
15
|
-
private _isSkippedByNegativePatterns;
|
16
|
-
}
|
@@ -1,62 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const utils = require("../../utils");
|
4
|
-
const partial_1 = require("../matchers/partial");
|
5
|
-
class DeepFilter {
|
6
|
-
constructor(_settings, _micromatchOptions) {
|
7
|
-
this._settings = _settings;
|
8
|
-
this._micromatchOptions = _micromatchOptions;
|
9
|
-
}
|
10
|
-
getFilter(basePath, positive, negative) {
|
11
|
-
const matcher = this._getMatcher(positive);
|
12
|
-
const negativeRe = this._getNegativePatternsRe(negative);
|
13
|
-
return (entry) => this._filter(basePath, entry, matcher, negativeRe);
|
14
|
-
}
|
15
|
-
_getMatcher(patterns) {
|
16
|
-
return new partial_1.default(patterns, this._settings, this._micromatchOptions);
|
17
|
-
}
|
18
|
-
_getNegativePatternsRe(patterns) {
|
19
|
-
const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
|
20
|
-
return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
21
|
-
}
|
22
|
-
_filter(basePath, entry, matcher, negativeRe) {
|
23
|
-
if (this._isSkippedByDeep(basePath, entry.path)) {
|
24
|
-
return false;
|
25
|
-
}
|
26
|
-
if (this._isSkippedSymbolicLink(entry)) {
|
27
|
-
return false;
|
28
|
-
}
|
29
|
-
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
30
|
-
if (this._isSkippedByPositivePatterns(filepath, matcher)) {
|
31
|
-
return false;
|
32
|
-
}
|
33
|
-
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
34
|
-
}
|
35
|
-
_isSkippedByDeep(basePath, entryPath) {
|
36
|
-
/**
|
37
|
-
* Avoid unnecessary depth calculations when it doesn't matter.
|
38
|
-
*/
|
39
|
-
if (this._settings.deep === Infinity) {
|
40
|
-
return false;
|
41
|
-
}
|
42
|
-
return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
|
43
|
-
}
|
44
|
-
_getEntryLevel(basePath, entryPath) {
|
45
|
-
const entryPathDepth = entryPath.split('/').length;
|
46
|
-
if (basePath === '') {
|
47
|
-
return entryPathDepth;
|
48
|
-
}
|
49
|
-
const basePathDepth = basePath.split('/').length;
|
50
|
-
return entryPathDepth - basePathDepth;
|
51
|
-
}
|
52
|
-
_isSkippedSymbolicLink(entry) {
|
53
|
-
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
54
|
-
}
|
55
|
-
_isSkippedByPositivePatterns(entryPath, matcher) {
|
56
|
-
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
57
|
-
}
|
58
|
-
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
59
|
-
return !utils.pattern.matchAny(entryPath, patternsRe);
|
60
|
-
}
|
61
|
-
}
|
62
|
-
exports.default = DeepFilter;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import Settings from '../../settings';
|
2
|
-
import { EntryFilterFunction, MicromatchOptions, Pattern } from '../../types';
|
3
|
-
export default class EntryFilter {
|
4
|
-
private readonly _settings;
|
5
|
-
private readonly _micromatchOptions;
|
6
|
-
readonly index: Map<string, undefined>;
|
7
|
-
constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
|
8
|
-
getFilter(positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
|
9
|
-
private _filter;
|
10
|
-
private _isDuplicateEntry;
|
11
|
-
private _createIndexRecord;
|
12
|
-
private _onlyFileFilter;
|
13
|
-
private _onlyDirectoryFilter;
|
14
|
-
private _isSkippedByAbsoluteNegativePatterns;
|
15
|
-
private _isMatchToPatterns;
|
16
|
-
}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const utils = require("../../utils");
|
4
|
-
class EntryFilter {
|
5
|
-
constructor(_settings, _micromatchOptions) {
|
6
|
-
this._settings = _settings;
|
7
|
-
this._micromatchOptions = _micromatchOptions;
|
8
|
-
this.index = new Map();
|
9
|
-
}
|
10
|
-
getFilter(positive, negative) {
|
11
|
-
const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
|
12
|
-
const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
|
13
|
-
return (entry) => this._filter(entry, positiveRe, negativeRe);
|
14
|
-
}
|
15
|
-
_filter(entry, positiveRe, negativeRe) {
|
16
|
-
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
17
|
-
if (this._settings.unique && this._isDuplicateEntry(filepath)) {
|
18
|
-
return false;
|
19
|
-
}
|
20
|
-
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
|
21
|
-
return false;
|
22
|
-
}
|
23
|
-
if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
|
24
|
-
return false;
|
25
|
-
}
|
26
|
-
const isDirectory = entry.dirent.isDirectory();
|
27
|
-
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
|
28
|
-
if (this._settings.unique && isMatched) {
|
29
|
-
this._createIndexRecord(filepath);
|
30
|
-
}
|
31
|
-
return isMatched;
|
32
|
-
}
|
33
|
-
_isDuplicateEntry(filepath) {
|
34
|
-
return this.index.has(filepath);
|
35
|
-
}
|
36
|
-
_createIndexRecord(filepath) {
|
37
|
-
this.index.set(filepath, undefined);
|
38
|
-
}
|
39
|
-
_onlyFileFilter(entry) {
|
40
|
-
return this._settings.onlyFiles && !entry.dirent.isFile();
|
41
|
-
}
|
42
|
-
_onlyDirectoryFilter(entry) {
|
43
|
-
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
44
|
-
}
|
45
|
-
_isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
|
46
|
-
if (!this._settings.absolute) {
|
47
|
-
return false;
|
48
|
-
}
|
49
|
-
const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
|
50
|
-
return utils.pattern.matchAny(fullpath, patternsRe);
|
51
|
-
}
|
52
|
-
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
53
|
-
// Trying to match files and directories by patterns.
|
54
|
-
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
55
|
-
// A pattern with a trailling slash can be used for directory matching.
|
56
|
-
// To apply such pattern, we need to add a tralling slash to the path.
|
57
|
-
if (!isMatched && isDirectory) {
|
58
|
-
return utils.pattern.matchAny(filepath + '/', patternsRe);
|
59
|
-
}
|
60
|
-
return isMatched;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
exports.default = EntryFilter;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const utils = require("../../utils");
|
4
|
-
class ErrorFilter {
|
5
|
-
constructor(_settings) {
|
6
|
-
this._settings = _settings;
|
7
|
-
}
|
8
|
-
getFilter() {
|
9
|
-
return (error) => this._isNonFatalError(error);
|
10
|
-
}
|
11
|
-
_isNonFatalError(error) {
|
12
|
-
return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
exports.default = ErrorFilter;
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { Pattern, MicromatchOptions, PatternRe } from '../../types';
|
2
|
-
import Settings from '../../settings';
|
3
|
-
export type PatternSegment = StaticPatternSegment | DynamicPatternSegment;
|
4
|
-
type StaticPatternSegment = {
|
5
|
-
dynamic: false;
|
6
|
-
pattern: Pattern;
|
7
|
-
};
|
8
|
-
type DynamicPatternSegment = {
|
9
|
-
dynamic: true;
|
10
|
-
pattern: Pattern;
|
11
|
-
patternRe: PatternRe;
|
12
|
-
};
|
13
|
-
export type PatternSection = PatternSegment[];
|
14
|
-
export type PatternInfo = {
|
15
|
-
/**
|
16
|
-
* Indicates that the pattern has a globstar (more than a single section).
|
17
|
-
*/
|
18
|
-
complete: boolean;
|
19
|
-
pattern: Pattern;
|
20
|
-
segments: PatternSegment[];
|
21
|
-
sections: PatternSection[];
|
22
|
-
};
|
23
|
-
export default abstract class Matcher {
|
24
|
-
private readonly _patterns;
|
25
|
-
private readonly _settings;
|
26
|
-
private readonly _micromatchOptions;
|
27
|
-
protected readonly _storage: PatternInfo[];
|
28
|
-
constructor(_patterns: Pattern[], _settings: Settings, _micromatchOptions: MicromatchOptions);
|
29
|
-
private _fillStorage;
|
30
|
-
private _getPatternSegments;
|
31
|
-
private _splitSegmentsIntoSections;
|
32
|
-
}
|
33
|
-
export {};
|
@@ -1,45 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const utils = require("../../utils");
|
4
|
-
class Matcher {
|
5
|
-
constructor(_patterns, _settings, _micromatchOptions) {
|
6
|
-
this._patterns = _patterns;
|
7
|
-
this._settings = _settings;
|
8
|
-
this._micromatchOptions = _micromatchOptions;
|
9
|
-
this._storage = [];
|
10
|
-
this._fillStorage();
|
11
|
-
}
|
12
|
-
_fillStorage() {
|
13
|
-
for (const pattern of this._patterns) {
|
14
|
-
const segments = this._getPatternSegments(pattern);
|
15
|
-
const sections = this._splitSegmentsIntoSections(segments);
|
16
|
-
this._storage.push({
|
17
|
-
complete: sections.length <= 1,
|
18
|
-
pattern,
|
19
|
-
segments,
|
20
|
-
sections
|
21
|
-
});
|
22
|
-
}
|
23
|
-
}
|
24
|
-
_getPatternSegments(pattern) {
|
25
|
-
const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions);
|
26
|
-
return parts.map((part) => {
|
27
|
-
const dynamic = utils.pattern.isDynamicPattern(part, this._settings);
|
28
|
-
if (!dynamic) {
|
29
|
-
return {
|
30
|
-
dynamic: false,
|
31
|
-
pattern: part
|
32
|
-
};
|
33
|
-
}
|
34
|
-
return {
|
35
|
-
dynamic: true,
|
36
|
-
pattern: part,
|
37
|
-
patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
|
38
|
-
};
|
39
|
-
});
|
40
|
-
}
|
41
|
-
_splitSegmentsIntoSections(segments) {
|
42
|
-
return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
|
43
|
-
}
|
44
|
-
}
|
45
|
-
exports.default = Matcher;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const matcher_1 = require("./matcher");
|
4
|
-
class PartialMatcher extends matcher_1.default {
|
5
|
-
match(filepath) {
|
6
|
-
const parts = filepath.split('/');
|
7
|
-
const levels = parts.length;
|
8
|
-
const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels);
|
9
|
-
for (const pattern of patterns) {
|
10
|
-
const section = pattern.sections[0];
|
11
|
-
/**
|
12
|
-
* In this case, the pattern has a globstar and we must read all directories unconditionally,
|
13
|
-
* but only if the level has reached the end of the first group.
|
14
|
-
*
|
15
|
-
* fixtures/{a,b}/**
|
16
|
-
* ^ true/false ^ always true
|
17
|
-
*/
|
18
|
-
if (!pattern.complete && levels > section.length) {
|
19
|
-
return true;
|
20
|
-
}
|
21
|
-
const match = parts.every((part, index) => {
|
22
|
-
const segment = pattern.segments[index];
|
23
|
-
if (segment.dynamic && segment.patternRe.test(part)) {
|
24
|
-
return true;
|
25
|
-
}
|
26
|
-
if (!segment.dynamic && segment.pattern === part) {
|
27
|
-
return true;
|
28
|
-
}
|
29
|
-
return false;
|
30
|
-
});
|
31
|
-
if (match) {
|
32
|
-
return true;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
return false;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
exports.default = PartialMatcher;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Task } from '../managers/tasks';
|
2
|
-
import Settings from '../settings';
|
3
|
-
import { MicromatchOptions, ReaderOptions } from '../types';
|
4
|
-
import DeepFilter from './filters/deep';
|
5
|
-
import EntryFilter from './filters/entry';
|
6
|
-
import ErrorFilter from './filters/error';
|
7
|
-
import EntryTransformer from './transformers/entry';
|
8
|
-
export default abstract class Provider<T> {
|
9
|
-
protected readonly _settings: Settings;
|
10
|
-
readonly errorFilter: ErrorFilter;
|
11
|
-
readonly entryFilter: EntryFilter;
|
12
|
-
readonly deepFilter: DeepFilter;
|
13
|
-
readonly entryTransformer: EntryTransformer;
|
14
|
-
constructor(_settings: Settings);
|
15
|
-
abstract read(_task: Task): T;
|
16
|
-
protected _getRootDirectory(task: Task): string;
|
17
|
-
protected _getReaderOptions(task: Task): ReaderOptions;
|
18
|
-
protected _getMicromatchOptions(): MicromatchOptions;
|
19
|
-
}
|