From 08c9e894617717f0c16528307520669938793021 Mon Sep 17 00:00:00 2001 From: Jt Whissel Date: Thu, 26 Sep 2019 15:13:37 -0400 Subject: [PATCH] Added landing page on / --- CHANGELOG.md | 51 + changelog-template.hbs | 30 + cli/wwb-cli-spawn-aws.js | 22 +- cli/wwb-cli-spawn-local.js | 4 - hive/client/index.html | 99 + hive/hive.js | 13 +- node_modules/.bin/auto-changelog | 1 + node_modules/.bin/handlebars | 1 + node_modules/.bin/mime | 1 + node_modules/.bin/parse-github-url | 1 + node_modules/.bin/pino | 1 + node_modules/.bin/semver | 1 + node_modules/.bin/sshpk-conv | 1 + node_modules/.bin/sshpk-sign | 1 + node_modules/.bin/sshpk-verify | 1 + node_modules/.bin/uglifyjs | 1 + node_modules/.bin/uuid | 1 + node_modules/abstract-logging/Readme.md | 40 + node_modules/abstract-logging/index.js | 12 + node_modules/abstract-logging/package.json | 56 + node_modules/ajv/.tonic_example.js | 20 + node_modules/ajv/LICENSE | 22 + node_modules/ajv/README.md | 1344 +++ node_modules/ajv/dist/ajv.bundle.js | 7165 +++++++++++++ node_modules/ajv/dist/ajv.min.js | 3 + node_modules/ajv/dist/ajv.min.js.map | 1 + node_modules/ajv/lib/.DS_Store | Bin 0 -> 6148 bytes node_modules/ajv/lib/ajv.d.ts | 389 + node_modules/ajv/lib/ajv.js | 497 + node_modules/ajv/lib/cache.js | 26 + node_modules/ajv/lib/compile/async.js | 90 + node_modules/ajv/lib/compile/equal.js | 5 + node_modules/ajv/lib/compile/error_classes.js | 34 + node_modules/ajv/lib/compile/formats.js | 149 + node_modules/ajv/lib/compile/index.js | 387 + node_modules/ajv/lib/compile/resolve.js | 270 + node_modules/ajv/lib/compile/rules.js | 66 + node_modules/ajv/lib/compile/schema_obj.js | 9 + node_modules/ajv/lib/compile/ucs2length.js | 20 + node_modules/ajv/lib/compile/util.js | 274 + node_modules/ajv/lib/data.js | 49 + node_modules/ajv/lib/dot/_limit.jst | 104 + node_modules/ajv/lib/dot/_limitItems.jst | 10 + node_modules/ajv/lib/dot/_limitLength.jst | 10 + node_modules/ajv/lib/dot/_limitProperties.jst | 10 + node_modules/ajv/lib/dot/allOf.jst | 34 + node_modules/ajv/lib/dot/anyOf.jst | 48 + node_modules/ajv/lib/dot/coerce.def | 61 + node_modules/ajv/lib/dot/comment.jst | 9 + node_modules/ajv/lib/dot/const.jst | 11 + node_modules/ajv/lib/dot/contains.jst | 57 + node_modules/ajv/lib/dot/custom.jst | 191 + node_modules/ajv/lib/dot/defaults.def | 47 + node_modules/ajv/lib/dot/definitions.def | 199 + node_modules/ajv/lib/dot/dependencies.jst | 80 + node_modules/ajv/lib/dot/enum.jst | 30 + node_modules/ajv/lib/dot/errors.def | 194 + node_modules/ajv/lib/dot/format.jst | 106 + node_modules/ajv/lib/dot/if.jst | 75 + node_modules/ajv/lib/dot/items.jst | 100 + node_modules/ajv/lib/dot/missing.def | 39 + node_modules/ajv/lib/dot/multipleOf.jst | 20 + node_modules/ajv/lib/dot/not.jst | 43 + node_modules/ajv/lib/dot/oneOf.jst | 54 + node_modules/ajv/lib/dot/pattern.jst | 14 + node_modules/ajv/lib/dot/properties.jst | 244 + node_modules/ajv/lib/dot/propertyNames.jst | 54 + node_modules/ajv/lib/dot/ref.jst | 85 + node_modules/ajv/lib/dot/required.jst | 108 + node_modules/ajv/lib/dot/uniqueItems.jst | 62 + node_modules/ajv/lib/dot/validate.jst | 282 + node_modules/ajv/lib/dotjs/README.md | 3 + node_modules/ajv/lib/dotjs/_limit.js | 157 + node_modules/ajv/lib/dotjs/_limitItems.js | 77 + node_modules/ajv/lib/dotjs/_limitLength.js | 82 + .../ajv/lib/dotjs/_limitProperties.js | 77 + node_modules/ajv/lib/dotjs/allOf.js | 43 + node_modules/ajv/lib/dotjs/anyOf.js | 74 + node_modules/ajv/lib/dotjs/comment.js | 14 + node_modules/ajv/lib/dotjs/const.js | 56 + node_modules/ajv/lib/dotjs/contains.js | 82 + node_modules/ajv/lib/dotjs/custom.js | 228 + node_modules/ajv/lib/dotjs/dependencies.js | 168 + node_modules/ajv/lib/dotjs/enum.js | 66 + node_modules/ajv/lib/dotjs/format.js | 150 + node_modules/ajv/lib/dotjs/if.js | 104 + node_modules/ajv/lib/dotjs/index.js | 33 + node_modules/ajv/lib/dotjs/items.js | 141 + node_modules/ajv/lib/dotjs/multipleOf.js | 77 + node_modules/ajv/lib/dotjs/not.js | 84 + node_modules/ajv/lib/dotjs/oneOf.js | 73 + node_modules/ajv/lib/dotjs/pattern.js | 75 + node_modules/ajv/lib/dotjs/properties.js | 330 + node_modules/ajv/lib/dotjs/propertyNames.js | 82 + node_modules/ajv/lib/dotjs/ref.js | 124 + node_modules/ajv/lib/dotjs/required.js | 270 + node_modules/ajv/lib/dotjs/uniqueItems.js | 86 + node_modules/ajv/lib/dotjs/validate.js | 494 + node_modules/ajv/lib/keyword.js | 178 + node_modules/ajv/lib/refs/data.json | 17 + .../ajv/lib/refs/json-schema-draft-04.json | 149 + .../ajv/lib/refs/json-schema-draft-06.json | 154 + .../ajv/lib/refs/json-schema-draft-07.json | 168 + .../ajv/lib/refs/json-schema-secure.json | 94 + node_modules/ajv/package.json | 131 + node_modules/ajv/scripts/.eslintrc.yml | 3 + node_modules/ajv/scripts/bundle.js | 61 + node_modules/ajv/scripts/compile-dots.js | 73 + node_modules/ajv/scripts/info | 10 + node_modules/ajv/scripts/prepare-tests | 12 + .../ajv/scripts/publish-built-version | 32 + node_modules/ajv/scripts/travis-gh-pages | 23 + node_modules/archy/.travis.yml | 4 + node_modules/archy/LICENSE | 18 + node_modules/archy/examples/beep.js | 24 + node_modules/archy/examples/multi_line.js | 25 + node_modules/archy/index.js | 35 + node_modules/archy/package.json | 86 + node_modules/archy/readme.markdown | 88 + node_modules/archy/test/beep.js | 40 + node_modules/archy/test/multi_line.js | 45 + node_modules/archy/test/non_unicode.js | 40 + node_modules/asn1/LICENSE | 19 + node_modules/asn1/README.md | 50 + node_modules/asn1/lib/ber/errors.js | 13 + node_modules/asn1/lib/ber/index.js | 27 + node_modules/asn1/lib/ber/reader.js | 262 + node_modules/asn1/lib/ber/types.js | 36 + node_modules/asn1/lib/ber/writer.js | 317 + node_modules/asn1/lib/index.js | 20 + node_modules/asn1/package.json | 78 + node_modules/assert-plus/AUTHORS | 6 + node_modules/assert-plus/CHANGES.md | 14 + node_modules/assert-plus/README.md | 162 + node_modules/assert-plus/assert.js | 211 + node_modules/assert-plus/package.json | 90 + node_modules/asynckit/LICENSE | 21 + node_modules/asynckit/README.md | 233 + node_modules/asynckit/bench.js | 76 + node_modules/asynckit/index.js | 6 + node_modules/asynckit/lib/abort.js | 29 + node_modules/asynckit/lib/async.js | 34 + node_modules/asynckit/lib/defer.js | 26 + node_modules/asynckit/lib/iterate.js | 75 + .../asynckit/lib/readable_asynckit.js | 91 + .../asynckit/lib/readable_parallel.js | 25 + node_modules/asynckit/lib/readable_serial.js | 25 + .../asynckit/lib/readable_serial_ordered.js | 29 + node_modules/asynckit/lib/state.js | 37 + node_modules/asynckit/lib/streamify.js | 141 + node_modules/asynckit/lib/terminator.js | 29 + node_modules/asynckit/package.json | 94 + node_modules/asynckit/parallel.js | 43 + node_modules/asynckit/serial.js | 17 + node_modules/asynckit/serialOrdered.js | 75 + node_modules/asynckit/stream.js | 21 + node_modules/auto-changelog/.markdownlintrc | 9 + node_modules/auto-changelog/.travis.yml | 18 + node_modules/auto-changelog/CHANGELOG.md | 414 + node_modules/auto-changelog/LICENSE.md | 21 + node_modules/auto-changelog/README.md | 330 + node_modules/auto-changelog/codecov.yml | 12 + node_modules/auto-changelog/lib/commits.js | 402 + node_modules/auto-changelog/lib/index.js | 14 + node_modules/auto-changelog/lib/releases.js | 267 + node_modules/auto-changelog/lib/remote.js | 213 + node_modules/auto-changelog/lib/run.js | 402 + node_modules/auto-changelog/lib/template.js | 218 + node_modules/auto-changelog/lib/utils.js | 261 + .../node_modules/commander/CHANGELOG.md | 515 + .../node_modules/commander/LICENSE | 22 + .../node_modules/commander/Readme.md | 612 ++ .../node_modules/commander/index.js | 1333 +++ .../node_modules/commander/package.json | 70 + .../node_modules/commander/typings/index.d.ts | 300 + node_modules/auto-changelog/package.json | 145 + .../scripts/generate-test-data.js | 42 + .../auto-changelog/templates/compact.hbs | 32 + .../auto-changelog/templates/json.hbs | 1 + .../templates/keepachangelog.hbs | 41 + node_modules/avvio/.github/tests_checker.yml | 3 + node_modules/avvio/.travis.yml | 11 + node_modules/avvio/LICENSE | 21 + node_modules/avvio/README.md | 599 ++ node_modules/avvio/boot.js | 433 + node_modules/avvio/example.js | 79 + node_modules/avvio/index.d.ts | 89 + node_modules/avvio/package.json | 78 + node_modules/avvio/plugin.js | 186 + .../avvio/test/after-and-ready.test.js | 755 ++ .../avvio/test/after-pass-through.test.js | 28 + node_modules/avvio/test/after-throw.test.js | 45 + node_modules/avvio/test/async-await.js | 228 + node_modules/avvio/test/async-await.test.js | 10 + node_modules/avvio/test/basic.test.js | 320 + node_modules/avvio/test/callbacks.test.js | 113 + .../test/catch-override-exception.test.js | 24 + node_modules/avvio/test/chainable.test.js | 71 + node_modules/avvio/test/close.test.js | 489 + .../avvio/test/events-listeners.test.js | 22 + node_modules/avvio/test/express.test.js | 49 + .../avvio/test/fixtures/plugin-no-next.js | 5 + node_modules/avvio/test/override.test.js | 291 + node_modules/avvio/test/plugin-timeout.js | 109 + node_modules/avvio/test/pretty-print.test.js | 57 + node_modules/avvio/test/reentrant.test.js | 124 + node_modules/avvio/test/to-json.test.js | 151 + node_modules/avvio/test/twice-done.test.js | 22 + node_modules/avvio/test/types/index.ts | 371 + node_modules/avvio/test/types/tsconfig.json | 9 + node_modules/avvio/time-tree.js | 106 + node_modules/aws-sign2/LICENSE | 55 + node_modules/aws-sign2/README.md | 4 + node_modules/aws-sign2/index.js | 212 + node_modules/aws-sign2/package.json | 53 + node_modules/aws4/.travis.yml | 5 + node_modules/aws4/LICENSE | 19 + node_modules/aws4/README.md | 523 + node_modules/aws4/aws4.js | 332 + node_modules/aws4/lru.js | 96 + node_modules/aws4/package.json | 107 + node_modules/balanced-match/.npmignore | 5 + node_modules/balanced-match/LICENSE.md | 21 + node_modules/balanced-match/README.md | 91 + node_modules/balanced-match/index.js | 59 + node_modules/balanced-match/package.json | 77 + node_modules/bcrypt-pbkdf/CONTRIBUTING.md | 13 + node_modules/bcrypt-pbkdf/LICENSE | 66 + node_modules/bcrypt-pbkdf/README.md | 45 + node_modules/bcrypt-pbkdf/index.js | 556 + node_modules/bcrypt-pbkdf/package.json | 47 + node_modules/brace-expansion/LICENSE | 21 + node_modules/brace-expansion/README.md | 129 + node_modules/brace-expansion/index.js | 201 + node_modules/brace-expansion/package.json | 75 + node_modules/caseless/LICENSE | 28 + node_modules/caseless/README.md | 45 + node_modules/caseless/index.js | 67 + node_modules/caseless/package.json | 59 + node_modules/caseless/test.js | 67 + node_modules/combined-stream/License | 19 + node_modules/combined-stream/Readme.md | 138 + .../combined-stream/lib/combined_stream.js | 208 + node_modules/combined-stream/package.json | 61 + node_modules/combined-stream/yarn.lock | 17 + node_modules/commander/CHANGELOG.md | 408 + node_modules/commander/LICENSE | 22 + node_modules/commander/Readme.md | 428 + node_modules/commander/index.js | 1224 +++ node_modules/commander/package.json | 73 + node_modules/commander/typings/index.d.ts | 310 + node_modules/concat-map/.travis.yml | 4 + node_modules/concat-map/LICENSE | 18 + node_modules/concat-map/README.markdown | 62 + node_modules/concat-map/example/map.js | 6 + node_modules/concat-map/index.js | 13 + node_modules/concat-map/package.json | 88 + node_modules/concat-map/test/map.js | 39 + node_modules/convert-units/.travis.yml | 5 + node_modules/convert-units/Jakefile | 14 + node_modules/convert-units/LICENSE | 7 + node_modules/convert-units/README.md | 377 + .../convert-units/lib/definitions/angle.js | 49 + .../lib/definitions/apparentPower.js | 49 + .../convert-units/lib/definitions/area.js | 93 + .../convert-units/lib/definitions/current.js | 35 + .../convert-units/lib/definitions/digital.js | 93 + .../convert-units/lib/definitions/each.js | 30 + .../convert-units/lib/definitions/energy.js | 63 + .../lib/definitions/frequency.js | 78 + .../lib/definitions/illuminance.js | 37 + .../convert-units/lib/definitions/length.js | 86 + .../convert-units/lib/definitions/mass.js | 78 + .../convert-units/lib/definitions/pace.js | 51 + .../convert-units/lib/definitions/partsPer.js | 44 + .../convert-units/lib/definitions/power.js | 49 + .../convert-units/lib/definitions/pressure.js | 79 + .../lib/definitions/reactiveEnergy.js | 49 + .../lib/definitions/reactivePower.js | 49 + .../convert-units/lib/definitions/speed.js | 58 + .../lib/definitions/temperature.js | 55 + .../convert-units/lib/definitions/time.js | 86 + .../convert-units/lib/definitions/voltage.js | 35 + .../convert-units/lib/definitions/volume.js | 200 + .../lib/definitions/volumeFlowRate.js | 282 + node_modules/convert-units/lib/index.js | 304 + .../convert-units/lib/percentError.js | 3 + node_modules/convert-units/package.json | 66 + node_modules/convert-units/test/angle.js | 75 + .../convert-units/test/apparentPower.js | 65 + node_modules/convert-units/test/area.js | 75 + node_modules/convert-units/test/best.js | 77 + node_modules/convert-units/test/current.js | 41 + node_modules/convert-units/test/describe.js | 31 + node_modules/convert-units/test/digital.js | 63 + node_modules/convert-units/test/each.js | 17 + node_modules/convert-units/test/energy.js | 85 + node_modules/convert-units/test/frequency.js | 63 + .../convert-units/test/illuminance.js | 13 + .../convert-units/test/incompatibilities.js | 47 + node_modules/convert-units/test/lengths.js | 83 + node_modules/convert-units/test/list.js | 34 + node_modules/convert-units/test/masses.js | 68 + node_modules/convert-units/test/measures.js | 11 + node_modules/convert-units/test/pace.js | 41 + node_modules/convert-units/test/partsPer.js | 49 + .../convert-units/test/possibilities.js | 358 + node_modules/convert-units/test/power.js | 65 + node_modules/convert-units/test/pressures.js | 69 + .../convert-units/test/reactiveEnergy.js | 65 + .../convert-units/test/reactivePower.js | 65 + node_modules/convert-units/test/speeds.js | 54 + .../convert-units/test/temperature.js | 41 + node_modules/convert-units/test/times.js | 68 + node_modules/convert-units/test/voltage.js | 41 + .../convert-units/test/volumeFlowRates.js | 215 + node_modules/convert-units/test/volumes.js | 176 + node_modules/convert-units/yarn.lock | 259 + node_modules/core-js/LICENSE | 19 + node_modules/core-js/README.md | 58 + node_modules/core-js/configurator.js | 16 + node_modules/core-js/es/README.md | 1 + .../core-js/es/array-buffer/constructor.js | 5 + node_modules/core-js/es/array-buffer/index.js | 7 + .../core-js/es/array-buffer/is-view.js | 4 + node_modules/core-js/es/array-buffer/slice.js | 1 + node_modules/core-js/es/array/concat.js | 4 + node_modules/core-js/es/array/copy-within.js | 4 + node_modules/core-js/es/array/entries.js | 4 + node_modules/core-js/es/array/every.js | 4 + node_modules/core-js/es/array/fill.js | 4 + node_modules/core-js/es/array/filter.js | 4 + node_modules/core-js/es/array/find-index.js | 4 + node_modules/core-js/es/array/find.js | 4 + node_modules/core-js/es/array/flat-map.js | 5 + node_modules/core-js/es/array/flat.js | 5 + node_modules/core-js/es/array/for-each.js | 4 + node_modules/core-js/es/array/from.js | 5 + node_modules/core-js/es/array/includes.js | 4 + node_modules/core-js/es/array/index-of.js | 4 + node_modules/core-js/es/array/index.js | 33 + node_modules/core-js/es/array/is-array.js | 4 + node_modules/core-js/es/array/iterator.js | 4 + node_modules/core-js/es/array/join.js | 4 + node_modules/core-js/es/array/keys.js | 4 + .../core-js/es/array/last-index-of.js | 4 + node_modules/core-js/es/array/map.js | 4 + node_modules/core-js/es/array/of.js | 4 + node_modules/core-js/es/array/reduce-right.js | 4 + node_modules/core-js/es/array/reduce.js | 4 + node_modules/core-js/es/array/reverse.js | 4 + node_modules/core-js/es/array/slice.js | 4 + node_modules/core-js/es/array/some.js | 4 + node_modules/core-js/es/array/sort.js | 4 + node_modules/core-js/es/array/splice.js | 4 + node_modules/core-js/es/array/values.js | 4 + .../core-js/es/array/virtual/concat.js | 4 + .../core-js/es/array/virtual/copy-within.js | 4 + .../core-js/es/array/virtual/entries.js | 4 + .../core-js/es/array/virtual/every.js | 4 + node_modules/core-js/es/array/virtual/fill.js | 4 + .../core-js/es/array/virtual/filter.js | 4 + .../core-js/es/array/virtual/find-index.js | 4 + node_modules/core-js/es/array/virtual/find.js | 4 + .../core-js/es/array/virtual/flat-map.js | 5 + node_modules/core-js/es/array/virtual/flat.js | 5 + .../core-js/es/array/virtual/for-each.js | 4 + .../core-js/es/array/virtual/includes.js | 4 + .../core-js/es/array/virtual/index-of.js | 4 + .../core-js/es/array/virtual/index.js | 29 + .../core-js/es/array/virtual/iterator.js | 4 + node_modules/core-js/es/array/virtual/join.js | 4 + node_modules/core-js/es/array/virtual/keys.js | 4 + .../core-js/es/array/virtual/last-index-of.js | 4 + node_modules/core-js/es/array/virtual/map.js | 4 + .../core-js/es/array/virtual/reduce-right.js | 4 + .../core-js/es/array/virtual/reduce.js | 4 + .../core-js/es/array/virtual/reverse.js | 4 + .../core-js/es/array/virtual/slice.js | 4 + node_modules/core-js/es/array/virtual/some.js | 4 + node_modules/core-js/es/array/virtual/sort.js | 4 + .../core-js/es/array/virtual/splice.js | 4 + .../core-js/es/array/virtual/values.js | 4 + node_modules/core-js/es/data-view/index.js | 5 + node_modules/core-js/es/date/index.js | 8 + node_modules/core-js/es/date/now.js | 4 + node_modules/core-js/es/date/to-iso-string.js | 5 + node_modules/core-js/es/date/to-json.js | 4 + node_modules/core-js/es/date/to-primitive.js | 6 + node_modules/core-js/es/date/to-string.js | 6 + node_modules/core-js/es/function/bind.js | 4 + .../core-js/es/function/has-instance.js | 4 + node_modules/core-js/es/function/index.js | 6 + node_modules/core-js/es/function/name.js | 1 + .../core-js/es/function/virtual/bind.js | 4 + .../core-js/es/function/virtual/index.js | 4 + node_modules/core-js/es/index.js | 205 + node_modules/core-js/es/instance/bind.js | 8 + .../core-js/es/instance/code-point-at.js | 9 + node_modules/core-js/es/instance/concat.js | 8 + .../core-js/es/instance/copy-within.js | 8 + node_modules/core-js/es/instance/ends-with.js | 9 + node_modules/core-js/es/instance/entries.js | 8 + node_modules/core-js/es/instance/every.js | 8 + node_modules/core-js/es/instance/fill.js | 8 + node_modules/core-js/es/instance/filter.js | 8 + .../core-js/es/instance/find-index.js | 8 + node_modules/core-js/es/instance/find.js | 8 + node_modules/core-js/es/instance/flags.js | 7 + node_modules/core-js/es/instance/flat-map.js | 8 + node_modules/core-js/es/instance/flat.js | 8 + node_modules/core-js/es/instance/for-each.js | 8 + node_modules/core-js/es/instance/includes.js | 13 + node_modules/core-js/es/instance/index-of.js | 8 + node_modules/core-js/es/instance/keys.js | 8 + .../core-js/es/instance/last-index-of.js | 8 + node_modules/core-js/es/instance/map.js | 8 + node_modules/core-js/es/instance/match-all.js | 9 + node_modules/core-js/es/instance/pad-end.js | 9 + node_modules/core-js/es/instance/pad-start.js | 9 + .../core-js/es/instance/reduce-right.js | 8 + node_modules/core-js/es/instance/reduce.js | 8 + node_modules/core-js/es/instance/repeat.js | 9 + node_modules/core-js/es/instance/reverse.js | 8 + node_modules/core-js/es/instance/slice.js | 8 + node_modules/core-js/es/instance/some.js | 8 + node_modules/core-js/es/instance/sort.js | 8 + node_modules/core-js/es/instance/splice.js | 8 + .../core-js/es/instance/starts-with.js | 9 + node_modules/core-js/es/instance/trim-end.js | 9 + node_modules/core-js/es/instance/trim-left.js | 9 + .../core-js/es/instance/trim-right.js | 9 + .../core-js/es/instance/trim-start.js | 9 + node_modules/core-js/es/instance/trim.js | 9 + node_modules/core-js/es/instance/values.js | 8 + node_modules/core-js/es/json/index.js | 4 + node_modules/core-js/es/json/stringify.js | 6 + node_modules/core-js/es/json/to-string-tag.js | 3 + node_modules/core-js/es/map/index.js | 7 + node_modules/core-js/es/math/acosh.js | 4 + node_modules/core-js/es/math/asinh.js | 4 + node_modules/core-js/es/math/atanh.js | 4 + node_modules/core-js/es/math/cbrt.js | 4 + node_modules/core-js/es/math/clz32.js | 4 + node_modules/core-js/es/math/cosh.js | 4 + node_modules/core-js/es/math/expm1.js | 4 + node_modules/core-js/es/math/fround.js | 4 + node_modules/core-js/es/math/hypot.js | 4 + node_modules/core-js/es/math/imul.js | 4 + node_modules/core-js/es/math/index.js | 21 + node_modules/core-js/es/math/log10.js | 4 + node_modules/core-js/es/math/log1p.js | 4 + node_modules/core-js/es/math/log2.js | 4 + node_modules/core-js/es/math/sign.js | 4 + node_modules/core-js/es/math/sinh.js | 4 + node_modules/core-js/es/math/tanh.js | 4 + node_modules/core-js/es/math/to-string-tag.js | 3 + node_modules/core-js/es/math/trunc.js | 4 + node_modules/core-js/es/number/constructor.js | 3 + node_modules/core-js/es/number/epsilon.js | 3 + node_modules/core-js/es/number/index.js | 15 + node_modules/core-js/es/number/is-finite.js | 4 + node_modules/core-js/es/number/is-integer.js | 4 + node_modules/core-js/es/number/is-nan.js | 4 + .../core-js/es/number/is-safe-integer.js | 4 + .../core-js/es/number/max-safe-integer.js | 3 + .../core-js/es/number/min-safe-integer.js | 3 + node_modules/core-js/es/number/parse-float.js | 4 + node_modules/core-js/es/number/parse-int.js | 4 + node_modules/core-js/es/number/to-fixed.js | 4 + .../core-js/es/number/to-precision.js | 4 + .../core-js/es/number/virtual/index.js | 5 + .../core-js/es/number/virtual/to-fixed.js | 4 + .../core-js/es/number/virtual/to-precision.js | 4 + node_modules/core-js/es/object/assign.js | 4 + node_modules/core-js/es/object/create.js | 8 + .../core-js/es/object/define-getter.js | 4 + .../core-js/es/object/define-properties.js | 10 + .../core-js/es/object/define-property.js | 10 + .../core-js/es/object/define-setter.js | 4 + node_modules/core-js/es/object/entries.js | 4 + node_modules/core-js/es/object/freeze.js | 4 + .../core-js/es/object/from-entries.js | 5 + .../es/object/get-own-property-descriptor.js | 10 + .../es/object/get-own-property-descriptors.js | 4 + .../es/object/get-own-property-names.js | 8 + .../es/object/get-own-property-symbols.js | 4 + .../core-js/es/object/get-prototype-of.js | 4 + node_modules/core-js/es/object/index.js | 31 + .../core-js/es/object/is-extensible.js | 4 + node_modules/core-js/es/object/is-frozen.js | 4 + node_modules/core-js/es/object/is-sealed.js | 4 + node_modules/core-js/es/object/is.js | 4 + node_modules/core-js/es/object/keys.js | 4 + .../core-js/es/object/lookup-getter.js | 4 + .../core-js/es/object/lookup-setter.js | 4 + .../core-js/es/object/prevent-extensions.js | 4 + node_modules/core-js/es/object/seal.js | 4 + .../core-js/es/object/set-prototype-of.js | 4 + node_modules/core-js/es/object/to-string.js | 8 + node_modules/core-js/es/object/values.js | 4 + node_modules/core-js/es/parse-float.js | 4 + node_modules/core-js/es/parse-int.js | 4 + .../core-js/es/promise/all-settled.js | 11 + node_modules/core-js/es/promise/finally.js | 5 + node_modules/core-js/es/promise/index.js | 9 + node_modules/core-js/es/reflect/apply.js | 4 + node_modules/core-js/es/reflect/construct.js | 4 + .../core-js/es/reflect/define-property.js | 4 + .../core-js/es/reflect/delete-property.js | 4 + .../es/reflect/get-own-property-descriptor.js | 4 + .../core-js/es/reflect/get-prototype-of.js | 4 + node_modules/core-js/es/reflect/get.js | 4 + node_modules/core-js/es/reflect/has.js | 4 + node_modules/core-js/es/reflect/index.js | 16 + .../core-js/es/reflect/is-extensible.js | 4 + node_modules/core-js/es/reflect/own-keys.js | 4 + .../core-js/es/reflect/prevent-extensions.js | 4 + .../core-js/es/reflect/set-prototype-of.js | 4 + node_modules/core-js/es/reflect/set.js | 4 + node_modules/core-js/es/regexp/constructor.js | 3 + node_modules/core-js/es/regexp/flags.js | 6 + node_modules/core-js/es/regexp/index.js | 8 + node_modules/core-js/es/regexp/match.js | 8 + node_modules/core-js/es/regexp/replace.js | 8 + node_modules/core-js/es/regexp/search.js | 8 + node_modules/core-js/es/regexp/split.js | 8 + node_modules/core-js/es/regexp/to-string.js | 5 + node_modules/core-js/es/set/index.js | 7 + node_modules/core-js/es/string/anchor.js | 4 + node_modules/core-js/es/string/big.js | 4 + node_modules/core-js/es/string/blink.js | 4 + node_modules/core-js/es/string/bold.js | 4 + .../core-js/es/string/code-point-at.js | 4 + node_modules/core-js/es/string/ends-with.js | 4 + node_modules/core-js/es/string/fixed.js | 4 + node_modules/core-js/es/string/fontcolor.js | 4 + node_modules/core-js/es/string/fontsize.js | 4 + .../core-js/es/string/from-code-point.js | 4 + node_modules/core-js/es/string/includes.js | 4 + node_modules/core-js/es/string/index.js | 34 + node_modules/core-js/es/string/italics.js | 4 + node_modules/core-js/es/string/iterator.js | 8 + node_modules/core-js/es/string/link.js | 4 + node_modules/core-js/es/string/match-all.js | 4 + node_modules/core-js/es/string/match.js | 4 + node_modules/core-js/es/string/pad-end.js | 4 + node_modules/core-js/es/string/pad-start.js | 4 + node_modules/core-js/es/string/raw.js | 4 + node_modules/core-js/es/string/repeat.js | 4 + node_modules/core-js/es/string/replace.js | 4 + node_modules/core-js/es/string/search.js | 4 + node_modules/core-js/es/string/small.js | 4 + node_modules/core-js/es/string/split.js | 4 + node_modules/core-js/es/string/starts-with.js | 4 + node_modules/core-js/es/string/strike.js | 4 + node_modules/core-js/es/string/sub.js | 4 + node_modules/core-js/es/string/sup.js | 4 + node_modules/core-js/es/string/trim-end.js | 4 + node_modules/core-js/es/string/trim-left.js | 4 + node_modules/core-js/es/string/trim-right.js | 4 + node_modules/core-js/es/string/trim-start.js | 4 + node_modules/core-js/es/string/trim.js | 4 + .../core-js/es/string/virtual/anchor.js | 4 + node_modules/core-js/es/string/virtual/big.js | 4 + .../core-js/es/string/virtual/blink.js | 4 + .../core-js/es/string/virtual/bold.js | 4 + .../es/string/virtual/code-point-at.js | 4 + .../core-js/es/string/virtual/ends-with.js | 4 + .../core-js/es/string/virtual/fixed.js | 4 + .../core-js/es/string/virtual/fontcolor.js | 4 + .../core-js/es/string/virtual/fontsize.js | 4 + .../core-js/es/string/virtual/includes.js | 4 + .../core-js/es/string/virtual/index.js | 32 + .../core-js/es/string/virtual/italics.js | 4 + .../core-js/es/string/virtual/iterator.js | 4 + .../core-js/es/string/virtual/link.js | 4 + .../core-js/es/string/virtual/match-all.js | 4 + .../core-js/es/string/virtual/pad-end.js | 4 + .../core-js/es/string/virtual/pad-start.js | 4 + .../core-js/es/string/virtual/repeat.js | 4 + .../core-js/es/string/virtual/small.js | 4 + .../core-js/es/string/virtual/starts-with.js | 4 + .../core-js/es/string/virtual/strike.js | 4 + node_modules/core-js/es/string/virtual/sub.js | 4 + node_modules/core-js/es/string/virtual/sup.js | 4 + .../core-js/es/string/virtual/trim-end.js | 4 + .../core-js/es/string/virtual/trim-left.js | 4 + .../core-js/es/string/virtual/trim-right.js | 4 + .../core-js/es/string/virtual/trim-start.js | 4 + .../core-js/es/string/virtual/trim.js | 4 + .../core-js/es/symbol/async-iterator.js | 4 + node_modules/core-js/es/symbol/description.js | 1 + node_modules/core-js/es/symbol/for.js | 4 + .../core-js/es/symbol/has-instance.js | 5 + node_modules/core-js/es/symbol/index.js | 22 + .../core-js/es/symbol/is-concat-spreadable.js | 5 + node_modules/core-js/es/symbol/iterator.js | 6 + node_modules/core-js/es/symbol/key-for.js | 4 + node_modules/core-js/es/symbol/match-all.js | 5 + node_modules/core-js/es/symbol/match.js | 5 + node_modules/core-js/es/symbol/replace.js | 5 + node_modules/core-js/es/symbol/search.js | 5 + node_modules/core-js/es/symbol/species.js | 4 + node_modules/core-js/es/symbol/split.js | 5 + .../core-js/es/symbol/to-primitive.js | 4 + .../core-js/es/symbol/to-string-tag.js | 7 + node_modules/core-js/es/symbol/unscopables.js | 4 + .../core-js/es/typed-array/copy-within.js | 1 + .../core-js/es/typed-array/entries.js | 1 + node_modules/core-js/es/typed-array/every.js | 1 + node_modules/core-js/es/typed-array/fill.js | 1 + node_modules/core-js/es/typed-array/filter.js | 1 + .../core-js/es/typed-array/find-index.js | 1 + node_modules/core-js/es/typed-array/find.js | 1 + .../core-js/es/typed-array/float32-array.js | 5 + .../core-js/es/typed-array/float64-array.js | 5 + .../core-js/es/typed-array/for-each.js | 1 + node_modules/core-js/es/typed-array/from.js | 1 + .../core-js/es/typed-array/includes.js | 1 + .../core-js/es/typed-array/index-of.js | 1 + node_modules/core-js/es/typed-array/index.js | 12 + .../core-js/es/typed-array/int16-array.js | 5 + .../core-js/es/typed-array/int32-array.js | 5 + .../core-js/es/typed-array/int8-array.js | 5 + .../core-js/es/typed-array/iterator.js | 1 + node_modules/core-js/es/typed-array/join.js | 1 + node_modules/core-js/es/typed-array/keys.js | 1 + .../core-js/es/typed-array/last-index-of.js | 1 + node_modules/core-js/es/typed-array/map.js | 1 + .../core-js/es/typed-array/methods.js | 26 + node_modules/core-js/es/typed-array/of.js | 1 + .../core-js/es/typed-array/reduce-right.js | 1 + node_modules/core-js/es/typed-array/reduce.js | 1 + .../core-js/es/typed-array/reverse.js | 1 + node_modules/core-js/es/typed-array/set.js | 1 + node_modules/core-js/es/typed-array/slice.js | 1 + node_modules/core-js/es/typed-array/some.js | 1 + node_modules/core-js/es/typed-array/sort.js | 1 + .../core-js/es/typed-array/subarray.js | 1 + .../es/typed-array/to-locale-string.js | 1 + .../core-js/es/typed-array/to-string.js | 1 + .../core-js/es/typed-array/uint16-array.js | 5 + .../core-js/es/typed-array/uint32-array.js | 5 + .../core-js/es/typed-array/uint8-array.js | 5 + .../es/typed-array/uint8-clamped-array.js | 5 + node_modules/core-js/es/typed-array/values.js | 1 + node_modules/core-js/es/weak-map/index.js | 6 + node_modules/core-js/es/weak-set/index.js | 6 + node_modules/core-js/features/README.md | 1 + .../core-js/features/aggregate-error.js | 6 + .../features/array-buffer/constructor.js | 1 + .../core-js/features/array-buffer/index.js | 1 + .../core-js/features/array-buffer/is-view.js | 1 + .../core-js/features/array-buffer/slice.js | 1 + node_modules/core-js/features/array/concat.js | 1 + .../core-js/features/array/copy-within.js | 1 + .../core-js/features/array/entries.js | 1 + node_modules/core-js/features/array/every.js | 1 + node_modules/core-js/features/array/fill.js | 1 + node_modules/core-js/features/array/filter.js | 1 + .../core-js/features/array/find-index.js | 1 + node_modules/core-js/features/array/find.js | 1 + .../core-js/features/array/flat-map.js | 1 + node_modules/core-js/features/array/flat.js | 1 + .../core-js/features/array/for-each.js | 1 + node_modules/core-js/features/array/from.js | 1 + .../core-js/features/array/includes.js | 1 + .../core-js/features/array/index-of.js | 1 + node_modules/core-js/features/array/index.js | 5 + .../core-js/features/array/is-array.js | 1 + .../features/array/is-template-object.js | 4 + .../core-js/features/array/iterator.js | 1 + node_modules/core-js/features/array/join.js | 1 + node_modules/core-js/features/array/keys.js | 1 + .../core-js/features/array/last-index-of.js | 1 + .../core-js/features/array/last-index.js | 1 + .../core-js/features/array/last-item.js | 1 + node_modules/core-js/features/array/map.js | 1 + node_modules/core-js/features/array/of.js | 1 + .../core-js/features/array/reduce-right.js | 1 + node_modules/core-js/features/array/reduce.js | 1 + .../core-js/features/array/reverse.js | 1 + node_modules/core-js/features/array/slice.js | 1 + node_modules/core-js/features/array/some.js | 1 + node_modules/core-js/features/array/sort.js | 1 + node_modules/core-js/features/array/splice.js | 1 + node_modules/core-js/features/array/values.js | 1 + .../core-js/features/array/virtual/concat.js | 1 + .../features/array/virtual/copy-within.js | 1 + .../core-js/features/array/virtual/entries.js | 1 + .../core-js/features/array/virtual/every.js | 1 + .../core-js/features/array/virtual/fill.js | 1 + .../core-js/features/array/virtual/filter.js | 1 + .../features/array/virtual/find-index.js | 1 + .../core-js/features/array/virtual/find.js | 1 + .../features/array/virtual/flat-map.js | 1 + .../core-js/features/array/virtual/flat.js | 1 + .../features/array/virtual/for-each.js | 1 + .../features/array/virtual/includes.js | 1 + .../features/array/virtual/index-of.js | 1 + .../core-js/features/array/virtual/index.js | 1 + .../features/array/virtual/iterator.js | 1 + .../core-js/features/array/virtual/join.js | 1 + .../core-js/features/array/virtual/keys.js | 1 + .../features/array/virtual/last-index-of.js | 1 + .../core-js/features/array/virtual/map.js | 1 + .../features/array/virtual/reduce-right.js | 1 + .../core-js/features/array/virtual/reduce.js | 1 + .../core-js/features/array/virtual/reverse.js | 1 + .../core-js/features/array/virtual/slice.js | 1 + .../core-js/features/array/virtual/some.js | 1 + .../core-js/features/array/virtual/sort.js | 1 + .../core-js/features/array/virtual/splice.js | 1 + .../core-js/features/array/virtual/values.js | 1 + .../core-js/features/clear-immediate.js | 1 + .../core-js/features/composite-key.js | 4 + .../core-js/features/composite-symbol.js | 5 + .../core-js/features/data-view/index.js | 1 + node_modules/core-js/features/date/index.js | 1 + node_modules/core-js/features/date/now.js | 1 + .../core-js/features/date/to-iso-string.js | 1 + node_modules/core-js/features/date/to-json.js | 1 + .../core-js/features/date/to-primitive.js | 1 + .../core-js/features/date/to-string.js | 1 + .../features/dom-collections/for-each.js | 1 + .../core-js/features/dom-collections/index.js | 1 + .../features/dom-collections/iterator.js | 1 + .../core-js/features/function/bind.js | 1 + .../core-js/features/function/has-instance.js | 1 + .../core-js/features/function/index.js | 1 + .../core-js/features/function/name.js | 1 + .../core-js/features/function/virtual/bind.js | 1 + .../features/function/virtual/index.js | 1 + .../core-js/features/get-iterator-method.js | 4 + node_modules/core-js/features/get-iterator.js | 4 + node_modules/core-js/features/global-this.js | 3 + node_modules/core-js/features/index.js | 1 + node_modules/core-js/features/instance/at.js | 9 + .../core-js/features/instance/bind.js | 1 + .../features/instance/code-point-at.js | 1 + .../core-js/features/instance/code-points.js | 9 + .../core-js/features/instance/concat.js | 1 + .../core-js/features/instance/copy-within.js | 1 + .../core-js/features/instance/ends-with.js | 1 + .../core-js/features/instance/entries.js | 1 + .../core-js/features/instance/every.js | 1 + .../core-js/features/instance/fill.js | 1 + .../core-js/features/instance/filter.js | 1 + .../core-js/features/instance/find-index.js | 1 + .../core-js/features/instance/find.js | 1 + .../core-js/features/instance/flags.js | 1 + .../core-js/features/instance/flat-map.js | 1 + .../core-js/features/instance/flat.js | 1 + .../core-js/features/instance/for-each.js | 1 + .../core-js/features/instance/includes.js | 1 + .../core-js/features/instance/index-of.js | 1 + .../core-js/features/instance/keys.js | 1 + .../features/instance/last-index-of.js | 1 + node_modules/core-js/features/instance/map.js | 1 + .../core-js/features/instance/match-all.js | 1 + .../core-js/features/instance/pad-end.js | 1 + .../core-js/features/instance/pad-start.js | 1 + .../core-js/features/instance/reduce-right.js | 1 + .../core-js/features/instance/reduce.js | 1 + .../core-js/features/instance/repeat.js | 1 + .../core-js/features/instance/replace-all.js | 9 + .../core-js/features/instance/reverse.js | 1 + .../core-js/features/instance/slice.js | 1 + .../core-js/features/instance/some.js | 1 + .../core-js/features/instance/sort.js | 1 + .../core-js/features/instance/splice.js | 1 + .../core-js/features/instance/starts-with.js | 1 + .../core-js/features/instance/trim-end.js | 1 + .../core-js/features/instance/trim-left.js | 1 + .../core-js/features/instance/trim-right.js | 1 + .../core-js/features/instance/trim-start.js | 1 + .../core-js/features/instance/trim.js | 1 + .../core-js/features/instance/values.js | 1 + node_modules/core-js/features/is-iterable.js | 4 + node_modules/core-js/features/json/index.js | 1 + .../core-js/features/json/stringify.js | 1 + .../core-js/features/json/to-string-tag.js | 1 + .../core-js/features/map/delete-all.js | 5 + node_modules/core-js/features/map/every.js | 5 + node_modules/core-js/features/map/filter.js | 5 + node_modules/core-js/features/map/find-key.js | 5 + node_modules/core-js/features/map/find.js | 5 + node_modules/core-js/features/map/from.js | 13 + node_modules/core-js/features/map/group-by.js | 11 + node_modules/core-js/features/map/includes.js | 5 + node_modules/core-js/features/map/index.js | 20 + node_modules/core-js/features/map/key-by.js | 11 + node_modules/core-js/features/map/key-of.js | 5 + node_modules/core-js/features/map/map-keys.js | 5 + .../core-js/features/map/map-values.js | 5 + node_modules/core-js/features/map/merge.js | 5 + node_modules/core-js/features/map/of.js | 13 + node_modules/core-js/features/map/reduce.js | 5 + node_modules/core-js/features/map/some.js | 5 + .../core-js/features/map/update-or-insert.js | 5 + node_modules/core-js/features/map/update.js | 5 + node_modules/core-js/features/math/acosh.js | 1 + node_modules/core-js/features/math/asinh.js | 1 + node_modules/core-js/features/math/atanh.js | 1 + node_modules/core-js/features/math/cbrt.js | 1 + node_modules/core-js/features/math/clamp.js | 4 + node_modules/core-js/features/math/clz32.js | 1 + node_modules/core-js/features/math/cosh.js | 1 + .../core-js/features/math/deg-per-rad.js | 3 + node_modules/core-js/features/math/degrees.js | 4 + node_modules/core-js/features/math/expm1.js | 1 + node_modules/core-js/features/math/fround.js | 1 + node_modules/core-js/features/math/fscale.js | 4 + node_modules/core-js/features/math/hypot.js | 1 + node_modules/core-js/features/math/iaddh.js | 4 + node_modules/core-js/features/math/imul.js | 1 + node_modules/core-js/features/math/imulh.js | 4 + node_modules/core-js/features/math/index.js | 15 + node_modules/core-js/features/math/isubh.js | 4 + node_modules/core-js/features/math/log10.js | 1 + node_modules/core-js/features/math/log1p.js | 1 + node_modules/core-js/features/math/log2.js | 1 + .../core-js/features/math/rad-per-deg.js | 3 + node_modules/core-js/features/math/radians.js | 4 + node_modules/core-js/features/math/scale.js | 4 + .../core-js/features/math/seeded-prng.js | 4 + node_modules/core-js/features/math/sign.js | 1 + node_modules/core-js/features/math/signbit.js | 4 + node_modules/core-js/features/math/sinh.js | 1 + node_modules/core-js/features/math/tanh.js | 1 + .../core-js/features/math/to-string-tag.js | 1 + node_modules/core-js/features/math/trunc.js | 1 + node_modules/core-js/features/math/umulh.js | 4 + .../core-js/features/number/constructor.js | 1 + .../core-js/features/number/epsilon.js | 1 + .../core-js/features/number/from-string.js | 4 + node_modules/core-js/features/number/index.js | 3 + .../core-js/features/number/is-finite.js | 1 + .../core-js/features/number/is-integer.js | 1 + .../core-js/features/number/is-nan.js | 1 + .../features/number/is-safe-integer.js | 1 + .../features/number/max-safe-integer.js | 1 + .../features/number/min-safe-integer.js | 1 + .../core-js/features/number/parse-float.js | 1 + .../core-js/features/number/parse-int.js | 1 + .../core-js/features/number/to-fixed.js | 1 + .../core-js/features/number/to-precision.js | 1 + .../core-js/features/number/virtual/index.js | 1 + .../features/number/virtual/to-fixed.js | 1 + .../features/number/virtual/to-precision.js | 1 + .../core-js/features/object/assign.js | 1 + .../core-js/features/object/create.js | 1 + .../core-js/features/object/define-getter.js | 1 + .../features/object/define-properties.js | 1 + .../features/object/define-property.js | 1 + .../core-js/features/object/define-setter.js | 1 + .../core-js/features/object/entries.js | 1 + .../core-js/features/object/freeze.js | 1 + .../core-js/features/object/from-entries.js | 1 + .../object/get-own-property-descriptor.js | 1 + .../object/get-own-property-descriptors.js | 1 + .../features/object/get-own-property-names.js | 1 + .../object/get-own-property-symbols.js | 1 + .../features/object/get-prototype-of.js | 1 + node_modules/core-js/features/object/index.js | 1 + .../core-js/features/object/is-extensible.js | 1 + .../core-js/features/object/is-frozen.js | 1 + .../core-js/features/object/is-sealed.js | 1 + node_modules/core-js/features/object/is.js | 1 + node_modules/core-js/features/object/keys.js | 1 + .../core-js/features/object/lookup-getter.js | 1 + .../core-js/features/object/lookup-setter.js | 1 + .../features/object/prevent-extensions.js | 1 + node_modules/core-js/features/object/seal.js | 1 + .../features/object/set-prototype-of.js | 1 + .../core-js/features/object/to-string.js | 1 + .../core-js/features/object/values.js | 1 + .../core-js/features/observable/index.js | 8 + node_modules/core-js/features/parse-float.js | 1 + node_modules/core-js/features/parse-int.js | 1 + .../core-js/features/promise/all-settled.js | 4 + node_modules/core-js/features/promise/any.js | 12 + .../core-js/features/promise/finally.js | 1 + .../core-js/features/promise/index.js | 7 + node_modules/core-js/features/promise/try.js | 11 + .../core-js/features/queue-microtask.js | 1 + .../core-js/features/reflect/apply.js | 1 + .../core-js/features/reflect/construct.js | 1 + .../features/reflect/define-metadata.js | 4 + .../features/reflect/define-property.js | 1 + .../features/reflect/delete-metadata.js | 4 + .../features/reflect/delete-property.js | 1 + .../features/reflect/get-metadata-keys.js | 4 + .../core-js/features/reflect/get-metadata.js | 4 + .../features/reflect/get-own-metadata-keys.js | 4 + .../features/reflect/get-own-metadata.js | 4 + .../reflect/get-own-property-descriptor.js | 1 + .../features/reflect/get-prototype-of.js | 1 + node_modules/core-js/features/reflect/get.js | 1 + .../core-js/features/reflect/has-metadata.js | 4 + .../features/reflect/has-own-metadata.js | 4 + node_modules/core-js/features/reflect/has.js | 1 + .../core-js/features/reflect/index.js | 11 + .../core-js/features/reflect/is-extensible.js | 1 + .../core-js/features/reflect/metadata.js | 4 + .../core-js/features/reflect/own-keys.js | 1 + .../features/reflect/prevent-extensions.js | 1 + .../features/reflect/set-prototype-of.js | 1 + node_modules/core-js/features/reflect/set.js | 1 + .../core-js/features/regexp/constructor.js | 1 + node_modules/core-js/features/regexp/flags.js | 1 + node_modules/core-js/features/regexp/index.js | 1 + node_modules/core-js/features/regexp/match.js | 1 + .../core-js/features/regexp/replace.js | 1 + .../core-js/features/regexp/search.js | 1 + node_modules/core-js/features/regexp/split.js | 1 + .../core-js/features/regexp/to-string.js | 1 + .../core-js/features/set-immediate.js | 1 + node_modules/core-js/features/set-interval.js | 1 + node_modules/core-js/features/set-timeout.js | 1 + node_modules/core-js/features/set/add-all.js | 5 + .../core-js/features/set/delete-all.js | 5 + .../core-js/features/set/difference.js | 7 + node_modules/core-js/features/set/every.js | 5 + node_modules/core-js/features/set/filter.js | 5 + node_modules/core-js/features/set/find.js | 5 + node_modules/core-js/features/set/from.js | 13 + node_modules/core-js/features/set/index.js | 20 + .../core-js/features/set/intersection.js | 5 + .../core-js/features/set/is-disjoint-from.js | 5 + .../core-js/features/set/is-subset-of.js | 7 + .../core-js/features/set/is-superset-of.js | 5 + node_modules/core-js/features/set/join.js | 5 + node_modules/core-js/features/set/map.js | 5 + node_modules/core-js/features/set/of.js | 13 + node_modules/core-js/features/set/reduce.js | 5 + node_modules/core-js/features/set/some.js | 5 + .../features/set/symmetric-difference.js | 7 + node_modules/core-js/features/set/union.js | 7 + .../core-js/features/string/anchor.js | 1 + node_modules/core-js/features/string/at.js | 4 + node_modules/core-js/features/string/big.js | 1 + node_modules/core-js/features/string/blink.js | 1 + node_modules/core-js/features/string/bold.js | 1 + .../core-js/features/string/code-point-at.js | 1 + .../core-js/features/string/code-points.js | 3 + .../core-js/features/string/ends-with.js | 1 + node_modules/core-js/features/string/fixed.js | 1 + .../core-js/features/string/fontcolor.js | 1 + .../core-js/features/string/fontsize.js | 1 + .../features/string/from-code-point.js | 1 + .../core-js/features/string/includes.js | 1 + node_modules/core-js/features/string/index.js | 6 + .../core-js/features/string/italics.js | 1 + .../core-js/features/string/iterator.js | 1 + node_modules/core-js/features/string/link.js | 1 + .../core-js/features/string/match-all.js | 4 + node_modules/core-js/features/string/match.js | 1 + .../core-js/features/string/pad-end.js | 1 + .../core-js/features/string/pad-start.js | 1 + node_modules/core-js/features/string/raw.js | 1 + .../core-js/features/string/repeat.js | 1 + .../core-js/features/string/replace-all.js | 4 + .../core-js/features/string/replace.js | 1 + .../core-js/features/string/search.js | 1 + node_modules/core-js/features/string/small.js | 1 + node_modules/core-js/features/string/split.js | 1 + .../core-js/features/string/starts-with.js | 1 + .../core-js/features/string/strike.js | 1 + node_modules/core-js/features/string/sub.js | 1 + node_modules/core-js/features/string/sup.js | 1 + .../core-js/features/string/trim-end.js | 1 + .../core-js/features/string/trim-left.js | 1 + .../core-js/features/string/trim-right.js | 1 + .../core-js/features/string/trim-start.js | 1 + node_modules/core-js/features/string/trim.js | 1 + .../core-js/features/string/virtual/anchor.js | 1 + .../core-js/features/string/virtual/at.js | 4 + .../core-js/features/string/virtual/big.js | 1 + .../core-js/features/string/virtual/blink.js | 1 + .../core-js/features/string/virtual/bold.js | 1 + .../features/string/virtual/code-point-at.js | 1 + .../features/string/virtual/code-points.js | 3 + .../features/string/virtual/ends-with.js | 1 + .../core-js/features/string/virtual/fixed.js | 1 + .../features/string/virtual/fontcolor.js | 1 + .../features/string/virtual/fontsize.js | 1 + .../features/string/virtual/includes.js | 1 + .../core-js/features/string/virtual/index.js | 6 + .../features/string/virtual/italics.js | 1 + .../features/string/virtual/iterator.js | 1 + .../core-js/features/string/virtual/link.js | 1 + .../features/string/virtual/match-all.js | 4 + .../features/string/virtual/pad-end.js | 1 + .../features/string/virtual/pad-start.js | 1 + .../core-js/features/string/virtual/repeat.js | 1 + .../features/string/virtual/replace-all.js | 4 + .../core-js/features/string/virtual/small.js | 1 + .../features/string/virtual/starts-with.js | 1 + .../core-js/features/string/virtual/strike.js | 1 + .../core-js/features/string/virtual/sub.js | 1 + .../core-js/features/string/virtual/sup.js | 1 + .../features/string/virtual/trim-end.js | 1 + .../features/string/virtual/trim-left.js | 1 + .../features/string/virtual/trim-right.js | 1 + .../features/string/virtual/trim-start.js | 1 + .../core-js/features/string/virtual/trim.js | 1 + .../core-js/features/symbol/async-dispose.js | 4 + .../core-js/features/symbol/async-iterator.js | 1 + .../core-js/features/symbol/description.js | 1 + .../core-js/features/symbol/dispose.js | 4 + node_modules/core-js/features/symbol/for.js | 1 + .../core-js/features/symbol/has-instance.js | 1 + node_modules/core-js/features/symbol/index.js | 7 + .../features/symbol/is-concat-spreadable.js | 1 + .../core-js/features/symbol/iterator.js | 1 + .../core-js/features/symbol/key-for.js | 1 + .../core-js/features/symbol/match-all.js | 1 + node_modules/core-js/features/symbol/match.js | 1 + .../core-js/features/symbol/observable.js | 4 + .../core-js/features/symbol/pattern-match.js | 4 + .../core-js/features/symbol/replace-all.js | 4 + .../core-js/features/symbol/replace.js | 1 + .../core-js/features/symbol/search.js | 1 + .../core-js/features/symbol/species.js | 1 + node_modules/core-js/features/symbol/split.js | 1 + .../core-js/features/symbol/to-primitive.js | 1 + .../core-js/features/symbol/to-string-tag.js | 1 + .../core-js/features/symbol/unscopables.js | 1 + .../features/typed-array/copy-within.js | 1 + .../core-js/features/typed-array/entries.js | 1 + .../core-js/features/typed-array/every.js | 1 + .../core-js/features/typed-array/fill.js | 1 + .../core-js/features/typed-array/filter.js | 1 + .../features/typed-array/find-index.js | 1 + .../core-js/features/typed-array/find.js | 1 + .../features/typed-array/float32-array.js | 1 + .../features/typed-array/float64-array.js | 1 + .../core-js/features/typed-array/for-each.js | 1 + .../core-js/features/typed-array/from.js | 1 + .../core-js/features/typed-array/includes.js | 1 + .../core-js/features/typed-array/index-of.js | 1 + .../core-js/features/typed-array/index.js | 1 + .../features/typed-array/int16-array.js | 1 + .../features/typed-array/int32-array.js | 1 + .../features/typed-array/int8-array.js | 1 + .../core-js/features/typed-array/iterator.js | 1 + .../core-js/features/typed-array/join.js | 1 + .../core-js/features/typed-array/keys.js | 1 + .../features/typed-array/last-index-of.js | 1 + .../core-js/features/typed-array/map.js | 1 + .../core-js/features/typed-array/of.js | 1 + .../features/typed-array/reduce-right.js | 1 + .../core-js/features/typed-array/reduce.js | 1 + .../core-js/features/typed-array/reverse.js | 1 + .../core-js/features/typed-array/set.js | 1 + .../core-js/features/typed-array/slice.js | 1 + .../core-js/features/typed-array/some.js | 1 + .../core-js/features/typed-array/sort.js | 1 + .../core-js/features/typed-array/subarray.js | 1 + .../features/typed-array/to-locale-string.js | 1 + .../core-js/features/typed-array/to-string.js | 1 + .../features/typed-array/uint16-array.js | 1 + .../features/typed-array/uint32-array.js | 1 + .../features/typed-array/uint8-array.js | 1 + .../typed-array/uint8-clamped-array.js | 1 + .../core-js/features/typed-array/values.js | 1 + .../features/url-search-params/index.js | 1 + node_modules/core-js/features/url/index.js | 1 + node_modules/core-js/features/url/to-json.js | 1 + .../core-js/features/weak-map/delete-all.js | 5 + .../core-js/features/weak-map/from.js | 13 + .../core-js/features/weak-map/index.js | 5 + node_modules/core-js/features/weak-map/of.js | 13 + .../core-js/features/weak-set/add-all.js | 5 + .../core-js/features/weak-set/delete-all.js | 5 + .../core-js/features/weak-set/from.js | 13 + .../core-js/features/weak-set/index.js | 6 + node_modules/core-js/features/weak-set/of.js | 13 + node_modules/core-js/index.js | 5 + node_modules/core-js/internals/README.md | 1 + node_modules/core-js/internals/a-function.js | 5 + .../core-js/internals/a-possible-prototype.js | 7 + .../core-js/internals/add-to-unscopables.js | 17 + .../core-js/internals/advance-string-index.js | 8 + node_modules/core-js/internals/an-instance.js | 5 + node_modules/core-js/internals/an-object.js | 7 + .../internals/array-buffer-view-core.js | 164 + .../core-js/internals/array-buffer.js | 293 + .../core-js/internals/array-copy-within.js | 29 + node_modules/core-js/internals/array-fill.js | 17 + .../core-js/internals/array-for-each.js | 9 + node_modules/core-js/internals/array-from.js | 41 + .../core-js/internals/array-includes.js | 32 + .../core-js/internals/array-iteration.js | 65 + .../core-js/internals/array-last-index-of.js | 24 + .../array-method-has-species-support.js | 15 + .../core-js/internals/array-reduce.js | 40 + .../core-js/internals/array-species-create.js | 20 + .../core-js/internals/bind-context.js | 24 + .../call-with-safe-iteration-closing.js | 13 + .../check-correctness-of-iteration.js | 38 + node_modules/core-js/internals/classof-raw.js | 5 + node_modules/core-js/internals/classof.js | 25 + .../core-js/internals/collection-add-all.js | 13 + .../internals/collection-delete-all.js | 16 + .../core-js/internals/collection-from.js | 26 + .../core-js/internals/collection-of.js | 8 + .../core-js/internals/collection-strong.js | 186 + .../core-js/internals/collection-weak.js | 121 + node_modules/core-js/internals/collection.js | 97 + .../core-js/internals/composite-key.js | 43 + .../internals/copy-constructor-properties.js | 14 + .../internals/correct-is-regexp-logic.js | 15 + .../internals/correct-prototype-getter.js | 7 + node_modules/core-js/internals/create-html.js | 12 + .../internals/create-iterator-constructor.js | 16 + .../internals/create-property-descriptor.js | 8 + .../core-js/internals/create-property.js | 10 + .../core-js/internals/date-to-iso-string.js | 31 + .../core-js/internals/date-to-primitive.js | 9 + .../core-js/internals/define-iterator.js | 90 + .../internals/define-well-known-symbol.js | 11 + node_modules/core-js/internals/descriptors.js | 6 + .../internals/document-create-element.js | 10 + .../core-js/internals/dom-iterables.js | 35 + .../core-js/internals/entry-unbind.js | 8 + .../core-js/internals/entry-virtual.js | 5 + .../core-js/internals/enum-bug-keys.js | 10 + node_modules/core-js/internals/export.js | 54 + node_modules/core-js/internals/fails.js | 7 + .../fix-regexp-well-known-symbol-logic.js | 93 + .../core-js/internals/flatten-into-array.js | 32 + ...rced-object-prototype-accessors-methods.js | 13 + .../internals/forced-string-html-method.js | 10 + .../internals/forced-string-trim-method.js | 12 + node_modules/core-js/internals/freezing.js | 5 + .../core-js/internals/function-bind.js | 27 + .../core-js/internals/function-to-string.js | 3 + .../core-js/internals/get-built-in.js | 11 + .../core-js/internals/get-iterator-method.js | 11 + .../core-js/internals/get-iterator.js | 9 + .../core-js/internals/get-map-iterator.js | 7 + .../core-js/internals/get-set-iterator.js | 7 + node_modules/core-js/internals/global.js | 14 + node_modules/core-js/internals/has.js | 5 + node_modules/core-js/internals/hidden-keys.js | 1 + node_modules/core-js/internals/hide.js | 10 + .../core-js/internals/host-report-errors.js | 8 + node_modules/core-js/internals/html.js | 3 + .../core-js/internals/ie8-dom-define.js | 10 + .../core-js/internals/indexed-object.js | 13 + .../core-js/internals/inherit-if-required.js | 17 + .../core-js/internals/internal-metadata.js | 61 + .../core-js/internals/internal-state.js | 61 + .../internals/is-array-iterator-method.js | 10 + node_modules/core-js/internals/is-array.js | 7 + node_modules/core-js/internals/is-forced.js | 21 + node_modules/core-js/internals/is-integer.js | 9 + node_modules/core-js/internals/is-iterable.js | 13 + node_modules/core-js/internals/is-object.js | 3 + node_modules/core-js/internals/is-pure.js | 1 + node_modules/core-js/internals/is-regexp.js | 12 + node_modules/core-js/internals/iterate.js | 42 + .../core-js/internals/iterators-core.js | 35 + node_modules/core-js/internals/iterators.js | 1 + node_modules/core-js/internals/math-expm1.js | 13 + node_modules/core-js/internals/math-fround.js | 26 + node_modules/core-js/internals/math-log1p.js | 7 + node_modules/core-js/internals/math-scale.js | 16 + node_modules/core-js/internals/math-sign.js | 6 + node_modules/core-js/internals/microtask.js | 78 + .../internals/native-promise-constructor.js | 3 + .../core-js/internals/native-symbol.js | 7 + node_modules/core-js/internals/native-url.js | 24 + .../core-js/internals/native-weak-map.js | 6 + .../internals/new-promise-capability.js | 18 + .../core-js/internals/not-a-regexp.js | 7 + .../core-js/internals/number-is-finite.js | 9 + .../core-js/internals/object-assign.js | 41 + .../core-js/internals/object-create.js | 49 + .../internals/object-define-properties.js | 16 + .../internals/object-define-property.js | 20 + .../object-get-own-property-descriptor.js | 20 + .../object-get-own-property-names-external.js | 22 + .../object-get-own-property-names.js | 10 + .../object-get-own-property-symbols.js | 1 + .../internals/object-get-prototype-of.js | 17 + .../core-js/internals/object-keys-internal.js | 17 + node_modules/core-js/internals/object-keys.js | 8 + .../object-property-is-enumerable.js | 13 + .../internals/object-set-prototype-of.js | 24 + .../core-js/internals/object-to-array.js | 32 + .../core-js/internals/object-to-string.js | 14 + node_modules/core-js/internals/own-keys.js | 11 + node_modules/core-js/internals/parse-float.js | 14 + node_modules/core-js/internals/parse-int.js | 14 + node_modules/core-js/internals/path.js | 1 + node_modules/core-js/internals/perform.js | 7 + .../core-js/internals/promise-resolve.js | 12 + .../core-js/internals/punycode-to-ascii.js | 168 + .../core-js/internals/redefine-all.js | 6 + node_modules/core-js/internals/redefine.js | 39 + .../core-js/internals/reflect-metadata.js | 55 + .../core-js/internals/regexp-exec-abstract.js | 22 + node_modules/core-js/internals/regexp-exec.js | 54 + .../core-js/internals/regexp-flags.js | 16 + .../internals/require-object-coercible.js | 6 + .../core-js/internals/same-value-zero.js | 6 + node_modules/core-js/internals/same-value.js | 6 + node_modules/core-js/internals/set-global.js | 10 + node_modules/core-js/internals/set-species.js | 19 + .../core-js/internals/set-to-string-tag.js | 11 + node_modules/core-js/internals/shared-key.js | 8 + node_modules/core-js/internals/shared.js | 14 + .../core-js/internals/sloppy-array-method.js | 10 + .../core-js/internals/species-constructor.js | 13 + .../core-js/internals/string-multibyte.js | 27 + node_modules/core-js/internals/string-pad.js | 31 + .../core-js/internals/string-repeat.js | 14 + node_modules/core-js/internals/string-trim.js | 28 + node_modules/core-js/internals/task.js | 99 + .../core-js/internals/this-number-value.js | 10 + .../core-js/internals/to-absolute-index.js | 12 + node_modules/core-js/internals/to-index.js | 12 + .../core-js/internals/to-indexed-object.js | 7 + node_modules/core-js/internals/to-integer.js | 8 + node_modules/core-js/internals/to-length.js | 9 + node_modules/core-js/internals/to-object.js | 7 + node_modules/core-js/internals/to-offset.js | 7 + .../core-js/internals/to-primitive.js | 14 + .../internals/typed-array-constructor.js | 223 + .../core-js/internals/typed-array-from.js | 31 + ...d-arrays-constructors-requires-wrappers.js | 22 + node_modules/core-js/internals/uid.js | 6 + node_modules/core-js/internals/user-agent.js | 3 + .../internals/webkit-string-pad-bug.js | 5 + .../core-js/internals/well-known-symbol.js | 12 + node_modules/core-js/internals/whitespaces.js | 3 + .../internals/wrapped-well-known-symbol.js | 1 + node_modules/core-js/modules/README.md | 1 + .../modules/es.array-buffer.constructor.js | 17 + .../modules/es.array-buffer.is-view.js | 10 + .../core-js/modules/es.array-buffer.slice.js | 36 + .../core-js/modules/es.array.concat.js | 56 + .../core-js/modules/es.array.copy-within.js | 12 + .../core-js/modules/es.array.every.js | 12 + node_modules/core-js/modules/es.array.fill.js | 12 + .../core-js/modules/es.array.filter.js | 13 + .../core-js/modules/es.array.find-index.js | 21 + node_modules/core-js/modules/es.array.find.js | 21 + .../core-js/modules/es.array.flat-map.js | 21 + node_modules/core-js/modules/es.array.flat.js | 20 + .../core-js/modules/es.array.for-each.js | 9 + node_modules/core-js/modules/es.array.from.js | 13 + .../core-js/modules/es.array.includes.js | 15 + .../core-js/modules/es.array.index-of.js | 20 + .../core-js/modules/es.array.is-array.js | 8 + .../core-js/modules/es.array.iterator.js | 53 + node_modules/core-js/modules/es.array.join.js | 18 + .../core-js/modules/es.array.last-index-of.js | 8 + node_modules/core-js/modules/es.array.map.js | 13 + node_modules/core-js/modules/es.array.of.js | 23 + .../core-js/modules/es.array.reduce-right.js | 12 + .../core-js/modules/es.array.reduce.js | 12 + .../core-js/modules/es.array.reverse.js | 17 + .../core-js/modules/es.array.slice.js | 45 + node_modules/core-js/modules/es.array.some.js | 12 + node_modules/core-js/modules/es.array.sort.js | 32 + .../core-js/modules/es.array.species.js | 5 + .../core-js/modules/es.array.splice.js | 66 + .../modules/es.array.unscopables.flat-map.js | 5 + .../modules/es.array.unscopables.flat.js | 5 + node_modules/core-js/modules/es.data-view.js | 9 + node_modules/core-js/modules/es.date.now.js | 9 + .../core-js/modules/es.date.to-iso-string.js | 9 + .../core-js/modules/es.date.to-json.js | 21 + .../core-js/modules/es.date.to-primitive.js | 10 + .../core-js/modules/es.date.to-string.js | 17 + .../core-js/modules/es.function.bind.js | 8 + .../modules/es.function.has-instance.js | 20 + .../core-js/modules/es.function.name.js | 22 + .../core-js/modules/es.json.to-string-tag.js | 6 + node_modules/core-js/modules/es.map.js | 9 + node_modules/core-js/modules/es.math.acosh.js | 23 + node_modules/core-js/modules/es.math.asinh.js | 16 + node_modules/core-js/modules/es.math.atanh.js | 13 + node_modules/core-js/modules/es.math.cbrt.js | 13 + node_modules/core-js/modules/es.math.clz32.js | 13 + node_modules/core-js/modules/es.math.cosh.js | 15 + node_modules/core-js/modules/es.math.expm1.js | 6 + .../core-js/modules/es.math.fround.js | 6 + node_modules/core-js/modules/es.math.hypot.js | 33 + node_modules/core-js/modules/es.math.imul.js | 22 + node_modules/core-js/modules/es.math.log10.js | 12 + node_modules/core-js/modules/es.math.log1p.js | 6 + node_modules/core-js/modules/es.math.log2.js | 12 + node_modules/core-js/modules/es.math.sign.js | 8 + node_modules/core-js/modules/es.math.sinh.js | 20 + node_modules/core-js/modules/es.math.tanh.js | 14 + .../core-js/modules/es.math.to-string-tag.js | 5 + node_modules/core-js/modules/es.math.trunc.js | 12 + .../core-js/modules/es.number.constructor.js | 78 + .../core-js/modules/es.number.epsilon.js | 7 + .../core-js/modules/es.number.is-finite.js | 6 + .../core-js/modules/es.number.is-integer.js | 8 + .../core-js/modules/es.number.is-nan.js | 10 + .../modules/es.number.is-safe-integer.js | 12 + .../modules/es.number.max-safe-integer.js | 7 + .../modules/es.number.min-safe-integer.js | 7 + .../core-js/modules/es.number.parse-float.js | 8 + .../core-js/modules/es.number.parse-int.js | 8 + .../core-js/modules/es.number.to-fixed.js | 126 + .../core-js/modules/es.number.to-precision.js | 24 + .../core-js/modules/es.object.assign.js | 8 + .../core-js/modules/es.object.create.js | 9 + .../modules/es.object.define-getter.js | 17 + .../modules/es.object.define-properties.js | 9 + .../modules/es.object.define-property.js | 9 + .../modules/es.object.define-setter.js | 17 + .../core-js/modules/es.object.entries.js | 10 + .../core-js/modules/es.object.freeze.js | 16 + .../core-js/modules/es.object.from-entries.js | 15 + .../es.object.get-own-property-descriptor.js | 16 + .../es.object.get-own-property-descriptors.js | 24 + .../es.object.get-own-property-names.js | 11 + .../modules/es.object.get-prototype-of.js | 16 + .../modules/es.object.is-extensible.js | 14 + .../core-js/modules/es.object.is-frozen.js | 14 + .../core-js/modules/es.object.is-sealed.js | 14 + node_modules/core-js/modules/es.object.is.js | 8 + .../core-js/modules/es.object.keys.js | 14 + .../modules/es.object.lookup-getter.js | 23 + .../modules/es.object.lookup-setter.js | 23 + .../modules/es.object.prevent-extensions.js | 16 + .../core-js/modules/es.object.seal.js | 16 + .../modules/es.object.set-prototype-of.js | 8 + .../core-js/modules/es.object.to-string.js | 10 + .../core-js/modules/es.object.values.js | 10 + .../core-js/modules/es.parse-float.js | 8 + node_modules/core-js/modules/es.parse-int.js | 8 + .../core-js/modules/es.promise.all-settled.js | 43 + .../core-js/modules/es.promise.finally.js | 30 + node_modules/core-js/modules/es.promise.js | 371 + .../core-js/modules/es.reflect.apply.js | 25 + .../core-js/modules/es.reflect.construct.js | 51 + .../modules/es.reflect.define-property.js | 28 + .../modules/es.reflect.delete-property.js | 12 + .../es.reflect.get-own-property-descriptor.js | 12 + .../modules/es.reflect.get-prototype-of.js | 12 + .../core-js/modules/es.reflect.get.js | 24 + .../core-js/modules/es.reflect.has.js | 9 + .../modules/es.reflect.is-extensible.js | 13 + .../core-js/modules/es.reflect.own-keys.js | 8 + .../modules/es.reflect.prevent-extensions.js | 19 + .../modules/es.reflect.set-prototype-of.js | 19 + .../core-js/modules/es.reflect.set.js | 36 + .../core-js/modules/es.regexp.constructor.js | 60 + .../core-js/modules/es.regexp.exec.js | 7 + .../core-js/modules/es.regexp.flags.js | 12 + .../core-js/modules/es.regexp.to-string.js | 25 + node_modules/core-js/modules/es.set.js | 9 + .../core-js/modules/es.string.anchor.js | 12 + node_modules/core-js/modules/es.string.big.js | 12 + .../core-js/modules/es.string.blink.js | 12 + .../core-js/modules/es.string.bold.js | 12 + .../modules/es.string.code-point-at.js | 11 + .../core-js/modules/es.string.ends-with.js | 25 + .../core-js/modules/es.string.fixed.js | 12 + .../core-js/modules/es.string.fontcolor.js | 12 + .../core-js/modules/es.string.fontsize.js | 12 + .../modules/es.string.from-code-point.js | 27 + .../core-js/modules/es.string.includes.js | 14 + .../core-js/modules/es.string.italics.js | 12 + .../core-js/modules/es.string.iterator.js | 29 + .../core-js/modules/es.string.link.js | 12 + .../core-js/modules/es.string.match-all.js | 94 + .../core-js/modules/es.string.match.js | 44 + .../core-js/modules/es.string.pad-end.js | 12 + .../core-js/modules/es.string.pad-start.js | 12 + node_modules/core-js/modules/es.string.raw.js | 19 + .../core-js/modules/es.string.repeat.js | 8 + .../core-js/modules/es.string.replace.js | 126 + .../core-js/modules/es.string.search.js | 34 + .../core-js/modules/es.string.small.js | 12 + .../core-js/modules/es.string.split.js | 134 + .../core-js/modules/es.string.starts-with.js | 23 + .../core-js/modules/es.string.strike.js | 12 + node_modules/core-js/modules/es.string.sub.js | 12 + node_modules/core-js/modules/es.string.sup.js | 12 + .../core-js/modules/es.string.trim-end.js | 17 + .../core-js/modules/es.string.trim-start.js | 17 + .../core-js/modules/es.string.trim.js | 12 + .../modules/es.symbol.async-iterator.js | 5 + .../core-js/modules/es.symbol.description.js | 50 + .../core-js/modules/es.symbol.has-instance.js | 5 + .../modules/es.symbol.is-concat-spreadable.js | 5 + .../core-js/modules/es.symbol.iterator.js | 5 + node_modules/core-js/modules/es.symbol.js | 299 + .../core-js/modules/es.symbol.match-all.js | 4 + .../core-js/modules/es.symbol.match.js | 5 + .../core-js/modules/es.symbol.replace.js | 5 + .../core-js/modules/es.symbol.search.js | 5 + .../core-js/modules/es.symbol.species.js | 5 + .../core-js/modules/es.symbol.split.js | 5 + .../core-js/modules/es.symbol.to-primitive.js | 5 + .../modules/es.symbol.to-string-tag.js | 5 + .../core-js/modules/es.symbol.unscopables.js | 5 + .../modules/es.typed-array.copy-within.js | 11 + .../core-js/modules/es.typed-array.every.js | 11 + .../core-js/modules/es.typed-array.fill.js | 12 + .../core-js/modules/es.typed-array.filter.js | 19 + .../modules/es.typed-array.find-index.js | 11 + .../core-js/modules/es.typed-array.find.js | 11 + .../modules/es.typed-array.float32-array.js | 9 + .../modules/es.typed-array.float64-array.js | 9 + .../modules/es.typed-array.for-each.js | 11 + .../core-js/modules/es.typed-array.from.js | 8 + .../modules/es.typed-array.includes.js | 11 + .../modules/es.typed-array.index-of.js | 11 + .../modules/es.typed-array.int16-array.js | 9 + .../modules/es.typed-array.int32-array.js | 9 + .../modules/es.typed-array.int8-array.js | 9 + .../modules/es.typed-array.iterator.js | 38 + .../core-js/modules/es.typed-array.join.js | 12 + .../modules/es.typed-array.last-index-of.js | 12 + .../core-js/modules/es.typed-array.map.js | 15 + .../core-js/modules/es.typed-array.of.js | 15 + .../modules/es.typed-array.reduce-right.js | 11 + .../core-js/modules/es.typed-array.reduce.js | 11 + .../core-js/modules/es.typed-array.reverse.js | 20 + .../core-js/modules/es.typed-array.set.js | 26 + .../core-js/modules/es.typed-array.slice.js | 25 + .../core-js/modules/es.typed-array.some.js | 11 + .../core-js/modules/es.typed-array.sort.js | 11 + .../modules/es.typed-array.subarray.js | 20 + .../es.typed-array.to-locale-string.js | 26 + .../modules/es.typed-array.to-string.js | 19 + .../modules/es.typed-array.uint16-array.js | 9 + .../modules/es.typed-array.uint32-array.js | 9 + .../modules/es.typed-array.uint8-array.js | 9 + .../es.typed-array.uint8-clamped-array.js | 9 + node_modules/core-js/modules/es.weak-map.js | 67 + node_modules/core-js/modules/es.weak-set.js | 9 + .../core-js/modules/esnext.aggregate-error.js | 29 + .../esnext.array.is-template-object.js | 28 + .../modules/esnext.array.last-index.js | 21 + .../core-js/modules/esnext.array.last-item.js | 26 + .../core-js/modules/esnext.composite-key.js | 16 + .../modules/esnext.composite-symbol.js | 11 + .../core-js/modules/esnext.global-this.js | 8 + .../core-js/modules/esnext.map.delete-all.js | 12 + .../core-js/modules/esnext.map.every.js | 20 + .../core-js/modules/esnext.map.filter.js | 26 + .../core-js/modules/esnext.map.find-key.js | 20 + .../core-js/modules/esnext.map.find.js | 20 + .../core-js/modules/esnext.map.from.js | 8 + .../core-js/modules/esnext.map.group-by.js | 22 + .../core-js/modules/esnext.map.includes.js | 17 + .../core-js/modules/esnext.map.key-by.js | 18 + .../core-js/modules/esnext.map.key-of.js | 16 + .../core-js/modules/esnext.map.map-keys.js | 26 + .../core-js/modules/esnext.map.map-values.js | 26 + .../core-js/modules/esnext.map.merge.js | 21 + node_modules/core-js/modules/esnext.map.of.js | 8 + .../core-js/modules/esnext.map.reduce.js | 28 + .../core-js/modules/esnext.map.some.js | 20 + .../modules/esnext.map.update-or-insert.js | 18 + .../core-js/modules/esnext.map.update.js | 22 + .../core-js/modules/esnext.math.clamp.js | 12 + .../modules/esnext.math.deg-per-rad.js | 7 + .../core-js/modules/esnext.math.degrees.js | 11 + .../core-js/modules/esnext.math.fscale.js | 12 + .../core-js/modules/esnext.math.iaddh.js | 12 + .../core-js/modules/esnext.math.imulh.js | 17 + .../core-js/modules/esnext.math.isubh.js | 12 + .../modules/esnext.math.rad-per-deg.js | 7 + .../core-js/modules/esnext.math.radians.js | 11 + .../core-js/modules/esnext.math.scale.js | 8 + .../modules/esnext.math.seeded-prng.js | 33 + .../core-js/modules/esnext.math.signbit.js | 10 + .../core-js/modules/esnext.math.umulh.js | 17 + .../modules/esnext.number.from-string.js | 30 + .../core-js/modules/esnext.observable.js | 207 + .../modules/esnext.promise.all-settled.js | 2 + .../core-js/modules/esnext.promise.any.js | 46 + .../core-js/modules/esnext.promise.try.js | 15 + .../modules/esnext.reflect.define-metadata.js | 15 + .../modules/esnext.reflect.delete-metadata.js | 21 + .../esnext.reflect.get-metadata-keys.js | 33 + .../modules/esnext.reflect.get-metadata.js | 24 + .../esnext.reflect.get-own-metadata-keys.js | 15 + .../esnext.reflect.get-own-metadata.js | 15 + .../modules/esnext.reflect.has-metadata.js | 23 + .../esnext.reflect.has-own-metadata.js | 15 + .../modules/esnext.reflect.metadata.js | 16 + .../core-js/modules/esnext.set.add-all.js | 12 + .../core-js/modules/esnext.set.delete-all.js | 12 + .../core-js/modules/esnext.set.difference.js | 22 + .../core-js/modules/esnext.set.every.js | 20 + .../core-js/modules/esnext.set.filter.js | 26 + .../core-js/modules/esnext.set.find.js | 20 + .../core-js/modules/esnext.set.from.js | 8 + .../modules/esnext.set.intersection.js | 23 + .../modules/esnext.set.is-disjoint-from.js | 18 + .../modules/esnext.set.is-subset-of.js | 25 + .../modules/esnext.set.is-superset-of.js | 18 + .../core-js/modules/esnext.set.join.js | 19 + .../core-js/modules/esnext.set.map.js | 26 + node_modules/core-js/modules/esnext.set.of.js | 8 + .../core-js/modules/esnext.set.reduce.js | 28 + .../core-js/modules/esnext.set.some.js | 20 + .../esnext.set.symmetric-difference.js | 23 + .../core-js/modules/esnext.set.union.js | 19 + .../core-js/modules/esnext.string.at.js | 11 + .../modules/esnext.string.code-points.js | 38 + .../modules/esnext.string.match-all.js | 3 + .../modules/esnext.string.replace-all.js | 53 + .../modules/esnext.symbol.async-dispose.js | 5 + .../core-js/modules/esnext.symbol.dispose.js | 5 + .../modules/esnext.symbol.observable.js | 5 + .../modules/esnext.symbol.pattern-match.js | 5 + .../modules/esnext.symbol.replace-all.js | 5 + .../modules/esnext.weak-map.delete-all.js | 12 + .../core-js/modules/esnext.weak-map.from.js | 8 + .../core-js/modules/esnext.weak-map.of.js | 8 + .../modules/esnext.weak-set.add-all.js | 12 + .../modules/esnext.weak-set.delete-all.js | 12 + .../core-js/modules/esnext.weak-set.from.js | 8 + .../core-js/modules/esnext.weak-set.of.js | 8 + .../modules/web.dom-collections.for-each.js | 15 + .../modules/web.dom-collections.iterator.js | 31 + node_modules/core-js/modules/web.immediate.js | 14 + .../core-js/modules/web.queue-microtask.js | 16 + node_modules/core-js/modules/web.timers.js | 28 + .../core-js/modules/web.url-search-params.js | 311 + node_modules/core-js/modules/web.url.js | 1008 ++ .../core-js/modules/web.url.to-json.js | 10 + node_modules/core-js/package.json | 80 + .../proposals/array-is-template-object.js | 1 + node_modules/core-js/proposals/array-last.js | 2 + .../core-js/proposals/collection-methods.js | 27 + .../core-js/proposals/collection-of-from.js | 8 + .../proposals/efficient-64-bit-arithmetic.js | 4 + node_modules/core-js/proposals/global-this.js | 3 + node_modules/core-js/proposals/index.js | 1 + .../core-js/proposals/keys-composition.js | 2 + .../core-js/proposals/map-update-or-insert.js | 1 + .../core-js/proposals/math-extensions.js | 7 + .../core-js/proposals/math-signbit.js | 1 + .../core-js/proposals/number-from-string.js | 1 + node_modules/core-js/proposals/observable.js | 2 + .../core-js/proposals/pattern-matching.js | 1 + .../core-js/proposals/promise-all-settled.js | 2 + node_modules/core-js/proposals/promise-any.js | 2 + node_modules/core-js/proposals/promise-try.js | 1 + .../core-js/proposals/reflect-metadata.js | 9 + .../core-js/proposals/seeded-random.js | 1 + node_modules/core-js/proposals/set-methods.js | 7 + node_modules/core-js/proposals/string-at.js | 1 + .../core-js/proposals/string-code-points.js | 1 + .../core-js/proposals/string-match-all.js | 2 + .../core-js/proposals/string-replace-all.js | 2 + node_modules/core-js/proposals/url.js | 3 + .../core-js/proposals/using-statement.js | 3 + node_modules/core-js/scripts/postinstall.js | 24 + node_modules/core-js/stable/README.md | 1 + .../stable/array-buffer/constructor.js | 1 + .../core-js/stable/array-buffer/index.js | 1 + .../core-js/stable/array-buffer/is-view.js | 1 + .../core-js/stable/array-buffer/slice.js | 1 + node_modules/core-js/stable/array/concat.js | 1 + .../core-js/stable/array/copy-within.js | 1 + node_modules/core-js/stable/array/entries.js | 1 + node_modules/core-js/stable/array/every.js | 1 + node_modules/core-js/stable/array/fill.js | 1 + node_modules/core-js/stable/array/filter.js | 1 + .../core-js/stable/array/find-index.js | 1 + node_modules/core-js/stable/array/find.js | 1 + node_modules/core-js/stable/array/flat-map.js | 1 + node_modules/core-js/stable/array/flat.js | 1 + node_modules/core-js/stable/array/for-each.js | 1 + node_modules/core-js/stable/array/from.js | 1 + node_modules/core-js/stable/array/includes.js | 1 + node_modules/core-js/stable/array/index-of.js | 1 + node_modules/core-js/stable/array/index.js | 1 + node_modules/core-js/stable/array/is-array.js | 1 + node_modules/core-js/stable/array/iterator.js | 1 + node_modules/core-js/stable/array/join.js | 1 + node_modules/core-js/stable/array/keys.js | 1 + .../core-js/stable/array/last-index-of.js | 1 + node_modules/core-js/stable/array/map.js | 1 + node_modules/core-js/stable/array/of.js | 1 + .../core-js/stable/array/reduce-right.js | 1 + node_modules/core-js/stable/array/reduce.js | 1 + node_modules/core-js/stable/array/reverse.js | 1 + node_modules/core-js/stable/array/slice.js | 1 + node_modules/core-js/stable/array/some.js | 1 + node_modules/core-js/stable/array/sort.js | 1 + node_modules/core-js/stable/array/splice.js | 1 + node_modules/core-js/stable/array/values.js | 1 + .../core-js/stable/array/virtual/concat.js | 1 + .../stable/array/virtual/copy-within.js | 1 + .../core-js/stable/array/virtual/entries.js | 1 + .../core-js/stable/array/virtual/every.js | 1 + .../core-js/stable/array/virtual/fill.js | 1 + .../core-js/stable/array/virtual/filter.js | 1 + .../stable/array/virtual/find-index.js | 1 + .../core-js/stable/array/virtual/find.js | 1 + .../core-js/stable/array/virtual/flat-map.js | 1 + .../core-js/stable/array/virtual/flat.js | 1 + .../core-js/stable/array/virtual/for-each.js | 1 + .../core-js/stable/array/virtual/includes.js | 1 + .../core-js/stable/array/virtual/index-of.js | 1 + .../core-js/stable/array/virtual/index.js | 1 + .../core-js/stable/array/virtual/iterator.js | 1 + .../core-js/stable/array/virtual/join.js | 1 + .../core-js/stable/array/virtual/keys.js | 1 + .../stable/array/virtual/last-index-of.js | 1 + .../core-js/stable/array/virtual/map.js | 1 + .../stable/array/virtual/reduce-right.js | 1 + .../core-js/stable/array/virtual/reduce.js | 1 + .../core-js/stable/array/virtual/reverse.js | 1 + .../core-js/stable/array/virtual/slice.js | 1 + .../core-js/stable/array/virtual/some.js | 1 + .../core-js/stable/array/virtual/sort.js | 1 + .../core-js/stable/array/virtual/splice.js | 1 + .../core-js/stable/array/virtual/values.js | 1 + .../core-js/stable/clear-immediate.js | 3 + .../core-js/stable/data-view/index.js | 1 + node_modules/core-js/stable/date/index.js | 1 + node_modules/core-js/stable/date/now.js | 1 + .../core-js/stable/date/to-iso-string.js | 1 + node_modules/core-js/stable/date/to-json.js | 1 + .../core-js/stable/date/to-primitive.js | 1 + node_modules/core-js/stable/date/to-string.js | 1 + .../stable/dom-collections/for-each.js | 3 + .../core-js/stable/dom-collections/index.js | 12 + .../stable/dom-collections/iterator.js | 4 + node_modules/core-js/stable/function/bind.js | 1 + .../core-js/stable/function/has-instance.js | 1 + node_modules/core-js/stable/function/index.js | 1 + node_modules/core-js/stable/function/name.js | 1 + .../core-js/stable/function/virtual/bind.js | 1 + .../core-js/stable/function/virtual/index.js | 1 + node_modules/core-js/stable/global-this.js | 3 + node_modules/core-js/stable/index.js | 4 + node_modules/core-js/stable/instance/bind.js | 1 + .../core-js/stable/instance/code-point-at.js | 1 + .../core-js/stable/instance/concat.js | 1 + .../core-js/stable/instance/copy-within.js | 1 + .../core-js/stable/instance/ends-with.js | 1 + .../core-js/stable/instance/entries.js | 16 + node_modules/core-js/stable/instance/every.js | 1 + node_modules/core-js/stable/instance/fill.js | 1 + .../core-js/stable/instance/filter.js | 1 + .../core-js/stable/instance/find-index.js | 1 + node_modules/core-js/stable/instance/find.js | 1 + node_modules/core-js/stable/instance/flags.js | 1 + .../core-js/stable/instance/flat-map.js | 1 + node_modules/core-js/stable/instance/flat.js | 1 + .../core-js/stable/instance/for-each.js | 16 + .../core-js/stable/instance/includes.js | 1 + .../core-js/stable/instance/index-of.js | 1 + node_modules/core-js/stable/instance/keys.js | 16 + .../core-js/stable/instance/last-index-of.js | 1 + node_modules/core-js/stable/instance/map.js | 1 + .../core-js/stable/instance/match-all.js | 1 + .../core-js/stable/instance/pad-end.js | 1 + .../core-js/stable/instance/pad-start.js | 1 + .../core-js/stable/instance/reduce-right.js | 1 + .../core-js/stable/instance/reduce.js | 1 + .../core-js/stable/instance/repeat.js | 1 + .../core-js/stable/instance/reverse.js | 1 + node_modules/core-js/stable/instance/slice.js | 1 + node_modules/core-js/stable/instance/some.js | 1 + node_modules/core-js/stable/instance/sort.js | 1 + .../core-js/stable/instance/splice.js | 1 + .../core-js/stable/instance/starts-with.js | 1 + .../core-js/stable/instance/trim-end.js | 1 + .../core-js/stable/instance/trim-left.js | 1 + .../core-js/stable/instance/trim-right.js | 1 + .../core-js/stable/instance/trim-start.js | 1 + node_modules/core-js/stable/instance/trim.js | 1 + .../core-js/stable/instance/values.js | 16 + node_modules/core-js/stable/json/index.js | 1 + node_modules/core-js/stable/json/stringify.js | 1 + .../core-js/stable/json/to-string-tag.js | 1 + node_modules/core-js/stable/map/index.js | 1 + node_modules/core-js/stable/math/acosh.js | 1 + node_modules/core-js/stable/math/asinh.js | 1 + node_modules/core-js/stable/math/atanh.js | 1 + node_modules/core-js/stable/math/cbrt.js | 1 + node_modules/core-js/stable/math/clz32.js | 1 + node_modules/core-js/stable/math/cosh.js | 1 + node_modules/core-js/stable/math/expm1.js | 1 + node_modules/core-js/stable/math/fround.js | 1 + node_modules/core-js/stable/math/hypot.js | 1 + node_modules/core-js/stable/math/imul.js | 1 + node_modules/core-js/stable/math/index.js | 1 + node_modules/core-js/stable/math/log10.js | 1 + node_modules/core-js/stable/math/log1p.js | 1 + node_modules/core-js/stable/math/log2.js | 1 + node_modules/core-js/stable/math/sign.js | 1 + node_modules/core-js/stable/math/sinh.js | 1 + node_modules/core-js/stable/math/tanh.js | 1 + .../core-js/stable/math/to-string-tag.js | 1 + node_modules/core-js/stable/math/trunc.js | 1 + .../core-js/stable/number/constructor.js | 1 + node_modules/core-js/stable/number/epsilon.js | 1 + node_modules/core-js/stable/number/index.js | 1 + .../core-js/stable/number/is-finite.js | 1 + .../core-js/stable/number/is-integer.js | 1 + node_modules/core-js/stable/number/is-nan.js | 1 + .../core-js/stable/number/is-safe-integer.js | 1 + .../core-js/stable/number/max-safe-integer.js | 1 + .../core-js/stable/number/min-safe-integer.js | 1 + .../core-js/stable/number/parse-float.js | 1 + .../core-js/stable/number/parse-int.js | 1 + .../core-js/stable/number/to-fixed.js | 1 + .../core-js/stable/number/to-precision.js | 1 + .../core-js/stable/number/virtual/index.js | 1 + .../core-js/stable/number/virtual/to-fixed.js | 1 + .../stable/number/virtual/to-precision.js | 1 + node_modules/core-js/stable/object/assign.js | 1 + node_modules/core-js/stable/object/create.js | 1 + .../core-js/stable/object/define-getter.js | 1 + .../stable/object/define-properties.js | 1 + .../core-js/stable/object/define-property.js | 1 + .../core-js/stable/object/define-setter.js | 1 + node_modules/core-js/stable/object/entries.js | 1 + node_modules/core-js/stable/object/freeze.js | 1 + .../core-js/stable/object/from-entries.js | 1 + .../object/get-own-property-descriptor.js | 1 + .../object/get-own-property-descriptors.js | 1 + .../stable/object/get-own-property-names.js | 1 + .../stable/object/get-own-property-symbols.js | 1 + .../core-js/stable/object/get-prototype-of.js | 1 + node_modules/core-js/stable/object/index.js | 1 + .../core-js/stable/object/is-extensible.js | 1 + .../core-js/stable/object/is-frozen.js | 1 + .../core-js/stable/object/is-sealed.js | 1 + node_modules/core-js/stable/object/is.js | 1 + node_modules/core-js/stable/object/keys.js | 1 + .../core-js/stable/object/lookup-getter.js | 1 + .../core-js/stable/object/lookup-setter.js | 1 + .../stable/object/prevent-extensions.js | 1 + node_modules/core-js/stable/object/seal.js | 1 + .../core-js/stable/object/set-prototype-of.js | 1 + .../core-js/stable/object/to-string.js | 1 + node_modules/core-js/stable/object/values.js | 1 + node_modules/core-js/stable/parse-float.js | 1 + node_modules/core-js/stable/parse-int.js | 1 + .../core-js/stable/promise/all-settled.js | 1 + .../core-js/stable/promise/finally.js | 1 + node_modules/core-js/stable/promise/index.js | 1 + .../core-js/stable/queue-microtask.js | 1 + node_modules/core-js/stable/reflect/apply.js | 1 + .../core-js/stable/reflect/construct.js | 1 + .../core-js/stable/reflect/define-property.js | 1 + .../core-js/stable/reflect/delete-property.js | 1 + .../reflect/get-own-property-descriptor.js | 1 + .../stable/reflect/get-prototype-of.js | 1 + node_modules/core-js/stable/reflect/get.js | 1 + node_modules/core-js/stable/reflect/has.js | 1 + node_modules/core-js/stable/reflect/index.js | 1 + .../core-js/stable/reflect/is-extensible.js | 1 + .../core-js/stable/reflect/own-keys.js | 1 + .../stable/reflect/prevent-extensions.js | 1 + .../stable/reflect/set-prototype-of.js | 1 + node_modules/core-js/stable/reflect/set.js | 1 + .../core-js/stable/regexp/constructor.js | 1 + node_modules/core-js/stable/regexp/flags.js | 1 + node_modules/core-js/stable/regexp/index.js | 1 + node_modules/core-js/stable/regexp/match.js | 1 + node_modules/core-js/stable/regexp/replace.js | 1 + node_modules/core-js/stable/regexp/search.js | 1 + node_modules/core-js/stable/regexp/split.js | 1 + .../core-js/stable/regexp/to-string.js | 1 + node_modules/core-js/stable/set-immediate.js | 3 + node_modules/core-js/stable/set-interval.js | 3 + node_modules/core-js/stable/set-timeout.js | 3 + node_modules/core-js/stable/set/index.js | 1 + node_modules/core-js/stable/string/anchor.js | 1 + node_modules/core-js/stable/string/big.js | 1 + node_modules/core-js/stable/string/blink.js | 1 + node_modules/core-js/stable/string/bold.js | 1 + .../core-js/stable/string/code-point-at.js | 1 + .../core-js/stable/string/ends-with.js | 1 + node_modules/core-js/stable/string/fixed.js | 1 + .../core-js/stable/string/fontcolor.js | 1 + .../core-js/stable/string/fontsize.js | 1 + .../core-js/stable/string/from-code-point.js | 1 + .../core-js/stable/string/includes.js | 1 + node_modules/core-js/stable/string/index.js | 1 + node_modules/core-js/stable/string/italics.js | 1 + .../core-js/stable/string/iterator.js | 1 + node_modules/core-js/stable/string/link.js | 1 + .../core-js/stable/string/match-all.js | 1 + node_modules/core-js/stable/string/match.js | 1 + node_modules/core-js/stable/string/pad-end.js | 1 + .../core-js/stable/string/pad-start.js | 1 + node_modules/core-js/stable/string/raw.js | 1 + node_modules/core-js/stable/string/repeat.js | 1 + node_modules/core-js/stable/string/replace.js | 1 + node_modules/core-js/stable/string/search.js | 1 + node_modules/core-js/stable/string/small.js | 1 + node_modules/core-js/stable/string/split.js | 1 + .../core-js/stable/string/starts-with.js | 1 + node_modules/core-js/stable/string/strike.js | 1 + node_modules/core-js/stable/string/sub.js | 1 + node_modules/core-js/stable/string/sup.js | 1 + .../core-js/stable/string/trim-end.js | 1 + .../core-js/stable/string/trim-left.js | 1 + .../core-js/stable/string/trim-right.js | 1 + .../core-js/stable/string/trim-start.js | 1 + node_modules/core-js/stable/string/trim.js | 1 + .../core-js/stable/string/virtual/anchor.js | 1 + .../core-js/stable/string/virtual/big.js | 1 + .../core-js/stable/string/virtual/blink.js | 1 + .../core-js/stable/string/virtual/bold.js | 1 + .../stable/string/virtual/code-point-at.js | 1 + .../stable/string/virtual/ends-with.js | 1 + .../core-js/stable/string/virtual/fixed.js | 1 + .../stable/string/virtual/fontcolor.js | 1 + .../core-js/stable/string/virtual/fontsize.js | 1 + .../core-js/stable/string/virtual/includes.js | 1 + .../core-js/stable/string/virtual/index.js | 1 + .../core-js/stable/string/virtual/italics.js | 1 + .../core-js/stable/string/virtual/iterator.js | 1 + .../core-js/stable/string/virtual/link.js | 1 + .../stable/string/virtual/match-all.js | 1 + .../core-js/stable/string/virtual/pad-end.js | 1 + .../stable/string/virtual/pad-start.js | 1 + .../core-js/stable/string/virtual/repeat.js | 1 + .../core-js/stable/string/virtual/small.js | 1 + .../stable/string/virtual/starts-with.js | 1 + .../core-js/stable/string/virtual/strike.js | 1 + .../core-js/stable/string/virtual/sub.js | 1 + .../core-js/stable/string/virtual/sup.js | 1 + .../core-js/stable/string/virtual/trim-end.js | 1 + .../stable/string/virtual/trim-left.js | 1 + .../stable/string/virtual/trim-right.js | 1 + .../stable/string/virtual/trim-start.js | 1 + .../core-js/stable/string/virtual/trim.js | 1 + .../core-js/stable/symbol/async-iterator.js | 1 + .../core-js/stable/symbol/description.js | 1 + node_modules/core-js/stable/symbol/for.js | 1 + .../core-js/stable/symbol/has-instance.js | 1 + node_modules/core-js/stable/symbol/index.js | 1 + .../stable/symbol/is-concat-spreadable.js | 1 + .../core-js/stable/symbol/iterator.js | 1 + node_modules/core-js/stable/symbol/key-for.js | 1 + .../core-js/stable/symbol/match-all.js | 1 + node_modules/core-js/stable/symbol/match.js | 1 + node_modules/core-js/stable/symbol/replace.js | 1 + node_modules/core-js/stable/symbol/search.js | 1 + node_modules/core-js/stable/symbol/species.js | 1 + node_modules/core-js/stable/symbol/split.js | 1 + .../core-js/stable/symbol/to-primitive.js | 1 + .../core-js/stable/symbol/to-string-tag.js | 1 + .../core-js/stable/symbol/unscopables.js | 1 + .../core-js/stable/typed-array/copy-within.js | 1 + .../core-js/stable/typed-array/entries.js | 1 + .../core-js/stable/typed-array/every.js | 1 + .../core-js/stable/typed-array/fill.js | 1 + .../core-js/stable/typed-array/filter.js | 1 + .../core-js/stable/typed-array/find-index.js | 1 + .../core-js/stable/typed-array/find.js | 1 + .../stable/typed-array/float32-array.js | 1 + .../stable/typed-array/float64-array.js | 1 + .../core-js/stable/typed-array/for-each.js | 1 + .../core-js/stable/typed-array/from.js | 1 + .../core-js/stable/typed-array/includes.js | 1 + .../core-js/stable/typed-array/index-of.js | 1 + .../core-js/stable/typed-array/index.js | 1 + .../core-js/stable/typed-array/int16-array.js | 1 + .../core-js/stable/typed-array/int32-array.js | 1 + .../core-js/stable/typed-array/int8-array.js | 1 + .../core-js/stable/typed-array/iterator.js | 1 + .../core-js/stable/typed-array/join.js | 1 + .../core-js/stable/typed-array/keys.js | 1 + .../stable/typed-array/last-index-of.js | 1 + .../core-js/stable/typed-array/map.js | 1 + node_modules/core-js/stable/typed-array/of.js | 1 + .../stable/typed-array/reduce-right.js | 1 + .../core-js/stable/typed-array/reduce.js | 1 + .../core-js/stable/typed-array/reverse.js | 1 + .../core-js/stable/typed-array/set.js | 1 + .../core-js/stable/typed-array/slice.js | 1 + .../core-js/stable/typed-array/some.js | 1 + .../core-js/stable/typed-array/sort.js | 1 + .../core-js/stable/typed-array/subarray.js | 1 + .../stable/typed-array/to-locale-string.js | 1 + .../core-js/stable/typed-array/to-string.js | 1 + .../stable/typed-array/uint16-array.js | 1 + .../stable/typed-array/uint32-array.js | 1 + .../core-js/stable/typed-array/uint8-array.js | 1 + .../stable/typed-array/uint8-clamped-array.js | 1 + .../core-js/stable/typed-array/values.js | 1 + .../core-js/stable/url-search-params/index.js | 1 + node_modules/core-js/stable/url/index.js | 1 + node_modules/core-js/stable/url/to-json.js | 1 + node_modules/core-js/stable/weak-map/index.js | 1 + node_modules/core-js/stable/weak-set/index.js | 1 + node_modules/core-js/stage/0.js | 5 + node_modules/core-js/stage/1.js | 15 + node_modules/core-js/stage/2.js | 7 + node_modules/core-js/stage/3.js | 3 + node_modules/core-js/stage/4.js | 4 + node_modules/core-js/stage/README.md | 1 + node_modules/core-js/stage/index.js | 1 + node_modules/core-js/stage/pre.js | 3 + node_modules/core-js/web/README.md | 1 + node_modules/core-js/web/dom-collections.js | 4 + node_modules/core-js/web/immediate.js | 3 + node_modules/core-js/web/index.js | 10 + node_modules/core-js/web/queue-microtask.js | 4 + node_modules/core-js/web/timers.js | 3 + node_modules/core-js/web/url-search-params.js | 4 + node_modules/core-js/web/url.js | 6 + node_modules/core-util-is/LICENSE | 19 + node_modules/core-util-is/README.md | 3 + node_modules/core-util-is/float.patch | 604 ++ node_modules/core-util-is/lib/util.js | 107 + node_modules/core-util-is/package.json | 65 + node_modules/core-util-is/test.js | 68 + node_modules/dashdash/CHANGES.md | 364 + node_modules/dashdash/LICENSE.txt | 24 + node_modules/dashdash/README.md | 574 ++ .../dashdash/etc/dashdash.bash_completion.in | 389 + node_modules/dashdash/lib/dashdash.js | 1055 ++ node_modules/dashdash/package.json | 70 + node_modules/debug/CHANGELOG.md | 395 + node_modules/debug/LICENSE | 19 + node_modules/debug/README.md | 455 + node_modules/debug/dist/debug.js | 912 ++ node_modules/debug/package.json | 105 + node_modules/debug/src/browser.js | 264 + node_modules/debug/src/common.js | 266 + node_modules/debug/src/index.js | 10 + node_modules/debug/src/node.js | 257 + node_modules/deepmerge/changelog.md | 121 + node_modules/deepmerge/dist/umd.js | 105 + node_modules/deepmerge/index.d.ts | 16 + node_modules/deepmerge/index.js | 72 + node_modules/deepmerge/license.txt | 21 + node_modules/deepmerge/package.json | 76 + node_modules/deepmerge/readme.md | 279 + node_modules/deepmerge/rollup.config.js | 16 + node_modules/delayed-stream/.npmignore | 1 + node_modules/delayed-stream/License | 19 + node_modules/delayed-stream/Makefile | 7 + node_modules/delayed-stream/Readme.md | 141 + .../delayed-stream/lib/delayed_stream.js | 107 + node_modules/delayed-stream/package.json | 65 + node_modules/depd/History.md | 96 + node_modules/depd/LICENSE | 22 + node_modules/depd/Readme.md | 280 + node_modules/depd/index.js | 522 + node_modules/depd/lib/browser/index.js | 77 + .../depd/lib/compat/callsite-tostring.js | 103 + .../depd/lib/compat/event-listener-count.js | 22 + node_modules/depd/lib/compat/index.js | 79 + node_modules/depd/package.json | 77 + node_modules/destroy/LICENSE | 22 + node_modules/destroy/README.md | 60 + node_modules/destroy/index.js | 75 + node_modules/destroy/package.json | 71 + node_modules/ecc-jsbn/LICENSE | 21 + node_modules/ecc-jsbn/README.md | 8 + node_modules/ecc-jsbn/index.js | 58 + node_modules/ecc-jsbn/lib/LICENSE-jsbn | 40 + node_modules/ecc-jsbn/lib/ec.js | 561 + node_modules/ecc-jsbn/lib/sec.js | 170 + node_modules/ecc-jsbn/package.json | 68 + node_modules/ecc-jsbn/test.js | 14 + node_modules/ee-first/LICENSE | 22 + node_modules/ee-first/README.md | 80 + node_modules/ee-first/index.js | 95 + node_modules/ee-first/package.json | 63 + node_modules/encodeurl/HISTORY.md | 14 + node_modules/encodeurl/LICENSE | 22 + node_modules/encodeurl/README.md | 128 + node_modules/encodeurl/index.js | 60 + node_modules/encodeurl/package.json | 75 + node_modules/escape-html/LICENSE | 24 + node_modules/escape-html/Readme.md | 43 + node_modules/escape-html/index.js | 78 + node_modules/escape-html/package.json | 56 + node_modules/etag/HISTORY.md | 83 + node_modules/etag/LICENSE | 22 + node_modules/etag/README.md | 159 + node_modules/etag/index.js | 131 + node_modules/etag/package.json | 85 + node_modules/extend/.editorconfig | 20 + node_modules/extend/.eslintrc | 17 + node_modules/extend/.jscs.json | 175 + node_modules/extend/.travis.yml | 230 + node_modules/extend/CHANGELOG.md | 83 + node_modules/extend/LICENSE | 23 + node_modules/extend/README.md | 81 + node_modules/extend/component.json | 32 + node_modules/extend/index.js | 117 + node_modules/extend/package.json | 78 + node_modules/extsprintf/.gitmodules | 0 node_modules/extsprintf/.npmignore | 2 + node_modules/extsprintf/LICENSE | 19 + node_modules/extsprintf/Makefile | 24 + node_modules/extsprintf/Makefile.targ | 285 + node_modules/extsprintf/README.md | 46 + node_modules/extsprintf/jsl.node.conf | 137 + node_modules/extsprintf/lib/extsprintf.js | 183 + node_modules/extsprintf/package.json | 47 + .../fast-decode-uri-component/.travis.yml | 12 + .../fast-decode-uri-component/LICENSE | 23 + .../fast-decode-uri-component/README.md | 43 + .../fast-decode-uri-component/bench.js | 35 + .../fast-decode-uri-component/index.js | 115 + .../fast-decode-uri-component/package.json | 64 + .../fast-decode-uri-component/test.js | 32 + node_modules/fast-deep-equal/LICENSE | 21 + node_modules/fast-deep-equal/README.md | 58 + node_modules/fast-deep-equal/index.d.ts | 4 + node_modules/fast-deep-equal/index.js | 55 + node_modules/fast-deep-equal/package.json | 89 + .../fast-json-stable-stringify/.eslintrc.yml | 26 + .../fast-json-stable-stringify/.npmignore | 4 + .../fast-json-stable-stringify/.travis.yml | 8 + .../fast-json-stable-stringify/LICENSE | 18 + .../fast-json-stable-stringify/README.md | 119 + .../benchmark/index.js | 31 + .../benchmark/test.json | 137 + .../example/key_cmp.js | 7 + .../example/nested.js | 3 + .../fast-json-stable-stringify/example/str.js | 3 + .../example/value_cmp.js | 7 + .../fast-json-stable-stringify/index.js | 59 + .../fast-json-stable-stringify/package.json | 81 + .../fast-json-stable-stringify/test/cmp.js | 13 + .../fast-json-stable-stringify/test/nested.js | 44 + .../fast-json-stable-stringify/test/str.js | 46 + .../test/to-json.js | 22 + node_modules/fast-json-stringify/.travis.yml | 14 + node_modules/fast-json-stringify/LICENSE | 21 + node_modules/fast-json-stringify/README.md | 510 + .../fast-json-stringify/azure-pipelines.yml | 35 + node_modules/fast-json-stringify/bench.js | 118 + .../build-schema-validator.js | 21 + node_modules/fast-json-stringify/example.js | 73 + node_modules/fast-json-stringify/index.d.ts | 168 + node_modules/fast-json-stringify/index.js | 1016 ++ node_modules/fast-json-stringify/package.json | 87 + .../fast-json-stringify/schema-validator.js | 1750 ++++ node_modules/fast-json-stringify/server.js | 42 + .../test/additionalProperties.test.js | 253 + .../fast-json-stringify/test/allof.test.js | 186 + .../fast-json-stringify/test/any.test.js | 79 + .../fast-json-stringify/test/anyof.test.js | 233 + .../fast-json-stringify/test/array.test.js | 166 + .../fast-json-stringify/test/basic.test.js | 346 + .../test/clean-cache.test.js | 53 + .../fast-json-stringify/test/date.test.js | 22 + .../fast-json-stringify/test/defaults.test.js | 342 + .../test/if-then-else.test.js | 286 + .../test/inferType.test.js | 96 + .../fast-json-stringify/test/integer.test.js | 85 + .../test/invalidSchema.test.js | 22 + .../test/json-schema-test-suite/README.md | 10 + .../json-schema-test-suite/draft4.test.js | 12 + .../draft4/required.json | 54 + .../json-schema-test-suite/draft6.test.js | 12 + .../draft6/required.json | 70 + .../json-schema-test-suite/draft7.test.js | 12 + .../draft7/required.json | 70 + .../test/json-schema-test-suite/util.js | 34 + .../fast-json-stringify/test/long.test.js | 85 + .../test/missing-values.test.js | 88 + .../test/nestedObjects.test.js | 36 + .../fast-json-stringify/test/nullable.test.js | 113 + .../test/patternProperties.test.js | 139 + .../fast-json-stringify/test/ref.json | 12 + .../fast-json-stringify/test/ref.test.js | 768 ++ .../fast-json-stringify/test/regex.test.js | 37 + .../fast-json-stringify/test/required.test.js | 80 + .../test/surrogate.test.js | 67 + .../fast-json-stringify/test/toJSON.test.js | 174 + .../fast-json-stringify/test/types/test.ts | 147 + .../test/types/tsconfig.json | 11 + .../test/typesArray.test.js | 438 + .../test/unknownFormats.test.js | 31 + node_modules/fast-redact/.travis.yml | 9 + node_modules/fast-redact/LICENSE | 21 + node_modules/fast-redact/benchmark/index.js | 148 + .../fast-redact/example/default-usage.js | 14 + .../example/intermediate-wildcard-array.js | 11 + .../fast-redact/example/serialize-false.js | 11 + .../fast-redact/example/serialize-function.js | 4 + .../example/top-wildcard-object.js | 9 + node_modules/fast-redact/index.js | 55 + node_modules/fast-redact/lib/modifiers.js | 96 + node_modules/fast-redact/lib/parse.js | 45 + node_modules/fast-redact/lib/redactor.js | 94 + node_modules/fast-redact/lib/restorer.js | 71 + node_modules/fast-redact/lib/rx.js | 3 + node_modules/fast-redact/lib/state.js | 22 + node_modules/fast-redact/lib/validator.js | 38 + node_modules/fast-redact/package.json | 81 + node_modules/fast-redact/readme.md | 280 + node_modules/fast-redact/test/index.js | 950 ++ node_modules/fast-safe-stringify/.travis.yml | 8 + node_modules/fast-safe-stringify/CHANGELOG.md | 17 + node_modules/fast-safe-stringify/LICENSE | 23 + node_modules/fast-safe-stringify/benchmark.js | 71 + node_modules/fast-safe-stringify/index.d.ts | 8 + node_modules/fast-safe-stringify/index.js | 103 + node_modules/fast-safe-stringify/package.json | 90 + node_modules/fast-safe-stringify/readme.md | 154 + .../fast-safe-stringify/test-stable.js | 246 + node_modules/fast-safe-stringify/test.js | 240 + node_modules/fastify-plugin/.travis.yml | 16 + node_modules/fastify-plugin/LICENSE | 21 + node_modules/fastify-plugin/README.md | 93 + .../fastify-plugin/fastify-plugin.d.ts | 38 + node_modules/fastify-plugin/index.js | 69 + node_modules/fastify-plugin/package.json | 71 + node_modules/fastify-plugin/stackParser.js | 11 + .../fastify-plugin/test/composite.test.js | 16 + .../test/mu1tip1e.composite.test.js | 16 + .../fastify-plugin/test/stackParser.test.js | 48 + node_modules/fastify-plugin/test/test.js | 281 + .../fastify-plugin/test/types.test.ts | 37 + node_modules/fastify-plugin/tsconfig.json | 12 + node_modules/fastify-static/.gitattributes | 5 + node_modules/fastify-static/.travis.yml | 20 + node_modules/fastify-static/LICENSE | 21 + node_modules/fastify-static/README.md | 137 + .../fastify-static/example/public/index.css | 9 + .../fastify-static/example/public/index.html | 11 + .../fastify-static/example/public/index.js | 8 + .../fastify-static/example/server-compress.js | 12 + node_modules/fastify-static/example/server.js | 10 + node_modules/fastify-static/index.d.ts | 36 + node_modules/fastify-static/index.js | 199 + .../readable-stream/CONTRIBUTING.md | 38 + .../readable-stream/GOVERNANCE.md | 136 + .../node_modules/readable-stream/LICENSE | 47 + .../node_modules/readable-stream/README.md | 111 + .../readable-stream/errors-browser.js | 127 + .../node_modules/readable-stream/errors.js | 116 + .../readable-stream/experimentalWarning.js | 17 + .../readable-stream/lib/_stream_duplex.js | 139 + .../lib/_stream_passthrough.js | 39 + .../readable-stream/lib/_stream_readable.js | 1087 ++ .../readable-stream/lib/_stream_transform.js | 201 + .../readable-stream/lib/_stream_writable.js | 683 ++ .../lib/internal/streams/async_iterator.js | 207 + .../lib/internal/streams/buffer_list.js | 189 + .../lib/internal/streams/destroy.js | 85 + .../lib/internal/streams/end-of-stream.js | 104 + .../lib/internal/streams/pipeline.js | 97 + .../lib/internal/streams/state.js | 27 + .../lib/internal/streams/stream-browser.js | 1 + .../lib/internal/streams/stream.js | 1 + .../node_modules/readable-stream/package.json | 95 + .../readable-stream/readable-browser.js | 9 + .../node_modules/readable-stream/readable.js | 16 + node_modules/fastify-static/package.json | 86 + .../fastify-static/test/static.test.js | 1852 ++++ .../test/static/deep/path/for/test/index.html | 5 + .../deep/path/for/test/purpose/foo.html | 5 + .../fastify-static/test/static/foo.html | 3 + .../fastify-static/test/static/foobar.html | 3 + .../fastify-static/test/static/index.css | 0 .../fastify-static/test/static/index.html | 5 + .../fastify-static/test/types/index.ts | 29 + .../fastify-static/test/types/tsconfig.json | 11 + node_modules/fastify/LICENSE | 24 + node_modules/fastify/README.md | 230 + .../fastify/build/build-validation.js | 87 + node_modules/fastify/docs/Benchmarking.md | 49 + .../fastify/docs/ContentTypeParser.md | 110 + node_modules/fastify/docs/Decorators.md | 183 + node_modules/fastify/docs/Ecosystem.md | 118 + node_modules/fastify/docs/Errors.md | 117 + node_modules/fastify/docs/Fluent-Schema.md | 124 + node_modules/fastify/docs/Getting-Started.md | 338 + node_modules/fastify/docs/HTTP2.md | 95 + node_modules/fastify/docs/Hooks.md | 411 + node_modules/fastify/docs/LTS.md | 49 + node_modules/fastify/docs/Lifecycle.md | 38 + node_modules/fastify/docs/Logging.md | 157 + node_modules/fastify/docs/Middlewares.md | 59 + node_modules/fastify/docs/Plugins-Guide.md | 330 + node_modules/fastify/docs/Plugins.md | 154 + node_modules/fastify/docs/Reply.md | 302 + node_modules/fastify/docs/Request.md | 30 + node_modules/fastify/docs/Routes.md | 322 + node_modules/fastify/docs/Server.md | 747 ++ node_modules/fastify/docs/Serverless.md | 93 + node_modules/fastify/docs/Testing.md | 168 + node_modules/fastify/docs/TypeScript.md | 291 + .../docs/Validation-and-Serialization.md | 529 + node_modules/fastify/docs/Write-Plugin.md | 58 + node_modules/fastify/examples/asyncawait.js | 37 + node_modules/fastify/examples/example.js | 57 + .../examples/hooks-benchmark-async-await.js | 45 + .../fastify/examples/hooks-benchmark.js | 53 + node_modules/fastify/examples/hooks.js | 89 + node_modules/fastify/examples/http2.js | 37 + node_modules/fastify/examples/https.js | 36 + node_modules/fastify/examples/middleware.js | 37 + node_modules/fastify/examples/parser.js | 42 + node_modules/fastify/examples/plugin.js | 12 + node_modules/fastify/examples/route-prefix.js | 39 + .../fastify/examples/shared-schema.js | 37 + node_modules/fastify/examples/simple.js | 31 + .../fastify/examples/typescript-server.ts | 54 + node_modules/fastify/examples/use-plugin.js | 26 + node_modules/fastify/fastify.d.ts | 696 ++ node_modules/fastify/fastify.js | 451 + node_modules/fastify/lib/configValidator.js | 558 + node_modules/fastify/lib/contentTypeParser.js | 261 + node_modules/fastify/lib/context.js | 37 + node_modules/fastify/lib/decorate.js | 81 + node_modules/fastify/lib/errors.js | 105 + node_modules/fastify/lib/fourOhFour.js | 190 + node_modules/fastify/lib/handleRequest.js | 119 + node_modules/fastify/lib/hooks.js | 133 + .../fastify/lib/initialConfigValidation.js | 41 + node_modules/fastify/lib/logger.js | 101 + node_modules/fastify/lib/middleware.js | 38 + node_modules/fastify/lib/pluginUtils.js | 83 + node_modules/fastify/lib/reply.js | 551 + node_modules/fastify/lib/reqIdGenFactory.js | 9 + node_modules/fastify/lib/request.js | 46 + node_modules/fastify/lib/route.js | 374 + node_modules/fastify/lib/schemas.js | 143 + node_modules/fastify/lib/server.js | 151 + node_modules/fastify/lib/symbols.js | 35 + node_modules/fastify/lib/validation.js | 166 + node_modules/fastify/lib/warnings.js | 7 + node_modules/fastify/lib/wrapThenable.js | 47 + node_modules/fastify/package.json | 193 + node_modules/fastify/test/404s.test.js | 1735 ++++ node_modules/fastify/test/500s.test.js | 168 + node_modules/fastify/test/async-await.js | 557 + node_modules/fastify/test/async-await.test.js | 11 + node_modules/fastify/test/bodyLimit.test.js | 46 + .../fastify/test/case-insensitive.test.js | 120 + node_modules/fastify/test/chainable.test.js | 41 + .../fastify/test/close-pipelining.test.js | 35 + node_modules/fastify/test/close.test.js | 155 + .../fastify/test/content-length.test.js | 141 + .../fastify/test/context-config.test.js | 69 + .../fastify/test/custom-http-server.test.js | 44 + .../fastify/test/custom-parser-async.js | 64 + .../fastify/test/custom-parser.test.js | 1145 ++ .../test/custom-querystring-parser.test.js | 137 + node_modules/fastify/test/decorator.test.js | 660 ++ node_modules/fastify/test/delete.test.js | 318 + .../fastify/test/emit-warning.test.js | 39 + .../fastify/test/error-in-post.test.js | 30 + .../fastify/test/fastify-instance.test.js | 10 + node_modules/fastify/test/fluent-schema.js | 125 + .../fastify/test/fluent-schema.test.js | 11 + node_modules/fastify/test/genReqId.test.js | 30 + node_modules/fastify/test/get.test.js | 380 + .../fastify/test/handler-context.test.js | 56 + node_modules/fastify/test/head.test.js | 164 + node_modules/fastify/test/helper.js | 421 + node_modules/fastify/test/hooks-async.js | 472 + node_modules/fastify/test/hooks.test.js | 2683 +++++ node_modules/fastify/test/http2/closing.js | 48 + node_modules/fastify/test/http2/http2.test.js | 16 + .../test/http2/missing-http2-module.js | 17 + node_modules/fastify/test/http2/plain.js | 38 + .../test/http2/secure-with-fallback.js | 105 + node_modules/fastify/test/http2/secure.js | 43 + .../fastify/test/http2/unknown-http-method.js | 40 + .../test/https/custom-https-server.test.js | 52 + node_modules/fastify/test/https/fastify.cert | 19 + node_modules/fastify/test/https/fastify.key | 27 + node_modules/fastify/test/https/https.test.js | 51 + node_modules/fastify/test/inject.test.js | 411 + node_modules/fastify/test/input-validation.js | 266 + .../fastify/test/input-validation.test.js | 69 + .../fastify/test/internals/all.test.js | 35 + .../test/internals/contentTypeParser.test.js | 56 + .../fastify/test/internals/decorator.test.js | 122 + .../fastify/test/internals/errors.test.js | 96 + .../test/internals/handleRequest.test.js | 257 + .../fastify/test/internals/hookRunner.test.js | 404 + .../fastify/test/internals/hooks.test.js | 83 + .../test/internals/initialConfig.test.js | 302 + .../fastify/test/internals/logger.test.js | 114 + .../fastify/test/internals/plugin.test.js | 124 + .../fastify/test/internals/reply.test.js | 979 ++ .../fastify/test/internals/validation.test.js | 171 + node_modules/fastify/test/listen.test.js | 353 + node_modules/fastify/test/logger.test.js | 1147 ++ node_modules/fastify/test/middleware.test.js | 873 ++ .../test/options.error-handler.test.js | 5 + node_modules/fastify/test/options.test.js | 5 + .../fastify/test/output-validation.test.js | 159 + .../fastify/test/patch.error-handler.test.js | 5 + node_modules/fastify/test/patch.test.js | 5 + node_modules/fastify/test/plugin.helper.js | 8 + node_modules/fastify/test/plugin.test.js | 604 ++ node_modules/fastify/test/post.test.js | 97 + .../fastify/test/pretty-print.test.js | 100 + node_modules/fastify/test/promises.test.js | 85 + .../fastify/test/proto-poisoning.test.js | 83 + .../fastify/test/put.error-handler.test.js | 5 + node_modules/fastify/test/put.test.js | 5 + node_modules/fastify/test/register.test.js | 98 + node_modules/fastify/test/reply-error.test.js | 398 + .../fastify/test/request-error.test.js | 75 + node_modules/fastify/test/route-hooks.test.js | 429 + .../fastify/test/route-prefix.test.js | 532 + node_modules/fastify/test/route.test.js | 257 + .../fastify/test/router-options.test.js | 60 + .../fastify/test/shared-schemas.test.js | 1235 +++ node_modules/fastify/test/skip-reply-send.js | 98 + node_modules/fastify/test/stream.test.js | 410 + node_modules/fastify/test/throw.test.js | 318 + node_modules/fastify/test/trust-proxy.test.js | 171 + node_modules/fastify/test/types/index.ts | 606 ++ node_modules/fastify/test/types/tsconfig.json | 11 + .../test/validation-error-handling.test.js | 342 + .../fastify/test/versioned-routes.test.js | 478 + .../fastify/test/wrapThenable.test.js | 28 + node_modules/fastq/.travis.yml | 10 + node_modules/fastq/LICENSE | 13 + node_modules/fastq/README.md | 183 + node_modules/fastq/bench.js | 58 + node_modules/fastq/example.js | 12 + node_modules/fastq/index.d.ts | 24 + node_modules/fastq/package.json | 74 + node_modules/fastq/queue.js | 173 + node_modules/fastq/test/example.ts | 37 + node_modules/fastq/test/test.js | 482 + node_modules/fastq/test/tsconfig.json | 11 + node_modules/find-my-way/.travis.yml | 15 + node_modules/find-my-way/LICENSE | 21 + node_modules/find-my-way/README.md | 353 + node_modules/find-my-way/bench.js | 72 + node_modules/find-my-way/example.js | 29 + node_modules/find-my-way/index.d.ts | 181 + node_modules/find-my-way/index.js | 600 ++ .../find-my-way/lib/accept-version.js | 10 + node_modules/find-my-way/node.js | 241 + node_modules/find-my-way/package.json | 79 + .../find-my-way/test/case-insensitive.test.js | 203 + node_modules/find-my-way/test/errors.test.js | 298 + .../find-my-way/test/for-in-loop.test.js | 11 + .../find-my-way/test/full-url.test.js | 19 + .../find-my-way/test/issue-104.test.js | 203 + .../find-my-way/test/issue-110.test.js | 32 + .../find-my-way/test/issue-17.test.js | 283 + .../find-my-way/test/issue-20.test.js | 80 + .../find-my-way/test/issue-28.test.js | 577 ++ .../find-my-way/test/issue-44.test.js | 150 + .../find-my-way/test/issue-46.test.js | 76 + .../find-my-way/test/issue-49.test.js | 109 + .../find-my-way/test/issue-59.test.js | 132 + .../find-my-way/test/issue-62.test.js | 28 + .../find-my-way/test/issue-63.test.js | 23 + .../find-my-way/test/issue-67.test.js | 51 + .../find-my-way/test/issue-93.test.js | 20 + node_modules/find-my-way/test/lookup.test.js | 59 + .../find-my-way/test/max-param-length.test.js | 45 + node_modules/find-my-way/test/methods.test.js | 735 ++ .../find-my-way/test/pretty-print.test.js | 92 + .../find-my-way/test/querystring.test.js | 38 + node_modules/find-my-way/test/regex.test.js | 240 + node_modules/find-my-way/test/server.test.js | 303 + .../find-my-way/test/shorthands.test.js | 47 + node_modules/find-my-way/test/store.test.js | 49 + node_modules/find-my-way/test/types/index.ts | 116 + .../find-my-way/test/types/tsconfig.json | 16 + .../test/version.custom-versioning.test.js | 37 + .../test/version.default-versioning.test.js | 242 + node_modules/flatstr/LICENSE | 21 + node_modules/flatstr/alt-benchmark.js | 234 + node_modules/flatstr/benchmark.js | 61 + node_modules/flatstr/index.js | 15 + node_modules/flatstr/package.json | 62 + node_modules/flatstr/readme.md | 82 + node_modules/flatstr/test.js | 26 + node_modules/forever-agent/LICENSE | 55 + node_modules/forever-agent/README.md | 4 + node_modules/forever-agent/index.js | 138 + node_modules/forever-agent/package.json | 53 + node_modules/form-data/License | 19 + node_modules/form-data/README.md | 234 + node_modules/form-data/README.md.bak | 234 + node_modules/form-data/lib/browser.js | 2 + node_modules/form-data/lib/form_data.js | 457 + node_modules/form-data/lib/populate.js | 10 + node_modules/form-data/package.json | 101 + node_modules/form-data/yarn.lock | 2662 +++++ node_modules/forwarded/HISTORY.md | 16 + node_modules/forwarded/LICENSE | 22 + node_modules/forwarded/README.md | 57 + node_modules/forwarded/index.js | 76 + node_modules/forwarded/package.json | 81 + node_modules/fresh/HISTORY.md | 70 + node_modules/fresh/LICENSE | 23 + node_modules/fresh/README.md | 119 + node_modules/fresh/index.js | 137 + node_modules/fresh/package.json | 89 + node_modules/fs.realpath/LICENSE | 43 + node_modules/fs.realpath/README.md | 33 + node_modules/fs.realpath/index.js | 66 + node_modules/fs.realpath/old.js | 303 + node_modules/fs.realpath/package.json | 59 + node_modules/getpass/.npmignore | 8 + node_modules/getpass/.travis.yml | 9 + node_modules/getpass/LICENSE | 18 + node_modules/getpass/README.md | 32 + node_modules/getpass/lib/index.js | 123 + node_modules/getpass/package.json | 53 + node_modules/glob/LICENSE | 21 + node_modules/glob/README.md | 373 + node_modules/glob/changelog.md | 67 + node_modules/glob/common.js | 240 + node_modules/glob/glob.js | 790 ++ node_modules/glob/package.json | 76 + node_modules/glob/sync.js | 486 + node_modules/handlebars/LICENSE | 19 + node_modules/handlebars/README.markdown | 168 + node_modules/handlebars/bin/handlebars | 128 + .../handlebars/dist/amd/handlebars.js | 51 + .../handlebars/dist/amd/handlebars.runtime.js | 44 + .../handlebars/dist/amd/handlebars/base.js | 99 + .../dist/amd/handlebars/compiler/ast.js | 31 + .../dist/amd/handlebars/compiler/base.js | 36 + .../dist/amd/handlebars/compiler/code-gen.js | 163 + .../dist/amd/handlebars/compiler/compiler.js | 569 + .../dist/amd/handlebars/compiler/helpers.js | 228 + .../compiler/javascript-compiler.js | 1138 ++ .../dist/amd/handlebars/compiler/parser.js | 933 ++ .../dist/amd/handlebars/compiler/printer.js | 186 + .../dist/amd/handlebars/compiler/visitor.js | 138 + .../handlebars/compiler/whitespace-control.js | 219 + .../dist/amd/handlebars/decorators.js | 16 + .../dist/amd/handlebars/decorators/inline.js | 25 + .../dist/amd/handlebars/exception.js | 53 + .../handlebars/dist/amd/handlebars/helpers.js | 44 + .../helpers/block-helper-missing.js | 35 + .../dist/amd/handlebars/helpers/each.js | 89 + .../amd/handlebars/helpers/helper-missing.js | 22 + .../dist/amd/handlebars/helpers/if.js | 25 + .../dist/amd/handlebars/helpers/log.js | 24 + .../dist/amd/handlebars/helpers/lookup.js | 16 + .../dist/amd/handlebars/helpers/with.js | 29 + .../handlebars/dist/amd/handlebars/logger.js | 44 + .../dist/amd/handlebars/no-conflict.js | 18 + .../handlebars/dist/amd/handlebars/runtime.js | 307 + .../dist/amd/handlebars/safe-string.js | 15 + .../handlebars/dist/amd/handlebars/utils.js | 127 + .../handlebars/dist/amd/precompiler.js | 313 + .../handlebars/dist/cjs/handlebars.js | 65 + .../handlebars/dist/cjs/handlebars.runtime.js | 66 + .../handlebars/dist/cjs/handlebars/base.js | 107 + .../dist/cjs/handlebars/compiler/ast.js | 31 + .../dist/cjs/handlebars/compiler/base.js | 48 + .../dist/cjs/handlebars/compiler/code-gen.js | 166 + .../dist/cjs/handlebars/compiler/compiler.js | 573 + .../dist/cjs/handlebars/compiler/helpers.js | 228 + .../compiler/javascript-compiler.js | 1146 ++ .../dist/cjs/handlebars/compiler/parser.js | 933 ++ .../dist/cjs/handlebars/compiler/printer.js | 186 + .../dist/cjs/handlebars/compiler/visitor.js | 140 + .../handlebars/compiler/whitespace-control.js | 221 + .../dist/cjs/handlebars/decorators.js | 16 + .../dist/cjs/handlebars/decorators/inline.js | 29 + .../dist/cjs/handlebars/exception.js | 54 + .../handlebars/dist/cjs/handlebars/helpers.js | 56 + .../helpers/block-helper-missing.js | 39 + .../dist/cjs/handlebars/helpers/each.js | 94 + .../cjs/handlebars/helpers/helper-missing.js | 25 + .../dist/cjs/handlebars/helpers/if.js | 29 + .../dist/cjs/handlebars/helpers/log.js | 26 + .../dist/cjs/handlebars/helpers/lookup.js | 18 + .../dist/cjs/handlebars/helpers/with.js | 33 + .../handlebars/dist/cjs/handlebars/logger.js | 47 + .../dist/cjs/handlebars/no-conflict.js | 20 + .../handlebars/dist/cjs/handlebars/runtime.js | 319 + .../dist/cjs/handlebars/safe-string.js | 15 + .../handlebars/dist/cjs/handlebars/utils.js | 125 + .../handlebars/dist/cjs/precompiler.js | 327 + .../handlebars/dist/handlebars.amd.js | 4592 +++++++++ .../handlebars/dist/handlebars.amd.min.js | 29 + node_modules/handlebars/dist/handlebars.js | 5099 +++++++++ .../handlebars/dist/handlebars.min.js | 29 + .../handlebars/dist/handlebars.runtime.amd.js | 1076 ++ .../dist/handlebars.runtime.amd.min.js | 27 + .../handlebars/dist/handlebars.runtime.js | 1500 +++ .../handlebars/dist/handlebars.runtime.min.js | 27 + node_modules/handlebars/lib/handlebars.js | 41 + .../handlebars/lib/handlebars.runtime.js | 37 + .../handlebars/lib/handlebars/base.js | 80 + .../handlebars/lib/handlebars/compiler/ast.js | 28 + .../lib/handlebars/compiler/base.js | 24 + .../lib/handlebars/compiler/code-gen.js | 168 + .../lib/handlebars/compiler/compiler.js | 559 + .../lib/handlebars/compiler/helpers.js | 210 + .../compiler/javascript-compiler.js | 1154 +++ .../lib/handlebars/compiler/parser.js | 857 ++ .../lib/handlebars/compiler/printer.js | 171 + .../lib/handlebars/compiler/visitor.js | 129 + .../handlebars/compiler/whitespace-control.js | 216 + .../handlebars/lib/handlebars/decorators.js | 6 + .../lib/handlebars/decorators/inline.js | 22 + .../handlebars/lib/handlebars/exception.js | 49 + .../handlebars/lib/handlebars/helpers.js | 26 + .../helpers/block-helper-missing.js | 32 + .../handlebars/lib/handlebars/helpers/each.js | 79 + .../lib/handlebars/helpers/helper-missing.js | 13 + .../handlebars/lib/handlebars/helpers/if.js | 20 + .../handlebars/lib/handlebars/helpers/log.js | 19 + .../lib/handlebars/helpers/lookup.js | 11 + .../handlebars/lib/handlebars/helpers/with.js | 24 + .../handlebars/lib/handlebars/logger.js | 35 + .../handlebars/lib/handlebars/no-conflict.js | 13 + .../handlebars/lib/handlebars/runtime.js | 293 + .../handlebars/lib/handlebars/safe-string.js | 10 + .../handlebars/lib/handlebars/utils.js | 109 + node_modules/handlebars/lib/index.js | 25 + node_modules/handlebars/lib/precompiler.js | 298 + node_modules/handlebars/package.json | 127 + node_modules/handlebars/print-script | 95 + node_modules/handlebars/release-notes.md | 724 ++ node_modules/handlebars/runtime.js | 3 + node_modules/handlebars/types/index.d.ts | 385 + node_modules/har-schema/LICENSE | 13 + node_modules/har-schema/README.md | 49 + node_modules/har-schema/lib/afterRequest.json | 30 + .../har-schema/lib/beforeRequest.json | 30 + node_modules/har-schema/lib/browser.json | 20 + node_modules/har-schema/lib/cache.json | 21 + node_modules/har-schema/lib/content.json | 29 + node_modules/har-schema/lib/cookie.json | 36 + node_modules/har-schema/lib/creator.json | 20 + node_modules/har-schema/lib/entry.json | 53 + node_modules/har-schema/lib/har.json | 13 + node_modules/har-schema/lib/header.json | 20 + node_modules/har-schema/lib/index.js | 22 + node_modules/har-schema/lib/log.json | 36 + node_modules/har-schema/lib/page.json | 32 + node_modules/har-schema/lib/pageTimings.json | 18 + node_modules/har-schema/lib/postData.json | 43 + node_modules/har-schema/lib/query.json | 20 + node_modules/har-schema/lib/request.json | 57 + node_modules/har-schema/lib/response.json | 54 + node_modules/har-schema/lib/timings.json | 42 + node_modules/har-schema/package.json | 89 + node_modules/har-validator/LICENSE | 9 + node_modules/har-validator/README.md | 37 + node_modules/har-validator/lib/async.js | 105 + node_modules/har-validator/lib/error.js | 17 + node_modules/har-validator/lib/promise.js | 102 + node_modules/har-validator/package.json | 79 + node_modules/http-errors/HISTORY.md | 132 + node_modules/http-errors/LICENSE | 23 + node_modules/http-errors/README.md | 135 + node_modules/http-errors/index.js | 260 + node_modules/http-errors/package.json | 90 + node_modules/http-signature/.dir-locals.el | 6 + node_modules/http-signature/.npmignore | 7 + node_modules/http-signature/CHANGES.md | 46 + node_modules/http-signature/LICENSE | 18 + node_modules/http-signature/README.md | 79 + node_modules/http-signature/http_signing.md | 363 + node_modules/http-signature/lib/index.js | 29 + node_modules/http-signature/lib/parser.js | 315 + node_modules/http-signature/lib/signer.js | 401 + node_modules/http-signature/lib/utils.js | 112 + node_modules/http-signature/lib/verify.js | 88 + node_modules/http-signature/package.json | 80 + node_modules/inflight/LICENSE | 15 + node_modules/inflight/README.md | 37 + node_modules/inflight/inflight.js | 54 + node_modules/inflight/package.json | 58 + node_modules/inherits/LICENSE | 16 + node_modules/inherits/README.md | 42 + node_modules/inherits/inherits.js | 7 + node_modules/inherits/inherits_browser.js | 23 + node_modules/inherits/package.json | 67 + node_modules/ipaddr.js/LICENSE | 19 + node_modules/ipaddr.js/README.md | 233 + node_modules/ipaddr.js/ipaddr.min.js | 1 + node_modules/ipaddr.js/lib/ipaddr.js | 673 ++ node_modules/ipaddr.js/lib/ipaddr.js.d.ts | 71 + node_modules/ipaddr.js/package.json | 72 + node_modules/is-typedarray/LICENSE.md | 18 + node_modules/is-typedarray/README.md | 16 + node_modules/is-typedarray/index.js | 41 + node_modules/is-typedarray/package.json | 62 + node_modules/is-typedarray/test.js | 34 + node_modules/isstream/.jshintrc | 59 + node_modules/isstream/.npmignore | 1 + node_modules/isstream/.travis.yml | 12 + node_modules/isstream/LICENSE.md | 11 + node_modules/isstream/README.md | 66 + node_modules/isstream/isstream.js | 27 + node_modules/isstream/package.json | 64 + node_modules/isstream/test.js | 168 + node_modules/jsbn/.npmignore | 2 + node_modules/jsbn/LICENSE | 40 + node_modules/jsbn/README.md | 175 + node_modules/jsbn/example.html | 12 + node_modules/jsbn/example.js | 3 + node_modules/jsbn/index.js | 1357 +++ node_modules/jsbn/package.json | 56 + .../json-schema-traverse/.eslintrc.yml | 27 + node_modules/json-schema-traverse/.travis.yml | 8 + node_modules/json-schema-traverse/LICENSE | 21 + node_modules/json-schema-traverse/README.md | 83 + node_modules/json-schema-traverse/index.js | 89 + .../json-schema-traverse/package.json | 73 + .../json-schema-traverse/spec/.eslintrc.yml | 6 + .../spec/fixtures/schema.js | 125 + .../json-schema-traverse/spec/index.spec.js | 171 + node_modules/json-schema/README.md | 5 + .../json-schema/draft-00/hyper-schema | 68 + node_modules/json-schema/draft-00/json-ref | 26 + node_modules/json-schema/draft-00/links | 33 + node_modules/json-schema/draft-00/schema | 155 + .../json-schema/draft-01/hyper-schema | 68 + node_modules/json-schema/draft-01/json-ref | 26 + node_modules/json-schema/draft-01/links | 33 + node_modules/json-schema/draft-01/schema | 155 + .../json-schema/draft-02/hyper-schema | 68 + node_modules/json-schema/draft-02/json-ref | 26 + node_modules/json-schema/draft-02/links | 35 + node_modules/json-schema/draft-02/schema | 166 + .../json-schema/draft-03/examples/address | 20 + .../json-schema/draft-03/examples/calendar | 53 + .../json-schema/draft-03/examples/card | 105 + .../json-schema/draft-03/examples/geo | 8 + .../json-schema/draft-03/examples/interfaces | 23 + .../json-schema/draft-03/hyper-schema | 60 + node_modules/json-schema/draft-03/json-ref | 26 + node_modules/json-schema/draft-03/links | 35 + node_modules/json-schema/draft-03/schema | 174 + .../json-schema/draft-04/hyper-schema | 60 + node_modules/json-schema/draft-04/links | 41 + node_modules/json-schema/draft-04/schema | 189 + .../json-schema/draft-zyp-json-schema-03.xml | 1120 ++ .../json-schema/draft-zyp-json-schema-04.xml | 1072 ++ node_modules/json-schema/lib/links.js | 66 + node_modules/json-schema/lib/validate.js | 273 + node_modules/json-schema/package.json | 74 + node_modules/json-schema/test/tests.js | 95 + node_modules/json-stringify-safe/.npmignore | 1 + node_modules/json-stringify-safe/CHANGELOG.md | 14 + node_modules/json-stringify-safe/LICENSE | 15 + node_modules/json-stringify-safe/Makefile | 35 + node_modules/json-stringify-safe/README.md | 52 + node_modules/json-stringify-safe/package.json | 69 + node_modules/json-stringify-safe/stringify.js | 27 + .../json-stringify-safe/test/mocha.opts | 2 + .../test/stringify_test.js | 246 + node_modules/jsprim/CHANGES.md | 49 + node_modules/jsprim/CONTRIBUTING.md | 19 + node_modules/jsprim/LICENSE | 19 + node_modules/jsprim/README.md | 287 + node_modules/jsprim/lib/jsprim.js | 735 ++ node_modules/jsprim/package.json | 52 + node_modules/light-my-request/.travis.yml | 15 + node_modules/light-my-request/LICENSE | 32 + node_modules/light-my-request/README.md | 157 + node_modules/light-my-request/index.d.ts | 76 + node_modules/light-my-request/index.js | 94 + node_modules/light-my-request/lib/parseURL.js | 34 + node_modules/light-my-request/lib/request.js | 139 + node_modules/light-my-request/lib/response.js | 122 + node_modules/light-my-request/package.json | 77 + .../light-my-request/test/async-await.js | 34 + .../light-my-request/test/index.test-d.ts | 25 + node_modules/light-my-request/test/test.js | 912 ++ node_modules/light-my-request/tsconfig.json | 12 + node_modules/lodash._basebind/LICENSE.txt | 22 + node_modules/lodash._basebind/README.md | 15 + node_modules/lodash._basebind/index.js | 58 + node_modules/lodash._basebind/package.json | 74 + node_modules/lodash._basecreate/LICENSE.txt | 22 + node_modules/lodash._basecreate/README.md | 15 + node_modules/lodash._basecreate/index.js | 42 + node_modules/lodash._basecreate/package.json | 75 + .../lodash._basecreatecallback/LICENSE.txt | 22 + .../lodash._basecreatecallback/README.md | 15 + .../lodash._basecreatecallback/index.js | 80 + .../lodash._basecreatecallback/package.json | 76 + .../lodash._basecreatewrapper/LICENSE.txt | 22 + .../lodash._basecreatewrapper/README.md | 15 + .../lodash._basecreatewrapper/index.js | 78 + .../lodash._basecreatewrapper/package.json | 75 + .../lodash._createwrapper/LICENSE.txt | 22 + node_modules/lodash._createwrapper/README.md | 15 + node_modules/lodash._createwrapper/index.js | 98 + .../lodash._createwrapper/package.json | 74 + node_modules/lodash._objecttypes/LICENSE.txt | 22 + node_modules/lodash._objecttypes/README.md | 15 + node_modules/lodash._objecttypes/index.js | 20 + node_modules/lodash._objecttypes/package.json | 71 + node_modules/lodash._renative/LICENSE.txt | 22 + node_modules/lodash._renative/README.md | 15 + node_modules/lodash._renative/index.js | 23 + node_modules/lodash._renative/package.json | 73 + node_modules/lodash._setbinddata/LICENSE.txt | 22 + node_modules/lodash._setbinddata/README.md | 15 + node_modules/lodash._setbinddata/index.js | 43 + node_modules/lodash._setbinddata/package.json | 75 + node_modules/lodash._shimkeys/LICENSE.txt | 22 + node_modules/lodash._shimkeys/README.md | 15 + node_modules/lodash._shimkeys/index.js | 38 + node_modules/lodash._shimkeys/package.json | 72 + node_modules/lodash._slice/LICENSE.txt | 22 + node_modules/lodash._slice/README.md | 15 + node_modules/lodash._slice/index.js | 38 + node_modules/lodash._slice/package.json | 70 + node_modules/lodash.bind/LICENSE.txt | 22 + node_modules/lodash.bind/README.md | 15 + node_modules/lodash.bind/index.js | 41 + node_modules/lodash.bind/package.json | 81 + node_modules/lodash.foreach/LICENSE.txt | 22 + node_modules/lodash.foreach/README.md | 15 + node_modules/lodash.foreach/index.js | 55 + node_modules/lodash.foreach/package.json | 80 + node_modules/lodash.forown/LICENSE.txt | 22 + node_modules/lodash.forown/README.md | 15 + node_modules/lodash.forown/index.js | 50 + node_modules/lodash.forown/package.json | 81 + node_modules/lodash.identity/LICENSE.txt | 22 + node_modules/lodash.identity/README.md | 15 + node_modules/lodash.identity/index.js | 28 + node_modules/lodash.identity/package.json | 76 + node_modules/lodash.isfunction/LICENSE.txt | 22 + node_modules/lodash.isfunction/README.md | 15 + node_modules/lodash.isfunction/index.js | 27 + node_modules/lodash.isfunction/package.json | 76 + node_modules/lodash.isobject/LICENSE.txt | 22 + node_modules/lodash.isobject/README.md | 15 + node_modules/lodash.isobject/index.js | 39 + node_modules/lodash.isobject/package.json | 82 + node_modules/lodash.keys/LICENSE.txt | 22 + node_modules/lodash.keys/README.md | 15 + node_modules/lodash.keys/index.js | 36 + node_modules/lodash.keys/package.json | 82 + node_modules/lodash.noop/LICENSE.txt | 22 + node_modules/lodash.noop/README.md | 15 + node_modules/lodash.noop/index.js | 26 + node_modules/lodash.noop/package.json | 77 + node_modules/lodash.support/LICENSE.txt | 22 + node_modules/lodash.support/README.md | 15 + node_modules/lodash.support/index.js | 40 + node_modules/lodash.support/package.json | 79 + node_modules/lodash.uniqby/LICENSE | 47 + node_modules/lodash.uniqby/README.md | 18 + node_modules/lodash.uniqby/index.js | 2414 +++++ node_modules/lodash.uniqby/package.json | 69 + node_modules/middie/.travis.yml | 11 + node_modules/middie/LICENSE | 21 + node_modules/middie/README.md | 100 + node_modules/middie/middie.js | 136 + node_modules/middie/package.json | 73 + node_modules/middie/test.js | 496 + node_modules/mime-db/HISTORY.md | 417 + node_modules/mime-db/LICENSE | 22 + node_modules/mime-db/README.md | 94 + node_modules/mime-db/db.json | 7834 ++++++++++++++ node_modules/mime-db/index.js | 11 + node_modules/mime-db/package.json | 104 + node_modules/mime-types/HISTORY.md | 308 + node_modules/mime-types/LICENSE | 23 + node_modules/mime-types/README.md | 113 + node_modules/mime-types/index.js | 188 + node_modules/mime-types/package.json | 90 + node_modules/mime/LICENSE | 21 + node_modules/mime/README.md | 90 + node_modules/mime/build/build.js | 11 + node_modules/mime/build/test.js | 60 + node_modules/mime/cli.js | 8 + node_modules/mime/mime.js | 108 + node_modules/mime/package.json | 67 + node_modules/mime/types.json | 1 + node_modules/minimatch/LICENSE | 15 + node_modules/minimatch/README.md | 209 + node_modules/minimatch/minimatch.js | 923 ++ node_modules/minimatch/package.json | 63 + node_modules/minimist/.travis.yml | 4 + node_modules/minimist/LICENSE | 18 + node_modules/minimist/example/parse.js | 2 + node_modules/minimist/index.js | 187 + node_modules/minimist/package.json | 71 + node_modules/minimist/readme.markdown | 73 + node_modules/minimist/test/bool.js | 119 + node_modules/minimist/test/dash.js | 24 + node_modules/minimist/test/default_bool.js | 20 + node_modules/minimist/test/dotted.js | 22 + node_modules/minimist/test/long.js | 31 + node_modules/minimist/test/num.js | 36 + node_modules/minimist/test/parse.js | 197 + node_modules/minimist/test/parse_modified.js | 9 + node_modules/minimist/test/short.js | 67 + node_modules/minimist/test/whitespace.js | 8 + node_modules/ms/index.js | 162 + node_modules/ms/license.md | 21 + node_modules/ms/package.json | 72 + node_modules/ms/readme.md | 60 + node_modules/neo-async/LICENSE | 22 + node_modules/neo-async/README.md | 268 + node_modules/neo-async/all.js | 3 + node_modules/neo-async/allLimit.js | 3 + node_modules/neo-async/allSeries.js | 3 + node_modules/neo-async/angelFall.js | 3 + node_modules/neo-async/any.js | 3 + node_modules/neo-async/anyLimit.js | 3 + node_modules/neo-async/anySeries.js | 3 + node_modules/neo-async/apply.js | 3 + node_modules/neo-async/applyEach.js | 3 + node_modules/neo-async/applyEachSeries.js | 3 + node_modules/neo-async/async.js | 9182 +++++++++++++++++ node_modules/neo-async/async.min.js | 80 + node_modules/neo-async/asyncify.js | 3 + node_modules/neo-async/auto.js | 3 + node_modules/neo-async/autoInject.js | 3 + node_modules/neo-async/cargo.js | 3 + node_modules/neo-async/compose.js | 3 + node_modules/neo-async/concat.js | 3 + node_modules/neo-async/concatLimit.js | 3 + node_modules/neo-async/concatSeries.js | 3 + node_modules/neo-async/constant.js | 3 + node_modules/neo-async/createLogger.js | 3 + node_modules/neo-async/detect.js | 3 + node_modules/neo-async/detectLimit.js | 3 + node_modules/neo-async/detectSeries.js | 3 + node_modules/neo-async/dir.js | 3 + node_modules/neo-async/doDuring.js | 3 + node_modules/neo-async/doUntil.js | 3 + node_modules/neo-async/doWhilst.js | 3 + node_modules/neo-async/during.js | 3 + node_modules/neo-async/each.js | 3 + node_modules/neo-async/eachLimit.js | 3 + node_modules/neo-async/eachOf.js | 3 + node_modules/neo-async/eachOfLimit.js | 3 + node_modules/neo-async/eachOfSeries.js | 3 + node_modules/neo-async/eachSeries.js | 3 + node_modules/neo-async/ensureAsync.js | 3 + node_modules/neo-async/every.js | 3 + node_modules/neo-async/everyLimit.js | 3 + node_modules/neo-async/everySeries.js | 3 + node_modules/neo-async/fast.js | 3 + node_modules/neo-async/filter.js | 3 + node_modules/neo-async/filterLimit.js | 3 + node_modules/neo-async/filterSeries.js | 3 + node_modules/neo-async/find.js | 3 + node_modules/neo-async/findLimit.js | 3 + node_modules/neo-async/findSeries.js | 3 + node_modules/neo-async/foldl.js | 3 + node_modules/neo-async/foldr.js | 3 + node_modules/neo-async/forEach.js | 3 + node_modules/neo-async/forEachLimit.js | 3 + node_modules/neo-async/forEachOf.js | 3 + node_modules/neo-async/forEachOfLimit.js | 3 + node_modules/neo-async/forEachOfSeries.js | 3 + node_modules/neo-async/forEachSeries.js | 3 + node_modules/neo-async/forever.js | 3 + node_modules/neo-async/groupBy.js | 3 + node_modules/neo-async/groupByLimit.js | 3 + node_modules/neo-async/groupBySeries.js | 3 + node_modules/neo-async/inject.js | 3 + node_modules/neo-async/iterator.js | 3 + node_modules/neo-async/log.js | 3 + node_modules/neo-async/map.js | 3 + node_modules/neo-async/mapLimit.js | 3 + node_modules/neo-async/mapSeries.js | 3 + node_modules/neo-async/mapValues.js | 3 + node_modules/neo-async/mapValuesLimit.js | 3 + node_modules/neo-async/mapValuesSeries.js | 3 + node_modules/neo-async/memoize.js | 3 + node_modules/neo-async/nextTick.js | 3 + node_modules/neo-async/omit.js | 3 + node_modules/neo-async/omitLimit.js | 3 + node_modules/neo-async/omitSeries.js | 3 + node_modules/neo-async/package.json | 86 + node_modules/neo-async/parallel.js | 3 + node_modules/neo-async/parallelLimit.js | 3 + node_modules/neo-async/pick.js | 3 + node_modules/neo-async/pickLimit.js | 3 + node_modules/neo-async/pickSeries.js | 3 + node_modules/neo-async/priorityQueue.js | 3 + node_modules/neo-async/queue.js | 3 + node_modules/neo-async/race.js | 3 + node_modules/neo-async/reduce.js | 3 + node_modules/neo-async/reduceRight.js | 3 + node_modules/neo-async/reflect.js | 3 + node_modules/neo-async/reflectAll.js | 3 + node_modules/neo-async/reject.js | 3 + node_modules/neo-async/rejectLimit.js | 3 + node_modules/neo-async/rejectSeries.js | 3 + node_modules/neo-async/retry.js | 3 + node_modules/neo-async/retryable.js | 3 + node_modules/neo-async/safe.js | 3 + node_modules/neo-async/select.js | 3 + node_modules/neo-async/selectLimit.js | 3 + node_modules/neo-async/selectSeries.js | 3 + node_modules/neo-async/seq.js | 3 + node_modules/neo-async/series.js | 3 + node_modules/neo-async/setImmediate.js | 3 + node_modules/neo-async/some.js | 3 + node_modules/neo-async/someLimit.js | 3 + node_modules/neo-async/someSeries.js | 3 + node_modules/neo-async/sortBy.js | 3 + node_modules/neo-async/sortByLimit.js | 3 + node_modules/neo-async/sortBySeries.js | 3 + node_modules/neo-async/timeout.js | 3 + node_modules/neo-async/times.js | 3 + node_modules/neo-async/timesLimit.js | 3 + node_modules/neo-async/timesSeries.js | 3 + node_modules/neo-async/transform.js | 3 + node_modules/neo-async/transformLimit.js | 3 + node_modules/neo-async/transformSeries.js | 3 + node_modules/neo-async/tryEach.js | 3 + node_modules/neo-async/unmemoize.js | 3 + node_modules/neo-async/until.js | 3 + node_modules/neo-async/waterfall.js | 3 + node_modules/neo-async/whilst.js | 3 + node_modules/neo-async/wrapSync.js | 3 + node_modules/node-fetch/CHANGELOG.md | 266 + node_modules/node-fetch/LICENSE.md | 22 + node_modules/node-fetch/README.md | 583 ++ node_modules/node-fetch/browser.js | 23 + node_modules/node-fetch/lib/index.es.js | 1633 +++ node_modules/node-fetch/lib/index.js | 1642 +++ node_modules/node-fetch/lib/index.mjs | 1631 +++ node_modules/node-fetch/package.json | 93 + node_modules/oauth-sign/LICENSE | 55 + node_modules/oauth-sign/README.md | 11 + node_modules/oauth-sign/index.js | 146 + node_modules/oauth-sign/package.json | 59 + node_modules/on-finished/HISTORY.md | 88 + node_modules/on-finished/LICENSE | 23 + node_modules/on-finished/README.md | 154 + node_modules/on-finished/index.js | 196 + node_modules/on-finished/package.json | 70 + node_modules/once/LICENSE | 15 + node_modules/once/README.md | 79 + node_modules/once/once.js | 42 + node_modules/once/package.json | 67 + node_modules/optimist/.travis.yml | 4 + node_modules/optimist/LICENSE | 21 + node_modules/optimist/example/bool.js | 10 + .../optimist/example/boolean_double.js | 7 + .../optimist/example/boolean_single.js | 7 + node_modules/optimist/example/default_hash.js | 8 + .../optimist/example/default_singles.js | 7 + node_modules/optimist/example/divide.js | 8 + node_modules/optimist/example/line_count.js | 20 + .../optimist/example/line_count_options.js | 29 + .../optimist/example/line_count_wrap.js | 29 + node_modules/optimist/example/nonopt.js | 4 + node_modules/optimist/example/reflect.js | 2 + node_modules/optimist/example/short.js | 3 + node_modules/optimist/example/string.js | 11 + .../optimist/example/usage-options.js | 19 + node_modules/optimist/example/xup.js | 10 + node_modules/optimist/index.js | 343 + node_modules/optimist/package.json | 68 + node_modules/optimist/readme.markdown | 513 + node_modules/optimist/test/_.js | 71 + node_modules/optimist/test/_/argv.js | 2 + node_modules/optimist/test/_/bin.js | 3 + node_modules/optimist/test/dash.js | 31 + node_modules/optimist/test/parse.js | 446 + node_modules/optimist/test/parse_modified.js | 14 + node_modules/optimist/test/short.js | 16 + node_modules/optimist/test/usage.js | 292 + node_modules/optimist/test/whitespace.js | 8 + node_modules/parse-github-url/LICENSE | 21 + node_modules/parse-github-url/README.md | 844 ++ node_modules/parse-github-url/cli.js | 14 + node_modules/parse-github-url/index.js | 143 + node_modules/parse-github-url/package.json | 132 + node_modules/path-is-absolute/index.js | 20 + node_modules/path-is-absolute/license | 21 + node_modules/path-is-absolute/package.json | 75 + node_modules/path-is-absolute/readme.md | 59 + node_modules/path-to-regexp/History.md | 196 + node_modules/path-to-regexp/LICENSE | 21 + node_modules/path-to-regexp/Readme.md | 248 + node_modules/path-to-regexp/index.d.ts | 83 + node_modules/path-to-regexp/index.js | 367 + node_modules/path-to-regexp/package.json | 77 + node_modules/performance-now/.npmignore | 1 + node_modules/performance-now/.tm_properties | 7 + node_modules/performance-now/.travis.yml | 6 + node_modules/performance-now/README.md | 30 + .../performance-now/lib/performance-now.js | 36 + .../lib/performance-now.js.map | 10 + node_modules/performance-now/license.txt | 7 + node_modules/performance-now/package.json | 68 + node_modules/performance-now/src/index.d.ts | 8 + .../src/performance-now.coffee | 17 + node_modules/performance-now/test/mocha.opts | 3 + .../test/performance-now.coffee | 43 + .../performance-now/test/scripts.coffee | 27 + .../test/scripts/delayed-call.coffee | 11 + .../test/scripts/delayed-require.coffee | 12 + .../test/scripts/difference.coffee | 6 + .../test/scripts/initial-value.coffee | 10 + .../pino-std-serializers/.editorconfig | 13 + node_modules/pino-std-serializers/.travis.yml | 21 + node_modules/pino-std-serializers/LICENSE | 7 + node_modules/pino-std-serializers/Readme.md | 107 + node_modules/pino-std-serializers/index.js | 34 + node_modules/pino-std-serializers/lib/err.js | 64 + node_modules/pino-std-serializers/lib/req.js | 75 + node_modules/pino-std-serializers/lib/res.js | 47 + .../pino-std-serializers/package.json | 67 + .../pino-std-serializers/test/err.test.js | 106 + .../pino-std-serializers/test/req.test.js | 279 + .../pino-std-serializers/test/res.test.js | 89 + node_modules/pino/LICENSE | 24 + node_modules/pino/README.md | 151 + node_modules/pino/bin.js | 6 + node_modules/pino/browser.js | 325 + node_modules/pino/docs/api.md | 807 ++ node_modules/pino/docs/benchmarks.md | 58 + node_modules/pino/docs/browser.md | 199 + node_modules/pino/docs/child-loggers.md | 95 + node_modules/pino/docs/ecosystem.md | 72 + node_modules/pino/docs/extreme.md | 95 + node_modules/pino/docs/help.md | 215 + node_modules/pino/docs/legacy.md | 167 + node_modules/pino/docs/pretty.md | 89 + node_modules/pino/docs/redaction.md | 133 + node_modules/pino/docs/transports.md | 328 + node_modules/pino/docs/web.md | 192 + node_modules/pino/example.js | 35 + node_modules/pino/lib/levels.js | 166 + node_modules/pino/lib/meta.js | 7 + node_modules/pino/lib/proto.js | 143 + node_modules/pino/lib/redaction.js | 101 + node_modules/pino/lib/symbols.js | 58 + node_modules/pino/lib/time.js | 9 + node_modules/pino/lib/tools.js | 361 + node_modules/pino/package.json | 136 + node_modules/pino/pino.js | 132 + node_modules/pino/test/basic.test.js | 619 ++ node_modules/pino/test/broken-pipe.test.js | 42 + node_modules/pino/test/browser-levels.test.js | 218 + .../pino/test/browser-serializers.test.js | 318 + .../pino/test/browser-transmit.test.js | 349 + node_modules/pino/test/browser.test.js | 553 + node_modules/pino/test/crlf.test.js | 32 + node_modules/pino/test/custom-levels.test.js | 263 + node_modules/pino/test/error.test.js | 176 + node_modules/pino/test/escaping.test.js | 93 + node_modules/pino/test/exit.test.js | 53 + node_modules/pino/test/extreme.test.js | 125 + node_modules/pino/test/final.test.js | 182 + .../pino/test/fixtures/broken-pipe/basic.js | 9 + .../test/fixtures/broken-pipe/destination.js | 10 + .../pino/test/fixtures/broken-pipe/extreme.js | 12 + .../pino/test/fixtures/destination-exit.js | 8 + .../pino/test/fixtures/extreme-child.js | 6 + .../pino/test/fixtures/extreme-exit.js | 9 + .../pino/test/fixtures/extreme-flush-exit.js | 10 + node_modules/pino/test/fixtures/extreme.js | 6 + .../pino/test/fixtures/pretty/basic.js | 6 + .../pino/test/fixtures/pretty/child.js | 8 + .../pino/test/fixtures/pretty/custom-time.js | 9 + .../pino/test/fixtures/pretty/dateformat.js | 10 + .../pino/test/fixtures/pretty/error-props.js | 9 + .../pino/test/fixtures/pretty/error.js | 7 + .../fixtures/pretty/final-no-log-before.js | 8 + .../pino/test/fixtures/pretty/final-return.js | 7 + .../pino/test/fixtures/pretty/final.js | 9 + .../pino/test/fixtures/pretty/level-first.js | 6 + .../pino/test/fixtures/pretty/no-time.js | 9 + .../pino/test/fixtures/pretty/obj-msg-prop.js | 6 + .../test/fixtures/pretty/pretty-factory.js | 6 + .../pino/test/fixtures/pretty/redact.js | 9 + .../pino/test/fixtures/pretty/serializers.js | 17 + .../test/fixtures/pretty/skipped-output.js | 13 + .../test/fixtures/stdout-hack-protection.js | 11 + node_modules/pino/test/helper.js | 55 + node_modules/pino/test/http.test.js | 241 + .../pino/test/is-level-enabled.test.js | 43 + node_modules/pino/test/levels.test.js | 389 + node_modules/pino/test/metadata.test.js | 110 + node_modules/pino/test/pretty.test.js | 262 + node_modules/pino/test/redact.test.js | 627 ++ node_modules/pino/test/serializers.test.js | 219 + .../pino/test/stdout-protection.test.js | 19 + node_modules/pino/test/timestamp.test.js | 89 + node_modules/proxy-addr/HISTORY.md | 150 + node_modules/proxy-addr/LICENSE | 22 + node_modules/proxy-addr/README.md | 155 + node_modules/proxy-addr/index.js | 327 + node_modules/proxy-addr/package.json | 85 + node_modules/psl/.eslintignore | 1 + node_modules/psl/.eslintrc | 11 + node_modules/psl/.travis.yml | 6 + node_modules/psl/LICENSE | 9 + node_modules/psl/README.md | 213 + node_modules/psl/data/rules.json | 1 + node_modules/psl/dist/psl.js | 812 ++ node_modules/psl/dist/psl.min.js | 1 + node_modules/psl/index.js | 269 + node_modules/psl/karma.conf.js | 38 + node_modules/psl/package.json | 76 + node_modules/psl/yarn.lock | 3955 +++++++ node_modules/punycode/LICENSE-MIT.txt | 20 + node_modules/punycode/README.md | 122 + node_modules/punycode/package.json | 88 + node_modules/punycode/punycode.es6.js | 441 + node_modules/punycode/punycode.js | 440 + node_modules/qs/.editorconfig | 30 + node_modules/qs/.eslintignore | 1 + node_modules/qs/.eslintrc | 19 + node_modules/qs/CHANGELOG.md | 226 + node_modules/qs/LICENSE | 28 + node_modules/qs/README.md | 475 + node_modules/qs/dist/qs.js | 638 ++ node_modules/qs/lib/formats.js | 18 + node_modules/qs/lib/index.js | 11 + node_modules/qs/lib/parse.js | 174 + node_modules/qs/lib/stringify.js | 210 + node_modules/qs/lib/utils.js | 213 + node_modules/qs/package.json | 83 + node_modules/qs/test/.eslintrc | 15 + node_modules/qs/test/index.js | 7 + node_modules/qs/test/parse.js | 574 ++ node_modules/qs/test/stringify.js | 597 ++ node_modules/qs/test/utils.js | 34 + .../quick-format-unescaped/.travis.yml | 9 + node_modules/quick-format-unescaped/LICENSE | 21 + .../quick-format-unescaped/benchmark.js | 24 + node_modules/quick-format-unescaped/index.js | 105 + .../quick-format-unescaped/package.json | 57 + node_modules/quick-format-unescaped/readme.md | 66 + .../quick-format-unescaped/test/index.js | 78 + node_modules/range-parser/HISTORY.md | 56 + node_modules/range-parser/LICENSE | 23 + node_modules/range-parser/README.md | 84 + node_modules/range-parser/index.js | 162 + node_modules/range-parser/package.json | 90 + node_modules/readable-stream/CONTRIBUTING.md | 38 + node_modules/readable-stream/GOVERNANCE.md | 136 + node_modules/readable-stream/LICENSE | 47 + node_modules/readable-stream/README.md | 111 + .../readable-stream/errors-browser.js | 127 + node_modules/readable-stream/errors.js | 116 + .../readable-stream/experimentalWarning.js | 17 + .../readable-stream/lib/_stream_duplex.js | 139 + .../lib/_stream_passthrough.js | 39 + .../readable-stream/lib/_stream_readable.js | 1087 ++ .../readable-stream/lib/_stream_transform.js | 201 + .../readable-stream/lib/_stream_writable.js | 683 ++ .../lib/internal/streams/async_iterator.js | 207 + .../lib/internal/streams/buffer_list.js | 189 + .../lib/internal/streams/destroy.js | 85 + .../lib/internal/streams/end-of-stream.js | 104 + .../lib/internal/streams/pipeline.js | 97 + .../lib/internal/streams/state.js | 27 + .../lib/internal/streams/stream-browser.js | 1 + .../lib/internal/streams/stream.js | 1 + node_modules/readable-stream/package.json | 99 + .../readable-stream/readable-browser.js | 7 + node_modules/readable-stream/readable.js | 16 + node_modules/regenerator-runtime/LICENSE | 21 + node_modules/regenerator-runtime/README.md | 31 + node_modules/regenerator-runtime/package.json | 47 + node_modules/regenerator-runtime/path.js | 11 + node_modules/regenerator-runtime/runtime.js | 726 ++ node_modules/request/CHANGELOG.md | 709 ++ node_modules/request/LICENSE | 55 + node_modules/request/README.md | 1097 ++ node_modules/request/index.js | 155 + node_modules/request/lib/auth.js | 167 + node_modules/request/lib/cookies.js | 38 + node_modules/request/lib/getProxyFromURI.js | 79 + node_modules/request/lib/har.js | 205 + node_modules/request/lib/hawk.js | 89 + node_modules/request/lib/helpers.js | 66 + node_modules/request/lib/multipart.js | 112 + node_modules/request/lib/oauth.js | 148 + node_modules/request/lib/querystring.js | 50 + node_modules/request/lib/redirect.js | 154 + node_modules/request/lib/tunnel.js | 175 + node_modules/request/package.json | 118 + node_modules/request/request.js | 1551 +++ node_modules/ret/LICENSE | 21 + node_modules/ret/README.md | 179 + node_modules/ret/lib/index.js | 282 + node_modules/ret/lib/positions.js | 5 + node_modules/ret/lib/sets.js | 49 + node_modules/ret/lib/types.js | 10 + node_modules/ret/lib/util.js | 108 + node_modules/ret/package.json | 70 + node_modules/reusify/.coveralls.yml | 1 + node_modules/reusify/.travis.yml | 28 + node_modules/reusify/LICENSE | 22 + node_modules/reusify/README.md | 145 + .../benchmarks/createNoCodeFunction.js | 30 + node_modules/reusify/benchmarks/fib.js | 13 + .../reusify/benchmarks/reuseNoCodeFunction.js | 38 + node_modules/reusify/package.json | 77 + node_modules/reusify/reusify.js | 33 + node_modules/reusify/test.js | 66 + node_modules/rfdc/LICENSE | 15 + node_modules/rfdc/index.js | 147 + node_modules/rfdc/package.json | 94 + node_modules/rfdc/readme.md | 132 + node_modules/rfdc/test/index.js | 174 + node_modules/safe-buffer/LICENSE | 21 + node_modules/safe-buffer/README.md | 584 ++ node_modules/safe-buffer/index.d.ts | 187 + node_modules/safe-buffer/index.js | 62 + node_modules/safe-buffer/package.json | 67 + node_modules/safe-regex2/.travis.yml | 6 + node_modules/safe-regex2/LICENSE | 18 + node_modules/safe-regex2/example/safe.js | 3 + node_modules/safe-regex2/index.js | 48 + node_modules/safe-regex2/package.json | 71 + node_modules/safe-regex2/readme.markdown | 63 + node_modules/safe-regex2/test/regex.js | 49 + node_modules/safer-buffer/LICENSE | 21 + node_modules/safer-buffer/Porting-Buffer.md | 268 + node_modules/safer-buffer/Readme.md | 156 + node_modules/safer-buffer/dangerous.js | 58 + node_modules/safer-buffer/package.json | 65 + node_modules/safer-buffer/safer.js | 77 + node_modules/safer-buffer/tests.js | 406 + node_modules/secure-json-parse/.npmignore | 3 + node_modules/secure-json-parse/LICENSE.md | 15 + node_modules/secure-json-parse/README.md | 60 + node_modules/secure-json-parse/index.js | 80 + node_modules/secure-json-parse/package.json | 52 + node_modules/semver-store/.travis.yml | 11 + node_modules/semver-store/LICENSE | 21 + node_modules/semver-store/README.md | 44 + node_modules/semver-store/bench.js | 62 + node_modules/semver-store/index.js | 177 + node_modules/semver-store/package.json | 61 + node_modules/semver-store/test.js | 548 + node_modules/semver/CHANGELOG.md | 70 + node_modules/semver/LICENSE | 15 + node_modules/semver/README.md | 443 + node_modules/semver/bin/semver.js | 174 + node_modules/semver/package.json | 60 + node_modules/semver/range.bnf | 16 + node_modules/semver/semver.js | 1596 +++ node_modules/send/HISTORY.md | 462 + node_modules/send/LICENSE | 23 + node_modules/send/README.md | 306 + node_modules/send/index.js | 1130 ++ .../send/node_modules/debug/.coveralls.yml | 1 + .../send/node_modules/debug/.eslintrc | 11 + .../send/node_modules/debug/.npmignore | 9 + .../send/node_modules/debug/.travis.yml | 14 + .../send/node_modules/debug/CHANGELOG.md | 362 + node_modules/send/node_modules/debug/LICENSE | 19 + node_modules/send/node_modules/debug/Makefile | 50 + .../send/node_modules/debug/README.md | 312 + .../send/node_modules/debug/component.json | 19 + .../send/node_modules/debug/karma.conf.js | 70 + node_modules/send/node_modules/debug/node.js | 1 + .../send/node_modules/debug/package.json | 88 + .../send/node_modules/debug/src/browser.js | 185 + .../send/node_modules/debug/src/debug.js | 202 + .../send/node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/inspector-log.js | 15 + .../send/node_modules/debug/src/node.js | 248 + node_modules/send/node_modules/ms/index.js | 152 + node_modules/send/node_modules/ms/license.md | 21 + .../send/node_modules/ms/package.json | 70 + node_modules/send/node_modules/ms/readme.md | 51 + node_modules/send/package.json | 105 + node_modules/setprototypeof/LICENSE | 13 + node_modules/setprototypeof/README.md | 26 + node_modules/setprototypeof/index.d.ts | 2 + node_modules/setprototypeof/index.js | 15 + node_modules/setprototypeof/package.json | 52 + node_modules/sonic-boom/.travis.yml | 8 + node_modules/sonic-boom/LICENSE | 21 + node_modules/sonic-boom/README.md | 100 + node_modules/sonic-boom/bench.js | 63 + node_modules/sonic-boom/check.js | 18 + node_modules/sonic-boom/example.js | 8 + node_modules/sonic-boom/fixtures/firehose.js | 22 + node_modules/sonic-boom/index.js | 285 + node_modules/sonic-boom/package.json | 70 + node_modules/sonic-boom/test.js | 616 ++ node_modules/source-map/CHANGELOG.md | 301 + node_modules/source-map/LICENSE | 28 + node_modules/source-map/README.md | 742 ++ .../source-map/dist/source-map.debug.js | 3234 ++++++ node_modules/source-map/dist/source-map.js | 3233 ++++++ .../source-map/dist/source-map.min.js | 2 + .../source-map/dist/source-map.min.js.map | 1 + node_modules/source-map/lib/array-set.js | 121 + node_modules/source-map/lib/base64-vlq.js | 140 + node_modules/source-map/lib/base64.js | 67 + node_modules/source-map/lib/binary-search.js | 111 + node_modules/source-map/lib/mapping-list.js | 79 + node_modules/source-map/lib/quick-sort.js | 114 + .../source-map/lib/source-map-consumer.js | 1145 ++ .../source-map/lib/source-map-generator.js | 425 + node_modules/source-map/lib/source-node.js | 413 + node_modules/source-map/lib/util.js | 488 + node_modules/source-map/package.json | 213 + node_modules/source-map/source-map.d.ts | 98 + node_modules/source-map/source-map.js | 8 + node_modules/sshpk/.npmignore | 9 + node_modules/sshpk/.travis.yml | 11 + node_modules/sshpk/LICENSE | 18 + node_modules/sshpk/README.md | 804 ++ node_modules/sshpk/bin/sshpk-conv | 243 + node_modules/sshpk/bin/sshpk-sign | 191 + node_modules/sshpk/bin/sshpk-verify | 167 + node_modules/sshpk/lib/algs.js | 168 + node_modules/sshpk/lib/certificate.js | 410 + node_modules/sshpk/lib/dhe.js | 397 + node_modules/sshpk/lib/ed-compat.js | 92 + node_modules/sshpk/lib/errors.js | 84 + node_modules/sshpk/lib/fingerprint.js | 220 + node_modules/sshpk/lib/formats/auto.js | 124 + node_modules/sshpk/lib/formats/dnssec.js | 287 + .../sshpk/lib/formats/openssh-cert.js | 352 + node_modules/sshpk/lib/formats/pem.js | 290 + node_modules/sshpk/lib/formats/pkcs1.js | 373 + node_modules/sshpk/lib/formats/pkcs8.js | 631 ++ node_modules/sshpk/lib/formats/putty.js | 99 + node_modules/sshpk/lib/formats/rfc4253.js | 166 + node_modules/sshpk/lib/formats/ssh-private.js | 262 + node_modules/sshpk/lib/formats/ssh.js | 115 + node_modules/sshpk/lib/formats/x509-pem.js | 88 + node_modules/sshpk/lib/formats/x509.js | 752 ++ node_modules/sshpk/lib/identity.js | 373 + node_modules/sshpk/lib/index.js | 40 + node_modules/sshpk/lib/key.js | 294 + node_modules/sshpk/lib/private-key.js | 246 + node_modules/sshpk/lib/signature.js | 314 + node_modules/sshpk/lib/ssh-buffer.js | 149 + node_modules/sshpk/lib/utils.js | 404 + node_modules/sshpk/man/man1/sshpk-conv.1 | 135 + node_modules/sshpk/man/man1/sshpk-sign.1 | 81 + node_modules/sshpk/man/man1/sshpk-verify.1 | 68 + node_modules/sshpk/package.json | 99 + node_modules/statuses/HISTORY.md | 60 + node_modules/statuses/LICENSE | 23 + node_modules/statuses/README.md | 127 + node_modules/statuses/codes.json | 65 + node_modules/statuses/index.js | 113 + node_modules/statuses/package.json | 88 + node_modules/string_decoder/LICENSE | 48 + node_modules/string_decoder/README.md | 47 + .../string_decoder/lib/string_decoder.js | 296 + node_modules/string_decoder/package.json | 66 + node_modules/tiny-lru/LICENSE | 27 + node_modules/tiny-lru/README.md | 197 + node_modules/tiny-lru/lib/tiny-lru.es5.js | 196 + node_modules/tiny-lru/lib/tiny-lru.js | 169 + node_modules/tiny-lru/package.json | 78 + node_modules/tough-cookie/LICENSE | 12 + node_modules/tough-cookie/README.md | 507 + node_modules/tough-cookie/lib/cookie.js | 1431 +++ node_modules/tough-cookie/lib/memstore.js | 176 + node_modules/tough-cookie/lib/pathMatch.js | 61 + .../tough-cookie/lib/permuteDomain.js | 56 + .../tough-cookie/lib/pubsuffix-psl.js | 38 + node_modules/tough-cookie/lib/store.js | 71 + .../node_modules/punycode/LICENSE-MIT.txt | 20 + .../node_modules/punycode/README.md | 176 + .../node_modules/punycode/package.json | 90 + .../node_modules/punycode/punycode.js | 533 + node_modules/tough-cookie/package.json | 97 + node_modules/tunnel-agent/LICENSE | 55 + node_modules/tunnel-agent/README.md | 4 + node_modules/tunnel-agent/index.js | 244 + node_modules/tunnel-agent/package.json | 58 + node_modules/tweetnacl/.npmignore | 4 + node_modules/tweetnacl/AUTHORS.md | 28 + node_modules/tweetnacl/CHANGELOG.md | 221 + node_modules/tweetnacl/LICENSE | 24 + .../tweetnacl/PULL_REQUEST_TEMPLATE.md | 20 + node_modules/tweetnacl/README.md | 459 + node_modules/tweetnacl/nacl-fast.js | 2388 +++++ node_modules/tweetnacl/nacl-fast.min.js | 2 + node_modules/tweetnacl/nacl.d.ts | 98 + node_modules/tweetnacl/nacl.js | 1175 +++ node_modules/tweetnacl/nacl.min.js | 1 + node_modules/tweetnacl/package.json | 89 + node_modules/uglify-js/LICENSE | 29 + node_modules/uglify-js/README.md | 1138 ++ node_modules/uglify-js/bin/uglifyjs | 419 + node_modules/uglify-js/lib/ast.js | 988 ++ node_modules/uglify-js/lib/compress.js | 6927 +++++++++++++ node_modules/uglify-js/lib/minify.js | 245 + node_modules/uglify-js/lib/mozilla-ast.js | 629 ++ node_modules/uglify-js/lib/output.js | 1510 +++ node_modules/uglify-js/lib/parse.js | 1645 +++ node_modules/uglify-js/lib/propmangle.js | 234 + node_modules/uglify-js/lib/scope.js | 594 ++ node_modules/uglify-js/lib/sourcemap.js | 104 + node_modules/uglify-js/lib/transform.js | 185 + node_modules/uglify-js/lib/utils.js | 277 + node_modules/uglify-js/package.json | 103 + node_modules/uglify-js/tools/domprops.json | 6841 ++++++++++++ node_modules/uglify-js/tools/exit.js | 15 + node_modules/uglify-js/tools/exports.js | 6 + node_modules/uglify-js/tools/node.js | 78 + node_modules/uglify-js/tools/props.html | 540 + node_modules/uri-js/README.md | 199 + node_modules/uri-js/bower.json | 47 + node_modules/uri-js/dist/es5/uri.all.d.ts | 59 + node_modules/uri-js/dist/es5/uri.all.js | 1389 +++ node_modules/uri-js/dist/es5/uri.all.js.map | 1 + node_modules/uri-js/dist/es5/uri.all.min.d.ts | 59 + node_modules/uri-js/dist/es5/uri.all.min.js | 3 + .../uri-js/dist/es5/uri.all.min.js.map | 1 + node_modules/uri-js/dist/esnext/index.d.ts | 1 + node_modules/uri-js/dist/esnext/index.js | 13 + node_modules/uri-js/dist/esnext/index.js.map | 1 + .../uri-js/dist/esnext/regexps-iri.d.ts | 3 + .../uri-js/dist/esnext/regexps-iri.js | 3 + .../uri-js/dist/esnext/regexps-iri.js.map | 1 + .../uri-js/dist/esnext/regexps-uri.d.ts | 4 + .../uri-js/dist/esnext/regexps-uri.js | 42 + .../uri-js/dist/esnext/regexps-uri.js.map | 1 + .../uri-js/dist/esnext/schemes/http.d.ts | 3 + .../uri-js/dist/esnext/schemes/http.js | 27 + .../uri-js/dist/esnext/schemes/http.js.map | 1 + .../uri-js/dist/esnext/schemes/https.d.ts | 3 + .../uri-js/dist/esnext/schemes/https.js | 9 + .../uri-js/dist/esnext/schemes/https.js.map | 1 + .../uri-js/dist/esnext/schemes/mailto.d.ts | 12 + .../uri-js/dist/esnext/schemes/mailto.js | 148 + .../uri-js/dist/esnext/schemes/mailto.js.map | 1 + .../uri-js/dist/esnext/schemes/urn-uuid.d.ts | 7 + .../uri-js/dist/esnext/schemes/urn-uuid.js | 23 + .../dist/esnext/schemes/urn-uuid.js.map | 1 + .../uri-js/dist/esnext/schemes/urn.d.ts | 10 + .../uri-js/dist/esnext/schemes/urn.js | 49 + .../uri-js/dist/esnext/schemes/urn.js.map | 1 + node_modules/uri-js/dist/esnext/uri.d.ts | 59 + node_modules/uri-js/dist/esnext/uri.js | 480 + node_modules/uri-js/dist/esnext/uri.js.map | 1 + node_modules/uri-js/dist/esnext/util.d.ts | 6 + node_modules/uri-js/dist/esnext/util.js | 36 + node_modules/uri-js/dist/esnext/util.js.map | 1 + node_modules/uri-js/package.json | 96 + node_modules/uri-js/rollup.config.js | 32 + node_modules/uri-js/src/index.ts | 18 + node_modules/uri-js/src/punycode.d.ts | 24 + node_modules/uri-js/src/regexps-iri.ts | 4 + node_modules/uri-js/src/regexps-uri.ts | 89 + node_modules/uri-js/src/schemes/http.ts | 36 + node_modules/uri-js/src/schemes/https.ts | 11 + node_modules/uri-js/src/schemes/mailto.ts | 182 + node_modules/uri-js/src/schemes/urn-uuid.ts | 36 + node_modules/uri-js/src/schemes/urn.ts | 69 + node_modules/uri-js/src/uri.ts | 556 + node_modules/uri-js/src/util.ts | 40 + node_modules/uri-js/tests/qunit.css | 118 + node_modules/uri-js/tests/qunit.js | 1042 ++ node_modules/uri-js/tests/test-es5-min.html | 17 + node_modules/uri-js/tests/test-es5.html | 17 + node_modules/uri-js/tests/tests.js | 774 ++ node_modules/uri-js/tsconfig.json | 20 + node_modules/uri-js/yarn.lock | 1902 ++++ node_modules/util-deprecate/History.md | 16 + node_modules/util-deprecate/LICENSE | 24 + node_modules/util-deprecate/README.md | 53 + node_modules/util-deprecate/browser.js | 67 + node_modules/util-deprecate/node.js | 6 + node_modules/util-deprecate/package.json | 60 + node_modules/uuid/.eslintrc.json | 47 + node_modules/uuid/AUTHORS | 5 + node_modules/uuid/CHANGELOG.md | 110 + node_modules/uuid/LICENSE.md | 21 + node_modules/uuid/README.md | 293 + node_modules/uuid/README_js.md | 280 + node_modules/uuid/bin/uuid | 65 + node_modules/uuid/index.js | 8 + node_modules/uuid/lib/bytesToUuid.js | 24 + node_modules/uuid/lib/md5-browser.js | 216 + node_modules/uuid/lib/md5.js | 25 + node_modules/uuid/lib/rng-browser.js | 34 + node_modules/uuid/lib/rng.js | 8 + node_modules/uuid/lib/sha1-browser.js | 89 + node_modules/uuid/lib/sha1.js | 25 + node_modules/uuid/lib/v35.js | 57 + node_modules/uuid/package.json | 98 + node_modules/uuid/v1.js | 109 + node_modules/uuid/v3.js | 4 + node_modules/uuid/v4.js | 29 + node_modules/uuid/v5.js | 3 + node_modules/verror/.npmignore | 9 + node_modules/verror/CHANGES.md | 28 + node_modules/verror/CONTRIBUTING.md | 19 + node_modules/verror/LICENSE | 19 + node_modules/verror/README.md | 528 + node_modules/verror/lib/verror.js | 451 + node_modules/verror/package.json | 54 + node_modules/wordwrap/LICENSE | 18 + node_modules/wordwrap/README.markdown | 70 + node_modules/wordwrap/example/center.js | 10 + node_modules/wordwrap/example/meat.js | 3 + node_modules/wordwrap/index.js | 76 + node_modules/wordwrap/package.json | 66 + node_modules/wordwrap/test/break.js | 30 + node_modules/wordwrap/test/idleness.txt | 63 + node_modules/wordwrap/test/wrap.js | 31 + node_modules/wrappy/LICENSE | 15 + node_modules/wrappy/README.md | 36 + node_modules/wrappy/package.json | 59 + node_modules/wrappy/wrappy.js | 33 + package-lock.json | 1087 ++ package.json | 10 +- 3528 files changed, 329544 insertions(+), 13 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 changelog-template.hbs create mode 100644 hive/client/index.html create mode 120000 node_modules/.bin/auto-changelog create mode 120000 node_modules/.bin/handlebars create mode 120000 node_modules/.bin/mime create mode 120000 node_modules/.bin/parse-github-url create mode 120000 node_modules/.bin/pino create mode 120000 node_modules/.bin/semver create mode 120000 node_modules/.bin/sshpk-conv create mode 120000 node_modules/.bin/sshpk-sign create mode 120000 node_modules/.bin/sshpk-verify create mode 120000 node_modules/.bin/uglifyjs create mode 120000 node_modules/.bin/uuid create mode 100644 node_modules/abstract-logging/Readme.md create mode 100644 node_modules/abstract-logging/index.js create mode 100644 node_modules/abstract-logging/package.json create mode 100644 node_modules/ajv/.tonic_example.js create mode 100644 node_modules/ajv/LICENSE create mode 100644 node_modules/ajv/README.md create mode 100644 node_modules/ajv/dist/ajv.bundle.js create mode 100644 node_modules/ajv/dist/ajv.min.js create mode 100644 node_modules/ajv/dist/ajv.min.js.map create mode 100644 node_modules/ajv/lib/.DS_Store create mode 100644 node_modules/ajv/lib/ajv.d.ts create mode 100644 node_modules/ajv/lib/ajv.js create mode 100644 node_modules/ajv/lib/cache.js create mode 100644 node_modules/ajv/lib/compile/async.js create mode 100644 node_modules/ajv/lib/compile/equal.js create mode 100644 node_modules/ajv/lib/compile/error_classes.js create mode 100644 node_modules/ajv/lib/compile/formats.js create mode 100644 node_modules/ajv/lib/compile/index.js create mode 100644 node_modules/ajv/lib/compile/resolve.js create mode 100644 node_modules/ajv/lib/compile/rules.js create mode 100644 node_modules/ajv/lib/compile/schema_obj.js create mode 100644 node_modules/ajv/lib/compile/ucs2length.js create mode 100644 node_modules/ajv/lib/compile/util.js create mode 100644 node_modules/ajv/lib/data.js create mode 100644 node_modules/ajv/lib/dot/_limit.jst create mode 100644 node_modules/ajv/lib/dot/_limitItems.jst create mode 100644 node_modules/ajv/lib/dot/_limitLength.jst create mode 100644 node_modules/ajv/lib/dot/_limitProperties.jst create mode 100644 node_modules/ajv/lib/dot/allOf.jst create mode 100644 node_modules/ajv/lib/dot/anyOf.jst create mode 100644 node_modules/ajv/lib/dot/coerce.def create mode 100644 node_modules/ajv/lib/dot/comment.jst create mode 100644 node_modules/ajv/lib/dot/const.jst create mode 100644 node_modules/ajv/lib/dot/contains.jst create mode 100644 node_modules/ajv/lib/dot/custom.jst create mode 100644 node_modules/ajv/lib/dot/defaults.def create mode 100644 node_modules/ajv/lib/dot/definitions.def create mode 100644 node_modules/ajv/lib/dot/dependencies.jst create mode 100644 node_modules/ajv/lib/dot/enum.jst create mode 100644 node_modules/ajv/lib/dot/errors.def create mode 100644 node_modules/ajv/lib/dot/format.jst create mode 100644 node_modules/ajv/lib/dot/if.jst create mode 100644 node_modules/ajv/lib/dot/items.jst create mode 100644 node_modules/ajv/lib/dot/missing.def create mode 100644 node_modules/ajv/lib/dot/multipleOf.jst create mode 100644 node_modules/ajv/lib/dot/not.jst create mode 100644 node_modules/ajv/lib/dot/oneOf.jst create mode 100644 node_modules/ajv/lib/dot/pattern.jst create mode 100644 node_modules/ajv/lib/dot/properties.jst create mode 100644 node_modules/ajv/lib/dot/propertyNames.jst create mode 100644 node_modules/ajv/lib/dot/ref.jst create mode 100644 node_modules/ajv/lib/dot/required.jst create mode 100644 node_modules/ajv/lib/dot/uniqueItems.jst create mode 100644 node_modules/ajv/lib/dot/validate.jst create mode 100644 node_modules/ajv/lib/dotjs/README.md create mode 100644 node_modules/ajv/lib/dotjs/_limit.js create mode 100644 node_modules/ajv/lib/dotjs/_limitItems.js create mode 100644 node_modules/ajv/lib/dotjs/_limitLength.js create mode 100644 node_modules/ajv/lib/dotjs/_limitProperties.js create mode 100644 node_modules/ajv/lib/dotjs/allOf.js create mode 100644 node_modules/ajv/lib/dotjs/anyOf.js create mode 100644 node_modules/ajv/lib/dotjs/comment.js create mode 100644 node_modules/ajv/lib/dotjs/const.js create mode 100644 node_modules/ajv/lib/dotjs/contains.js create mode 100644 node_modules/ajv/lib/dotjs/custom.js create mode 100644 node_modules/ajv/lib/dotjs/dependencies.js create mode 100644 node_modules/ajv/lib/dotjs/enum.js create mode 100644 node_modules/ajv/lib/dotjs/format.js create mode 100644 node_modules/ajv/lib/dotjs/if.js create mode 100644 node_modules/ajv/lib/dotjs/index.js create mode 100644 node_modules/ajv/lib/dotjs/items.js create mode 100644 node_modules/ajv/lib/dotjs/multipleOf.js create mode 100644 node_modules/ajv/lib/dotjs/not.js create mode 100644 node_modules/ajv/lib/dotjs/oneOf.js create mode 100644 node_modules/ajv/lib/dotjs/pattern.js create mode 100644 node_modules/ajv/lib/dotjs/properties.js create mode 100644 node_modules/ajv/lib/dotjs/propertyNames.js create mode 100644 node_modules/ajv/lib/dotjs/ref.js create mode 100644 node_modules/ajv/lib/dotjs/required.js create mode 100644 node_modules/ajv/lib/dotjs/uniqueItems.js create mode 100644 node_modules/ajv/lib/dotjs/validate.js create mode 100644 node_modules/ajv/lib/keyword.js create mode 100644 node_modules/ajv/lib/refs/data.json create mode 100644 node_modules/ajv/lib/refs/json-schema-draft-04.json create mode 100644 node_modules/ajv/lib/refs/json-schema-draft-06.json create mode 100644 node_modules/ajv/lib/refs/json-schema-draft-07.json create mode 100644 node_modules/ajv/lib/refs/json-schema-secure.json create mode 100644 node_modules/ajv/package.json create mode 100644 node_modules/ajv/scripts/.eslintrc.yml create mode 100644 node_modules/ajv/scripts/bundle.js create mode 100644 node_modules/ajv/scripts/compile-dots.js create mode 100755 node_modules/ajv/scripts/info create mode 100755 node_modules/ajv/scripts/prepare-tests create mode 100755 node_modules/ajv/scripts/publish-built-version create mode 100755 node_modules/ajv/scripts/travis-gh-pages create mode 100644 node_modules/archy/.travis.yml create mode 100644 node_modules/archy/LICENSE create mode 100644 node_modules/archy/examples/beep.js create mode 100644 node_modules/archy/examples/multi_line.js create mode 100644 node_modules/archy/index.js create mode 100644 node_modules/archy/package.json create mode 100644 node_modules/archy/readme.markdown create mode 100644 node_modules/archy/test/beep.js create mode 100644 node_modules/archy/test/multi_line.js create mode 100644 node_modules/archy/test/non_unicode.js create mode 100644 node_modules/asn1/LICENSE create mode 100644 node_modules/asn1/README.md create mode 100644 node_modules/asn1/lib/ber/errors.js create mode 100644 node_modules/asn1/lib/ber/index.js create mode 100644 node_modules/asn1/lib/ber/reader.js create mode 100644 node_modules/asn1/lib/ber/types.js create mode 100644 node_modules/asn1/lib/ber/writer.js create mode 100644 node_modules/asn1/lib/index.js create mode 100644 node_modules/asn1/package.json create mode 100644 node_modules/assert-plus/AUTHORS create mode 100644 node_modules/assert-plus/CHANGES.md create mode 100644 node_modules/assert-plus/README.md create mode 100644 node_modules/assert-plus/assert.js create mode 100644 node_modules/assert-plus/package.json create mode 100644 node_modules/asynckit/LICENSE create mode 100644 node_modules/asynckit/README.md create mode 100644 node_modules/asynckit/bench.js create mode 100644 node_modules/asynckit/index.js create mode 100644 node_modules/asynckit/lib/abort.js create mode 100644 node_modules/asynckit/lib/async.js create mode 100644 node_modules/asynckit/lib/defer.js create mode 100644 node_modules/asynckit/lib/iterate.js create mode 100644 node_modules/asynckit/lib/readable_asynckit.js create mode 100644 node_modules/asynckit/lib/readable_parallel.js create mode 100644 node_modules/asynckit/lib/readable_serial.js create mode 100644 node_modules/asynckit/lib/readable_serial_ordered.js create mode 100644 node_modules/asynckit/lib/state.js create mode 100644 node_modules/asynckit/lib/streamify.js create mode 100644 node_modules/asynckit/lib/terminator.js create mode 100644 node_modules/asynckit/package.json create mode 100644 node_modules/asynckit/parallel.js create mode 100644 node_modules/asynckit/serial.js create mode 100644 node_modules/asynckit/serialOrdered.js create mode 100644 node_modules/asynckit/stream.js create mode 100644 node_modules/auto-changelog/.markdownlintrc create mode 100644 node_modules/auto-changelog/.travis.yml create mode 100644 node_modules/auto-changelog/CHANGELOG.md create mode 100644 node_modules/auto-changelog/LICENSE.md create mode 100644 node_modules/auto-changelog/README.md create mode 100644 node_modules/auto-changelog/codecov.yml create mode 100644 node_modules/auto-changelog/lib/commits.js create mode 100755 node_modules/auto-changelog/lib/index.js create mode 100644 node_modules/auto-changelog/lib/releases.js create mode 100644 node_modules/auto-changelog/lib/remote.js create mode 100644 node_modules/auto-changelog/lib/run.js create mode 100644 node_modules/auto-changelog/lib/template.js create mode 100644 node_modules/auto-changelog/lib/utils.js create mode 100644 node_modules/auto-changelog/node_modules/commander/CHANGELOG.md create mode 100644 node_modules/auto-changelog/node_modules/commander/LICENSE create mode 100644 node_modules/auto-changelog/node_modules/commander/Readme.md create mode 100644 node_modules/auto-changelog/node_modules/commander/index.js create mode 100644 node_modules/auto-changelog/node_modules/commander/package.json create mode 100644 node_modules/auto-changelog/node_modules/commander/typings/index.d.ts create mode 100644 node_modules/auto-changelog/package.json create mode 100644 node_modules/auto-changelog/scripts/generate-test-data.js create mode 100644 node_modules/auto-changelog/templates/compact.hbs create mode 100644 node_modules/auto-changelog/templates/json.hbs create mode 100644 node_modules/auto-changelog/templates/keepachangelog.hbs create mode 100644 node_modules/avvio/.github/tests_checker.yml create mode 100644 node_modules/avvio/.travis.yml create mode 100644 node_modules/avvio/LICENSE create mode 100644 node_modules/avvio/README.md create mode 100644 node_modules/avvio/boot.js create mode 100644 node_modules/avvio/example.js create mode 100644 node_modules/avvio/index.d.ts create mode 100644 node_modules/avvio/package.json create mode 100644 node_modules/avvio/plugin.js create mode 100644 node_modules/avvio/test/after-and-ready.test.js create mode 100644 node_modules/avvio/test/after-pass-through.test.js create mode 100644 node_modules/avvio/test/after-throw.test.js create mode 100644 node_modules/avvio/test/async-await.js create mode 100644 node_modules/avvio/test/async-await.test.js create mode 100644 node_modules/avvio/test/basic.test.js create mode 100644 node_modules/avvio/test/callbacks.test.js create mode 100644 node_modules/avvio/test/catch-override-exception.test.js create mode 100644 node_modules/avvio/test/chainable.test.js create mode 100644 node_modules/avvio/test/close.test.js create mode 100644 node_modules/avvio/test/events-listeners.test.js create mode 100644 node_modules/avvio/test/express.test.js create mode 100644 node_modules/avvio/test/fixtures/plugin-no-next.js create mode 100644 node_modules/avvio/test/override.test.js create mode 100644 node_modules/avvio/test/plugin-timeout.js create mode 100644 node_modules/avvio/test/pretty-print.test.js create mode 100644 node_modules/avvio/test/reentrant.test.js create mode 100644 node_modules/avvio/test/to-json.test.js create mode 100644 node_modules/avvio/test/twice-done.test.js create mode 100644 node_modules/avvio/test/types/index.ts create mode 100644 node_modules/avvio/test/types/tsconfig.json create mode 100644 node_modules/avvio/time-tree.js create mode 100644 node_modules/aws-sign2/LICENSE create mode 100644 node_modules/aws-sign2/README.md create mode 100644 node_modules/aws-sign2/index.js create mode 100644 node_modules/aws-sign2/package.json create mode 100644 node_modules/aws4/.travis.yml create mode 100644 node_modules/aws4/LICENSE create mode 100644 node_modules/aws4/README.md create mode 100644 node_modules/aws4/aws4.js create mode 100644 node_modules/aws4/lru.js create mode 100644 node_modules/aws4/package.json create mode 100644 node_modules/balanced-match/.npmignore create mode 100644 node_modules/balanced-match/LICENSE.md create mode 100644 node_modules/balanced-match/README.md create mode 100644 node_modules/balanced-match/index.js create mode 100644 node_modules/balanced-match/package.json create mode 100644 node_modules/bcrypt-pbkdf/CONTRIBUTING.md create mode 100644 node_modules/bcrypt-pbkdf/LICENSE create mode 100644 node_modules/bcrypt-pbkdf/README.md create mode 100644 node_modules/bcrypt-pbkdf/index.js create mode 100644 node_modules/bcrypt-pbkdf/package.json create mode 100644 node_modules/brace-expansion/LICENSE create mode 100644 node_modules/brace-expansion/README.md create mode 100644 node_modules/brace-expansion/index.js create mode 100644 node_modules/brace-expansion/package.json create mode 100644 node_modules/caseless/LICENSE create mode 100644 node_modules/caseless/README.md create mode 100644 node_modules/caseless/index.js create mode 100644 node_modules/caseless/package.json create mode 100644 node_modules/caseless/test.js create mode 100644 node_modules/combined-stream/License create mode 100644 node_modules/combined-stream/Readme.md create mode 100644 node_modules/combined-stream/lib/combined_stream.js create mode 100644 node_modules/combined-stream/package.json create mode 100644 node_modules/combined-stream/yarn.lock create mode 100644 node_modules/commander/CHANGELOG.md create mode 100644 node_modules/commander/LICENSE create mode 100644 node_modules/commander/Readme.md create mode 100644 node_modules/commander/index.js create mode 100644 node_modules/commander/package.json create mode 100644 node_modules/commander/typings/index.d.ts create mode 100644 node_modules/concat-map/.travis.yml create mode 100644 node_modules/concat-map/LICENSE create mode 100644 node_modules/concat-map/README.markdown create mode 100644 node_modules/concat-map/example/map.js create mode 100644 node_modules/concat-map/index.js create mode 100644 node_modules/concat-map/package.json create mode 100644 node_modules/concat-map/test/map.js create mode 100644 node_modules/convert-units/.travis.yml create mode 100644 node_modules/convert-units/Jakefile create mode 100644 node_modules/convert-units/LICENSE create mode 100644 node_modules/convert-units/README.md create mode 100644 node_modules/convert-units/lib/definitions/angle.js create mode 100644 node_modules/convert-units/lib/definitions/apparentPower.js create mode 100644 node_modules/convert-units/lib/definitions/area.js create mode 100644 node_modules/convert-units/lib/definitions/current.js create mode 100644 node_modules/convert-units/lib/definitions/digital.js create mode 100644 node_modules/convert-units/lib/definitions/each.js create mode 100644 node_modules/convert-units/lib/definitions/energy.js create mode 100644 node_modules/convert-units/lib/definitions/frequency.js create mode 100644 node_modules/convert-units/lib/definitions/illuminance.js create mode 100644 node_modules/convert-units/lib/definitions/length.js create mode 100644 node_modules/convert-units/lib/definitions/mass.js create mode 100644 node_modules/convert-units/lib/definitions/pace.js create mode 100644 node_modules/convert-units/lib/definitions/partsPer.js create mode 100644 node_modules/convert-units/lib/definitions/power.js create mode 100644 node_modules/convert-units/lib/definitions/pressure.js create mode 100644 node_modules/convert-units/lib/definitions/reactiveEnergy.js create mode 100644 node_modules/convert-units/lib/definitions/reactivePower.js create mode 100644 node_modules/convert-units/lib/definitions/speed.js create mode 100644 node_modules/convert-units/lib/definitions/temperature.js create mode 100644 node_modules/convert-units/lib/definitions/time.js create mode 100644 node_modules/convert-units/lib/definitions/voltage.js create mode 100644 node_modules/convert-units/lib/definitions/volume.js create mode 100644 node_modules/convert-units/lib/definitions/volumeFlowRate.js create mode 100644 node_modules/convert-units/lib/index.js create mode 100644 node_modules/convert-units/lib/percentError.js create mode 100644 node_modules/convert-units/package.json create mode 100644 node_modules/convert-units/test/angle.js create mode 100644 node_modules/convert-units/test/apparentPower.js create mode 100644 node_modules/convert-units/test/area.js create mode 100644 node_modules/convert-units/test/best.js create mode 100644 node_modules/convert-units/test/current.js create mode 100644 node_modules/convert-units/test/describe.js create mode 100644 node_modules/convert-units/test/digital.js create mode 100644 node_modules/convert-units/test/each.js create mode 100644 node_modules/convert-units/test/energy.js create mode 100644 node_modules/convert-units/test/frequency.js create mode 100644 node_modules/convert-units/test/illuminance.js create mode 100644 node_modules/convert-units/test/incompatibilities.js create mode 100644 node_modules/convert-units/test/lengths.js create mode 100644 node_modules/convert-units/test/list.js create mode 100644 node_modules/convert-units/test/masses.js create mode 100644 node_modules/convert-units/test/measures.js create mode 100644 node_modules/convert-units/test/pace.js create mode 100644 node_modules/convert-units/test/partsPer.js create mode 100644 node_modules/convert-units/test/possibilities.js create mode 100644 node_modules/convert-units/test/power.js create mode 100644 node_modules/convert-units/test/pressures.js create mode 100644 node_modules/convert-units/test/reactiveEnergy.js create mode 100644 node_modules/convert-units/test/reactivePower.js create mode 100644 node_modules/convert-units/test/speeds.js create mode 100644 node_modules/convert-units/test/temperature.js create mode 100644 node_modules/convert-units/test/times.js create mode 100644 node_modules/convert-units/test/voltage.js create mode 100644 node_modules/convert-units/test/volumeFlowRates.js create mode 100644 node_modules/convert-units/test/volumes.js create mode 100644 node_modules/convert-units/yarn.lock create mode 100644 node_modules/core-js/LICENSE create mode 100644 node_modules/core-js/README.md create mode 100644 node_modules/core-js/configurator.js create mode 100644 node_modules/core-js/es/README.md create mode 100644 node_modules/core-js/es/array-buffer/constructor.js create mode 100644 node_modules/core-js/es/array-buffer/index.js create mode 100644 node_modules/core-js/es/array-buffer/is-view.js create mode 100644 node_modules/core-js/es/array-buffer/slice.js create mode 100644 node_modules/core-js/es/array/concat.js create mode 100644 node_modules/core-js/es/array/copy-within.js create mode 100644 node_modules/core-js/es/array/entries.js create mode 100644 node_modules/core-js/es/array/every.js create mode 100644 node_modules/core-js/es/array/fill.js create mode 100644 node_modules/core-js/es/array/filter.js create mode 100644 node_modules/core-js/es/array/find-index.js create mode 100644 node_modules/core-js/es/array/find.js create mode 100644 node_modules/core-js/es/array/flat-map.js create mode 100644 node_modules/core-js/es/array/flat.js create mode 100644 node_modules/core-js/es/array/for-each.js create mode 100644 node_modules/core-js/es/array/from.js create mode 100644 node_modules/core-js/es/array/includes.js create mode 100644 node_modules/core-js/es/array/index-of.js create mode 100644 node_modules/core-js/es/array/index.js create mode 100644 node_modules/core-js/es/array/is-array.js create mode 100644 node_modules/core-js/es/array/iterator.js create mode 100644 node_modules/core-js/es/array/join.js create mode 100644 node_modules/core-js/es/array/keys.js create mode 100644 node_modules/core-js/es/array/last-index-of.js create mode 100644 node_modules/core-js/es/array/map.js create mode 100644 node_modules/core-js/es/array/of.js create mode 100644 node_modules/core-js/es/array/reduce-right.js create mode 100644 node_modules/core-js/es/array/reduce.js create mode 100644 node_modules/core-js/es/array/reverse.js create mode 100644 node_modules/core-js/es/array/slice.js create mode 100644 node_modules/core-js/es/array/some.js create mode 100644 node_modules/core-js/es/array/sort.js create mode 100644 node_modules/core-js/es/array/splice.js create mode 100644 node_modules/core-js/es/array/values.js create mode 100644 node_modules/core-js/es/array/virtual/concat.js create mode 100644 node_modules/core-js/es/array/virtual/copy-within.js create mode 100644 node_modules/core-js/es/array/virtual/entries.js create mode 100644 node_modules/core-js/es/array/virtual/every.js create mode 100644 node_modules/core-js/es/array/virtual/fill.js create mode 100644 node_modules/core-js/es/array/virtual/filter.js create mode 100644 node_modules/core-js/es/array/virtual/find-index.js create mode 100644 node_modules/core-js/es/array/virtual/find.js create mode 100644 node_modules/core-js/es/array/virtual/flat-map.js create mode 100644 node_modules/core-js/es/array/virtual/flat.js create mode 100644 node_modules/core-js/es/array/virtual/for-each.js create mode 100644 node_modules/core-js/es/array/virtual/includes.js create mode 100644 node_modules/core-js/es/array/virtual/index-of.js create mode 100644 node_modules/core-js/es/array/virtual/index.js create mode 100644 node_modules/core-js/es/array/virtual/iterator.js create mode 100644 node_modules/core-js/es/array/virtual/join.js create mode 100644 node_modules/core-js/es/array/virtual/keys.js create mode 100644 node_modules/core-js/es/array/virtual/last-index-of.js create mode 100644 node_modules/core-js/es/array/virtual/map.js create mode 100644 node_modules/core-js/es/array/virtual/reduce-right.js create mode 100644 node_modules/core-js/es/array/virtual/reduce.js create mode 100644 node_modules/core-js/es/array/virtual/reverse.js create mode 100644 node_modules/core-js/es/array/virtual/slice.js create mode 100644 node_modules/core-js/es/array/virtual/some.js create mode 100644 node_modules/core-js/es/array/virtual/sort.js create mode 100644 node_modules/core-js/es/array/virtual/splice.js create mode 100644 node_modules/core-js/es/array/virtual/values.js create mode 100644 node_modules/core-js/es/data-view/index.js create mode 100644 node_modules/core-js/es/date/index.js create mode 100644 node_modules/core-js/es/date/now.js create mode 100644 node_modules/core-js/es/date/to-iso-string.js create mode 100644 node_modules/core-js/es/date/to-json.js create mode 100644 node_modules/core-js/es/date/to-primitive.js create mode 100644 node_modules/core-js/es/date/to-string.js create mode 100644 node_modules/core-js/es/function/bind.js create mode 100644 node_modules/core-js/es/function/has-instance.js create mode 100644 node_modules/core-js/es/function/index.js create mode 100644 node_modules/core-js/es/function/name.js create mode 100644 node_modules/core-js/es/function/virtual/bind.js create mode 100644 node_modules/core-js/es/function/virtual/index.js create mode 100644 node_modules/core-js/es/index.js create mode 100644 node_modules/core-js/es/instance/bind.js create mode 100644 node_modules/core-js/es/instance/code-point-at.js create mode 100644 node_modules/core-js/es/instance/concat.js create mode 100644 node_modules/core-js/es/instance/copy-within.js create mode 100644 node_modules/core-js/es/instance/ends-with.js create mode 100644 node_modules/core-js/es/instance/entries.js create mode 100644 node_modules/core-js/es/instance/every.js create mode 100644 node_modules/core-js/es/instance/fill.js create mode 100644 node_modules/core-js/es/instance/filter.js create mode 100644 node_modules/core-js/es/instance/find-index.js create mode 100644 node_modules/core-js/es/instance/find.js create mode 100644 node_modules/core-js/es/instance/flags.js create mode 100644 node_modules/core-js/es/instance/flat-map.js create mode 100644 node_modules/core-js/es/instance/flat.js create mode 100644 node_modules/core-js/es/instance/for-each.js create mode 100644 node_modules/core-js/es/instance/includes.js create mode 100644 node_modules/core-js/es/instance/index-of.js create mode 100644 node_modules/core-js/es/instance/keys.js create mode 100644 node_modules/core-js/es/instance/last-index-of.js create mode 100644 node_modules/core-js/es/instance/map.js create mode 100644 node_modules/core-js/es/instance/match-all.js create mode 100644 node_modules/core-js/es/instance/pad-end.js create mode 100644 node_modules/core-js/es/instance/pad-start.js create mode 100644 node_modules/core-js/es/instance/reduce-right.js create mode 100644 node_modules/core-js/es/instance/reduce.js create mode 100644 node_modules/core-js/es/instance/repeat.js create mode 100644 node_modules/core-js/es/instance/reverse.js create mode 100644 node_modules/core-js/es/instance/slice.js create mode 100644 node_modules/core-js/es/instance/some.js create mode 100644 node_modules/core-js/es/instance/sort.js create mode 100644 node_modules/core-js/es/instance/splice.js create mode 100644 node_modules/core-js/es/instance/starts-with.js create mode 100644 node_modules/core-js/es/instance/trim-end.js create mode 100644 node_modules/core-js/es/instance/trim-left.js create mode 100644 node_modules/core-js/es/instance/trim-right.js create mode 100644 node_modules/core-js/es/instance/trim-start.js create mode 100644 node_modules/core-js/es/instance/trim.js create mode 100644 node_modules/core-js/es/instance/values.js create mode 100644 node_modules/core-js/es/json/index.js create mode 100644 node_modules/core-js/es/json/stringify.js create mode 100644 node_modules/core-js/es/json/to-string-tag.js create mode 100644 node_modules/core-js/es/map/index.js create mode 100644 node_modules/core-js/es/math/acosh.js create mode 100644 node_modules/core-js/es/math/asinh.js create mode 100644 node_modules/core-js/es/math/atanh.js create mode 100644 node_modules/core-js/es/math/cbrt.js create mode 100644 node_modules/core-js/es/math/clz32.js create mode 100644 node_modules/core-js/es/math/cosh.js create mode 100644 node_modules/core-js/es/math/expm1.js create mode 100644 node_modules/core-js/es/math/fround.js create mode 100644 node_modules/core-js/es/math/hypot.js create mode 100644 node_modules/core-js/es/math/imul.js create mode 100644 node_modules/core-js/es/math/index.js create mode 100644 node_modules/core-js/es/math/log10.js create mode 100644 node_modules/core-js/es/math/log1p.js create mode 100644 node_modules/core-js/es/math/log2.js create mode 100644 node_modules/core-js/es/math/sign.js create mode 100644 node_modules/core-js/es/math/sinh.js create mode 100644 node_modules/core-js/es/math/tanh.js create mode 100644 node_modules/core-js/es/math/to-string-tag.js create mode 100644 node_modules/core-js/es/math/trunc.js create mode 100644 node_modules/core-js/es/number/constructor.js create mode 100644 node_modules/core-js/es/number/epsilon.js create mode 100644 node_modules/core-js/es/number/index.js create mode 100644 node_modules/core-js/es/number/is-finite.js create mode 100644 node_modules/core-js/es/number/is-integer.js create mode 100644 node_modules/core-js/es/number/is-nan.js create mode 100644 node_modules/core-js/es/number/is-safe-integer.js create mode 100644 node_modules/core-js/es/number/max-safe-integer.js create mode 100644 node_modules/core-js/es/number/min-safe-integer.js create mode 100644 node_modules/core-js/es/number/parse-float.js create mode 100644 node_modules/core-js/es/number/parse-int.js create mode 100644 node_modules/core-js/es/number/to-fixed.js create mode 100644 node_modules/core-js/es/number/to-precision.js create mode 100644 node_modules/core-js/es/number/virtual/index.js create mode 100644 node_modules/core-js/es/number/virtual/to-fixed.js create mode 100644 node_modules/core-js/es/number/virtual/to-precision.js create mode 100644 node_modules/core-js/es/object/assign.js create mode 100644 node_modules/core-js/es/object/create.js create mode 100644 node_modules/core-js/es/object/define-getter.js create mode 100644 node_modules/core-js/es/object/define-properties.js create mode 100644 node_modules/core-js/es/object/define-property.js create mode 100644 node_modules/core-js/es/object/define-setter.js create mode 100644 node_modules/core-js/es/object/entries.js create mode 100644 node_modules/core-js/es/object/freeze.js create mode 100644 node_modules/core-js/es/object/from-entries.js create mode 100644 node_modules/core-js/es/object/get-own-property-descriptor.js create mode 100644 node_modules/core-js/es/object/get-own-property-descriptors.js create mode 100644 node_modules/core-js/es/object/get-own-property-names.js create mode 100644 node_modules/core-js/es/object/get-own-property-symbols.js create mode 100644 node_modules/core-js/es/object/get-prototype-of.js create mode 100644 node_modules/core-js/es/object/index.js create mode 100644 node_modules/core-js/es/object/is-extensible.js create mode 100644 node_modules/core-js/es/object/is-frozen.js create mode 100644 node_modules/core-js/es/object/is-sealed.js create mode 100644 node_modules/core-js/es/object/is.js create mode 100644 node_modules/core-js/es/object/keys.js create mode 100644 node_modules/core-js/es/object/lookup-getter.js create mode 100644 node_modules/core-js/es/object/lookup-setter.js create mode 100644 node_modules/core-js/es/object/prevent-extensions.js create mode 100644 node_modules/core-js/es/object/seal.js create mode 100644 node_modules/core-js/es/object/set-prototype-of.js create mode 100644 node_modules/core-js/es/object/to-string.js create mode 100644 node_modules/core-js/es/object/values.js create mode 100644 node_modules/core-js/es/parse-float.js create mode 100644 node_modules/core-js/es/parse-int.js create mode 100644 node_modules/core-js/es/promise/all-settled.js create mode 100644 node_modules/core-js/es/promise/finally.js create mode 100644 node_modules/core-js/es/promise/index.js create mode 100644 node_modules/core-js/es/reflect/apply.js create mode 100644 node_modules/core-js/es/reflect/construct.js create mode 100644 node_modules/core-js/es/reflect/define-property.js create mode 100644 node_modules/core-js/es/reflect/delete-property.js create mode 100644 node_modules/core-js/es/reflect/get-own-property-descriptor.js create mode 100644 node_modules/core-js/es/reflect/get-prototype-of.js create mode 100644 node_modules/core-js/es/reflect/get.js create mode 100644 node_modules/core-js/es/reflect/has.js create mode 100644 node_modules/core-js/es/reflect/index.js create mode 100644 node_modules/core-js/es/reflect/is-extensible.js create mode 100644 node_modules/core-js/es/reflect/own-keys.js create mode 100644 node_modules/core-js/es/reflect/prevent-extensions.js create mode 100644 node_modules/core-js/es/reflect/set-prototype-of.js create mode 100644 node_modules/core-js/es/reflect/set.js create mode 100644 node_modules/core-js/es/regexp/constructor.js create mode 100644 node_modules/core-js/es/regexp/flags.js create mode 100644 node_modules/core-js/es/regexp/index.js create mode 100644 node_modules/core-js/es/regexp/match.js create mode 100644 node_modules/core-js/es/regexp/replace.js create mode 100644 node_modules/core-js/es/regexp/search.js create mode 100644 node_modules/core-js/es/regexp/split.js create mode 100644 node_modules/core-js/es/regexp/to-string.js create mode 100644 node_modules/core-js/es/set/index.js create mode 100644 node_modules/core-js/es/string/anchor.js create mode 100644 node_modules/core-js/es/string/big.js create mode 100644 node_modules/core-js/es/string/blink.js create mode 100644 node_modules/core-js/es/string/bold.js create mode 100644 node_modules/core-js/es/string/code-point-at.js create mode 100644 node_modules/core-js/es/string/ends-with.js create mode 100644 node_modules/core-js/es/string/fixed.js create mode 100644 node_modules/core-js/es/string/fontcolor.js create mode 100644 node_modules/core-js/es/string/fontsize.js create mode 100644 node_modules/core-js/es/string/from-code-point.js create mode 100644 node_modules/core-js/es/string/includes.js create mode 100644 node_modules/core-js/es/string/index.js create mode 100644 node_modules/core-js/es/string/italics.js create mode 100644 node_modules/core-js/es/string/iterator.js create mode 100644 node_modules/core-js/es/string/link.js create mode 100644 node_modules/core-js/es/string/match-all.js create mode 100644 node_modules/core-js/es/string/match.js create mode 100644 node_modules/core-js/es/string/pad-end.js create mode 100644 node_modules/core-js/es/string/pad-start.js create mode 100644 node_modules/core-js/es/string/raw.js create mode 100644 node_modules/core-js/es/string/repeat.js create mode 100644 node_modules/core-js/es/string/replace.js create mode 100644 node_modules/core-js/es/string/search.js create mode 100644 node_modules/core-js/es/string/small.js create mode 100644 node_modules/core-js/es/string/split.js create mode 100644 node_modules/core-js/es/string/starts-with.js create mode 100644 node_modules/core-js/es/string/strike.js create mode 100644 node_modules/core-js/es/string/sub.js create mode 100644 node_modules/core-js/es/string/sup.js create mode 100644 node_modules/core-js/es/string/trim-end.js create mode 100644 node_modules/core-js/es/string/trim-left.js create mode 100644 node_modules/core-js/es/string/trim-right.js create mode 100644 node_modules/core-js/es/string/trim-start.js create mode 100644 node_modules/core-js/es/string/trim.js create mode 100644 node_modules/core-js/es/string/virtual/anchor.js create mode 100644 node_modules/core-js/es/string/virtual/big.js create mode 100644 node_modules/core-js/es/string/virtual/blink.js create mode 100644 node_modules/core-js/es/string/virtual/bold.js create mode 100644 node_modules/core-js/es/string/virtual/code-point-at.js create mode 100644 node_modules/core-js/es/string/virtual/ends-with.js create mode 100644 node_modules/core-js/es/string/virtual/fixed.js create mode 100644 node_modules/core-js/es/string/virtual/fontcolor.js create mode 100644 node_modules/core-js/es/string/virtual/fontsize.js create mode 100644 node_modules/core-js/es/string/virtual/includes.js create mode 100644 node_modules/core-js/es/string/virtual/index.js create mode 100644 node_modules/core-js/es/string/virtual/italics.js create mode 100644 node_modules/core-js/es/string/virtual/iterator.js create mode 100644 node_modules/core-js/es/string/virtual/link.js create mode 100644 node_modules/core-js/es/string/virtual/match-all.js create mode 100644 node_modules/core-js/es/string/virtual/pad-end.js create mode 100644 node_modules/core-js/es/string/virtual/pad-start.js create mode 100644 node_modules/core-js/es/string/virtual/repeat.js create mode 100644 node_modules/core-js/es/string/virtual/small.js create mode 100644 node_modules/core-js/es/string/virtual/starts-with.js create mode 100644 node_modules/core-js/es/string/virtual/strike.js create mode 100644 node_modules/core-js/es/string/virtual/sub.js create mode 100644 node_modules/core-js/es/string/virtual/sup.js create mode 100644 node_modules/core-js/es/string/virtual/trim-end.js create mode 100644 node_modules/core-js/es/string/virtual/trim-left.js create mode 100644 node_modules/core-js/es/string/virtual/trim-right.js create mode 100644 node_modules/core-js/es/string/virtual/trim-start.js create mode 100644 node_modules/core-js/es/string/virtual/trim.js create mode 100644 node_modules/core-js/es/symbol/async-iterator.js create mode 100644 node_modules/core-js/es/symbol/description.js create mode 100644 node_modules/core-js/es/symbol/for.js create mode 100644 node_modules/core-js/es/symbol/has-instance.js create mode 100644 node_modules/core-js/es/symbol/index.js create mode 100644 node_modules/core-js/es/symbol/is-concat-spreadable.js create mode 100644 node_modules/core-js/es/symbol/iterator.js create mode 100644 node_modules/core-js/es/symbol/key-for.js create mode 100644 node_modules/core-js/es/symbol/match-all.js create mode 100644 node_modules/core-js/es/symbol/match.js create mode 100644 node_modules/core-js/es/symbol/replace.js create mode 100644 node_modules/core-js/es/symbol/search.js create mode 100644 node_modules/core-js/es/symbol/species.js create mode 100644 node_modules/core-js/es/symbol/split.js create mode 100644 node_modules/core-js/es/symbol/to-primitive.js create mode 100644 node_modules/core-js/es/symbol/to-string-tag.js create mode 100644 node_modules/core-js/es/symbol/unscopables.js create mode 100644 node_modules/core-js/es/typed-array/copy-within.js create mode 100644 node_modules/core-js/es/typed-array/entries.js create mode 100644 node_modules/core-js/es/typed-array/every.js create mode 100644 node_modules/core-js/es/typed-array/fill.js create mode 100644 node_modules/core-js/es/typed-array/filter.js create mode 100644 node_modules/core-js/es/typed-array/find-index.js create mode 100644 node_modules/core-js/es/typed-array/find.js create mode 100644 node_modules/core-js/es/typed-array/float32-array.js create mode 100644 node_modules/core-js/es/typed-array/float64-array.js create mode 100644 node_modules/core-js/es/typed-array/for-each.js create mode 100644 node_modules/core-js/es/typed-array/from.js create mode 100644 node_modules/core-js/es/typed-array/includes.js create mode 100644 node_modules/core-js/es/typed-array/index-of.js create mode 100644 node_modules/core-js/es/typed-array/index.js create mode 100644 node_modules/core-js/es/typed-array/int16-array.js create mode 100644 node_modules/core-js/es/typed-array/int32-array.js create mode 100644 node_modules/core-js/es/typed-array/int8-array.js create mode 100644 node_modules/core-js/es/typed-array/iterator.js create mode 100644 node_modules/core-js/es/typed-array/join.js create mode 100644 node_modules/core-js/es/typed-array/keys.js create mode 100644 node_modules/core-js/es/typed-array/last-index-of.js create mode 100644 node_modules/core-js/es/typed-array/map.js create mode 100644 node_modules/core-js/es/typed-array/methods.js create mode 100644 node_modules/core-js/es/typed-array/of.js create mode 100644 node_modules/core-js/es/typed-array/reduce-right.js create mode 100644 node_modules/core-js/es/typed-array/reduce.js create mode 100644 node_modules/core-js/es/typed-array/reverse.js create mode 100644 node_modules/core-js/es/typed-array/set.js create mode 100644 node_modules/core-js/es/typed-array/slice.js create mode 100644 node_modules/core-js/es/typed-array/some.js create mode 100644 node_modules/core-js/es/typed-array/sort.js create mode 100644 node_modules/core-js/es/typed-array/subarray.js create mode 100644 node_modules/core-js/es/typed-array/to-locale-string.js create mode 100644 node_modules/core-js/es/typed-array/to-string.js create mode 100644 node_modules/core-js/es/typed-array/uint16-array.js create mode 100644 node_modules/core-js/es/typed-array/uint32-array.js create mode 100644 node_modules/core-js/es/typed-array/uint8-array.js create mode 100644 node_modules/core-js/es/typed-array/uint8-clamped-array.js create mode 100644 node_modules/core-js/es/typed-array/values.js create mode 100644 node_modules/core-js/es/weak-map/index.js create mode 100644 node_modules/core-js/es/weak-set/index.js create mode 100644 node_modules/core-js/features/README.md create mode 100644 node_modules/core-js/features/aggregate-error.js create mode 100644 node_modules/core-js/features/array-buffer/constructor.js create mode 100644 node_modules/core-js/features/array-buffer/index.js create mode 100644 node_modules/core-js/features/array-buffer/is-view.js create mode 100644 node_modules/core-js/features/array-buffer/slice.js create mode 100644 node_modules/core-js/features/array/concat.js create mode 100644 node_modules/core-js/features/array/copy-within.js create mode 100644 node_modules/core-js/features/array/entries.js create mode 100644 node_modules/core-js/features/array/every.js create mode 100644 node_modules/core-js/features/array/fill.js create mode 100644 node_modules/core-js/features/array/filter.js create mode 100644 node_modules/core-js/features/array/find-index.js create mode 100644 node_modules/core-js/features/array/find.js create mode 100644 node_modules/core-js/features/array/flat-map.js create mode 100644 node_modules/core-js/features/array/flat.js create mode 100644 node_modules/core-js/features/array/for-each.js create mode 100644 node_modules/core-js/features/array/from.js create mode 100644 node_modules/core-js/features/array/includes.js create mode 100644 node_modules/core-js/features/array/index-of.js create mode 100644 node_modules/core-js/features/array/index.js create mode 100644 node_modules/core-js/features/array/is-array.js create mode 100644 node_modules/core-js/features/array/is-template-object.js create mode 100644 node_modules/core-js/features/array/iterator.js create mode 100644 node_modules/core-js/features/array/join.js create mode 100644 node_modules/core-js/features/array/keys.js create mode 100644 node_modules/core-js/features/array/last-index-of.js create mode 100644 node_modules/core-js/features/array/last-index.js create mode 100644 node_modules/core-js/features/array/last-item.js create mode 100644 node_modules/core-js/features/array/map.js create mode 100644 node_modules/core-js/features/array/of.js create mode 100644 node_modules/core-js/features/array/reduce-right.js create mode 100644 node_modules/core-js/features/array/reduce.js create mode 100644 node_modules/core-js/features/array/reverse.js create mode 100644 node_modules/core-js/features/array/slice.js create mode 100644 node_modules/core-js/features/array/some.js create mode 100644 node_modules/core-js/features/array/sort.js create mode 100644 node_modules/core-js/features/array/splice.js create mode 100644 node_modules/core-js/features/array/values.js create mode 100644 node_modules/core-js/features/array/virtual/concat.js create mode 100644 node_modules/core-js/features/array/virtual/copy-within.js create mode 100644 node_modules/core-js/features/array/virtual/entries.js create mode 100644 node_modules/core-js/features/array/virtual/every.js create mode 100644 node_modules/core-js/features/array/virtual/fill.js create mode 100644 node_modules/core-js/features/array/virtual/filter.js create mode 100644 node_modules/core-js/features/array/virtual/find-index.js create mode 100644 node_modules/core-js/features/array/virtual/find.js create mode 100644 node_modules/core-js/features/array/virtual/flat-map.js create mode 100644 node_modules/core-js/features/array/virtual/flat.js create mode 100644 node_modules/core-js/features/array/virtual/for-each.js create mode 100644 node_modules/core-js/features/array/virtual/includes.js create mode 100644 node_modules/core-js/features/array/virtual/index-of.js create mode 100644 node_modules/core-js/features/array/virtual/index.js create mode 100644 node_modules/core-js/features/array/virtual/iterator.js create mode 100644 node_modules/core-js/features/array/virtual/join.js create mode 100644 node_modules/core-js/features/array/virtual/keys.js create mode 100644 node_modules/core-js/features/array/virtual/last-index-of.js create mode 100644 node_modules/core-js/features/array/virtual/map.js create mode 100644 node_modules/core-js/features/array/virtual/reduce-right.js create mode 100644 node_modules/core-js/features/array/virtual/reduce.js create mode 100644 node_modules/core-js/features/array/virtual/reverse.js create mode 100644 node_modules/core-js/features/array/virtual/slice.js create mode 100644 node_modules/core-js/features/array/virtual/some.js create mode 100644 node_modules/core-js/features/array/virtual/sort.js create mode 100644 node_modules/core-js/features/array/virtual/splice.js create mode 100644 node_modules/core-js/features/array/virtual/values.js create mode 100644 node_modules/core-js/features/clear-immediate.js create mode 100644 node_modules/core-js/features/composite-key.js create mode 100644 node_modules/core-js/features/composite-symbol.js create mode 100644 node_modules/core-js/features/data-view/index.js create mode 100644 node_modules/core-js/features/date/index.js create mode 100644 node_modules/core-js/features/date/now.js create mode 100644 node_modules/core-js/features/date/to-iso-string.js create mode 100644 node_modules/core-js/features/date/to-json.js create mode 100644 node_modules/core-js/features/date/to-primitive.js create mode 100644 node_modules/core-js/features/date/to-string.js create mode 100644 node_modules/core-js/features/dom-collections/for-each.js create mode 100644 node_modules/core-js/features/dom-collections/index.js create mode 100644 node_modules/core-js/features/dom-collections/iterator.js create mode 100644 node_modules/core-js/features/function/bind.js create mode 100644 node_modules/core-js/features/function/has-instance.js create mode 100644 node_modules/core-js/features/function/index.js create mode 100644 node_modules/core-js/features/function/name.js create mode 100644 node_modules/core-js/features/function/virtual/bind.js create mode 100644 node_modules/core-js/features/function/virtual/index.js create mode 100644 node_modules/core-js/features/get-iterator-method.js create mode 100644 node_modules/core-js/features/get-iterator.js create mode 100644 node_modules/core-js/features/global-this.js create mode 100644 node_modules/core-js/features/index.js create mode 100644 node_modules/core-js/features/instance/at.js create mode 100644 node_modules/core-js/features/instance/bind.js create mode 100644 node_modules/core-js/features/instance/code-point-at.js create mode 100644 node_modules/core-js/features/instance/code-points.js create mode 100644 node_modules/core-js/features/instance/concat.js create mode 100644 node_modules/core-js/features/instance/copy-within.js create mode 100644 node_modules/core-js/features/instance/ends-with.js create mode 100644 node_modules/core-js/features/instance/entries.js create mode 100644 node_modules/core-js/features/instance/every.js create mode 100644 node_modules/core-js/features/instance/fill.js create mode 100644 node_modules/core-js/features/instance/filter.js create mode 100644 node_modules/core-js/features/instance/find-index.js create mode 100644 node_modules/core-js/features/instance/find.js create mode 100644 node_modules/core-js/features/instance/flags.js create mode 100644 node_modules/core-js/features/instance/flat-map.js create mode 100644 node_modules/core-js/features/instance/flat.js create mode 100644 node_modules/core-js/features/instance/for-each.js create mode 100644 node_modules/core-js/features/instance/includes.js create mode 100644 node_modules/core-js/features/instance/index-of.js create mode 100644 node_modules/core-js/features/instance/keys.js create mode 100644 node_modules/core-js/features/instance/last-index-of.js create mode 100644 node_modules/core-js/features/instance/map.js create mode 100644 node_modules/core-js/features/instance/match-all.js create mode 100644 node_modules/core-js/features/instance/pad-end.js create mode 100644 node_modules/core-js/features/instance/pad-start.js create mode 100644 node_modules/core-js/features/instance/reduce-right.js create mode 100644 node_modules/core-js/features/instance/reduce.js create mode 100644 node_modules/core-js/features/instance/repeat.js create mode 100644 node_modules/core-js/features/instance/replace-all.js create mode 100644 node_modules/core-js/features/instance/reverse.js create mode 100644 node_modules/core-js/features/instance/slice.js create mode 100644 node_modules/core-js/features/instance/some.js create mode 100644 node_modules/core-js/features/instance/sort.js create mode 100644 node_modules/core-js/features/instance/splice.js create mode 100644 node_modules/core-js/features/instance/starts-with.js create mode 100644 node_modules/core-js/features/instance/trim-end.js create mode 100644 node_modules/core-js/features/instance/trim-left.js create mode 100644 node_modules/core-js/features/instance/trim-right.js create mode 100644 node_modules/core-js/features/instance/trim-start.js create mode 100644 node_modules/core-js/features/instance/trim.js create mode 100644 node_modules/core-js/features/instance/values.js create mode 100644 node_modules/core-js/features/is-iterable.js create mode 100644 node_modules/core-js/features/json/index.js create mode 100644 node_modules/core-js/features/json/stringify.js create mode 100644 node_modules/core-js/features/json/to-string-tag.js create mode 100644 node_modules/core-js/features/map/delete-all.js create mode 100644 node_modules/core-js/features/map/every.js create mode 100644 node_modules/core-js/features/map/filter.js create mode 100644 node_modules/core-js/features/map/find-key.js create mode 100644 node_modules/core-js/features/map/find.js create mode 100644 node_modules/core-js/features/map/from.js create mode 100644 node_modules/core-js/features/map/group-by.js create mode 100644 node_modules/core-js/features/map/includes.js create mode 100644 node_modules/core-js/features/map/index.js create mode 100644 node_modules/core-js/features/map/key-by.js create mode 100644 node_modules/core-js/features/map/key-of.js create mode 100644 node_modules/core-js/features/map/map-keys.js create mode 100644 node_modules/core-js/features/map/map-values.js create mode 100644 node_modules/core-js/features/map/merge.js create mode 100644 node_modules/core-js/features/map/of.js create mode 100644 node_modules/core-js/features/map/reduce.js create mode 100644 node_modules/core-js/features/map/some.js create mode 100644 node_modules/core-js/features/map/update-or-insert.js create mode 100644 node_modules/core-js/features/map/update.js create mode 100644 node_modules/core-js/features/math/acosh.js create mode 100644 node_modules/core-js/features/math/asinh.js create mode 100644 node_modules/core-js/features/math/atanh.js create mode 100644 node_modules/core-js/features/math/cbrt.js create mode 100644 node_modules/core-js/features/math/clamp.js create mode 100644 node_modules/core-js/features/math/clz32.js create mode 100644 node_modules/core-js/features/math/cosh.js create mode 100644 node_modules/core-js/features/math/deg-per-rad.js create mode 100644 node_modules/core-js/features/math/degrees.js create mode 100644 node_modules/core-js/features/math/expm1.js create mode 100644 node_modules/core-js/features/math/fround.js create mode 100644 node_modules/core-js/features/math/fscale.js create mode 100644 node_modules/core-js/features/math/hypot.js create mode 100644 node_modules/core-js/features/math/iaddh.js create mode 100644 node_modules/core-js/features/math/imul.js create mode 100644 node_modules/core-js/features/math/imulh.js create mode 100644 node_modules/core-js/features/math/index.js create mode 100644 node_modules/core-js/features/math/isubh.js create mode 100644 node_modules/core-js/features/math/log10.js create mode 100644 node_modules/core-js/features/math/log1p.js create mode 100644 node_modules/core-js/features/math/log2.js create mode 100644 node_modules/core-js/features/math/rad-per-deg.js create mode 100644 node_modules/core-js/features/math/radians.js create mode 100644 node_modules/core-js/features/math/scale.js create mode 100644 node_modules/core-js/features/math/seeded-prng.js create mode 100644 node_modules/core-js/features/math/sign.js create mode 100644 node_modules/core-js/features/math/signbit.js create mode 100644 node_modules/core-js/features/math/sinh.js create mode 100644 node_modules/core-js/features/math/tanh.js create mode 100644 node_modules/core-js/features/math/to-string-tag.js create mode 100644 node_modules/core-js/features/math/trunc.js create mode 100644 node_modules/core-js/features/math/umulh.js create mode 100644 node_modules/core-js/features/number/constructor.js create mode 100644 node_modules/core-js/features/number/epsilon.js create mode 100644 node_modules/core-js/features/number/from-string.js create mode 100644 node_modules/core-js/features/number/index.js create mode 100644 node_modules/core-js/features/number/is-finite.js create mode 100644 node_modules/core-js/features/number/is-integer.js create mode 100644 node_modules/core-js/features/number/is-nan.js create mode 100644 node_modules/core-js/features/number/is-safe-integer.js create mode 100644 node_modules/core-js/features/number/max-safe-integer.js create mode 100644 node_modules/core-js/features/number/min-safe-integer.js create mode 100644 node_modules/core-js/features/number/parse-float.js create mode 100644 node_modules/core-js/features/number/parse-int.js create mode 100644 node_modules/core-js/features/number/to-fixed.js create mode 100644 node_modules/core-js/features/number/to-precision.js create mode 100644 node_modules/core-js/features/number/virtual/index.js create mode 100644 node_modules/core-js/features/number/virtual/to-fixed.js create mode 100644 node_modules/core-js/features/number/virtual/to-precision.js create mode 100644 node_modules/core-js/features/object/assign.js create mode 100644 node_modules/core-js/features/object/create.js create mode 100644 node_modules/core-js/features/object/define-getter.js create mode 100644 node_modules/core-js/features/object/define-properties.js create mode 100644 node_modules/core-js/features/object/define-property.js create mode 100644 node_modules/core-js/features/object/define-setter.js create mode 100644 node_modules/core-js/features/object/entries.js create mode 100644 node_modules/core-js/features/object/freeze.js create mode 100644 node_modules/core-js/features/object/from-entries.js create mode 100644 node_modules/core-js/features/object/get-own-property-descriptor.js create mode 100644 node_modules/core-js/features/object/get-own-property-descriptors.js create mode 100644 node_modules/core-js/features/object/get-own-property-names.js create mode 100644 node_modules/core-js/features/object/get-own-property-symbols.js create mode 100644 node_modules/core-js/features/object/get-prototype-of.js create mode 100644 node_modules/core-js/features/object/index.js create mode 100644 node_modules/core-js/features/object/is-extensible.js create mode 100644 node_modules/core-js/features/object/is-frozen.js create mode 100644 node_modules/core-js/features/object/is-sealed.js create mode 100644 node_modules/core-js/features/object/is.js create mode 100644 node_modules/core-js/features/object/keys.js create mode 100644 node_modules/core-js/features/object/lookup-getter.js create mode 100644 node_modules/core-js/features/object/lookup-setter.js create mode 100644 node_modules/core-js/features/object/prevent-extensions.js create mode 100644 node_modules/core-js/features/object/seal.js create mode 100644 node_modules/core-js/features/object/set-prototype-of.js create mode 100644 node_modules/core-js/features/object/to-string.js create mode 100644 node_modules/core-js/features/object/values.js create mode 100644 node_modules/core-js/features/observable/index.js create mode 100644 node_modules/core-js/features/parse-float.js create mode 100644 node_modules/core-js/features/parse-int.js create mode 100644 node_modules/core-js/features/promise/all-settled.js create mode 100644 node_modules/core-js/features/promise/any.js create mode 100644 node_modules/core-js/features/promise/finally.js create mode 100644 node_modules/core-js/features/promise/index.js create mode 100644 node_modules/core-js/features/promise/try.js create mode 100644 node_modules/core-js/features/queue-microtask.js create mode 100644 node_modules/core-js/features/reflect/apply.js create mode 100644 node_modules/core-js/features/reflect/construct.js create mode 100644 node_modules/core-js/features/reflect/define-metadata.js create mode 100644 node_modules/core-js/features/reflect/define-property.js create mode 100644 node_modules/core-js/features/reflect/delete-metadata.js create mode 100644 node_modules/core-js/features/reflect/delete-property.js create mode 100644 node_modules/core-js/features/reflect/get-metadata-keys.js create mode 100644 node_modules/core-js/features/reflect/get-metadata.js create mode 100644 node_modules/core-js/features/reflect/get-own-metadata-keys.js create mode 100644 node_modules/core-js/features/reflect/get-own-metadata.js create mode 100644 node_modules/core-js/features/reflect/get-own-property-descriptor.js create mode 100644 node_modules/core-js/features/reflect/get-prototype-of.js create mode 100644 node_modules/core-js/features/reflect/get.js create mode 100644 node_modules/core-js/features/reflect/has-metadata.js create mode 100644 node_modules/core-js/features/reflect/has-own-metadata.js create mode 100644 node_modules/core-js/features/reflect/has.js create mode 100644 node_modules/core-js/features/reflect/index.js create mode 100644 node_modules/core-js/features/reflect/is-extensible.js create mode 100644 node_modules/core-js/features/reflect/metadata.js create mode 100644 node_modules/core-js/features/reflect/own-keys.js create mode 100644 node_modules/core-js/features/reflect/prevent-extensions.js create mode 100644 node_modules/core-js/features/reflect/set-prototype-of.js create mode 100644 node_modules/core-js/features/reflect/set.js create mode 100644 node_modules/core-js/features/regexp/constructor.js create mode 100644 node_modules/core-js/features/regexp/flags.js create mode 100644 node_modules/core-js/features/regexp/index.js create mode 100644 node_modules/core-js/features/regexp/match.js create mode 100644 node_modules/core-js/features/regexp/replace.js create mode 100644 node_modules/core-js/features/regexp/search.js create mode 100644 node_modules/core-js/features/regexp/split.js create mode 100644 node_modules/core-js/features/regexp/to-string.js create mode 100644 node_modules/core-js/features/set-immediate.js create mode 100644 node_modules/core-js/features/set-interval.js create mode 100644 node_modules/core-js/features/set-timeout.js create mode 100644 node_modules/core-js/features/set/add-all.js create mode 100644 node_modules/core-js/features/set/delete-all.js create mode 100644 node_modules/core-js/features/set/difference.js create mode 100644 node_modules/core-js/features/set/every.js create mode 100644 node_modules/core-js/features/set/filter.js create mode 100644 node_modules/core-js/features/set/find.js create mode 100644 node_modules/core-js/features/set/from.js create mode 100644 node_modules/core-js/features/set/index.js create mode 100644 node_modules/core-js/features/set/intersection.js create mode 100644 node_modules/core-js/features/set/is-disjoint-from.js create mode 100644 node_modules/core-js/features/set/is-subset-of.js create mode 100644 node_modules/core-js/features/set/is-superset-of.js create mode 100644 node_modules/core-js/features/set/join.js create mode 100644 node_modules/core-js/features/set/map.js create mode 100644 node_modules/core-js/features/set/of.js create mode 100644 node_modules/core-js/features/set/reduce.js create mode 100644 node_modules/core-js/features/set/some.js create mode 100644 node_modules/core-js/features/set/symmetric-difference.js create mode 100644 node_modules/core-js/features/set/union.js create mode 100644 node_modules/core-js/features/string/anchor.js create mode 100644 node_modules/core-js/features/string/at.js create mode 100644 node_modules/core-js/features/string/big.js create mode 100644 node_modules/core-js/features/string/blink.js create mode 100644 node_modules/core-js/features/string/bold.js create mode 100644 node_modules/core-js/features/string/code-point-at.js create mode 100644 node_modules/core-js/features/string/code-points.js create mode 100644 node_modules/core-js/features/string/ends-with.js create mode 100644 node_modules/core-js/features/string/fixed.js create mode 100644 node_modules/core-js/features/string/fontcolor.js create mode 100644 node_modules/core-js/features/string/fontsize.js create mode 100644 node_modules/core-js/features/string/from-code-point.js create mode 100644 node_modules/core-js/features/string/includes.js create mode 100644 node_modules/core-js/features/string/index.js create mode 100644 node_modules/core-js/features/string/italics.js create mode 100644 node_modules/core-js/features/string/iterator.js create mode 100644 node_modules/core-js/features/string/link.js create mode 100644 node_modules/core-js/features/string/match-all.js create mode 100644 node_modules/core-js/features/string/match.js create mode 100644 node_modules/core-js/features/string/pad-end.js create mode 100644 node_modules/core-js/features/string/pad-start.js create mode 100644 node_modules/core-js/features/string/raw.js create mode 100644 node_modules/core-js/features/string/repeat.js create mode 100644 node_modules/core-js/features/string/replace-all.js create mode 100644 node_modules/core-js/features/string/replace.js create mode 100644 node_modules/core-js/features/string/search.js create mode 100644 node_modules/core-js/features/string/small.js create mode 100644 node_modules/core-js/features/string/split.js create mode 100644 node_modules/core-js/features/string/starts-with.js create mode 100644 node_modules/core-js/features/string/strike.js create mode 100644 node_modules/core-js/features/string/sub.js create mode 100644 node_modules/core-js/features/string/sup.js create mode 100644 node_modules/core-js/features/string/trim-end.js create mode 100644 node_modules/core-js/features/string/trim-left.js create mode 100644 node_modules/core-js/features/string/trim-right.js create mode 100644 node_modules/core-js/features/string/trim-start.js create mode 100644 node_modules/core-js/features/string/trim.js create mode 100644 node_modules/core-js/features/string/virtual/anchor.js create mode 100644 node_modules/core-js/features/string/virtual/at.js create mode 100644 node_modules/core-js/features/string/virtual/big.js create mode 100644 node_modules/core-js/features/string/virtual/blink.js create mode 100644 node_modules/core-js/features/string/virtual/bold.js create mode 100644 node_modules/core-js/features/string/virtual/code-point-at.js create mode 100644 node_modules/core-js/features/string/virtual/code-points.js create mode 100644 node_modules/core-js/features/string/virtual/ends-with.js create mode 100644 node_modules/core-js/features/string/virtual/fixed.js create mode 100644 node_modules/core-js/features/string/virtual/fontcolor.js create mode 100644 node_modules/core-js/features/string/virtual/fontsize.js create mode 100644 node_modules/core-js/features/string/virtual/includes.js create mode 100644 node_modules/core-js/features/string/virtual/index.js create mode 100644 node_modules/core-js/features/string/virtual/italics.js create mode 100644 node_modules/core-js/features/string/virtual/iterator.js create mode 100644 node_modules/core-js/features/string/virtual/link.js create mode 100644 node_modules/core-js/features/string/virtual/match-all.js create mode 100644 node_modules/core-js/features/string/virtual/pad-end.js create mode 100644 node_modules/core-js/features/string/virtual/pad-start.js create mode 100644 node_modules/core-js/features/string/virtual/repeat.js create mode 100644 node_modules/core-js/features/string/virtual/replace-all.js create mode 100644 node_modules/core-js/features/string/virtual/small.js create mode 100644 node_modules/core-js/features/string/virtual/starts-with.js create mode 100644 node_modules/core-js/features/string/virtual/strike.js create mode 100644 node_modules/core-js/features/string/virtual/sub.js create mode 100644 node_modules/core-js/features/string/virtual/sup.js create mode 100644 node_modules/core-js/features/string/virtual/trim-end.js create mode 100644 node_modules/core-js/features/string/virtual/trim-left.js create mode 100644 node_modules/core-js/features/string/virtual/trim-right.js create mode 100644 node_modules/core-js/features/string/virtual/trim-start.js create mode 100644 node_modules/core-js/features/string/virtual/trim.js create mode 100644 node_modules/core-js/features/symbol/async-dispose.js create mode 100644 node_modules/core-js/features/symbol/async-iterator.js create mode 100644 node_modules/core-js/features/symbol/description.js create mode 100644 node_modules/core-js/features/symbol/dispose.js create mode 100644 node_modules/core-js/features/symbol/for.js create mode 100644 node_modules/core-js/features/symbol/has-instance.js create mode 100644 node_modules/core-js/features/symbol/index.js create mode 100644 node_modules/core-js/features/symbol/is-concat-spreadable.js create mode 100644 node_modules/core-js/features/symbol/iterator.js create mode 100644 node_modules/core-js/features/symbol/key-for.js create mode 100644 node_modules/core-js/features/symbol/match-all.js create mode 100644 node_modules/core-js/features/symbol/match.js create mode 100644 node_modules/core-js/features/symbol/observable.js create mode 100644 node_modules/core-js/features/symbol/pattern-match.js create mode 100644 node_modules/core-js/features/symbol/replace-all.js create mode 100644 node_modules/core-js/features/symbol/replace.js create mode 100644 node_modules/core-js/features/symbol/search.js create mode 100644 node_modules/core-js/features/symbol/species.js create mode 100644 node_modules/core-js/features/symbol/split.js create mode 100644 node_modules/core-js/features/symbol/to-primitive.js create mode 100644 node_modules/core-js/features/symbol/to-string-tag.js create mode 100644 node_modules/core-js/features/symbol/unscopables.js create mode 100644 node_modules/core-js/features/typed-array/copy-within.js create mode 100644 node_modules/core-js/features/typed-array/entries.js create mode 100644 node_modules/core-js/features/typed-array/every.js create mode 100644 node_modules/core-js/features/typed-array/fill.js create mode 100644 node_modules/core-js/features/typed-array/filter.js create mode 100644 node_modules/core-js/features/typed-array/find-index.js create mode 100644 node_modules/core-js/features/typed-array/find.js create mode 100644 node_modules/core-js/features/typed-array/float32-array.js create mode 100644 node_modules/core-js/features/typed-array/float64-array.js create mode 100644 node_modules/core-js/features/typed-array/for-each.js create mode 100644 node_modules/core-js/features/typed-array/from.js create mode 100644 node_modules/core-js/features/typed-array/includes.js create mode 100644 node_modules/core-js/features/typed-array/index-of.js create mode 100644 node_modules/core-js/features/typed-array/index.js create mode 100644 node_modules/core-js/features/typed-array/int16-array.js create mode 100644 node_modules/core-js/features/typed-array/int32-array.js create mode 100644 node_modules/core-js/features/typed-array/int8-array.js create mode 100644 node_modules/core-js/features/typed-array/iterator.js create mode 100644 node_modules/core-js/features/typed-array/join.js create mode 100644 node_modules/core-js/features/typed-array/keys.js create mode 100644 node_modules/core-js/features/typed-array/last-index-of.js create mode 100644 node_modules/core-js/features/typed-array/map.js create mode 100644 node_modules/core-js/features/typed-array/of.js create mode 100644 node_modules/core-js/features/typed-array/reduce-right.js create mode 100644 node_modules/core-js/features/typed-array/reduce.js create mode 100644 node_modules/core-js/features/typed-array/reverse.js create mode 100644 node_modules/core-js/features/typed-array/set.js create mode 100644 node_modules/core-js/features/typed-array/slice.js create mode 100644 node_modules/core-js/features/typed-array/some.js create mode 100644 node_modules/core-js/features/typed-array/sort.js create mode 100644 node_modules/core-js/features/typed-array/subarray.js create mode 100644 node_modules/core-js/features/typed-array/to-locale-string.js create mode 100644 node_modules/core-js/features/typed-array/to-string.js create mode 100644 node_modules/core-js/features/typed-array/uint16-array.js create mode 100644 node_modules/core-js/features/typed-array/uint32-array.js create mode 100644 node_modules/core-js/features/typed-array/uint8-array.js create mode 100644 node_modules/core-js/features/typed-array/uint8-clamped-array.js create mode 100644 node_modules/core-js/features/typed-array/values.js create mode 100644 node_modules/core-js/features/url-search-params/index.js create mode 100644 node_modules/core-js/features/url/index.js create mode 100644 node_modules/core-js/features/url/to-json.js create mode 100644 node_modules/core-js/features/weak-map/delete-all.js create mode 100644 node_modules/core-js/features/weak-map/from.js create mode 100644 node_modules/core-js/features/weak-map/index.js create mode 100644 node_modules/core-js/features/weak-map/of.js create mode 100644 node_modules/core-js/features/weak-set/add-all.js create mode 100644 node_modules/core-js/features/weak-set/delete-all.js create mode 100644 node_modules/core-js/features/weak-set/from.js create mode 100644 node_modules/core-js/features/weak-set/index.js create mode 100644 node_modules/core-js/features/weak-set/of.js create mode 100644 node_modules/core-js/index.js create mode 100644 node_modules/core-js/internals/README.md create mode 100644 node_modules/core-js/internals/a-function.js create mode 100644 node_modules/core-js/internals/a-possible-prototype.js create mode 100644 node_modules/core-js/internals/add-to-unscopables.js create mode 100644 node_modules/core-js/internals/advance-string-index.js create mode 100644 node_modules/core-js/internals/an-instance.js create mode 100644 node_modules/core-js/internals/an-object.js create mode 100644 node_modules/core-js/internals/array-buffer-view-core.js create mode 100644 node_modules/core-js/internals/array-buffer.js create mode 100644 node_modules/core-js/internals/array-copy-within.js create mode 100644 node_modules/core-js/internals/array-fill.js create mode 100644 node_modules/core-js/internals/array-for-each.js create mode 100644 node_modules/core-js/internals/array-from.js create mode 100644 node_modules/core-js/internals/array-includes.js create mode 100644 node_modules/core-js/internals/array-iteration.js create mode 100644 node_modules/core-js/internals/array-last-index-of.js create mode 100644 node_modules/core-js/internals/array-method-has-species-support.js create mode 100644 node_modules/core-js/internals/array-reduce.js create mode 100644 node_modules/core-js/internals/array-species-create.js create mode 100644 node_modules/core-js/internals/bind-context.js create mode 100644 node_modules/core-js/internals/call-with-safe-iteration-closing.js create mode 100644 node_modules/core-js/internals/check-correctness-of-iteration.js create mode 100644 node_modules/core-js/internals/classof-raw.js create mode 100644 node_modules/core-js/internals/classof.js create mode 100644 node_modules/core-js/internals/collection-add-all.js create mode 100644 node_modules/core-js/internals/collection-delete-all.js create mode 100644 node_modules/core-js/internals/collection-from.js create mode 100644 node_modules/core-js/internals/collection-of.js create mode 100644 node_modules/core-js/internals/collection-strong.js create mode 100644 node_modules/core-js/internals/collection-weak.js create mode 100644 node_modules/core-js/internals/collection.js create mode 100644 node_modules/core-js/internals/composite-key.js create mode 100644 node_modules/core-js/internals/copy-constructor-properties.js create mode 100644 node_modules/core-js/internals/correct-is-regexp-logic.js create mode 100644 node_modules/core-js/internals/correct-prototype-getter.js create mode 100644 node_modules/core-js/internals/create-html.js create mode 100644 node_modules/core-js/internals/create-iterator-constructor.js create mode 100644 node_modules/core-js/internals/create-property-descriptor.js create mode 100644 node_modules/core-js/internals/create-property.js create mode 100644 node_modules/core-js/internals/date-to-iso-string.js create mode 100644 node_modules/core-js/internals/date-to-primitive.js create mode 100644 node_modules/core-js/internals/define-iterator.js create mode 100644 node_modules/core-js/internals/define-well-known-symbol.js create mode 100644 node_modules/core-js/internals/descriptors.js create mode 100644 node_modules/core-js/internals/document-create-element.js create mode 100644 node_modules/core-js/internals/dom-iterables.js create mode 100644 node_modules/core-js/internals/entry-unbind.js create mode 100644 node_modules/core-js/internals/entry-virtual.js create mode 100644 node_modules/core-js/internals/enum-bug-keys.js create mode 100644 node_modules/core-js/internals/export.js create mode 100644 node_modules/core-js/internals/fails.js create mode 100644 node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js create mode 100644 node_modules/core-js/internals/flatten-into-array.js create mode 100644 node_modules/core-js/internals/forced-object-prototype-accessors-methods.js create mode 100644 node_modules/core-js/internals/forced-string-html-method.js create mode 100644 node_modules/core-js/internals/forced-string-trim-method.js create mode 100644 node_modules/core-js/internals/freezing.js create mode 100644 node_modules/core-js/internals/function-bind.js create mode 100644 node_modules/core-js/internals/function-to-string.js create mode 100644 node_modules/core-js/internals/get-built-in.js create mode 100644 node_modules/core-js/internals/get-iterator-method.js create mode 100644 node_modules/core-js/internals/get-iterator.js create mode 100644 node_modules/core-js/internals/get-map-iterator.js create mode 100644 node_modules/core-js/internals/get-set-iterator.js create mode 100644 node_modules/core-js/internals/global.js create mode 100644 node_modules/core-js/internals/has.js create mode 100644 node_modules/core-js/internals/hidden-keys.js create mode 100644 node_modules/core-js/internals/hide.js create mode 100644 node_modules/core-js/internals/host-report-errors.js create mode 100644 node_modules/core-js/internals/html.js create mode 100644 node_modules/core-js/internals/ie8-dom-define.js create mode 100644 node_modules/core-js/internals/indexed-object.js create mode 100644 node_modules/core-js/internals/inherit-if-required.js create mode 100644 node_modules/core-js/internals/internal-metadata.js create mode 100644 node_modules/core-js/internals/internal-state.js create mode 100644 node_modules/core-js/internals/is-array-iterator-method.js create mode 100644 node_modules/core-js/internals/is-array.js create mode 100644 node_modules/core-js/internals/is-forced.js create mode 100644 node_modules/core-js/internals/is-integer.js create mode 100644 node_modules/core-js/internals/is-iterable.js create mode 100644 node_modules/core-js/internals/is-object.js create mode 100644 node_modules/core-js/internals/is-pure.js create mode 100644 node_modules/core-js/internals/is-regexp.js create mode 100644 node_modules/core-js/internals/iterate.js create mode 100644 node_modules/core-js/internals/iterators-core.js create mode 100644 node_modules/core-js/internals/iterators.js create mode 100644 node_modules/core-js/internals/math-expm1.js create mode 100644 node_modules/core-js/internals/math-fround.js create mode 100644 node_modules/core-js/internals/math-log1p.js create mode 100644 node_modules/core-js/internals/math-scale.js create mode 100644 node_modules/core-js/internals/math-sign.js create mode 100644 node_modules/core-js/internals/microtask.js create mode 100644 node_modules/core-js/internals/native-promise-constructor.js create mode 100644 node_modules/core-js/internals/native-symbol.js create mode 100644 node_modules/core-js/internals/native-url.js create mode 100644 node_modules/core-js/internals/native-weak-map.js create mode 100644 node_modules/core-js/internals/new-promise-capability.js create mode 100644 node_modules/core-js/internals/not-a-regexp.js create mode 100644 node_modules/core-js/internals/number-is-finite.js create mode 100644 node_modules/core-js/internals/object-assign.js create mode 100644 node_modules/core-js/internals/object-create.js create mode 100644 node_modules/core-js/internals/object-define-properties.js create mode 100644 node_modules/core-js/internals/object-define-property.js create mode 100644 node_modules/core-js/internals/object-get-own-property-descriptor.js create mode 100644 node_modules/core-js/internals/object-get-own-property-names-external.js create mode 100644 node_modules/core-js/internals/object-get-own-property-names.js create mode 100644 node_modules/core-js/internals/object-get-own-property-symbols.js create mode 100644 node_modules/core-js/internals/object-get-prototype-of.js create mode 100644 node_modules/core-js/internals/object-keys-internal.js create mode 100644 node_modules/core-js/internals/object-keys.js create mode 100644 node_modules/core-js/internals/object-property-is-enumerable.js create mode 100644 node_modules/core-js/internals/object-set-prototype-of.js create mode 100644 node_modules/core-js/internals/object-to-array.js create mode 100644 node_modules/core-js/internals/object-to-string.js create mode 100644 node_modules/core-js/internals/own-keys.js create mode 100644 node_modules/core-js/internals/parse-float.js create mode 100644 node_modules/core-js/internals/parse-int.js create mode 100644 node_modules/core-js/internals/path.js create mode 100644 node_modules/core-js/internals/perform.js create mode 100644 node_modules/core-js/internals/promise-resolve.js create mode 100644 node_modules/core-js/internals/punycode-to-ascii.js create mode 100644 node_modules/core-js/internals/redefine-all.js create mode 100644 node_modules/core-js/internals/redefine.js create mode 100644 node_modules/core-js/internals/reflect-metadata.js create mode 100644 node_modules/core-js/internals/regexp-exec-abstract.js create mode 100644 node_modules/core-js/internals/regexp-exec.js create mode 100644 node_modules/core-js/internals/regexp-flags.js create mode 100644 node_modules/core-js/internals/require-object-coercible.js create mode 100644 node_modules/core-js/internals/same-value-zero.js create mode 100644 node_modules/core-js/internals/same-value.js create mode 100644 node_modules/core-js/internals/set-global.js create mode 100644 node_modules/core-js/internals/set-species.js create mode 100644 node_modules/core-js/internals/set-to-string-tag.js create mode 100644 node_modules/core-js/internals/shared-key.js create mode 100644 node_modules/core-js/internals/shared.js create mode 100644 node_modules/core-js/internals/sloppy-array-method.js create mode 100644 node_modules/core-js/internals/species-constructor.js create mode 100644 node_modules/core-js/internals/string-multibyte.js create mode 100644 node_modules/core-js/internals/string-pad.js create mode 100644 node_modules/core-js/internals/string-repeat.js create mode 100644 node_modules/core-js/internals/string-trim.js create mode 100644 node_modules/core-js/internals/task.js create mode 100644 node_modules/core-js/internals/this-number-value.js create mode 100644 node_modules/core-js/internals/to-absolute-index.js create mode 100644 node_modules/core-js/internals/to-index.js create mode 100644 node_modules/core-js/internals/to-indexed-object.js create mode 100644 node_modules/core-js/internals/to-integer.js create mode 100644 node_modules/core-js/internals/to-length.js create mode 100644 node_modules/core-js/internals/to-object.js create mode 100644 node_modules/core-js/internals/to-offset.js create mode 100644 node_modules/core-js/internals/to-primitive.js create mode 100644 node_modules/core-js/internals/typed-array-constructor.js create mode 100644 node_modules/core-js/internals/typed-array-from.js create mode 100644 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js create mode 100644 node_modules/core-js/internals/uid.js create mode 100644 node_modules/core-js/internals/user-agent.js create mode 100644 node_modules/core-js/internals/webkit-string-pad-bug.js create mode 100644 node_modules/core-js/internals/well-known-symbol.js create mode 100644 node_modules/core-js/internals/whitespaces.js create mode 100644 node_modules/core-js/internals/wrapped-well-known-symbol.js create mode 100644 node_modules/core-js/modules/README.md create mode 100644 node_modules/core-js/modules/es.array-buffer.constructor.js create mode 100644 node_modules/core-js/modules/es.array-buffer.is-view.js create mode 100644 node_modules/core-js/modules/es.array-buffer.slice.js create mode 100644 node_modules/core-js/modules/es.array.concat.js create mode 100644 node_modules/core-js/modules/es.array.copy-within.js create mode 100644 node_modules/core-js/modules/es.array.every.js create mode 100644 node_modules/core-js/modules/es.array.fill.js create mode 100644 node_modules/core-js/modules/es.array.filter.js create mode 100644 node_modules/core-js/modules/es.array.find-index.js create mode 100644 node_modules/core-js/modules/es.array.find.js create mode 100644 node_modules/core-js/modules/es.array.flat-map.js create mode 100644 node_modules/core-js/modules/es.array.flat.js create mode 100644 node_modules/core-js/modules/es.array.for-each.js create mode 100644 node_modules/core-js/modules/es.array.from.js create mode 100644 node_modules/core-js/modules/es.array.includes.js create mode 100644 node_modules/core-js/modules/es.array.index-of.js create mode 100644 node_modules/core-js/modules/es.array.is-array.js create mode 100644 node_modules/core-js/modules/es.array.iterator.js create mode 100644 node_modules/core-js/modules/es.array.join.js create mode 100644 node_modules/core-js/modules/es.array.last-index-of.js create mode 100644 node_modules/core-js/modules/es.array.map.js create mode 100644 node_modules/core-js/modules/es.array.of.js create mode 100644 node_modules/core-js/modules/es.array.reduce-right.js create mode 100644 node_modules/core-js/modules/es.array.reduce.js create mode 100644 node_modules/core-js/modules/es.array.reverse.js create mode 100644 node_modules/core-js/modules/es.array.slice.js create mode 100644 node_modules/core-js/modules/es.array.some.js create mode 100644 node_modules/core-js/modules/es.array.sort.js create mode 100644 node_modules/core-js/modules/es.array.species.js create mode 100644 node_modules/core-js/modules/es.array.splice.js create mode 100644 node_modules/core-js/modules/es.array.unscopables.flat-map.js create mode 100644 node_modules/core-js/modules/es.array.unscopables.flat.js create mode 100644 node_modules/core-js/modules/es.data-view.js create mode 100644 node_modules/core-js/modules/es.date.now.js create mode 100644 node_modules/core-js/modules/es.date.to-iso-string.js create mode 100644 node_modules/core-js/modules/es.date.to-json.js create mode 100644 node_modules/core-js/modules/es.date.to-primitive.js create mode 100644 node_modules/core-js/modules/es.date.to-string.js create mode 100644 node_modules/core-js/modules/es.function.bind.js create mode 100644 node_modules/core-js/modules/es.function.has-instance.js create mode 100644 node_modules/core-js/modules/es.function.name.js create mode 100644 node_modules/core-js/modules/es.json.to-string-tag.js create mode 100644 node_modules/core-js/modules/es.map.js create mode 100644 node_modules/core-js/modules/es.math.acosh.js create mode 100644 node_modules/core-js/modules/es.math.asinh.js create mode 100644 node_modules/core-js/modules/es.math.atanh.js create mode 100644 node_modules/core-js/modules/es.math.cbrt.js create mode 100644 node_modules/core-js/modules/es.math.clz32.js create mode 100644 node_modules/core-js/modules/es.math.cosh.js create mode 100644 node_modules/core-js/modules/es.math.expm1.js create mode 100644 node_modules/core-js/modules/es.math.fround.js create mode 100644 node_modules/core-js/modules/es.math.hypot.js create mode 100644 node_modules/core-js/modules/es.math.imul.js create mode 100644 node_modules/core-js/modules/es.math.log10.js create mode 100644 node_modules/core-js/modules/es.math.log1p.js create mode 100644 node_modules/core-js/modules/es.math.log2.js create mode 100644 node_modules/core-js/modules/es.math.sign.js create mode 100644 node_modules/core-js/modules/es.math.sinh.js create mode 100644 node_modules/core-js/modules/es.math.tanh.js create mode 100644 node_modules/core-js/modules/es.math.to-string-tag.js create mode 100644 node_modules/core-js/modules/es.math.trunc.js create mode 100644 node_modules/core-js/modules/es.number.constructor.js create mode 100644 node_modules/core-js/modules/es.number.epsilon.js create mode 100644 node_modules/core-js/modules/es.number.is-finite.js create mode 100644 node_modules/core-js/modules/es.number.is-integer.js create mode 100644 node_modules/core-js/modules/es.number.is-nan.js create mode 100644 node_modules/core-js/modules/es.number.is-safe-integer.js create mode 100644 node_modules/core-js/modules/es.number.max-safe-integer.js create mode 100644 node_modules/core-js/modules/es.number.min-safe-integer.js create mode 100644 node_modules/core-js/modules/es.number.parse-float.js create mode 100644 node_modules/core-js/modules/es.number.parse-int.js create mode 100644 node_modules/core-js/modules/es.number.to-fixed.js create mode 100644 node_modules/core-js/modules/es.number.to-precision.js create mode 100644 node_modules/core-js/modules/es.object.assign.js create mode 100644 node_modules/core-js/modules/es.object.create.js create mode 100644 node_modules/core-js/modules/es.object.define-getter.js create mode 100644 node_modules/core-js/modules/es.object.define-properties.js create mode 100644 node_modules/core-js/modules/es.object.define-property.js create mode 100644 node_modules/core-js/modules/es.object.define-setter.js create mode 100644 node_modules/core-js/modules/es.object.entries.js create mode 100644 node_modules/core-js/modules/es.object.freeze.js create mode 100644 node_modules/core-js/modules/es.object.from-entries.js create mode 100644 node_modules/core-js/modules/es.object.get-own-property-descriptor.js create mode 100644 node_modules/core-js/modules/es.object.get-own-property-descriptors.js create mode 100644 node_modules/core-js/modules/es.object.get-own-property-names.js create mode 100644 node_modules/core-js/modules/es.object.get-prototype-of.js create mode 100644 node_modules/core-js/modules/es.object.is-extensible.js create mode 100644 node_modules/core-js/modules/es.object.is-frozen.js create mode 100644 node_modules/core-js/modules/es.object.is-sealed.js create mode 100644 node_modules/core-js/modules/es.object.is.js create mode 100644 node_modules/core-js/modules/es.object.keys.js create mode 100644 node_modules/core-js/modules/es.object.lookup-getter.js create mode 100644 node_modules/core-js/modules/es.object.lookup-setter.js create mode 100644 node_modules/core-js/modules/es.object.prevent-extensions.js create mode 100644 node_modules/core-js/modules/es.object.seal.js create mode 100644 node_modules/core-js/modules/es.object.set-prototype-of.js create mode 100644 node_modules/core-js/modules/es.object.to-string.js create mode 100644 node_modules/core-js/modules/es.object.values.js create mode 100644 node_modules/core-js/modules/es.parse-float.js create mode 100644 node_modules/core-js/modules/es.parse-int.js create mode 100644 node_modules/core-js/modules/es.promise.all-settled.js create mode 100644 node_modules/core-js/modules/es.promise.finally.js create mode 100644 node_modules/core-js/modules/es.promise.js create mode 100644 node_modules/core-js/modules/es.reflect.apply.js create mode 100644 node_modules/core-js/modules/es.reflect.construct.js create mode 100644 node_modules/core-js/modules/es.reflect.define-property.js create mode 100644 node_modules/core-js/modules/es.reflect.delete-property.js create mode 100644 node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js create mode 100644 node_modules/core-js/modules/es.reflect.get-prototype-of.js create mode 100644 node_modules/core-js/modules/es.reflect.get.js create mode 100644 node_modules/core-js/modules/es.reflect.has.js create mode 100644 node_modules/core-js/modules/es.reflect.is-extensible.js create mode 100644 node_modules/core-js/modules/es.reflect.own-keys.js create mode 100644 node_modules/core-js/modules/es.reflect.prevent-extensions.js create mode 100644 node_modules/core-js/modules/es.reflect.set-prototype-of.js create mode 100644 node_modules/core-js/modules/es.reflect.set.js create mode 100644 node_modules/core-js/modules/es.regexp.constructor.js create mode 100644 node_modules/core-js/modules/es.regexp.exec.js create mode 100644 node_modules/core-js/modules/es.regexp.flags.js create mode 100644 node_modules/core-js/modules/es.regexp.to-string.js create mode 100644 node_modules/core-js/modules/es.set.js create mode 100644 node_modules/core-js/modules/es.string.anchor.js create mode 100644 node_modules/core-js/modules/es.string.big.js create mode 100644 node_modules/core-js/modules/es.string.blink.js create mode 100644 node_modules/core-js/modules/es.string.bold.js create mode 100644 node_modules/core-js/modules/es.string.code-point-at.js create mode 100644 node_modules/core-js/modules/es.string.ends-with.js create mode 100644 node_modules/core-js/modules/es.string.fixed.js create mode 100644 node_modules/core-js/modules/es.string.fontcolor.js create mode 100644 node_modules/core-js/modules/es.string.fontsize.js create mode 100644 node_modules/core-js/modules/es.string.from-code-point.js create mode 100644 node_modules/core-js/modules/es.string.includes.js create mode 100644 node_modules/core-js/modules/es.string.italics.js create mode 100644 node_modules/core-js/modules/es.string.iterator.js create mode 100644 node_modules/core-js/modules/es.string.link.js create mode 100644 node_modules/core-js/modules/es.string.match-all.js create mode 100644 node_modules/core-js/modules/es.string.match.js create mode 100644 node_modules/core-js/modules/es.string.pad-end.js create mode 100644 node_modules/core-js/modules/es.string.pad-start.js create mode 100644 node_modules/core-js/modules/es.string.raw.js create mode 100644 node_modules/core-js/modules/es.string.repeat.js create mode 100644 node_modules/core-js/modules/es.string.replace.js create mode 100644 node_modules/core-js/modules/es.string.search.js create mode 100644 node_modules/core-js/modules/es.string.small.js create mode 100644 node_modules/core-js/modules/es.string.split.js create mode 100644 node_modules/core-js/modules/es.string.starts-with.js create mode 100644 node_modules/core-js/modules/es.string.strike.js create mode 100644 node_modules/core-js/modules/es.string.sub.js create mode 100644 node_modules/core-js/modules/es.string.sup.js create mode 100644 node_modules/core-js/modules/es.string.trim-end.js create mode 100644 node_modules/core-js/modules/es.string.trim-start.js create mode 100644 node_modules/core-js/modules/es.string.trim.js create mode 100644 node_modules/core-js/modules/es.symbol.async-iterator.js create mode 100644 node_modules/core-js/modules/es.symbol.description.js create mode 100644 node_modules/core-js/modules/es.symbol.has-instance.js create mode 100644 node_modules/core-js/modules/es.symbol.is-concat-spreadable.js create mode 100644 node_modules/core-js/modules/es.symbol.iterator.js create mode 100644 node_modules/core-js/modules/es.symbol.js create mode 100644 node_modules/core-js/modules/es.symbol.match-all.js create mode 100644 node_modules/core-js/modules/es.symbol.match.js create mode 100644 node_modules/core-js/modules/es.symbol.replace.js create mode 100644 node_modules/core-js/modules/es.symbol.search.js create mode 100644 node_modules/core-js/modules/es.symbol.species.js create mode 100644 node_modules/core-js/modules/es.symbol.split.js create mode 100644 node_modules/core-js/modules/es.symbol.to-primitive.js create mode 100644 node_modules/core-js/modules/es.symbol.to-string-tag.js create mode 100644 node_modules/core-js/modules/es.symbol.unscopables.js create mode 100644 node_modules/core-js/modules/es.typed-array.copy-within.js create mode 100644 node_modules/core-js/modules/es.typed-array.every.js create mode 100644 node_modules/core-js/modules/es.typed-array.fill.js create mode 100644 node_modules/core-js/modules/es.typed-array.filter.js create mode 100644 node_modules/core-js/modules/es.typed-array.find-index.js create mode 100644 node_modules/core-js/modules/es.typed-array.find.js create mode 100644 node_modules/core-js/modules/es.typed-array.float32-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.float64-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.for-each.js create mode 100644 node_modules/core-js/modules/es.typed-array.from.js create mode 100644 node_modules/core-js/modules/es.typed-array.includes.js create mode 100644 node_modules/core-js/modules/es.typed-array.index-of.js create mode 100644 node_modules/core-js/modules/es.typed-array.int16-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.int32-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.int8-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.iterator.js create mode 100644 node_modules/core-js/modules/es.typed-array.join.js create mode 100644 node_modules/core-js/modules/es.typed-array.last-index-of.js create mode 100644 node_modules/core-js/modules/es.typed-array.map.js create mode 100644 node_modules/core-js/modules/es.typed-array.of.js create mode 100644 node_modules/core-js/modules/es.typed-array.reduce-right.js create mode 100644 node_modules/core-js/modules/es.typed-array.reduce.js create mode 100644 node_modules/core-js/modules/es.typed-array.reverse.js create mode 100644 node_modules/core-js/modules/es.typed-array.set.js create mode 100644 node_modules/core-js/modules/es.typed-array.slice.js create mode 100644 node_modules/core-js/modules/es.typed-array.some.js create mode 100644 node_modules/core-js/modules/es.typed-array.sort.js create mode 100644 node_modules/core-js/modules/es.typed-array.subarray.js create mode 100644 node_modules/core-js/modules/es.typed-array.to-locale-string.js create mode 100644 node_modules/core-js/modules/es.typed-array.to-string.js create mode 100644 node_modules/core-js/modules/es.typed-array.uint16-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.uint32-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.uint8-array.js create mode 100644 node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js create mode 100644 node_modules/core-js/modules/es.weak-map.js create mode 100644 node_modules/core-js/modules/es.weak-set.js create mode 100644 node_modules/core-js/modules/esnext.aggregate-error.js create mode 100644 node_modules/core-js/modules/esnext.array.is-template-object.js create mode 100644 node_modules/core-js/modules/esnext.array.last-index.js create mode 100644 node_modules/core-js/modules/esnext.array.last-item.js create mode 100644 node_modules/core-js/modules/esnext.composite-key.js create mode 100644 node_modules/core-js/modules/esnext.composite-symbol.js create mode 100644 node_modules/core-js/modules/esnext.global-this.js create mode 100644 node_modules/core-js/modules/esnext.map.delete-all.js create mode 100644 node_modules/core-js/modules/esnext.map.every.js create mode 100644 node_modules/core-js/modules/esnext.map.filter.js create mode 100644 node_modules/core-js/modules/esnext.map.find-key.js create mode 100644 node_modules/core-js/modules/esnext.map.find.js create mode 100644 node_modules/core-js/modules/esnext.map.from.js create mode 100644 node_modules/core-js/modules/esnext.map.group-by.js create mode 100644 node_modules/core-js/modules/esnext.map.includes.js create mode 100644 node_modules/core-js/modules/esnext.map.key-by.js create mode 100644 node_modules/core-js/modules/esnext.map.key-of.js create mode 100644 node_modules/core-js/modules/esnext.map.map-keys.js create mode 100644 node_modules/core-js/modules/esnext.map.map-values.js create mode 100644 node_modules/core-js/modules/esnext.map.merge.js create mode 100644 node_modules/core-js/modules/esnext.map.of.js create mode 100644 node_modules/core-js/modules/esnext.map.reduce.js create mode 100644 node_modules/core-js/modules/esnext.map.some.js create mode 100644 node_modules/core-js/modules/esnext.map.update-or-insert.js create mode 100644 node_modules/core-js/modules/esnext.map.update.js create mode 100644 node_modules/core-js/modules/esnext.math.clamp.js create mode 100644 node_modules/core-js/modules/esnext.math.deg-per-rad.js create mode 100644 node_modules/core-js/modules/esnext.math.degrees.js create mode 100644 node_modules/core-js/modules/esnext.math.fscale.js create mode 100644 node_modules/core-js/modules/esnext.math.iaddh.js create mode 100644 node_modules/core-js/modules/esnext.math.imulh.js create mode 100644 node_modules/core-js/modules/esnext.math.isubh.js create mode 100644 node_modules/core-js/modules/esnext.math.rad-per-deg.js create mode 100644 node_modules/core-js/modules/esnext.math.radians.js create mode 100644 node_modules/core-js/modules/esnext.math.scale.js create mode 100644 node_modules/core-js/modules/esnext.math.seeded-prng.js create mode 100644 node_modules/core-js/modules/esnext.math.signbit.js create mode 100644 node_modules/core-js/modules/esnext.math.umulh.js create mode 100644 node_modules/core-js/modules/esnext.number.from-string.js create mode 100644 node_modules/core-js/modules/esnext.observable.js create mode 100644 node_modules/core-js/modules/esnext.promise.all-settled.js create mode 100644 node_modules/core-js/modules/esnext.promise.any.js create mode 100644 node_modules/core-js/modules/esnext.promise.try.js create mode 100644 node_modules/core-js/modules/esnext.reflect.define-metadata.js create mode 100644 node_modules/core-js/modules/esnext.reflect.delete-metadata.js create mode 100644 node_modules/core-js/modules/esnext.reflect.get-metadata-keys.js create mode 100644 node_modules/core-js/modules/esnext.reflect.get-metadata.js create mode 100644 node_modules/core-js/modules/esnext.reflect.get-own-metadata-keys.js create mode 100644 node_modules/core-js/modules/esnext.reflect.get-own-metadata.js create mode 100644 node_modules/core-js/modules/esnext.reflect.has-metadata.js create mode 100644 node_modules/core-js/modules/esnext.reflect.has-own-metadata.js create mode 100644 node_modules/core-js/modules/esnext.reflect.metadata.js create mode 100644 node_modules/core-js/modules/esnext.set.add-all.js create mode 100644 node_modules/core-js/modules/esnext.set.delete-all.js create mode 100644 node_modules/core-js/modules/esnext.set.difference.js create mode 100644 node_modules/core-js/modules/esnext.set.every.js create mode 100644 node_modules/core-js/modules/esnext.set.filter.js create mode 100644 node_modules/core-js/modules/esnext.set.find.js create mode 100644 node_modules/core-js/modules/esnext.set.from.js create mode 100644 node_modules/core-js/modules/esnext.set.intersection.js create mode 100644 node_modules/core-js/modules/esnext.set.is-disjoint-from.js create mode 100644 node_modules/core-js/modules/esnext.set.is-subset-of.js create mode 100644 node_modules/core-js/modules/esnext.set.is-superset-of.js create mode 100644 node_modules/core-js/modules/esnext.set.join.js create mode 100644 node_modules/core-js/modules/esnext.set.map.js create mode 100644 node_modules/core-js/modules/esnext.set.of.js create mode 100644 node_modules/core-js/modules/esnext.set.reduce.js create mode 100644 node_modules/core-js/modules/esnext.set.some.js create mode 100644 node_modules/core-js/modules/esnext.set.symmetric-difference.js create mode 100644 node_modules/core-js/modules/esnext.set.union.js create mode 100644 node_modules/core-js/modules/esnext.string.at.js create mode 100644 node_modules/core-js/modules/esnext.string.code-points.js create mode 100644 node_modules/core-js/modules/esnext.string.match-all.js create mode 100644 node_modules/core-js/modules/esnext.string.replace-all.js create mode 100644 node_modules/core-js/modules/esnext.symbol.async-dispose.js create mode 100644 node_modules/core-js/modules/esnext.symbol.dispose.js create mode 100644 node_modules/core-js/modules/esnext.symbol.observable.js create mode 100644 node_modules/core-js/modules/esnext.symbol.pattern-match.js create mode 100644 node_modules/core-js/modules/esnext.symbol.replace-all.js create mode 100644 node_modules/core-js/modules/esnext.weak-map.delete-all.js create mode 100644 node_modules/core-js/modules/esnext.weak-map.from.js create mode 100644 node_modules/core-js/modules/esnext.weak-map.of.js create mode 100644 node_modules/core-js/modules/esnext.weak-set.add-all.js create mode 100644 node_modules/core-js/modules/esnext.weak-set.delete-all.js create mode 100644 node_modules/core-js/modules/esnext.weak-set.from.js create mode 100644 node_modules/core-js/modules/esnext.weak-set.of.js create mode 100644 node_modules/core-js/modules/web.dom-collections.for-each.js create mode 100644 node_modules/core-js/modules/web.dom-collections.iterator.js create mode 100644 node_modules/core-js/modules/web.immediate.js create mode 100644 node_modules/core-js/modules/web.queue-microtask.js create mode 100644 node_modules/core-js/modules/web.timers.js create mode 100644 node_modules/core-js/modules/web.url-search-params.js create mode 100644 node_modules/core-js/modules/web.url.js create mode 100644 node_modules/core-js/modules/web.url.to-json.js create mode 100644 node_modules/core-js/package.json create mode 100644 node_modules/core-js/proposals/array-is-template-object.js create mode 100644 node_modules/core-js/proposals/array-last.js create mode 100644 node_modules/core-js/proposals/collection-methods.js create mode 100644 node_modules/core-js/proposals/collection-of-from.js create mode 100644 node_modules/core-js/proposals/efficient-64-bit-arithmetic.js create mode 100644 node_modules/core-js/proposals/global-this.js create mode 100644 node_modules/core-js/proposals/index.js create mode 100644 node_modules/core-js/proposals/keys-composition.js create mode 100644 node_modules/core-js/proposals/map-update-or-insert.js create mode 100644 node_modules/core-js/proposals/math-extensions.js create mode 100644 node_modules/core-js/proposals/math-signbit.js create mode 100644 node_modules/core-js/proposals/number-from-string.js create mode 100644 node_modules/core-js/proposals/observable.js create mode 100644 node_modules/core-js/proposals/pattern-matching.js create mode 100644 node_modules/core-js/proposals/promise-all-settled.js create mode 100644 node_modules/core-js/proposals/promise-any.js create mode 100644 node_modules/core-js/proposals/promise-try.js create mode 100644 node_modules/core-js/proposals/reflect-metadata.js create mode 100644 node_modules/core-js/proposals/seeded-random.js create mode 100644 node_modules/core-js/proposals/set-methods.js create mode 100644 node_modules/core-js/proposals/string-at.js create mode 100644 node_modules/core-js/proposals/string-code-points.js create mode 100644 node_modules/core-js/proposals/string-match-all.js create mode 100644 node_modules/core-js/proposals/string-replace-all.js create mode 100644 node_modules/core-js/proposals/url.js create mode 100644 node_modules/core-js/proposals/using-statement.js create mode 100644 node_modules/core-js/scripts/postinstall.js create mode 100644 node_modules/core-js/stable/README.md create mode 100644 node_modules/core-js/stable/array-buffer/constructor.js create mode 100644 node_modules/core-js/stable/array-buffer/index.js create mode 100644 node_modules/core-js/stable/array-buffer/is-view.js create mode 100644 node_modules/core-js/stable/array-buffer/slice.js create mode 100644 node_modules/core-js/stable/array/concat.js create mode 100644 node_modules/core-js/stable/array/copy-within.js create mode 100644 node_modules/core-js/stable/array/entries.js create mode 100644 node_modules/core-js/stable/array/every.js create mode 100644 node_modules/core-js/stable/array/fill.js create mode 100644 node_modules/core-js/stable/array/filter.js create mode 100644 node_modules/core-js/stable/array/find-index.js create mode 100644 node_modules/core-js/stable/array/find.js create mode 100644 node_modules/core-js/stable/array/flat-map.js create mode 100644 node_modules/core-js/stable/array/flat.js create mode 100644 node_modules/core-js/stable/array/for-each.js create mode 100644 node_modules/core-js/stable/array/from.js create mode 100644 node_modules/core-js/stable/array/includes.js create mode 100644 node_modules/core-js/stable/array/index-of.js create mode 100644 node_modules/core-js/stable/array/index.js create mode 100644 node_modules/core-js/stable/array/is-array.js create mode 100644 node_modules/core-js/stable/array/iterator.js create mode 100644 node_modules/core-js/stable/array/join.js create mode 100644 node_modules/core-js/stable/array/keys.js create mode 100644 node_modules/core-js/stable/array/last-index-of.js create mode 100644 node_modules/core-js/stable/array/map.js create mode 100644 node_modules/core-js/stable/array/of.js create mode 100644 node_modules/core-js/stable/array/reduce-right.js create mode 100644 node_modules/core-js/stable/array/reduce.js create mode 100644 node_modules/core-js/stable/array/reverse.js create mode 100644 node_modules/core-js/stable/array/slice.js create mode 100644 node_modules/core-js/stable/array/some.js create mode 100644 node_modules/core-js/stable/array/sort.js create mode 100644 node_modules/core-js/stable/array/splice.js create mode 100644 node_modules/core-js/stable/array/values.js create mode 100644 node_modules/core-js/stable/array/virtual/concat.js create mode 100644 node_modules/core-js/stable/array/virtual/copy-within.js create mode 100644 node_modules/core-js/stable/array/virtual/entries.js create mode 100644 node_modules/core-js/stable/array/virtual/every.js create mode 100644 node_modules/core-js/stable/array/virtual/fill.js create mode 100644 node_modules/core-js/stable/array/virtual/filter.js create mode 100644 node_modules/core-js/stable/array/virtual/find-index.js create mode 100644 node_modules/core-js/stable/array/virtual/find.js create mode 100644 node_modules/core-js/stable/array/virtual/flat-map.js create mode 100644 node_modules/core-js/stable/array/virtual/flat.js create mode 100644 node_modules/core-js/stable/array/virtual/for-each.js create mode 100644 node_modules/core-js/stable/array/virtual/includes.js create mode 100644 node_modules/core-js/stable/array/virtual/index-of.js create mode 100644 node_modules/core-js/stable/array/virtual/index.js create mode 100644 node_modules/core-js/stable/array/virtual/iterator.js create mode 100644 node_modules/core-js/stable/array/virtual/join.js create mode 100644 node_modules/core-js/stable/array/virtual/keys.js create mode 100644 node_modules/core-js/stable/array/virtual/last-index-of.js create mode 100644 node_modules/core-js/stable/array/virtual/map.js create mode 100644 node_modules/core-js/stable/array/virtual/reduce-right.js create mode 100644 node_modules/core-js/stable/array/virtual/reduce.js create mode 100644 node_modules/core-js/stable/array/virtual/reverse.js create mode 100644 node_modules/core-js/stable/array/virtual/slice.js create mode 100644 node_modules/core-js/stable/array/virtual/some.js create mode 100644 node_modules/core-js/stable/array/virtual/sort.js create mode 100644 node_modules/core-js/stable/array/virtual/splice.js create mode 100644 node_modules/core-js/stable/array/virtual/values.js create mode 100644 node_modules/core-js/stable/clear-immediate.js create mode 100644 node_modules/core-js/stable/data-view/index.js create mode 100644 node_modules/core-js/stable/date/index.js create mode 100644 node_modules/core-js/stable/date/now.js create mode 100644 node_modules/core-js/stable/date/to-iso-string.js create mode 100644 node_modules/core-js/stable/date/to-json.js create mode 100644 node_modules/core-js/stable/date/to-primitive.js create mode 100644 node_modules/core-js/stable/date/to-string.js create mode 100644 node_modules/core-js/stable/dom-collections/for-each.js create mode 100644 node_modules/core-js/stable/dom-collections/index.js create mode 100644 node_modules/core-js/stable/dom-collections/iterator.js create mode 100644 node_modules/core-js/stable/function/bind.js create mode 100644 node_modules/core-js/stable/function/has-instance.js create mode 100644 node_modules/core-js/stable/function/index.js create mode 100644 node_modules/core-js/stable/function/name.js create mode 100644 node_modules/core-js/stable/function/virtual/bind.js create mode 100644 node_modules/core-js/stable/function/virtual/index.js create mode 100644 node_modules/core-js/stable/global-this.js create mode 100644 node_modules/core-js/stable/index.js create mode 100644 node_modules/core-js/stable/instance/bind.js create mode 100644 node_modules/core-js/stable/instance/code-point-at.js create mode 100644 node_modules/core-js/stable/instance/concat.js create mode 100644 node_modules/core-js/stable/instance/copy-within.js create mode 100644 node_modules/core-js/stable/instance/ends-with.js create mode 100644 node_modules/core-js/stable/instance/entries.js create mode 100644 node_modules/core-js/stable/instance/every.js create mode 100644 node_modules/core-js/stable/instance/fill.js create mode 100644 node_modules/core-js/stable/instance/filter.js create mode 100644 node_modules/core-js/stable/instance/find-index.js create mode 100644 node_modules/core-js/stable/instance/find.js create mode 100644 node_modules/core-js/stable/instance/flags.js create mode 100644 node_modules/core-js/stable/instance/flat-map.js create mode 100644 node_modules/core-js/stable/instance/flat.js create mode 100644 node_modules/core-js/stable/instance/for-each.js create mode 100644 node_modules/core-js/stable/instance/includes.js create mode 100644 node_modules/core-js/stable/instance/index-of.js create mode 100644 node_modules/core-js/stable/instance/keys.js create mode 100644 node_modules/core-js/stable/instance/last-index-of.js create mode 100644 node_modules/core-js/stable/instance/map.js create mode 100644 node_modules/core-js/stable/instance/match-all.js create mode 100644 node_modules/core-js/stable/instance/pad-end.js create mode 100644 node_modules/core-js/stable/instance/pad-start.js create mode 100644 node_modules/core-js/stable/instance/reduce-right.js create mode 100644 node_modules/core-js/stable/instance/reduce.js create mode 100644 node_modules/core-js/stable/instance/repeat.js create mode 100644 node_modules/core-js/stable/instance/reverse.js create mode 100644 node_modules/core-js/stable/instance/slice.js create mode 100644 node_modules/core-js/stable/instance/some.js create mode 100644 node_modules/core-js/stable/instance/sort.js create mode 100644 node_modules/core-js/stable/instance/splice.js create mode 100644 node_modules/core-js/stable/instance/starts-with.js create mode 100644 node_modules/core-js/stable/instance/trim-end.js create mode 100644 node_modules/core-js/stable/instance/trim-left.js create mode 100644 node_modules/core-js/stable/instance/trim-right.js create mode 100644 node_modules/core-js/stable/instance/trim-start.js create mode 100644 node_modules/core-js/stable/instance/trim.js create mode 100644 node_modules/core-js/stable/instance/values.js create mode 100644 node_modules/core-js/stable/json/index.js create mode 100644 node_modules/core-js/stable/json/stringify.js create mode 100644 node_modules/core-js/stable/json/to-string-tag.js create mode 100644 node_modules/core-js/stable/map/index.js create mode 100644 node_modules/core-js/stable/math/acosh.js create mode 100644 node_modules/core-js/stable/math/asinh.js create mode 100644 node_modules/core-js/stable/math/atanh.js create mode 100644 node_modules/core-js/stable/math/cbrt.js create mode 100644 node_modules/core-js/stable/math/clz32.js create mode 100644 node_modules/core-js/stable/math/cosh.js create mode 100644 node_modules/core-js/stable/math/expm1.js create mode 100644 node_modules/core-js/stable/math/fround.js create mode 100644 node_modules/core-js/stable/math/hypot.js create mode 100644 node_modules/core-js/stable/math/imul.js create mode 100644 node_modules/core-js/stable/math/index.js create mode 100644 node_modules/core-js/stable/math/log10.js create mode 100644 node_modules/core-js/stable/math/log1p.js create mode 100644 node_modules/core-js/stable/math/log2.js create mode 100644 node_modules/core-js/stable/math/sign.js create mode 100644 node_modules/core-js/stable/math/sinh.js create mode 100644 node_modules/core-js/stable/math/tanh.js create mode 100644 node_modules/core-js/stable/math/to-string-tag.js create mode 100644 node_modules/core-js/stable/math/trunc.js create mode 100644 node_modules/core-js/stable/number/constructor.js create mode 100644 node_modules/core-js/stable/number/epsilon.js create mode 100644 node_modules/core-js/stable/number/index.js create mode 100644 node_modules/core-js/stable/number/is-finite.js create mode 100644 node_modules/core-js/stable/number/is-integer.js create mode 100644 node_modules/core-js/stable/number/is-nan.js create mode 100644 node_modules/core-js/stable/number/is-safe-integer.js create mode 100644 node_modules/core-js/stable/number/max-safe-integer.js create mode 100644 node_modules/core-js/stable/number/min-safe-integer.js create mode 100644 node_modules/core-js/stable/number/parse-float.js create mode 100644 node_modules/core-js/stable/number/parse-int.js create mode 100644 node_modules/core-js/stable/number/to-fixed.js create mode 100644 node_modules/core-js/stable/number/to-precision.js create mode 100644 node_modules/core-js/stable/number/virtual/index.js create mode 100644 node_modules/core-js/stable/number/virtual/to-fixed.js create mode 100644 node_modules/core-js/stable/number/virtual/to-precision.js create mode 100644 node_modules/core-js/stable/object/assign.js create mode 100644 node_modules/core-js/stable/object/create.js create mode 100644 node_modules/core-js/stable/object/define-getter.js create mode 100644 node_modules/core-js/stable/object/define-properties.js create mode 100644 node_modules/core-js/stable/object/define-property.js create mode 100644 node_modules/core-js/stable/object/define-setter.js create mode 100644 node_modules/core-js/stable/object/entries.js create mode 100644 node_modules/core-js/stable/object/freeze.js create mode 100644 node_modules/core-js/stable/object/from-entries.js create mode 100644 node_modules/core-js/stable/object/get-own-property-descriptor.js create mode 100644 node_modules/core-js/stable/object/get-own-property-descriptors.js create mode 100644 node_modules/core-js/stable/object/get-own-property-names.js create mode 100644 node_modules/core-js/stable/object/get-own-property-symbols.js create mode 100644 node_modules/core-js/stable/object/get-prototype-of.js create mode 100644 node_modules/core-js/stable/object/index.js create mode 100644 node_modules/core-js/stable/object/is-extensible.js create mode 100644 node_modules/core-js/stable/object/is-frozen.js create mode 100644 node_modules/core-js/stable/object/is-sealed.js create mode 100644 node_modules/core-js/stable/object/is.js create mode 100644 node_modules/core-js/stable/object/keys.js create mode 100644 node_modules/core-js/stable/object/lookup-getter.js create mode 100644 node_modules/core-js/stable/object/lookup-setter.js create mode 100644 node_modules/core-js/stable/object/prevent-extensions.js create mode 100644 node_modules/core-js/stable/object/seal.js create mode 100644 node_modules/core-js/stable/object/set-prototype-of.js create mode 100644 node_modules/core-js/stable/object/to-string.js create mode 100644 node_modules/core-js/stable/object/values.js create mode 100644 node_modules/core-js/stable/parse-float.js create mode 100644 node_modules/core-js/stable/parse-int.js create mode 100644 node_modules/core-js/stable/promise/all-settled.js create mode 100644 node_modules/core-js/stable/promise/finally.js create mode 100644 node_modules/core-js/stable/promise/index.js create mode 100644 node_modules/core-js/stable/queue-microtask.js create mode 100644 node_modules/core-js/stable/reflect/apply.js create mode 100644 node_modules/core-js/stable/reflect/construct.js create mode 100644 node_modules/core-js/stable/reflect/define-property.js create mode 100644 node_modules/core-js/stable/reflect/delete-property.js create mode 100644 node_modules/core-js/stable/reflect/get-own-property-descriptor.js create mode 100644 node_modules/core-js/stable/reflect/get-prototype-of.js create mode 100644 node_modules/core-js/stable/reflect/get.js create mode 100644 node_modules/core-js/stable/reflect/has.js create mode 100644 node_modules/core-js/stable/reflect/index.js create mode 100644 node_modules/core-js/stable/reflect/is-extensible.js create mode 100644 node_modules/core-js/stable/reflect/own-keys.js create mode 100644 node_modules/core-js/stable/reflect/prevent-extensions.js create mode 100644 node_modules/core-js/stable/reflect/set-prototype-of.js create mode 100644 node_modules/core-js/stable/reflect/set.js create mode 100644 node_modules/core-js/stable/regexp/constructor.js create mode 100644 node_modules/core-js/stable/regexp/flags.js create mode 100644 node_modules/core-js/stable/regexp/index.js create mode 100644 node_modules/core-js/stable/regexp/match.js create mode 100644 node_modules/core-js/stable/regexp/replace.js create mode 100644 node_modules/core-js/stable/regexp/search.js create mode 100644 node_modules/core-js/stable/regexp/split.js create mode 100644 node_modules/core-js/stable/regexp/to-string.js create mode 100644 node_modules/core-js/stable/set-immediate.js create mode 100644 node_modules/core-js/stable/set-interval.js create mode 100644 node_modules/core-js/stable/set-timeout.js create mode 100644 node_modules/core-js/stable/set/index.js create mode 100644 node_modules/core-js/stable/string/anchor.js create mode 100644 node_modules/core-js/stable/string/big.js create mode 100644 node_modules/core-js/stable/string/blink.js create mode 100644 node_modules/core-js/stable/string/bold.js create mode 100644 node_modules/core-js/stable/string/code-point-at.js create mode 100644 node_modules/core-js/stable/string/ends-with.js create mode 100644 node_modules/core-js/stable/string/fixed.js create mode 100644 node_modules/core-js/stable/string/fontcolor.js create mode 100644 node_modules/core-js/stable/string/fontsize.js create mode 100644 node_modules/core-js/stable/string/from-code-point.js create mode 100644 node_modules/core-js/stable/string/includes.js create mode 100644 node_modules/core-js/stable/string/index.js create mode 100644 node_modules/core-js/stable/string/italics.js create mode 100644 node_modules/core-js/stable/string/iterator.js create mode 100644 node_modules/core-js/stable/string/link.js create mode 100644 node_modules/core-js/stable/string/match-all.js create mode 100644 node_modules/core-js/stable/string/match.js create mode 100644 node_modules/core-js/stable/string/pad-end.js create mode 100644 node_modules/core-js/stable/string/pad-start.js create mode 100644 node_modules/core-js/stable/string/raw.js create mode 100644 node_modules/core-js/stable/string/repeat.js create mode 100644 node_modules/core-js/stable/string/replace.js create mode 100644 node_modules/core-js/stable/string/search.js create mode 100644 node_modules/core-js/stable/string/small.js create mode 100644 node_modules/core-js/stable/string/split.js create mode 100644 node_modules/core-js/stable/string/starts-with.js create mode 100644 node_modules/core-js/stable/string/strike.js create mode 100644 node_modules/core-js/stable/string/sub.js create mode 100644 node_modules/core-js/stable/string/sup.js create mode 100644 node_modules/core-js/stable/string/trim-end.js create mode 100644 node_modules/core-js/stable/string/trim-left.js create mode 100644 node_modules/core-js/stable/string/trim-right.js create mode 100644 node_modules/core-js/stable/string/trim-start.js create mode 100644 node_modules/core-js/stable/string/trim.js create mode 100644 node_modules/core-js/stable/string/virtual/anchor.js create mode 100644 node_modules/core-js/stable/string/virtual/big.js create mode 100644 node_modules/core-js/stable/string/virtual/blink.js create mode 100644 node_modules/core-js/stable/string/virtual/bold.js create mode 100644 node_modules/core-js/stable/string/virtual/code-point-at.js create mode 100644 node_modules/core-js/stable/string/virtual/ends-with.js create mode 100644 node_modules/core-js/stable/string/virtual/fixed.js create mode 100644 node_modules/core-js/stable/string/virtual/fontcolor.js create mode 100644 node_modules/core-js/stable/string/virtual/fontsize.js create mode 100644 node_modules/core-js/stable/string/virtual/includes.js create mode 100644 node_modules/core-js/stable/string/virtual/index.js create mode 100644 node_modules/core-js/stable/string/virtual/italics.js create mode 100644 node_modules/core-js/stable/string/virtual/iterator.js create mode 100644 node_modules/core-js/stable/string/virtual/link.js create mode 100644 node_modules/core-js/stable/string/virtual/match-all.js create mode 100644 node_modules/core-js/stable/string/virtual/pad-end.js create mode 100644 node_modules/core-js/stable/string/virtual/pad-start.js create mode 100644 node_modules/core-js/stable/string/virtual/repeat.js create mode 100644 node_modules/core-js/stable/string/virtual/small.js create mode 100644 node_modules/core-js/stable/string/virtual/starts-with.js create mode 100644 node_modules/core-js/stable/string/virtual/strike.js create mode 100644 node_modules/core-js/stable/string/virtual/sub.js create mode 100644 node_modules/core-js/stable/string/virtual/sup.js create mode 100644 node_modules/core-js/stable/string/virtual/trim-end.js create mode 100644 node_modules/core-js/stable/string/virtual/trim-left.js create mode 100644 node_modules/core-js/stable/string/virtual/trim-right.js create mode 100644 node_modules/core-js/stable/string/virtual/trim-start.js create mode 100644 node_modules/core-js/stable/string/virtual/trim.js create mode 100644 node_modules/core-js/stable/symbol/async-iterator.js create mode 100644 node_modules/core-js/stable/symbol/description.js create mode 100644 node_modules/core-js/stable/symbol/for.js create mode 100644 node_modules/core-js/stable/symbol/has-instance.js create mode 100644 node_modules/core-js/stable/symbol/index.js create mode 100644 node_modules/core-js/stable/symbol/is-concat-spreadable.js create mode 100644 node_modules/core-js/stable/symbol/iterator.js create mode 100644 node_modules/core-js/stable/symbol/key-for.js create mode 100644 node_modules/core-js/stable/symbol/match-all.js create mode 100644 node_modules/core-js/stable/symbol/match.js create mode 100644 node_modules/core-js/stable/symbol/replace.js create mode 100644 node_modules/core-js/stable/symbol/search.js create mode 100644 node_modules/core-js/stable/symbol/species.js create mode 100644 node_modules/core-js/stable/symbol/split.js create mode 100644 node_modules/core-js/stable/symbol/to-primitive.js create mode 100644 node_modules/core-js/stable/symbol/to-string-tag.js create mode 100644 node_modules/core-js/stable/symbol/unscopables.js create mode 100644 node_modules/core-js/stable/typed-array/copy-within.js create mode 100644 node_modules/core-js/stable/typed-array/entries.js create mode 100644 node_modules/core-js/stable/typed-array/every.js create mode 100644 node_modules/core-js/stable/typed-array/fill.js create mode 100644 node_modules/core-js/stable/typed-array/filter.js create mode 100644 node_modules/core-js/stable/typed-array/find-index.js create mode 100644 node_modules/core-js/stable/typed-array/find.js create mode 100644 node_modules/core-js/stable/typed-array/float32-array.js create mode 100644 node_modules/core-js/stable/typed-array/float64-array.js create mode 100644 node_modules/core-js/stable/typed-array/for-each.js create mode 100644 node_modules/core-js/stable/typed-array/from.js create mode 100644 node_modules/core-js/stable/typed-array/includes.js create mode 100644 node_modules/core-js/stable/typed-array/index-of.js create mode 100644 node_modules/core-js/stable/typed-array/index.js create mode 100644 node_modules/core-js/stable/typed-array/int16-array.js create mode 100644 node_modules/core-js/stable/typed-array/int32-array.js create mode 100644 node_modules/core-js/stable/typed-array/int8-array.js create mode 100644 node_modules/core-js/stable/typed-array/iterator.js create mode 100644 node_modules/core-js/stable/typed-array/join.js create mode 100644 node_modules/core-js/stable/typed-array/keys.js create mode 100644 node_modules/core-js/stable/typed-array/last-index-of.js create mode 100644 node_modules/core-js/stable/typed-array/map.js create mode 100644 node_modules/core-js/stable/typed-array/of.js create mode 100644 node_modules/core-js/stable/typed-array/reduce-right.js create mode 100644 node_modules/core-js/stable/typed-array/reduce.js create mode 100644 node_modules/core-js/stable/typed-array/reverse.js create mode 100644 node_modules/core-js/stable/typed-array/set.js create mode 100644 node_modules/core-js/stable/typed-array/slice.js create mode 100644 node_modules/core-js/stable/typed-array/some.js create mode 100644 node_modules/core-js/stable/typed-array/sort.js create mode 100644 node_modules/core-js/stable/typed-array/subarray.js create mode 100644 node_modules/core-js/stable/typed-array/to-locale-string.js create mode 100644 node_modules/core-js/stable/typed-array/to-string.js create mode 100644 node_modules/core-js/stable/typed-array/uint16-array.js create mode 100644 node_modules/core-js/stable/typed-array/uint32-array.js create mode 100644 node_modules/core-js/stable/typed-array/uint8-array.js create mode 100644 node_modules/core-js/stable/typed-array/uint8-clamped-array.js create mode 100644 node_modules/core-js/stable/typed-array/values.js create mode 100644 node_modules/core-js/stable/url-search-params/index.js create mode 100644 node_modules/core-js/stable/url/index.js create mode 100644 node_modules/core-js/stable/url/to-json.js create mode 100644 node_modules/core-js/stable/weak-map/index.js create mode 100644 node_modules/core-js/stable/weak-set/index.js create mode 100644 node_modules/core-js/stage/0.js create mode 100644 node_modules/core-js/stage/1.js create mode 100644 node_modules/core-js/stage/2.js create mode 100644 node_modules/core-js/stage/3.js create mode 100644 node_modules/core-js/stage/4.js create mode 100644 node_modules/core-js/stage/README.md create mode 100644 node_modules/core-js/stage/index.js create mode 100644 node_modules/core-js/stage/pre.js create mode 100644 node_modules/core-js/web/README.md create mode 100644 node_modules/core-js/web/dom-collections.js create mode 100644 node_modules/core-js/web/immediate.js create mode 100644 node_modules/core-js/web/index.js create mode 100644 node_modules/core-js/web/queue-microtask.js create mode 100644 node_modules/core-js/web/timers.js create mode 100644 node_modules/core-js/web/url-search-params.js create mode 100644 node_modules/core-js/web/url.js create mode 100644 node_modules/core-util-is/LICENSE create mode 100644 node_modules/core-util-is/README.md create mode 100644 node_modules/core-util-is/float.patch create mode 100644 node_modules/core-util-is/lib/util.js create mode 100644 node_modules/core-util-is/package.json create mode 100644 node_modules/core-util-is/test.js create mode 100644 node_modules/dashdash/CHANGES.md create mode 100644 node_modules/dashdash/LICENSE.txt create mode 100644 node_modules/dashdash/README.md create mode 100644 node_modules/dashdash/etc/dashdash.bash_completion.in create mode 100644 node_modules/dashdash/lib/dashdash.js create mode 100644 node_modules/dashdash/package.json create mode 100644 node_modules/debug/CHANGELOG.md create mode 100644 node_modules/debug/LICENSE create mode 100644 node_modules/debug/README.md create mode 100644 node_modules/debug/dist/debug.js create mode 100644 node_modules/debug/package.json create mode 100644 node_modules/debug/src/browser.js create mode 100644 node_modules/debug/src/common.js create mode 100644 node_modules/debug/src/index.js create mode 100644 node_modules/debug/src/node.js create mode 100644 node_modules/deepmerge/changelog.md create mode 100644 node_modules/deepmerge/dist/umd.js create mode 100644 node_modules/deepmerge/index.d.ts create mode 100644 node_modules/deepmerge/index.js create mode 100644 node_modules/deepmerge/license.txt create mode 100644 node_modules/deepmerge/package.json create mode 100644 node_modules/deepmerge/readme.md create mode 100644 node_modules/deepmerge/rollup.config.js create mode 100644 node_modules/delayed-stream/.npmignore create mode 100644 node_modules/delayed-stream/License create mode 100644 node_modules/delayed-stream/Makefile create mode 100644 node_modules/delayed-stream/Readme.md create mode 100644 node_modules/delayed-stream/lib/delayed_stream.js create mode 100644 node_modules/delayed-stream/package.json create mode 100644 node_modules/depd/History.md create mode 100644 node_modules/depd/LICENSE create mode 100644 node_modules/depd/Readme.md create mode 100644 node_modules/depd/index.js create mode 100644 node_modules/depd/lib/browser/index.js create mode 100644 node_modules/depd/lib/compat/callsite-tostring.js create mode 100644 node_modules/depd/lib/compat/event-listener-count.js create mode 100644 node_modules/depd/lib/compat/index.js create mode 100644 node_modules/depd/package.json create mode 100644 node_modules/destroy/LICENSE create mode 100644 node_modules/destroy/README.md create mode 100644 node_modules/destroy/index.js create mode 100644 node_modules/destroy/package.json create mode 100755 node_modules/ecc-jsbn/LICENSE create mode 100755 node_modules/ecc-jsbn/README.md create mode 100755 node_modules/ecc-jsbn/index.js create mode 100755 node_modules/ecc-jsbn/lib/LICENSE-jsbn create mode 100755 node_modules/ecc-jsbn/lib/ec.js create mode 100755 node_modules/ecc-jsbn/lib/sec.js create mode 100755 node_modules/ecc-jsbn/package.json create mode 100755 node_modules/ecc-jsbn/test.js create mode 100644 node_modules/ee-first/LICENSE create mode 100644 node_modules/ee-first/README.md create mode 100644 node_modules/ee-first/index.js create mode 100644 node_modules/ee-first/package.json create mode 100644 node_modules/encodeurl/HISTORY.md create mode 100644 node_modules/encodeurl/LICENSE create mode 100644 node_modules/encodeurl/README.md create mode 100644 node_modules/encodeurl/index.js create mode 100644 node_modules/encodeurl/package.json create mode 100644 node_modules/escape-html/LICENSE create mode 100644 node_modules/escape-html/Readme.md create mode 100644 node_modules/escape-html/index.js create mode 100644 node_modules/escape-html/package.json create mode 100644 node_modules/etag/HISTORY.md create mode 100644 node_modules/etag/LICENSE create mode 100644 node_modules/etag/README.md create mode 100644 node_modules/etag/index.js create mode 100644 node_modules/etag/package.json create mode 100644 node_modules/extend/.editorconfig create mode 100644 node_modules/extend/.eslintrc create mode 100644 node_modules/extend/.jscs.json create mode 100644 node_modules/extend/.travis.yml create mode 100644 node_modules/extend/CHANGELOG.md create mode 100644 node_modules/extend/LICENSE create mode 100644 node_modules/extend/README.md create mode 100644 node_modules/extend/component.json create mode 100644 node_modules/extend/index.js create mode 100644 node_modules/extend/package.json create mode 100644 node_modules/extsprintf/.gitmodules create mode 100644 node_modules/extsprintf/.npmignore create mode 100644 node_modules/extsprintf/LICENSE create mode 100644 node_modules/extsprintf/Makefile create mode 100644 node_modules/extsprintf/Makefile.targ create mode 100644 node_modules/extsprintf/README.md create mode 100644 node_modules/extsprintf/jsl.node.conf create mode 100644 node_modules/extsprintf/lib/extsprintf.js create mode 100644 node_modules/extsprintf/package.json create mode 100644 node_modules/fast-decode-uri-component/.travis.yml create mode 100644 node_modules/fast-decode-uri-component/LICENSE create mode 100644 node_modules/fast-decode-uri-component/README.md create mode 100644 node_modules/fast-decode-uri-component/bench.js create mode 100644 node_modules/fast-decode-uri-component/index.js create mode 100644 node_modules/fast-decode-uri-component/package.json create mode 100644 node_modules/fast-decode-uri-component/test.js create mode 100644 node_modules/fast-deep-equal/LICENSE create mode 100644 node_modules/fast-deep-equal/README.md create mode 100644 node_modules/fast-deep-equal/index.d.ts create mode 100644 node_modules/fast-deep-equal/index.js create mode 100644 node_modules/fast-deep-equal/package.json create mode 100644 node_modules/fast-json-stable-stringify/.eslintrc.yml create mode 100644 node_modules/fast-json-stable-stringify/.npmignore create mode 100644 node_modules/fast-json-stable-stringify/.travis.yml create mode 100644 node_modules/fast-json-stable-stringify/LICENSE create mode 100644 node_modules/fast-json-stable-stringify/README.md create mode 100644 node_modules/fast-json-stable-stringify/benchmark/index.js create mode 100644 node_modules/fast-json-stable-stringify/benchmark/test.json create mode 100644 node_modules/fast-json-stable-stringify/example/key_cmp.js create mode 100644 node_modules/fast-json-stable-stringify/example/nested.js create mode 100644 node_modules/fast-json-stable-stringify/example/str.js create mode 100644 node_modules/fast-json-stable-stringify/example/value_cmp.js create mode 100644 node_modules/fast-json-stable-stringify/index.js create mode 100644 node_modules/fast-json-stable-stringify/package.json create mode 100644 node_modules/fast-json-stable-stringify/test/cmp.js create mode 100644 node_modules/fast-json-stable-stringify/test/nested.js create mode 100644 node_modules/fast-json-stable-stringify/test/str.js create mode 100644 node_modules/fast-json-stable-stringify/test/to-json.js create mode 100644 node_modules/fast-json-stringify/.travis.yml create mode 100644 node_modules/fast-json-stringify/LICENSE create mode 100644 node_modules/fast-json-stringify/README.md create mode 100644 node_modules/fast-json-stringify/azure-pipelines.yml create mode 100644 node_modules/fast-json-stringify/bench.js create mode 100644 node_modules/fast-json-stringify/build-schema-validator.js create mode 100644 node_modules/fast-json-stringify/example.js create mode 100644 node_modules/fast-json-stringify/index.d.ts create mode 100644 node_modules/fast-json-stringify/index.js create mode 100644 node_modules/fast-json-stringify/package.json create mode 100644 node_modules/fast-json-stringify/schema-validator.js create mode 100644 node_modules/fast-json-stringify/server.js create mode 100644 node_modules/fast-json-stringify/test/additionalProperties.test.js create mode 100644 node_modules/fast-json-stringify/test/allof.test.js create mode 100644 node_modules/fast-json-stringify/test/any.test.js create mode 100644 node_modules/fast-json-stringify/test/anyof.test.js create mode 100644 node_modules/fast-json-stringify/test/array.test.js create mode 100644 node_modules/fast-json-stringify/test/basic.test.js create mode 100644 node_modules/fast-json-stringify/test/clean-cache.test.js create mode 100644 node_modules/fast-json-stringify/test/date.test.js create mode 100644 node_modules/fast-json-stringify/test/defaults.test.js create mode 100644 node_modules/fast-json-stringify/test/if-then-else.test.js create mode 100644 node_modules/fast-json-stringify/test/inferType.test.js create mode 100644 node_modules/fast-json-stringify/test/integer.test.js create mode 100644 node_modules/fast-json-stringify/test/invalidSchema.test.js create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/README.md create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/draft4.test.js create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/draft4/required.json create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/draft6.test.js create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/draft6/required.json create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/draft7.test.js create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/draft7/required.json create mode 100644 node_modules/fast-json-stringify/test/json-schema-test-suite/util.js create mode 100644 node_modules/fast-json-stringify/test/long.test.js create mode 100644 node_modules/fast-json-stringify/test/missing-values.test.js create mode 100644 node_modules/fast-json-stringify/test/nestedObjects.test.js create mode 100644 node_modules/fast-json-stringify/test/nullable.test.js create mode 100644 node_modules/fast-json-stringify/test/patternProperties.test.js create mode 100644 node_modules/fast-json-stringify/test/ref.json create mode 100644 node_modules/fast-json-stringify/test/ref.test.js create mode 100644 node_modules/fast-json-stringify/test/regex.test.js create mode 100644 node_modules/fast-json-stringify/test/required.test.js create mode 100644 node_modules/fast-json-stringify/test/surrogate.test.js create mode 100644 node_modules/fast-json-stringify/test/toJSON.test.js create mode 100644 node_modules/fast-json-stringify/test/types/test.ts create mode 100644 node_modules/fast-json-stringify/test/types/tsconfig.json create mode 100644 node_modules/fast-json-stringify/test/typesArray.test.js create mode 100644 node_modules/fast-json-stringify/test/unknownFormats.test.js create mode 100644 node_modules/fast-redact/.travis.yml create mode 100644 node_modules/fast-redact/LICENSE create mode 100644 node_modules/fast-redact/benchmark/index.js create mode 100644 node_modules/fast-redact/example/default-usage.js create mode 100644 node_modules/fast-redact/example/intermediate-wildcard-array.js create mode 100644 node_modules/fast-redact/example/serialize-false.js create mode 100644 node_modules/fast-redact/example/serialize-function.js create mode 100644 node_modules/fast-redact/example/top-wildcard-object.js create mode 100644 node_modules/fast-redact/index.js create mode 100644 node_modules/fast-redact/lib/modifiers.js create mode 100644 node_modules/fast-redact/lib/parse.js create mode 100644 node_modules/fast-redact/lib/redactor.js create mode 100644 node_modules/fast-redact/lib/restorer.js create mode 100644 node_modules/fast-redact/lib/rx.js create mode 100644 node_modules/fast-redact/lib/state.js create mode 100644 node_modules/fast-redact/lib/validator.js create mode 100644 node_modules/fast-redact/package.json create mode 100644 node_modules/fast-redact/readme.md create mode 100644 node_modules/fast-redact/test/index.js create mode 100644 node_modules/fast-safe-stringify/.travis.yml create mode 100644 node_modules/fast-safe-stringify/CHANGELOG.md create mode 100644 node_modules/fast-safe-stringify/LICENSE create mode 100644 node_modules/fast-safe-stringify/benchmark.js create mode 100644 node_modules/fast-safe-stringify/index.d.ts create mode 100644 node_modules/fast-safe-stringify/index.js create mode 100644 node_modules/fast-safe-stringify/package.json create mode 100644 node_modules/fast-safe-stringify/readme.md create mode 100644 node_modules/fast-safe-stringify/test-stable.js create mode 100644 node_modules/fast-safe-stringify/test.js create mode 100644 node_modules/fastify-plugin/.travis.yml create mode 100644 node_modules/fastify-plugin/LICENSE create mode 100644 node_modules/fastify-plugin/README.md create mode 100644 node_modules/fastify-plugin/fastify-plugin.d.ts create mode 100644 node_modules/fastify-plugin/index.js create mode 100644 node_modules/fastify-plugin/package.json create mode 100644 node_modules/fastify-plugin/stackParser.js create mode 100644 node_modules/fastify-plugin/test/composite.test.js create mode 100644 node_modules/fastify-plugin/test/mu1tip1e.composite.test.js create mode 100644 node_modules/fastify-plugin/test/stackParser.test.js create mode 100644 node_modules/fastify-plugin/test/test.js create mode 100644 node_modules/fastify-plugin/test/types.test.ts create mode 100644 node_modules/fastify-plugin/tsconfig.json create mode 100644 node_modules/fastify-static/.gitattributes create mode 100644 node_modules/fastify-static/.travis.yml create mode 100644 node_modules/fastify-static/LICENSE create mode 100644 node_modules/fastify-static/README.md create mode 100644 node_modules/fastify-static/example/public/index.css create mode 100644 node_modules/fastify-static/example/public/index.html create mode 100644 node_modules/fastify-static/example/public/index.js create mode 100644 node_modules/fastify-static/example/server-compress.js create mode 100644 node_modules/fastify-static/example/server.js create mode 100644 node_modules/fastify-static/index.d.ts create mode 100644 node_modules/fastify-static/index.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/CONTRIBUTING.md create mode 100644 node_modules/fastify-static/node_modules/readable-stream/GOVERNANCE.md create mode 100644 node_modules/fastify-static/node_modules/readable-stream/LICENSE create mode 100644 node_modules/fastify-static/node_modules/readable-stream/README.md create mode 100644 node_modules/fastify-static/node_modules/readable-stream/errors-browser.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/errors.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/experimentalWarning.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/async_iterator.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/buffer_list.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/destroy.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/end-of-stream.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/pipeline.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/state.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/stream-browser.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/lib/internal/streams/stream.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/package.json create mode 100644 node_modules/fastify-static/node_modules/readable-stream/readable-browser.js create mode 100644 node_modules/fastify-static/node_modules/readable-stream/readable.js create mode 100644 node_modules/fastify-static/package.json create mode 100644 node_modules/fastify-static/test/static.test.js create mode 100644 node_modules/fastify-static/test/static/deep/path/for/test/index.html create mode 100644 node_modules/fastify-static/test/static/deep/path/for/test/purpose/foo.html create mode 100644 node_modules/fastify-static/test/static/foo.html create mode 100644 node_modules/fastify-static/test/static/foobar.html create mode 100644 node_modules/fastify-static/test/static/index.css create mode 100644 node_modules/fastify-static/test/static/index.html create mode 100644 node_modules/fastify-static/test/types/index.ts create mode 100644 node_modules/fastify-static/test/types/tsconfig.json create mode 100644 node_modules/fastify/LICENSE create mode 100644 node_modules/fastify/README.md create mode 100644 node_modules/fastify/build/build-validation.js create mode 100644 node_modules/fastify/docs/Benchmarking.md create mode 100644 node_modules/fastify/docs/ContentTypeParser.md create mode 100644 node_modules/fastify/docs/Decorators.md create mode 100644 node_modules/fastify/docs/Ecosystem.md create mode 100644 node_modules/fastify/docs/Errors.md create mode 100644 node_modules/fastify/docs/Fluent-Schema.md create mode 100644 node_modules/fastify/docs/Getting-Started.md create mode 100644 node_modules/fastify/docs/HTTP2.md create mode 100644 node_modules/fastify/docs/Hooks.md create mode 100644 node_modules/fastify/docs/LTS.md create mode 100644 node_modules/fastify/docs/Lifecycle.md create mode 100644 node_modules/fastify/docs/Logging.md create mode 100644 node_modules/fastify/docs/Middlewares.md create mode 100644 node_modules/fastify/docs/Plugins-Guide.md create mode 100644 node_modules/fastify/docs/Plugins.md create mode 100644 node_modules/fastify/docs/Reply.md create mode 100644 node_modules/fastify/docs/Request.md create mode 100644 node_modules/fastify/docs/Routes.md create mode 100644 node_modules/fastify/docs/Server.md create mode 100644 node_modules/fastify/docs/Serverless.md create mode 100644 node_modules/fastify/docs/Testing.md create mode 100644 node_modules/fastify/docs/TypeScript.md create mode 100644 node_modules/fastify/docs/Validation-and-Serialization.md create mode 100644 node_modules/fastify/docs/Write-Plugin.md create mode 100644 node_modules/fastify/examples/asyncawait.js create mode 100644 node_modules/fastify/examples/example.js create mode 100644 node_modules/fastify/examples/hooks-benchmark-async-await.js create mode 100644 node_modules/fastify/examples/hooks-benchmark.js create mode 100644 node_modules/fastify/examples/hooks.js create mode 100644 node_modules/fastify/examples/http2.js create mode 100644 node_modules/fastify/examples/https.js create mode 100644 node_modules/fastify/examples/middleware.js create mode 100644 node_modules/fastify/examples/parser.js create mode 100644 node_modules/fastify/examples/plugin.js create mode 100644 node_modules/fastify/examples/route-prefix.js create mode 100644 node_modules/fastify/examples/shared-schema.js create mode 100644 node_modules/fastify/examples/simple.js create mode 100644 node_modules/fastify/examples/typescript-server.ts create mode 100644 node_modules/fastify/examples/use-plugin.js create mode 100644 node_modules/fastify/fastify.d.ts create mode 100644 node_modules/fastify/fastify.js create mode 100644 node_modules/fastify/lib/configValidator.js create mode 100644 node_modules/fastify/lib/contentTypeParser.js create mode 100644 node_modules/fastify/lib/context.js create mode 100644 node_modules/fastify/lib/decorate.js create mode 100644 node_modules/fastify/lib/errors.js create mode 100644 node_modules/fastify/lib/fourOhFour.js create mode 100644 node_modules/fastify/lib/handleRequest.js create mode 100644 node_modules/fastify/lib/hooks.js create mode 100644 node_modules/fastify/lib/initialConfigValidation.js create mode 100644 node_modules/fastify/lib/logger.js create mode 100644 node_modules/fastify/lib/middleware.js create mode 100644 node_modules/fastify/lib/pluginUtils.js create mode 100644 node_modules/fastify/lib/reply.js create mode 100644 node_modules/fastify/lib/reqIdGenFactory.js create mode 100644 node_modules/fastify/lib/request.js create mode 100644 node_modules/fastify/lib/route.js create mode 100644 node_modules/fastify/lib/schemas.js create mode 100644 node_modules/fastify/lib/server.js create mode 100644 node_modules/fastify/lib/symbols.js create mode 100644 node_modules/fastify/lib/validation.js create mode 100644 node_modules/fastify/lib/warnings.js create mode 100644 node_modules/fastify/lib/wrapThenable.js create mode 100644 node_modules/fastify/package.json create mode 100644 node_modules/fastify/test/404s.test.js create mode 100644 node_modules/fastify/test/500s.test.js create mode 100644 node_modules/fastify/test/async-await.js create mode 100644 node_modules/fastify/test/async-await.test.js create mode 100644 node_modules/fastify/test/bodyLimit.test.js create mode 100644 node_modules/fastify/test/case-insensitive.test.js create mode 100644 node_modules/fastify/test/chainable.test.js create mode 100644 node_modules/fastify/test/close-pipelining.test.js create mode 100644 node_modules/fastify/test/close.test.js create mode 100644 node_modules/fastify/test/content-length.test.js create mode 100644 node_modules/fastify/test/context-config.test.js create mode 100644 node_modules/fastify/test/custom-http-server.test.js create mode 100644 node_modules/fastify/test/custom-parser-async.js create mode 100644 node_modules/fastify/test/custom-parser.test.js create mode 100644 node_modules/fastify/test/custom-querystring-parser.test.js create mode 100644 node_modules/fastify/test/decorator.test.js create mode 100644 node_modules/fastify/test/delete.test.js create mode 100644 node_modules/fastify/test/emit-warning.test.js create mode 100644 node_modules/fastify/test/error-in-post.test.js create mode 100644 node_modules/fastify/test/fastify-instance.test.js create mode 100644 node_modules/fastify/test/fluent-schema.js create mode 100644 node_modules/fastify/test/fluent-schema.test.js create mode 100644 node_modules/fastify/test/genReqId.test.js create mode 100644 node_modules/fastify/test/get.test.js create mode 100644 node_modules/fastify/test/handler-context.test.js create mode 100644 node_modules/fastify/test/head.test.js create mode 100644 node_modules/fastify/test/helper.js create mode 100644 node_modules/fastify/test/hooks-async.js create mode 100644 node_modules/fastify/test/hooks.test.js create mode 100644 node_modules/fastify/test/http2/closing.js create mode 100644 node_modules/fastify/test/http2/http2.test.js create mode 100644 node_modules/fastify/test/http2/missing-http2-module.js create mode 100644 node_modules/fastify/test/http2/plain.js create mode 100644 node_modules/fastify/test/http2/secure-with-fallback.js create mode 100644 node_modules/fastify/test/http2/secure.js create mode 100644 node_modules/fastify/test/http2/unknown-http-method.js create mode 100644 node_modules/fastify/test/https/custom-https-server.test.js create mode 100644 node_modules/fastify/test/https/fastify.cert create mode 100644 node_modules/fastify/test/https/fastify.key create mode 100644 node_modules/fastify/test/https/https.test.js create mode 100644 node_modules/fastify/test/inject.test.js create mode 100644 node_modules/fastify/test/input-validation.js create mode 100644 node_modules/fastify/test/input-validation.test.js create mode 100644 node_modules/fastify/test/internals/all.test.js create mode 100644 node_modules/fastify/test/internals/contentTypeParser.test.js create mode 100644 node_modules/fastify/test/internals/decorator.test.js create mode 100644 node_modules/fastify/test/internals/errors.test.js create mode 100644 node_modules/fastify/test/internals/handleRequest.test.js create mode 100644 node_modules/fastify/test/internals/hookRunner.test.js create mode 100644 node_modules/fastify/test/internals/hooks.test.js create mode 100644 node_modules/fastify/test/internals/initialConfig.test.js create mode 100644 node_modules/fastify/test/internals/logger.test.js create mode 100644 node_modules/fastify/test/internals/plugin.test.js create mode 100644 node_modules/fastify/test/internals/reply.test.js create mode 100644 node_modules/fastify/test/internals/validation.test.js create mode 100644 node_modules/fastify/test/listen.test.js create mode 100644 node_modules/fastify/test/logger.test.js create mode 100644 node_modules/fastify/test/middleware.test.js create mode 100644 node_modules/fastify/test/options.error-handler.test.js create mode 100644 node_modules/fastify/test/options.test.js create mode 100644 node_modules/fastify/test/output-validation.test.js create mode 100644 node_modules/fastify/test/patch.error-handler.test.js create mode 100644 node_modules/fastify/test/patch.test.js create mode 100644 node_modules/fastify/test/plugin.helper.js create mode 100644 node_modules/fastify/test/plugin.test.js create mode 100644 node_modules/fastify/test/post.test.js create mode 100644 node_modules/fastify/test/pretty-print.test.js create mode 100644 node_modules/fastify/test/promises.test.js create mode 100644 node_modules/fastify/test/proto-poisoning.test.js create mode 100644 node_modules/fastify/test/put.error-handler.test.js create mode 100644 node_modules/fastify/test/put.test.js create mode 100644 node_modules/fastify/test/register.test.js create mode 100644 node_modules/fastify/test/reply-error.test.js create mode 100644 node_modules/fastify/test/request-error.test.js create mode 100644 node_modules/fastify/test/route-hooks.test.js create mode 100644 node_modules/fastify/test/route-prefix.test.js create mode 100644 node_modules/fastify/test/route.test.js create mode 100644 node_modules/fastify/test/router-options.test.js create mode 100644 node_modules/fastify/test/shared-schemas.test.js create mode 100644 node_modules/fastify/test/skip-reply-send.js create mode 100644 node_modules/fastify/test/stream.test.js create mode 100644 node_modules/fastify/test/throw.test.js create mode 100644 node_modules/fastify/test/trust-proxy.test.js create mode 100644 node_modules/fastify/test/types/index.ts create mode 100644 node_modules/fastify/test/types/tsconfig.json create mode 100644 node_modules/fastify/test/validation-error-handling.test.js create mode 100644 node_modules/fastify/test/versioned-routes.test.js create mode 100644 node_modules/fastify/test/wrapThenable.test.js create mode 100644 node_modules/fastq/.travis.yml create mode 100644 node_modules/fastq/LICENSE create mode 100644 node_modules/fastq/README.md create mode 100644 node_modules/fastq/bench.js create mode 100644 node_modules/fastq/example.js create mode 100644 node_modules/fastq/index.d.ts create mode 100644 node_modules/fastq/package.json create mode 100644 node_modules/fastq/queue.js create mode 100644 node_modules/fastq/test/example.ts create mode 100644 node_modules/fastq/test/test.js create mode 100644 node_modules/fastq/test/tsconfig.json create mode 100644 node_modules/find-my-way/.travis.yml create mode 100644 node_modules/find-my-way/LICENSE create mode 100644 node_modules/find-my-way/README.md create mode 100644 node_modules/find-my-way/bench.js create mode 100644 node_modules/find-my-way/example.js create mode 100644 node_modules/find-my-way/index.d.ts create mode 100644 node_modules/find-my-way/index.js create mode 100644 node_modules/find-my-way/lib/accept-version.js create mode 100644 node_modules/find-my-way/node.js create mode 100644 node_modules/find-my-way/package.json create mode 100644 node_modules/find-my-way/test/case-insensitive.test.js create mode 100644 node_modules/find-my-way/test/errors.test.js create mode 100644 node_modules/find-my-way/test/for-in-loop.test.js create mode 100644 node_modules/find-my-way/test/full-url.test.js create mode 100644 node_modules/find-my-way/test/issue-104.test.js create mode 100644 node_modules/find-my-way/test/issue-110.test.js create mode 100644 node_modules/find-my-way/test/issue-17.test.js create mode 100644 node_modules/find-my-way/test/issue-20.test.js create mode 100644 node_modules/find-my-way/test/issue-28.test.js create mode 100644 node_modules/find-my-way/test/issue-44.test.js create mode 100644 node_modules/find-my-way/test/issue-46.test.js create mode 100644 node_modules/find-my-way/test/issue-49.test.js create mode 100644 node_modules/find-my-way/test/issue-59.test.js create mode 100644 node_modules/find-my-way/test/issue-62.test.js create mode 100644 node_modules/find-my-way/test/issue-63.test.js create mode 100644 node_modules/find-my-way/test/issue-67.test.js create mode 100644 node_modules/find-my-way/test/issue-93.test.js create mode 100644 node_modules/find-my-way/test/lookup.test.js create mode 100644 node_modules/find-my-way/test/max-param-length.test.js create mode 100644 node_modules/find-my-way/test/methods.test.js create mode 100644 node_modules/find-my-way/test/pretty-print.test.js create mode 100644 node_modules/find-my-way/test/querystring.test.js create mode 100644 node_modules/find-my-way/test/regex.test.js create mode 100644 node_modules/find-my-way/test/server.test.js create mode 100644 node_modules/find-my-way/test/shorthands.test.js create mode 100644 node_modules/find-my-way/test/store.test.js create mode 100644 node_modules/find-my-way/test/types/index.ts create mode 100644 node_modules/find-my-way/test/types/tsconfig.json create mode 100644 node_modules/find-my-way/test/version.custom-versioning.test.js create mode 100644 node_modules/find-my-way/test/version.default-versioning.test.js create mode 100644 node_modules/flatstr/LICENSE create mode 100644 node_modules/flatstr/alt-benchmark.js create mode 100644 node_modules/flatstr/benchmark.js create mode 100644 node_modules/flatstr/index.js create mode 100644 node_modules/flatstr/package.json create mode 100644 node_modules/flatstr/readme.md create mode 100644 node_modules/flatstr/test.js create mode 100644 node_modules/forever-agent/LICENSE create mode 100644 node_modules/forever-agent/README.md create mode 100644 node_modules/forever-agent/index.js create mode 100644 node_modules/forever-agent/package.json create mode 100644 node_modules/form-data/License create mode 100644 node_modules/form-data/README.md create mode 100644 node_modules/form-data/README.md.bak create mode 100644 node_modules/form-data/lib/browser.js create mode 100644 node_modules/form-data/lib/form_data.js create mode 100644 node_modules/form-data/lib/populate.js create mode 100644 node_modules/form-data/package.json create mode 100644 node_modules/form-data/yarn.lock create mode 100644 node_modules/forwarded/HISTORY.md create mode 100644 node_modules/forwarded/LICENSE create mode 100644 node_modules/forwarded/README.md create mode 100644 node_modules/forwarded/index.js create mode 100644 node_modules/forwarded/package.json create mode 100644 node_modules/fresh/HISTORY.md create mode 100644 node_modules/fresh/LICENSE create mode 100644 node_modules/fresh/README.md create mode 100644 node_modules/fresh/index.js create mode 100644 node_modules/fresh/package.json create mode 100644 node_modules/fs.realpath/LICENSE create mode 100644 node_modules/fs.realpath/README.md create mode 100644 node_modules/fs.realpath/index.js create mode 100644 node_modules/fs.realpath/old.js create mode 100644 node_modules/fs.realpath/package.json create mode 100644 node_modules/getpass/.npmignore create mode 100644 node_modules/getpass/.travis.yml create mode 100644 node_modules/getpass/LICENSE create mode 100644 node_modules/getpass/README.md create mode 100644 node_modules/getpass/lib/index.js create mode 100644 node_modules/getpass/package.json create mode 100644 node_modules/glob/LICENSE create mode 100644 node_modules/glob/README.md create mode 100644 node_modules/glob/changelog.md create mode 100644 node_modules/glob/common.js create mode 100644 node_modules/glob/glob.js create mode 100644 node_modules/glob/package.json create mode 100644 node_modules/glob/sync.js create mode 100644 node_modules/handlebars/LICENSE create mode 100644 node_modules/handlebars/README.markdown create mode 100755 node_modules/handlebars/bin/handlebars create mode 100644 node_modules/handlebars/dist/amd/handlebars.js create mode 100644 node_modules/handlebars/dist/amd/handlebars.runtime.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/base.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/ast.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/base.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/code-gen.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/compiler.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/helpers.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/javascript-compiler.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/parser.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/printer.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/visitor.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/compiler/whitespace-control.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/decorators.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/decorators/inline.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/exception.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/block-helper-missing.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/each.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/helper-missing.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/if.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/log.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/lookup.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/helpers/with.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/logger.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/no-conflict.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/runtime.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/safe-string.js create mode 100644 node_modules/handlebars/dist/amd/handlebars/utils.js create mode 100644 node_modules/handlebars/dist/amd/precompiler.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars.runtime.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/base.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/base.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/decorators.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/exception.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/each.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/if.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/log.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/helpers/with.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/logger.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/no-conflict.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/runtime.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/safe-string.js create mode 100644 node_modules/handlebars/dist/cjs/handlebars/utils.js create mode 100644 node_modules/handlebars/dist/cjs/precompiler.js create mode 100644 node_modules/handlebars/dist/handlebars.amd.js create mode 100644 node_modules/handlebars/dist/handlebars.amd.min.js create mode 100644 node_modules/handlebars/dist/handlebars.js create mode 100644 node_modules/handlebars/dist/handlebars.min.js create mode 100644 node_modules/handlebars/dist/handlebars.runtime.amd.js create mode 100644 node_modules/handlebars/dist/handlebars.runtime.amd.min.js create mode 100644 node_modules/handlebars/dist/handlebars.runtime.js create mode 100644 node_modules/handlebars/dist/handlebars.runtime.min.js create mode 100644 node_modules/handlebars/lib/handlebars.js create mode 100644 node_modules/handlebars/lib/handlebars.runtime.js create mode 100644 node_modules/handlebars/lib/handlebars/base.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/ast.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/base.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/code-gen.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/compiler.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/helpers.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/parser.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/printer.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/visitor.js create mode 100644 node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js create mode 100644 node_modules/handlebars/lib/handlebars/decorators.js create mode 100644 node_modules/handlebars/lib/handlebars/decorators/inline.js create mode 100644 node_modules/handlebars/lib/handlebars/exception.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/each.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/helper-missing.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/if.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/log.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/lookup.js create mode 100644 node_modules/handlebars/lib/handlebars/helpers/with.js create mode 100644 node_modules/handlebars/lib/handlebars/logger.js create mode 100644 node_modules/handlebars/lib/handlebars/no-conflict.js create mode 100644 node_modules/handlebars/lib/handlebars/runtime.js create mode 100644 node_modules/handlebars/lib/handlebars/safe-string.js create mode 100644 node_modules/handlebars/lib/handlebars/utils.js create mode 100644 node_modules/handlebars/lib/index.js create mode 100644 node_modules/handlebars/lib/precompiler.js create mode 100644 node_modules/handlebars/package.json create mode 100755 node_modules/handlebars/print-script create mode 100644 node_modules/handlebars/release-notes.md create mode 100644 node_modules/handlebars/runtime.js create mode 100644 node_modules/handlebars/types/index.d.ts create mode 100644 node_modules/har-schema/LICENSE create mode 100644 node_modules/har-schema/README.md create mode 100644 node_modules/har-schema/lib/afterRequest.json create mode 100644 node_modules/har-schema/lib/beforeRequest.json create mode 100644 node_modules/har-schema/lib/browser.json create mode 100644 node_modules/har-schema/lib/cache.json create mode 100644 node_modules/har-schema/lib/content.json create mode 100644 node_modules/har-schema/lib/cookie.json create mode 100644 node_modules/har-schema/lib/creator.json create mode 100644 node_modules/har-schema/lib/entry.json create mode 100644 node_modules/har-schema/lib/har.json create mode 100644 node_modules/har-schema/lib/header.json create mode 100644 node_modules/har-schema/lib/index.js create mode 100644 node_modules/har-schema/lib/log.json create mode 100644 node_modules/har-schema/lib/page.json create mode 100644 node_modules/har-schema/lib/pageTimings.json create mode 100644 node_modules/har-schema/lib/postData.json create mode 100644 node_modules/har-schema/lib/query.json create mode 100644 node_modules/har-schema/lib/request.json create mode 100644 node_modules/har-schema/lib/response.json create mode 100644 node_modules/har-schema/lib/timings.json create mode 100644 node_modules/har-schema/package.json create mode 100644 node_modules/har-validator/LICENSE create mode 100644 node_modules/har-validator/README.md create mode 100644 node_modules/har-validator/lib/async.js create mode 100644 node_modules/har-validator/lib/error.js create mode 100644 node_modules/har-validator/lib/promise.js create mode 100644 node_modules/har-validator/package.json create mode 100644 node_modules/http-errors/HISTORY.md create mode 100644 node_modules/http-errors/LICENSE create mode 100644 node_modules/http-errors/README.md create mode 100644 node_modules/http-errors/index.js create mode 100644 node_modules/http-errors/package.json create mode 100644 node_modules/http-signature/.dir-locals.el create mode 100644 node_modules/http-signature/.npmignore create mode 100644 node_modules/http-signature/CHANGES.md create mode 100644 node_modules/http-signature/LICENSE create mode 100644 node_modules/http-signature/README.md create mode 100644 node_modules/http-signature/http_signing.md create mode 100644 node_modules/http-signature/lib/index.js create mode 100644 node_modules/http-signature/lib/parser.js create mode 100644 node_modules/http-signature/lib/signer.js create mode 100644 node_modules/http-signature/lib/utils.js create mode 100644 node_modules/http-signature/lib/verify.js create mode 100644 node_modules/http-signature/package.json create mode 100644 node_modules/inflight/LICENSE create mode 100644 node_modules/inflight/README.md create mode 100644 node_modules/inflight/inflight.js create mode 100644 node_modules/inflight/package.json create mode 100644 node_modules/inherits/LICENSE create mode 100644 node_modules/inherits/README.md create mode 100644 node_modules/inherits/inherits.js create mode 100644 node_modules/inherits/inherits_browser.js create mode 100644 node_modules/inherits/package.json create mode 100644 node_modules/ipaddr.js/LICENSE create mode 100644 node_modules/ipaddr.js/README.md create mode 100644 node_modules/ipaddr.js/ipaddr.min.js create mode 100644 node_modules/ipaddr.js/lib/ipaddr.js create mode 100644 node_modules/ipaddr.js/lib/ipaddr.js.d.ts create mode 100644 node_modules/ipaddr.js/package.json create mode 100644 node_modules/is-typedarray/LICENSE.md create mode 100644 node_modules/is-typedarray/README.md create mode 100644 node_modules/is-typedarray/index.js create mode 100644 node_modules/is-typedarray/package.json create mode 100644 node_modules/is-typedarray/test.js create mode 100644 node_modules/isstream/.jshintrc create mode 100644 node_modules/isstream/.npmignore create mode 100644 node_modules/isstream/.travis.yml create mode 100644 node_modules/isstream/LICENSE.md create mode 100644 node_modules/isstream/README.md create mode 100644 node_modules/isstream/isstream.js create mode 100644 node_modules/isstream/package.json create mode 100644 node_modules/isstream/test.js create mode 100644 node_modules/jsbn/.npmignore create mode 100644 node_modules/jsbn/LICENSE create mode 100644 node_modules/jsbn/README.md create mode 100644 node_modules/jsbn/example.html create mode 100644 node_modules/jsbn/example.js create mode 100644 node_modules/jsbn/index.js create mode 100644 node_modules/jsbn/package.json create mode 100644 node_modules/json-schema-traverse/.eslintrc.yml create mode 100644 node_modules/json-schema-traverse/.travis.yml create mode 100644 node_modules/json-schema-traverse/LICENSE create mode 100644 node_modules/json-schema-traverse/README.md create mode 100644 node_modules/json-schema-traverse/index.js create mode 100644 node_modules/json-schema-traverse/package.json create mode 100644 node_modules/json-schema-traverse/spec/.eslintrc.yml create mode 100644 node_modules/json-schema-traverse/spec/fixtures/schema.js create mode 100644 node_modules/json-schema-traverse/spec/index.spec.js create mode 100644 node_modules/json-schema/README.md create mode 100644 node_modules/json-schema/draft-00/hyper-schema create mode 100644 node_modules/json-schema/draft-00/json-ref create mode 100644 node_modules/json-schema/draft-00/links create mode 100644 node_modules/json-schema/draft-00/schema create mode 100644 node_modules/json-schema/draft-01/hyper-schema create mode 100644 node_modules/json-schema/draft-01/json-ref create mode 100644 node_modules/json-schema/draft-01/links create mode 100644 node_modules/json-schema/draft-01/schema create mode 100644 node_modules/json-schema/draft-02/hyper-schema create mode 100644 node_modules/json-schema/draft-02/json-ref create mode 100644 node_modules/json-schema/draft-02/links create mode 100644 node_modules/json-schema/draft-02/schema create mode 100644 node_modules/json-schema/draft-03/examples/address create mode 100644 node_modules/json-schema/draft-03/examples/calendar create mode 100644 node_modules/json-schema/draft-03/examples/card create mode 100644 node_modules/json-schema/draft-03/examples/geo create mode 100644 node_modules/json-schema/draft-03/examples/interfaces create mode 100644 node_modules/json-schema/draft-03/hyper-schema create mode 100644 node_modules/json-schema/draft-03/json-ref create mode 100644 node_modules/json-schema/draft-03/links create mode 100644 node_modules/json-schema/draft-03/schema create mode 100644 node_modules/json-schema/draft-04/hyper-schema create mode 100644 node_modules/json-schema/draft-04/links create mode 100644 node_modules/json-schema/draft-04/schema create mode 100644 node_modules/json-schema/draft-zyp-json-schema-03.xml create mode 100644 node_modules/json-schema/draft-zyp-json-schema-04.xml create mode 100644 node_modules/json-schema/lib/links.js create mode 100644 node_modules/json-schema/lib/validate.js create mode 100644 node_modules/json-schema/package.json create mode 100644 node_modules/json-schema/test/tests.js create mode 100644 node_modules/json-stringify-safe/.npmignore create mode 100644 node_modules/json-stringify-safe/CHANGELOG.md create mode 100644 node_modules/json-stringify-safe/LICENSE create mode 100644 node_modules/json-stringify-safe/Makefile create mode 100644 node_modules/json-stringify-safe/README.md create mode 100644 node_modules/json-stringify-safe/package.json create mode 100644 node_modules/json-stringify-safe/stringify.js create mode 100644 node_modules/json-stringify-safe/test/mocha.opts create mode 100644 node_modules/json-stringify-safe/test/stringify_test.js create mode 100644 node_modules/jsprim/CHANGES.md create mode 100644 node_modules/jsprim/CONTRIBUTING.md create mode 100644 node_modules/jsprim/LICENSE create mode 100644 node_modules/jsprim/README.md create mode 100644 node_modules/jsprim/lib/jsprim.js create mode 100644 node_modules/jsprim/package.json create mode 100644 node_modules/light-my-request/.travis.yml create mode 100755 node_modules/light-my-request/LICENSE create mode 100644 node_modules/light-my-request/README.md create mode 100644 node_modules/light-my-request/index.d.ts create mode 100644 node_modules/light-my-request/index.js create mode 100644 node_modules/light-my-request/lib/parseURL.js create mode 100644 node_modules/light-my-request/lib/request.js create mode 100644 node_modules/light-my-request/lib/response.js create mode 100644 node_modules/light-my-request/package.json create mode 100644 node_modules/light-my-request/test/async-await.js create mode 100644 node_modules/light-my-request/test/index.test-d.ts create mode 100644 node_modules/light-my-request/test/test.js create mode 100644 node_modules/light-my-request/tsconfig.json create mode 100644 node_modules/lodash._basebind/LICENSE.txt create mode 100644 node_modules/lodash._basebind/README.md create mode 100644 node_modules/lodash._basebind/index.js create mode 100644 node_modules/lodash._basebind/package.json create mode 100644 node_modules/lodash._basecreate/LICENSE.txt create mode 100644 node_modules/lodash._basecreate/README.md create mode 100644 node_modules/lodash._basecreate/index.js create mode 100644 node_modules/lodash._basecreate/package.json create mode 100644 node_modules/lodash._basecreatecallback/LICENSE.txt create mode 100644 node_modules/lodash._basecreatecallback/README.md create mode 100644 node_modules/lodash._basecreatecallback/index.js create mode 100644 node_modules/lodash._basecreatecallback/package.json create mode 100644 node_modules/lodash._basecreatewrapper/LICENSE.txt create mode 100644 node_modules/lodash._basecreatewrapper/README.md create mode 100644 node_modules/lodash._basecreatewrapper/index.js create mode 100644 node_modules/lodash._basecreatewrapper/package.json create mode 100644 node_modules/lodash._createwrapper/LICENSE.txt create mode 100644 node_modules/lodash._createwrapper/README.md create mode 100644 node_modules/lodash._createwrapper/index.js create mode 100644 node_modules/lodash._createwrapper/package.json create mode 100644 node_modules/lodash._objecttypes/LICENSE.txt create mode 100644 node_modules/lodash._objecttypes/README.md create mode 100644 node_modules/lodash._objecttypes/index.js create mode 100644 node_modules/lodash._objecttypes/package.json create mode 100644 node_modules/lodash._renative/LICENSE.txt create mode 100644 node_modules/lodash._renative/README.md create mode 100644 node_modules/lodash._renative/index.js create mode 100644 node_modules/lodash._renative/package.json create mode 100644 node_modules/lodash._setbinddata/LICENSE.txt create mode 100644 node_modules/lodash._setbinddata/README.md create mode 100644 node_modules/lodash._setbinddata/index.js create mode 100644 node_modules/lodash._setbinddata/package.json create mode 100644 node_modules/lodash._shimkeys/LICENSE.txt create mode 100644 node_modules/lodash._shimkeys/README.md create mode 100644 node_modules/lodash._shimkeys/index.js create mode 100644 node_modules/lodash._shimkeys/package.json create mode 100644 node_modules/lodash._slice/LICENSE.txt create mode 100644 node_modules/lodash._slice/README.md create mode 100644 node_modules/lodash._slice/index.js create mode 100644 node_modules/lodash._slice/package.json create mode 100644 node_modules/lodash.bind/LICENSE.txt create mode 100644 node_modules/lodash.bind/README.md create mode 100644 node_modules/lodash.bind/index.js create mode 100644 node_modules/lodash.bind/package.json create mode 100644 node_modules/lodash.foreach/LICENSE.txt create mode 100644 node_modules/lodash.foreach/README.md create mode 100644 node_modules/lodash.foreach/index.js create mode 100644 node_modules/lodash.foreach/package.json create mode 100644 node_modules/lodash.forown/LICENSE.txt create mode 100644 node_modules/lodash.forown/README.md create mode 100644 node_modules/lodash.forown/index.js create mode 100644 node_modules/lodash.forown/package.json create mode 100644 node_modules/lodash.identity/LICENSE.txt create mode 100644 node_modules/lodash.identity/README.md create mode 100644 node_modules/lodash.identity/index.js create mode 100644 node_modules/lodash.identity/package.json create mode 100644 node_modules/lodash.isfunction/LICENSE.txt create mode 100644 node_modules/lodash.isfunction/README.md create mode 100644 node_modules/lodash.isfunction/index.js create mode 100644 node_modules/lodash.isfunction/package.json create mode 100644 node_modules/lodash.isobject/LICENSE.txt create mode 100644 node_modules/lodash.isobject/README.md create mode 100644 node_modules/lodash.isobject/index.js create mode 100644 node_modules/lodash.isobject/package.json create mode 100644 node_modules/lodash.keys/LICENSE.txt create mode 100644 node_modules/lodash.keys/README.md create mode 100644 node_modules/lodash.keys/index.js create mode 100644 node_modules/lodash.keys/package.json create mode 100644 node_modules/lodash.noop/LICENSE.txt create mode 100644 node_modules/lodash.noop/README.md create mode 100644 node_modules/lodash.noop/index.js create mode 100644 node_modules/lodash.noop/package.json create mode 100644 node_modules/lodash.support/LICENSE.txt create mode 100644 node_modules/lodash.support/README.md create mode 100644 node_modules/lodash.support/index.js create mode 100644 node_modules/lodash.support/package.json create mode 100644 node_modules/lodash.uniqby/LICENSE create mode 100644 node_modules/lodash.uniqby/README.md create mode 100644 node_modules/lodash.uniqby/index.js create mode 100644 node_modules/lodash.uniqby/package.json create mode 100644 node_modules/middie/.travis.yml create mode 100644 node_modules/middie/LICENSE create mode 100644 node_modules/middie/README.md create mode 100644 node_modules/middie/middie.js create mode 100644 node_modules/middie/package.json create mode 100644 node_modules/middie/test.js create mode 100644 node_modules/mime-db/HISTORY.md create mode 100644 node_modules/mime-db/LICENSE create mode 100644 node_modules/mime-db/README.md create mode 100644 node_modules/mime-db/db.json create mode 100644 node_modules/mime-db/index.js create mode 100644 node_modules/mime-db/package.json create mode 100644 node_modules/mime-types/HISTORY.md create mode 100644 node_modules/mime-types/LICENSE create mode 100644 node_modules/mime-types/README.md create mode 100644 node_modules/mime-types/index.js create mode 100644 node_modules/mime-types/package.json create mode 100644 node_modules/mime/LICENSE create mode 100644 node_modules/mime/README.md create mode 100644 node_modules/mime/build/build.js create mode 100644 node_modules/mime/build/test.js create mode 100755 node_modules/mime/cli.js create mode 100644 node_modules/mime/mime.js create mode 100644 node_modules/mime/package.json create mode 100644 node_modules/mime/types.json create mode 100644 node_modules/minimatch/LICENSE create mode 100644 node_modules/minimatch/README.md create mode 100644 node_modules/minimatch/minimatch.js create mode 100644 node_modules/minimatch/package.json create mode 100644 node_modules/minimist/.travis.yml create mode 100644 node_modules/minimist/LICENSE create mode 100644 node_modules/minimist/example/parse.js create mode 100644 node_modules/minimist/index.js create mode 100644 node_modules/minimist/package.json create mode 100644 node_modules/minimist/readme.markdown create mode 100644 node_modules/minimist/test/bool.js create mode 100644 node_modules/minimist/test/dash.js create mode 100644 node_modules/minimist/test/default_bool.js create mode 100644 node_modules/minimist/test/dotted.js create mode 100644 node_modules/minimist/test/long.js create mode 100644 node_modules/minimist/test/num.js create mode 100644 node_modules/minimist/test/parse.js create mode 100644 node_modules/minimist/test/parse_modified.js create mode 100644 node_modules/minimist/test/short.js create mode 100644 node_modules/minimist/test/whitespace.js create mode 100644 node_modules/ms/index.js create mode 100644 node_modules/ms/license.md create mode 100644 node_modules/ms/package.json create mode 100644 node_modules/ms/readme.md create mode 100644 node_modules/neo-async/LICENSE create mode 100644 node_modules/neo-async/README.md create mode 100644 node_modules/neo-async/all.js create mode 100644 node_modules/neo-async/allLimit.js create mode 100644 node_modules/neo-async/allSeries.js create mode 100644 node_modules/neo-async/angelFall.js create mode 100644 node_modules/neo-async/any.js create mode 100644 node_modules/neo-async/anyLimit.js create mode 100644 node_modules/neo-async/anySeries.js create mode 100644 node_modules/neo-async/apply.js create mode 100644 node_modules/neo-async/applyEach.js create mode 100644 node_modules/neo-async/applyEachSeries.js create mode 100644 node_modules/neo-async/async.js create mode 100644 node_modules/neo-async/async.min.js create mode 100644 node_modules/neo-async/asyncify.js create mode 100644 node_modules/neo-async/auto.js create mode 100644 node_modules/neo-async/autoInject.js create mode 100644 node_modules/neo-async/cargo.js create mode 100644 node_modules/neo-async/compose.js create mode 100644 node_modules/neo-async/concat.js create mode 100644 node_modules/neo-async/concatLimit.js create mode 100644 node_modules/neo-async/concatSeries.js create mode 100644 node_modules/neo-async/constant.js create mode 100644 node_modules/neo-async/createLogger.js create mode 100644 node_modules/neo-async/detect.js create mode 100644 node_modules/neo-async/detectLimit.js create mode 100644 node_modules/neo-async/detectSeries.js create mode 100644 node_modules/neo-async/dir.js create mode 100644 node_modules/neo-async/doDuring.js create mode 100644 node_modules/neo-async/doUntil.js create mode 100644 node_modules/neo-async/doWhilst.js create mode 100644 node_modules/neo-async/during.js create mode 100644 node_modules/neo-async/each.js create mode 100644 node_modules/neo-async/eachLimit.js create mode 100644 node_modules/neo-async/eachOf.js create mode 100644 node_modules/neo-async/eachOfLimit.js create mode 100644 node_modules/neo-async/eachOfSeries.js create mode 100644 node_modules/neo-async/eachSeries.js create mode 100644 node_modules/neo-async/ensureAsync.js create mode 100644 node_modules/neo-async/every.js create mode 100644 node_modules/neo-async/everyLimit.js create mode 100644 node_modules/neo-async/everySeries.js create mode 100644 node_modules/neo-async/fast.js create mode 100644 node_modules/neo-async/filter.js create mode 100644 node_modules/neo-async/filterLimit.js create mode 100644 node_modules/neo-async/filterSeries.js create mode 100644 node_modules/neo-async/find.js create mode 100644 node_modules/neo-async/findLimit.js create mode 100644 node_modules/neo-async/findSeries.js create mode 100644 node_modules/neo-async/foldl.js create mode 100644 node_modules/neo-async/foldr.js create mode 100644 node_modules/neo-async/forEach.js create mode 100644 node_modules/neo-async/forEachLimit.js create mode 100644 node_modules/neo-async/forEachOf.js create mode 100644 node_modules/neo-async/forEachOfLimit.js create mode 100644 node_modules/neo-async/forEachOfSeries.js create mode 100644 node_modules/neo-async/forEachSeries.js create mode 100644 node_modules/neo-async/forever.js create mode 100644 node_modules/neo-async/groupBy.js create mode 100644 node_modules/neo-async/groupByLimit.js create mode 100644 node_modules/neo-async/groupBySeries.js create mode 100644 node_modules/neo-async/inject.js create mode 100644 node_modules/neo-async/iterator.js create mode 100644 node_modules/neo-async/log.js create mode 100644 node_modules/neo-async/map.js create mode 100644 node_modules/neo-async/mapLimit.js create mode 100644 node_modules/neo-async/mapSeries.js create mode 100644 node_modules/neo-async/mapValues.js create mode 100644 node_modules/neo-async/mapValuesLimit.js create mode 100644 node_modules/neo-async/mapValuesSeries.js create mode 100644 node_modules/neo-async/memoize.js create mode 100644 node_modules/neo-async/nextTick.js create mode 100644 node_modules/neo-async/omit.js create mode 100644 node_modules/neo-async/omitLimit.js create mode 100644 node_modules/neo-async/omitSeries.js create mode 100644 node_modules/neo-async/package.json create mode 100644 node_modules/neo-async/parallel.js create mode 100644 node_modules/neo-async/parallelLimit.js create mode 100644 node_modules/neo-async/pick.js create mode 100644 node_modules/neo-async/pickLimit.js create mode 100644 node_modules/neo-async/pickSeries.js create mode 100644 node_modules/neo-async/priorityQueue.js create mode 100644 node_modules/neo-async/queue.js create mode 100644 node_modules/neo-async/race.js create mode 100644 node_modules/neo-async/reduce.js create mode 100644 node_modules/neo-async/reduceRight.js create mode 100644 node_modules/neo-async/reflect.js create mode 100644 node_modules/neo-async/reflectAll.js create mode 100644 node_modules/neo-async/reject.js create mode 100644 node_modules/neo-async/rejectLimit.js create mode 100644 node_modules/neo-async/rejectSeries.js create mode 100644 node_modules/neo-async/retry.js create mode 100644 node_modules/neo-async/retryable.js create mode 100644 node_modules/neo-async/safe.js create mode 100644 node_modules/neo-async/select.js create mode 100644 node_modules/neo-async/selectLimit.js create mode 100644 node_modules/neo-async/selectSeries.js create mode 100644 node_modules/neo-async/seq.js create mode 100644 node_modules/neo-async/series.js create mode 100644 node_modules/neo-async/setImmediate.js create mode 100644 node_modules/neo-async/some.js create mode 100644 node_modules/neo-async/someLimit.js create mode 100644 node_modules/neo-async/someSeries.js create mode 100644 node_modules/neo-async/sortBy.js create mode 100644 node_modules/neo-async/sortByLimit.js create mode 100644 node_modules/neo-async/sortBySeries.js create mode 100644 node_modules/neo-async/timeout.js create mode 100644 node_modules/neo-async/times.js create mode 100644 node_modules/neo-async/timesLimit.js create mode 100644 node_modules/neo-async/timesSeries.js create mode 100644 node_modules/neo-async/transform.js create mode 100644 node_modules/neo-async/transformLimit.js create mode 100644 node_modules/neo-async/transformSeries.js create mode 100644 node_modules/neo-async/tryEach.js create mode 100644 node_modules/neo-async/unmemoize.js create mode 100644 node_modules/neo-async/until.js create mode 100644 node_modules/neo-async/waterfall.js create mode 100644 node_modules/neo-async/whilst.js create mode 100644 node_modules/neo-async/wrapSync.js create mode 100644 node_modules/node-fetch/CHANGELOG.md create mode 100644 node_modules/node-fetch/LICENSE.md create mode 100644 node_modules/node-fetch/README.md create mode 100644 node_modules/node-fetch/browser.js create mode 100644 node_modules/node-fetch/lib/index.es.js create mode 100644 node_modules/node-fetch/lib/index.js create mode 100644 node_modules/node-fetch/lib/index.mjs create mode 100644 node_modules/node-fetch/package.json create mode 100644 node_modules/oauth-sign/LICENSE create mode 100644 node_modules/oauth-sign/README.md create mode 100644 node_modules/oauth-sign/index.js create mode 100644 node_modules/oauth-sign/package.json create mode 100644 node_modules/on-finished/HISTORY.md create mode 100644 node_modules/on-finished/LICENSE create mode 100644 node_modules/on-finished/README.md create mode 100644 node_modules/on-finished/index.js create mode 100644 node_modules/on-finished/package.json create mode 100644 node_modules/once/LICENSE create mode 100644 node_modules/once/README.md create mode 100644 node_modules/once/once.js create mode 100644 node_modules/once/package.json create mode 100644 node_modules/optimist/.travis.yml create mode 100644 node_modules/optimist/LICENSE create mode 100644 node_modules/optimist/example/bool.js create mode 100644 node_modules/optimist/example/boolean_double.js create mode 100644 node_modules/optimist/example/boolean_single.js create mode 100644 node_modules/optimist/example/default_hash.js create mode 100644 node_modules/optimist/example/default_singles.js create mode 100644 node_modules/optimist/example/divide.js create mode 100644 node_modules/optimist/example/line_count.js create mode 100644 node_modules/optimist/example/line_count_options.js create mode 100644 node_modules/optimist/example/line_count_wrap.js create mode 100644 node_modules/optimist/example/nonopt.js create mode 100644 node_modules/optimist/example/reflect.js create mode 100644 node_modules/optimist/example/short.js create mode 100644 node_modules/optimist/example/string.js create mode 100644 node_modules/optimist/example/usage-options.js create mode 100644 node_modules/optimist/example/xup.js create mode 100644 node_modules/optimist/index.js create mode 100644 node_modules/optimist/package.json create mode 100644 node_modules/optimist/readme.markdown create mode 100644 node_modules/optimist/test/_.js create mode 100644 node_modules/optimist/test/_/argv.js create mode 100755 node_modules/optimist/test/_/bin.js create mode 100644 node_modules/optimist/test/dash.js create mode 100644 node_modules/optimist/test/parse.js create mode 100644 node_modules/optimist/test/parse_modified.js create mode 100644 node_modules/optimist/test/short.js create mode 100644 node_modules/optimist/test/usage.js create mode 100644 node_modules/optimist/test/whitespace.js create mode 100644 node_modules/parse-github-url/LICENSE create mode 100644 node_modules/parse-github-url/README.md create mode 100755 node_modules/parse-github-url/cli.js create mode 100644 node_modules/parse-github-url/index.js create mode 100644 node_modules/parse-github-url/package.json create mode 100644 node_modules/path-is-absolute/index.js create mode 100644 node_modules/path-is-absolute/license create mode 100644 node_modules/path-is-absolute/package.json create mode 100644 node_modules/path-is-absolute/readme.md create mode 100644 node_modules/path-to-regexp/History.md create mode 100644 node_modules/path-to-regexp/LICENSE create mode 100644 node_modules/path-to-regexp/Readme.md create mode 100644 node_modules/path-to-regexp/index.d.ts create mode 100644 node_modules/path-to-regexp/index.js create mode 100644 node_modules/path-to-regexp/package.json create mode 100644 node_modules/performance-now/.npmignore create mode 100644 node_modules/performance-now/.tm_properties create mode 100644 node_modules/performance-now/.travis.yml create mode 100644 node_modules/performance-now/README.md create mode 100644 node_modules/performance-now/lib/performance-now.js create mode 100644 node_modules/performance-now/lib/performance-now.js.map create mode 100644 node_modules/performance-now/license.txt create mode 100644 node_modules/performance-now/package.json create mode 100644 node_modules/performance-now/src/index.d.ts create mode 100644 node_modules/performance-now/src/performance-now.coffee create mode 100644 node_modules/performance-now/test/mocha.opts create mode 100644 node_modules/performance-now/test/performance-now.coffee create mode 100644 node_modules/performance-now/test/scripts.coffee create mode 100755 node_modules/performance-now/test/scripts/delayed-call.coffee create mode 100755 node_modules/performance-now/test/scripts/delayed-require.coffee create mode 100755 node_modules/performance-now/test/scripts/difference.coffee create mode 100755 node_modules/performance-now/test/scripts/initial-value.coffee create mode 100644 node_modules/pino-std-serializers/.editorconfig create mode 100644 node_modules/pino-std-serializers/.travis.yml create mode 100644 node_modules/pino-std-serializers/LICENSE create mode 100644 node_modules/pino-std-serializers/Readme.md create mode 100644 node_modules/pino-std-serializers/index.js create mode 100644 node_modules/pino-std-serializers/lib/err.js create mode 100644 node_modules/pino-std-serializers/lib/req.js create mode 100644 node_modules/pino-std-serializers/lib/res.js create mode 100644 node_modules/pino-std-serializers/package.json create mode 100644 node_modules/pino-std-serializers/test/err.test.js create mode 100644 node_modules/pino-std-serializers/test/req.test.js create mode 100644 node_modules/pino-std-serializers/test/res.test.js create mode 100644 node_modules/pino/LICENSE create mode 100644 node_modules/pino/README.md create mode 100755 node_modules/pino/bin.js create mode 100644 node_modules/pino/browser.js create mode 100644 node_modules/pino/docs/api.md create mode 100644 node_modules/pino/docs/benchmarks.md create mode 100644 node_modules/pino/docs/browser.md create mode 100644 node_modules/pino/docs/child-loggers.md create mode 100644 node_modules/pino/docs/ecosystem.md create mode 100644 node_modules/pino/docs/extreme.md create mode 100644 node_modules/pino/docs/help.md create mode 100644 node_modules/pino/docs/legacy.md create mode 100644 node_modules/pino/docs/pretty.md create mode 100644 node_modules/pino/docs/redaction.md create mode 100644 node_modules/pino/docs/transports.md create mode 100644 node_modules/pino/docs/web.md create mode 100644 node_modules/pino/example.js create mode 100644 node_modules/pino/lib/levels.js create mode 100644 node_modules/pino/lib/meta.js create mode 100644 node_modules/pino/lib/proto.js create mode 100644 node_modules/pino/lib/redaction.js create mode 100644 node_modules/pino/lib/symbols.js create mode 100644 node_modules/pino/lib/time.js create mode 100644 node_modules/pino/lib/tools.js create mode 100644 node_modules/pino/package.json create mode 100644 node_modules/pino/pino.js create mode 100644 node_modules/pino/test/basic.test.js create mode 100644 node_modules/pino/test/broken-pipe.test.js create mode 100644 node_modules/pino/test/browser-levels.test.js create mode 100644 node_modules/pino/test/browser-serializers.test.js create mode 100644 node_modules/pino/test/browser-transmit.test.js create mode 100644 node_modules/pino/test/browser.test.js create mode 100644 node_modules/pino/test/crlf.test.js create mode 100644 node_modules/pino/test/custom-levels.test.js create mode 100644 node_modules/pino/test/error.test.js create mode 100644 node_modules/pino/test/escaping.test.js create mode 100644 node_modules/pino/test/exit.test.js create mode 100644 node_modules/pino/test/extreme.test.js create mode 100644 node_modules/pino/test/final.test.js create mode 100644 node_modules/pino/test/fixtures/broken-pipe/basic.js create mode 100644 node_modules/pino/test/fixtures/broken-pipe/destination.js create mode 100644 node_modules/pino/test/fixtures/broken-pipe/extreme.js create mode 100644 node_modules/pino/test/fixtures/destination-exit.js create mode 100644 node_modules/pino/test/fixtures/extreme-child.js create mode 100644 node_modules/pino/test/fixtures/extreme-exit.js create mode 100644 node_modules/pino/test/fixtures/extreme-flush-exit.js create mode 100644 node_modules/pino/test/fixtures/extreme.js create mode 100644 node_modules/pino/test/fixtures/pretty/basic.js create mode 100644 node_modules/pino/test/fixtures/pretty/child.js create mode 100644 node_modules/pino/test/fixtures/pretty/custom-time.js create mode 100644 node_modules/pino/test/fixtures/pretty/dateformat.js create mode 100644 node_modules/pino/test/fixtures/pretty/error-props.js create mode 100644 node_modules/pino/test/fixtures/pretty/error.js create mode 100644 node_modules/pino/test/fixtures/pretty/final-no-log-before.js create mode 100644 node_modules/pino/test/fixtures/pretty/final-return.js create mode 100644 node_modules/pino/test/fixtures/pretty/final.js create mode 100644 node_modules/pino/test/fixtures/pretty/level-first.js create mode 100644 node_modules/pino/test/fixtures/pretty/no-time.js create mode 100644 node_modules/pino/test/fixtures/pretty/obj-msg-prop.js create mode 100644 node_modules/pino/test/fixtures/pretty/pretty-factory.js create mode 100644 node_modules/pino/test/fixtures/pretty/redact.js create mode 100644 node_modules/pino/test/fixtures/pretty/serializers.js create mode 100644 node_modules/pino/test/fixtures/pretty/skipped-output.js create mode 100644 node_modules/pino/test/fixtures/stdout-hack-protection.js create mode 100644 node_modules/pino/test/helper.js create mode 100644 node_modules/pino/test/http.test.js create mode 100644 node_modules/pino/test/is-level-enabled.test.js create mode 100644 node_modules/pino/test/levels.test.js create mode 100644 node_modules/pino/test/metadata.test.js create mode 100644 node_modules/pino/test/pretty.test.js create mode 100644 node_modules/pino/test/redact.test.js create mode 100644 node_modules/pino/test/serializers.test.js create mode 100644 node_modules/pino/test/stdout-protection.test.js create mode 100644 node_modules/pino/test/timestamp.test.js create mode 100644 node_modules/proxy-addr/HISTORY.md create mode 100644 node_modules/proxy-addr/LICENSE create mode 100644 node_modules/proxy-addr/README.md create mode 100644 node_modules/proxy-addr/index.js create mode 100644 node_modules/proxy-addr/package.json create mode 100644 node_modules/psl/.eslintignore create mode 100644 node_modules/psl/.eslintrc create mode 100644 node_modules/psl/.travis.yml create mode 100644 node_modules/psl/LICENSE create mode 100644 node_modules/psl/README.md create mode 100644 node_modules/psl/data/rules.json create mode 100644 node_modules/psl/dist/psl.js create mode 100644 node_modules/psl/dist/psl.min.js create mode 100644 node_modules/psl/index.js create mode 100644 node_modules/psl/karma.conf.js create mode 100644 node_modules/psl/package.json create mode 100644 node_modules/psl/yarn.lock create mode 100644 node_modules/punycode/LICENSE-MIT.txt create mode 100644 node_modules/punycode/README.md create mode 100644 node_modules/punycode/package.json create mode 100644 node_modules/punycode/punycode.es6.js create mode 100644 node_modules/punycode/punycode.js create mode 100644 node_modules/qs/.editorconfig create mode 100644 node_modules/qs/.eslintignore create mode 100644 node_modules/qs/.eslintrc create mode 100644 node_modules/qs/CHANGELOG.md create mode 100644 node_modules/qs/LICENSE create mode 100644 node_modules/qs/README.md create mode 100644 node_modules/qs/dist/qs.js create mode 100644 node_modules/qs/lib/formats.js create mode 100644 node_modules/qs/lib/index.js create mode 100644 node_modules/qs/lib/parse.js create mode 100644 node_modules/qs/lib/stringify.js create mode 100644 node_modules/qs/lib/utils.js create mode 100644 node_modules/qs/package.json create mode 100644 node_modules/qs/test/.eslintrc create mode 100644 node_modules/qs/test/index.js create mode 100644 node_modules/qs/test/parse.js create mode 100644 node_modules/qs/test/stringify.js create mode 100644 node_modules/qs/test/utils.js create mode 100644 node_modules/quick-format-unescaped/.travis.yml create mode 100644 node_modules/quick-format-unescaped/LICENSE create mode 100644 node_modules/quick-format-unescaped/benchmark.js create mode 100644 node_modules/quick-format-unescaped/index.js create mode 100644 node_modules/quick-format-unescaped/package.json create mode 100644 node_modules/quick-format-unescaped/readme.md create mode 100644 node_modules/quick-format-unescaped/test/index.js create mode 100644 node_modules/range-parser/HISTORY.md create mode 100644 node_modules/range-parser/LICENSE create mode 100644 node_modules/range-parser/README.md create mode 100644 node_modules/range-parser/index.js create mode 100644 node_modules/range-parser/package.json create mode 100644 node_modules/readable-stream/CONTRIBUTING.md create mode 100644 node_modules/readable-stream/GOVERNANCE.md create mode 100644 node_modules/readable-stream/LICENSE create mode 100644 node_modules/readable-stream/README.md create mode 100644 node_modules/readable-stream/errors-browser.js create mode 100644 node_modules/readable-stream/errors.js create mode 100644 node_modules/readable-stream/experimentalWarning.js create mode 100644 node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 node_modules/readable-stream/lib/_stream_readable.js create mode 100644 node_modules/readable-stream/lib/_stream_transform.js create mode 100644 node_modules/readable-stream/lib/_stream_writable.js create mode 100644 node_modules/readable-stream/lib/internal/streams/async_iterator.js create mode 100644 node_modules/readable-stream/lib/internal/streams/buffer_list.js create mode 100644 node_modules/readable-stream/lib/internal/streams/destroy.js create mode 100644 node_modules/readable-stream/lib/internal/streams/end-of-stream.js create mode 100644 node_modules/readable-stream/lib/internal/streams/pipeline.js create mode 100644 node_modules/readable-stream/lib/internal/streams/state.js create mode 100644 node_modules/readable-stream/lib/internal/streams/stream-browser.js create mode 100644 node_modules/readable-stream/lib/internal/streams/stream.js create mode 100644 node_modules/readable-stream/package.json create mode 100644 node_modules/readable-stream/readable-browser.js create mode 100644 node_modules/readable-stream/readable.js create mode 100644 node_modules/regenerator-runtime/LICENSE create mode 100644 node_modules/regenerator-runtime/README.md create mode 100644 node_modules/regenerator-runtime/package.json create mode 100644 node_modules/regenerator-runtime/path.js create mode 100644 node_modules/regenerator-runtime/runtime.js create mode 100644 node_modules/request/CHANGELOG.md create mode 100644 node_modules/request/LICENSE create mode 100644 node_modules/request/README.md create mode 100755 node_modules/request/index.js create mode 100644 node_modules/request/lib/auth.js create mode 100644 node_modules/request/lib/cookies.js create mode 100644 node_modules/request/lib/getProxyFromURI.js create mode 100644 node_modules/request/lib/har.js create mode 100644 node_modules/request/lib/hawk.js create mode 100644 node_modules/request/lib/helpers.js create mode 100644 node_modules/request/lib/multipart.js create mode 100644 node_modules/request/lib/oauth.js create mode 100644 node_modules/request/lib/querystring.js create mode 100644 node_modules/request/lib/redirect.js create mode 100644 node_modules/request/lib/tunnel.js create mode 100644 node_modules/request/package.json create mode 100644 node_modules/request/request.js create mode 100644 node_modules/ret/LICENSE create mode 100644 node_modules/ret/README.md create mode 100644 node_modules/ret/lib/index.js create mode 100644 node_modules/ret/lib/positions.js create mode 100644 node_modules/ret/lib/sets.js create mode 100644 node_modules/ret/lib/types.js create mode 100644 node_modules/ret/lib/util.js create mode 100644 node_modules/ret/package.json create mode 100644 node_modules/reusify/.coveralls.yml create mode 100644 node_modules/reusify/.travis.yml create mode 100644 node_modules/reusify/LICENSE create mode 100644 node_modules/reusify/README.md create mode 100644 node_modules/reusify/benchmarks/createNoCodeFunction.js create mode 100644 node_modules/reusify/benchmarks/fib.js create mode 100644 node_modules/reusify/benchmarks/reuseNoCodeFunction.js create mode 100644 node_modules/reusify/package.json create mode 100644 node_modules/reusify/reusify.js create mode 100644 node_modules/reusify/test.js create mode 100644 node_modules/rfdc/LICENSE create mode 100644 node_modules/rfdc/index.js create mode 100644 node_modules/rfdc/package.json create mode 100644 node_modules/rfdc/readme.md create mode 100644 node_modules/rfdc/test/index.js create mode 100644 node_modules/safe-buffer/LICENSE create mode 100644 node_modules/safe-buffer/README.md create mode 100644 node_modules/safe-buffer/index.d.ts create mode 100644 node_modules/safe-buffer/index.js create mode 100644 node_modules/safe-buffer/package.json create mode 100644 node_modules/safe-regex2/.travis.yml create mode 100644 node_modules/safe-regex2/LICENSE create mode 100644 node_modules/safe-regex2/example/safe.js create mode 100644 node_modules/safe-regex2/index.js create mode 100644 node_modules/safe-regex2/package.json create mode 100644 node_modules/safe-regex2/readme.markdown create mode 100644 node_modules/safe-regex2/test/regex.js create mode 100644 node_modules/safer-buffer/LICENSE create mode 100644 node_modules/safer-buffer/Porting-Buffer.md create mode 100644 node_modules/safer-buffer/Readme.md create mode 100644 node_modules/safer-buffer/dangerous.js create mode 100644 node_modules/safer-buffer/package.json create mode 100644 node_modules/safer-buffer/safer.js create mode 100644 node_modules/safer-buffer/tests.js create mode 100644 node_modules/secure-json-parse/.npmignore create mode 100755 node_modules/secure-json-parse/LICENSE.md create mode 100755 node_modules/secure-json-parse/README.md create mode 100755 node_modules/secure-json-parse/index.js create mode 100644 node_modules/secure-json-parse/package.json create mode 100644 node_modules/semver-store/.travis.yml create mode 100644 node_modules/semver-store/LICENSE create mode 100644 node_modules/semver-store/README.md create mode 100644 node_modules/semver-store/bench.js create mode 100644 node_modules/semver-store/index.js create mode 100644 node_modules/semver-store/package.json create mode 100644 node_modules/semver-store/test.js create mode 100644 node_modules/semver/CHANGELOG.md create mode 100644 node_modules/semver/LICENSE create mode 100644 node_modules/semver/README.md create mode 100755 node_modules/semver/bin/semver.js create mode 100644 node_modules/semver/package.json create mode 100644 node_modules/semver/range.bnf create mode 100644 node_modules/semver/semver.js create mode 100644 node_modules/send/HISTORY.md create mode 100644 node_modules/send/LICENSE create mode 100644 node_modules/send/README.md create mode 100644 node_modules/send/index.js create mode 100644 node_modules/send/node_modules/debug/.coveralls.yml create mode 100644 node_modules/send/node_modules/debug/.eslintrc create mode 100644 node_modules/send/node_modules/debug/.npmignore create mode 100644 node_modules/send/node_modules/debug/.travis.yml create mode 100644 node_modules/send/node_modules/debug/CHANGELOG.md create mode 100644 node_modules/send/node_modules/debug/LICENSE create mode 100644 node_modules/send/node_modules/debug/Makefile create mode 100644 node_modules/send/node_modules/debug/README.md create mode 100644 node_modules/send/node_modules/debug/component.json create mode 100644 node_modules/send/node_modules/debug/karma.conf.js create mode 100644 node_modules/send/node_modules/debug/node.js create mode 100644 node_modules/send/node_modules/debug/package.json create mode 100644 node_modules/send/node_modules/debug/src/browser.js create mode 100644 node_modules/send/node_modules/debug/src/debug.js create mode 100644 node_modules/send/node_modules/debug/src/index.js create mode 100644 node_modules/send/node_modules/debug/src/inspector-log.js create mode 100644 node_modules/send/node_modules/debug/src/node.js create mode 100644 node_modules/send/node_modules/ms/index.js create mode 100644 node_modules/send/node_modules/ms/license.md create mode 100644 node_modules/send/node_modules/ms/package.json create mode 100644 node_modules/send/node_modules/ms/readme.md create mode 100644 node_modules/send/package.json create mode 100644 node_modules/setprototypeof/LICENSE create mode 100644 node_modules/setprototypeof/README.md create mode 100644 node_modules/setprototypeof/index.d.ts create mode 100644 node_modules/setprototypeof/index.js create mode 100644 node_modules/setprototypeof/package.json create mode 100644 node_modules/sonic-boom/.travis.yml create mode 100644 node_modules/sonic-boom/LICENSE create mode 100644 node_modules/sonic-boom/README.md create mode 100644 node_modules/sonic-boom/bench.js create mode 100644 node_modules/sonic-boom/check.js create mode 100644 node_modules/sonic-boom/example.js create mode 100644 node_modules/sonic-boom/fixtures/firehose.js create mode 100644 node_modules/sonic-boom/index.js create mode 100644 node_modules/sonic-boom/package.json create mode 100644 node_modules/sonic-boom/test.js create mode 100644 node_modules/source-map/CHANGELOG.md create mode 100644 node_modules/source-map/LICENSE create mode 100644 node_modules/source-map/README.md create mode 100644 node_modules/source-map/dist/source-map.debug.js create mode 100644 node_modules/source-map/dist/source-map.js create mode 100644 node_modules/source-map/dist/source-map.min.js create mode 100644 node_modules/source-map/dist/source-map.min.js.map create mode 100644 node_modules/source-map/lib/array-set.js create mode 100644 node_modules/source-map/lib/base64-vlq.js create mode 100644 node_modules/source-map/lib/base64.js create mode 100644 node_modules/source-map/lib/binary-search.js create mode 100644 node_modules/source-map/lib/mapping-list.js create mode 100644 node_modules/source-map/lib/quick-sort.js create mode 100644 node_modules/source-map/lib/source-map-consumer.js create mode 100644 node_modules/source-map/lib/source-map-generator.js create mode 100644 node_modules/source-map/lib/source-node.js create mode 100644 node_modules/source-map/lib/util.js create mode 100644 node_modules/source-map/package.json create mode 100644 node_modules/source-map/source-map.d.ts create mode 100644 node_modules/source-map/source-map.js create mode 100644 node_modules/sshpk/.npmignore create mode 100644 node_modules/sshpk/.travis.yml create mode 100644 node_modules/sshpk/LICENSE create mode 100644 node_modules/sshpk/README.md create mode 100755 node_modules/sshpk/bin/sshpk-conv create mode 100755 node_modules/sshpk/bin/sshpk-sign create mode 100755 node_modules/sshpk/bin/sshpk-verify create mode 100644 node_modules/sshpk/lib/algs.js create mode 100644 node_modules/sshpk/lib/certificate.js create mode 100644 node_modules/sshpk/lib/dhe.js create mode 100644 node_modules/sshpk/lib/ed-compat.js create mode 100644 node_modules/sshpk/lib/errors.js create mode 100644 node_modules/sshpk/lib/fingerprint.js create mode 100644 node_modules/sshpk/lib/formats/auto.js create mode 100644 node_modules/sshpk/lib/formats/dnssec.js create mode 100644 node_modules/sshpk/lib/formats/openssh-cert.js create mode 100644 node_modules/sshpk/lib/formats/pem.js create mode 100644 node_modules/sshpk/lib/formats/pkcs1.js create mode 100644 node_modules/sshpk/lib/formats/pkcs8.js create mode 100644 node_modules/sshpk/lib/formats/putty.js create mode 100644 node_modules/sshpk/lib/formats/rfc4253.js create mode 100644 node_modules/sshpk/lib/formats/ssh-private.js create mode 100644 node_modules/sshpk/lib/formats/ssh.js create mode 100644 node_modules/sshpk/lib/formats/x509-pem.js create mode 100644 node_modules/sshpk/lib/formats/x509.js create mode 100644 node_modules/sshpk/lib/identity.js create mode 100644 node_modules/sshpk/lib/index.js create mode 100644 node_modules/sshpk/lib/key.js create mode 100644 node_modules/sshpk/lib/private-key.js create mode 100644 node_modules/sshpk/lib/signature.js create mode 100644 node_modules/sshpk/lib/ssh-buffer.js create mode 100644 node_modules/sshpk/lib/utils.js create mode 100644 node_modules/sshpk/man/man1/sshpk-conv.1 create mode 100644 node_modules/sshpk/man/man1/sshpk-sign.1 create mode 100644 node_modules/sshpk/man/man1/sshpk-verify.1 create mode 100644 node_modules/sshpk/package.json create mode 100644 node_modules/statuses/HISTORY.md create mode 100644 node_modules/statuses/LICENSE create mode 100644 node_modules/statuses/README.md create mode 100644 node_modules/statuses/codes.json create mode 100644 node_modules/statuses/index.js create mode 100644 node_modules/statuses/package.json create mode 100644 node_modules/string_decoder/LICENSE create mode 100644 node_modules/string_decoder/README.md create mode 100644 node_modules/string_decoder/lib/string_decoder.js create mode 100644 node_modules/string_decoder/package.json create mode 100644 node_modules/tiny-lru/LICENSE create mode 100644 node_modules/tiny-lru/README.md create mode 100644 node_modules/tiny-lru/lib/tiny-lru.es5.js create mode 100644 node_modules/tiny-lru/lib/tiny-lru.js create mode 100644 node_modules/tiny-lru/package.json create mode 100644 node_modules/tough-cookie/LICENSE create mode 100644 node_modules/tough-cookie/README.md create mode 100644 node_modules/tough-cookie/lib/cookie.js create mode 100644 node_modules/tough-cookie/lib/memstore.js create mode 100644 node_modules/tough-cookie/lib/pathMatch.js create mode 100644 node_modules/tough-cookie/lib/permuteDomain.js create mode 100644 node_modules/tough-cookie/lib/pubsuffix-psl.js create mode 100644 node_modules/tough-cookie/lib/store.js create mode 100644 node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt create mode 100644 node_modules/tough-cookie/node_modules/punycode/README.md create mode 100644 node_modules/tough-cookie/node_modules/punycode/package.json create mode 100644 node_modules/tough-cookie/node_modules/punycode/punycode.js create mode 100644 node_modules/tough-cookie/package.json create mode 100644 node_modules/tunnel-agent/LICENSE create mode 100644 node_modules/tunnel-agent/README.md create mode 100644 node_modules/tunnel-agent/index.js create mode 100644 node_modules/tunnel-agent/package.json create mode 100644 node_modules/tweetnacl/.npmignore create mode 100644 node_modules/tweetnacl/AUTHORS.md create mode 100644 node_modules/tweetnacl/CHANGELOG.md create mode 100644 node_modules/tweetnacl/LICENSE create mode 100644 node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md create mode 100644 node_modules/tweetnacl/README.md create mode 100644 node_modules/tweetnacl/nacl-fast.js create mode 100644 node_modules/tweetnacl/nacl-fast.min.js create mode 100644 node_modules/tweetnacl/nacl.d.ts create mode 100644 node_modules/tweetnacl/nacl.js create mode 100644 node_modules/tweetnacl/nacl.min.js create mode 100644 node_modules/tweetnacl/package.json create mode 100644 node_modules/uglify-js/LICENSE create mode 100644 node_modules/uglify-js/README.md create mode 100755 node_modules/uglify-js/bin/uglifyjs create mode 100644 node_modules/uglify-js/lib/ast.js create mode 100644 node_modules/uglify-js/lib/compress.js create mode 100644 node_modules/uglify-js/lib/minify.js create mode 100644 node_modules/uglify-js/lib/mozilla-ast.js create mode 100644 node_modules/uglify-js/lib/output.js create mode 100644 node_modules/uglify-js/lib/parse.js create mode 100644 node_modules/uglify-js/lib/propmangle.js create mode 100644 node_modules/uglify-js/lib/scope.js create mode 100644 node_modules/uglify-js/lib/sourcemap.js create mode 100644 node_modules/uglify-js/lib/transform.js create mode 100644 node_modules/uglify-js/lib/utils.js create mode 100644 node_modules/uglify-js/package.json create mode 100644 node_modules/uglify-js/tools/domprops.json create mode 100644 node_modules/uglify-js/tools/exit.js create mode 100644 node_modules/uglify-js/tools/exports.js create mode 100644 node_modules/uglify-js/tools/node.js create mode 100644 node_modules/uglify-js/tools/props.html create mode 100644 node_modules/uri-js/README.md create mode 100644 node_modules/uri-js/bower.json create mode 100644 node_modules/uri-js/dist/es5/uri.all.d.ts create mode 100644 node_modules/uri-js/dist/es5/uri.all.js create mode 100644 node_modules/uri-js/dist/es5/uri.all.js.map create mode 100644 node_modules/uri-js/dist/es5/uri.all.min.d.ts create mode 100644 node_modules/uri-js/dist/es5/uri.all.min.js create mode 100644 node_modules/uri-js/dist/es5/uri.all.min.js.map create mode 100644 node_modules/uri-js/dist/esnext/index.d.ts create mode 100644 node_modules/uri-js/dist/esnext/index.js create mode 100644 node_modules/uri-js/dist/esnext/index.js.map create mode 100644 node_modules/uri-js/dist/esnext/regexps-iri.d.ts create mode 100644 node_modules/uri-js/dist/esnext/regexps-iri.js create mode 100644 node_modules/uri-js/dist/esnext/regexps-iri.js.map create mode 100644 node_modules/uri-js/dist/esnext/regexps-uri.d.ts create mode 100644 node_modules/uri-js/dist/esnext/regexps-uri.js create mode 100644 node_modules/uri-js/dist/esnext/regexps-uri.js.map create mode 100644 node_modules/uri-js/dist/esnext/schemes/http.d.ts create mode 100644 node_modules/uri-js/dist/esnext/schemes/http.js create mode 100644 node_modules/uri-js/dist/esnext/schemes/http.js.map create mode 100644 node_modules/uri-js/dist/esnext/schemes/https.d.ts create mode 100644 node_modules/uri-js/dist/esnext/schemes/https.js create mode 100644 node_modules/uri-js/dist/esnext/schemes/https.js.map create mode 100644 node_modules/uri-js/dist/esnext/schemes/mailto.d.ts create mode 100644 node_modules/uri-js/dist/esnext/schemes/mailto.js create mode 100644 node_modules/uri-js/dist/esnext/schemes/mailto.js.map create mode 100644 node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts create mode 100644 node_modules/uri-js/dist/esnext/schemes/urn-uuid.js create mode 100644 node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map create mode 100644 node_modules/uri-js/dist/esnext/schemes/urn.d.ts create mode 100644 node_modules/uri-js/dist/esnext/schemes/urn.js create mode 100644 node_modules/uri-js/dist/esnext/schemes/urn.js.map create mode 100644 node_modules/uri-js/dist/esnext/uri.d.ts create mode 100644 node_modules/uri-js/dist/esnext/uri.js create mode 100644 node_modules/uri-js/dist/esnext/uri.js.map create mode 100644 node_modules/uri-js/dist/esnext/util.d.ts create mode 100644 node_modules/uri-js/dist/esnext/util.js create mode 100644 node_modules/uri-js/dist/esnext/util.js.map create mode 100644 node_modules/uri-js/package.json create mode 100644 node_modules/uri-js/rollup.config.js create mode 100644 node_modules/uri-js/src/index.ts create mode 100644 node_modules/uri-js/src/punycode.d.ts create mode 100644 node_modules/uri-js/src/regexps-iri.ts create mode 100644 node_modules/uri-js/src/regexps-uri.ts create mode 100644 node_modules/uri-js/src/schemes/http.ts create mode 100644 node_modules/uri-js/src/schemes/https.ts create mode 100644 node_modules/uri-js/src/schemes/mailto.ts create mode 100644 node_modules/uri-js/src/schemes/urn-uuid.ts create mode 100644 node_modules/uri-js/src/schemes/urn.ts create mode 100644 node_modules/uri-js/src/uri.ts create mode 100644 node_modules/uri-js/src/util.ts create mode 100644 node_modules/uri-js/tests/qunit.css create mode 100644 node_modules/uri-js/tests/qunit.js create mode 100644 node_modules/uri-js/tests/test-es5-min.html create mode 100644 node_modules/uri-js/tests/test-es5.html create mode 100644 node_modules/uri-js/tests/tests.js create mode 100644 node_modules/uri-js/tsconfig.json create mode 100644 node_modules/uri-js/yarn.lock create mode 100644 node_modules/util-deprecate/History.md create mode 100644 node_modules/util-deprecate/LICENSE create mode 100644 node_modules/util-deprecate/README.md create mode 100644 node_modules/util-deprecate/browser.js create mode 100644 node_modules/util-deprecate/node.js create mode 100644 node_modules/util-deprecate/package.json create mode 100644 node_modules/uuid/.eslintrc.json create mode 100644 node_modules/uuid/AUTHORS create mode 100644 node_modules/uuid/CHANGELOG.md create mode 100644 node_modules/uuid/LICENSE.md create mode 100644 node_modules/uuid/README.md create mode 100644 node_modules/uuid/README_js.md create mode 100755 node_modules/uuid/bin/uuid create mode 100644 node_modules/uuid/index.js create mode 100644 node_modules/uuid/lib/bytesToUuid.js create mode 100644 node_modules/uuid/lib/md5-browser.js create mode 100644 node_modules/uuid/lib/md5.js create mode 100644 node_modules/uuid/lib/rng-browser.js create mode 100644 node_modules/uuid/lib/rng.js create mode 100644 node_modules/uuid/lib/sha1-browser.js create mode 100644 node_modules/uuid/lib/sha1.js create mode 100644 node_modules/uuid/lib/v35.js create mode 100644 node_modules/uuid/package.json create mode 100644 node_modules/uuid/v1.js create mode 100644 node_modules/uuid/v3.js create mode 100644 node_modules/uuid/v4.js create mode 100644 node_modules/uuid/v5.js create mode 100644 node_modules/verror/.npmignore create mode 100644 node_modules/verror/CHANGES.md create mode 100644 node_modules/verror/CONTRIBUTING.md create mode 100644 node_modules/verror/LICENSE create mode 100644 node_modules/verror/README.md create mode 100644 node_modules/verror/lib/verror.js create mode 100644 node_modules/verror/package.json create mode 100644 node_modules/wordwrap/LICENSE create mode 100644 node_modules/wordwrap/README.markdown create mode 100644 node_modules/wordwrap/example/center.js create mode 100644 node_modules/wordwrap/example/meat.js create mode 100644 node_modules/wordwrap/index.js create mode 100644 node_modules/wordwrap/package.json create mode 100644 node_modules/wordwrap/test/break.js create mode 100644 node_modules/wordwrap/test/idleness.txt create mode 100644 node_modules/wordwrap/test/wrap.js create mode 100644 node_modules/wrappy/LICENSE create mode 100644 node_modules/wrappy/README.md create mode 100644 node_modules/wrappy/package.json create mode 100644 node_modules/wrappy/wrappy.js create mode 100644 package-lock.json diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a41deea --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,51 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +#### [1.2.6](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.4...1.2.6) + +> 26 September 2019 + +- Update README.md [`df8071f`](https://github.com/Phara0h/WaspsWithBazookas/commit/df8071f18e9ae25f9030039b1a5d8bcc48a241b4) +- Update package.json [`427207f`](https://github.com/Phara0h/WaspsWithBazookas/commit/427207f3dd6ac22dc29dde4018d0e77a800ac649) +- Delete _config.yml [`832a1dc`](https://github.com/Phara0h/WaspsWithBazookas/commit/832a1dcc321e60f7924688a7fa895180638918a6) + +#### [1.2.4](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.3...1.2.4) + +> 2 July 2019 + +- Ceasefire, wasp auto retry and bug squashing [`9230011`](https://github.com/Phara0h/WaspsWithBazookas/commit/9230011b431c88231e67d71b23cbde447226616c) + +#### [1.2.3](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.2...1.2.3) + +> 1 July 2019 + +- Percentage complete and invaild targets [`ea71892`](https://github.com/Phara0h/WaspsWithBazookas/commit/ea71892bf7122fe99777d0d3562fe7c6131276a2) + +#### [1.2.2](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.1...1.2.2) + +> 1 July 2019 + +- Secured from command injections [`ee96f90`](https://github.com/Phara0h/WaspsWithBazookas/commit/ee96f906766e592e870d72e0d9f8bd832fc1a8ce) +- Update README.md [`e03ffeb`](https://github.com/Phara0h/WaspsWithBazookas/commit/e03ffebcfd626e42b98f3053bdb96d69bf5e1357) + +#### [1.2.1](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.0...1.2.1) + +> 19 June 2019 + +- Fixed a quick bug to catch errors on poke [`b2133e7`](https://github.com/Phara0h/WaspsWithBazookas/commit/b2133e72b51aea08678b885f583641150429a458) + +#### [1.2.0](https://github.com/Phara0h/WaspsWithBazookas/compare/1.1.0...1.2.0) + +> 19 June 2019 + +- Wrk params reported, auto checkin in wasps & snoot booping [`614d8e4`](https://github.com/Phara0h/WaspsWithBazookas/commit/614d8e44873475e542eae8813f6a3ec6ddf7130a) +- Create SECURITY.md [`4416182`](https://github.com/Phara0h/WaspsWithBazookas/commit/4416182199ac3152f567bdaa7eb4906130362092) + +#### 1.1.0 + +> 19 June 2019 + +- WRK scripts now work, reporting and the rest of the functionality [`dace65c`](https://github.com/Phara0h/WaspsWithBazookas/commit/dace65c8d25d899f9968e1346f877c60e33df472) +- Basic command line functionality [`7a0cf7e`](https://github.com/Phara0h/WaspsWithBazookas/commit/7a0cf7e883c98c236aad1364404ac34eb40e073b) +- Added some init docs [`3b91133`](https://github.com/Phara0h/WaspsWithBazookas/commit/3b91133104524cb928b20272b0652fc4634e4a9b) diff --git a/changelog-template.hbs b/changelog-template.hbs new file mode 100644 index 0000000..20ff950 --- /dev/null +++ b/changelog-template.hbs @@ -0,0 +1,30 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +{{#each releases}} + {{#if href}} + ###{{#unless major}}#{{/unless}} [{{title}}]({{href}}) + {{else}} + #### {{title}} + {{/if}} + + {{#if tag}} + > {{niceDate}} + {{/if}} + + {{#if summary}} + {{summary}} + {{/if}} + + {{#each merges}} + - {{{message}}}{{#if href}} [`#{{id}}`]({{href}}){{/if}} + {{/each}} + {{#each fixes}} + - {{{commit.subject}}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}} + {{/each}} + {{#each commits}} + - {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}} + {{/each}} + +{{/each}} diff --git a/cli/wwb-cli-spawn-aws.js b/cli/wwb-cli-spawn-aws.js index edab3a6..5aac2f5 100644 --- a/cli/wwb-cli-spawn-aws.js +++ b/cli/wwb-cli-spawn-aws.js @@ -4,11 +4,13 @@ var pwd = require('path').dirname(require.main.filename); var config = require(pwd+'/../config/config.json'); const proc = require('child_process'); const fs = require('fs'); +const EC2 = require('aws-sdk/clients/ec2'); +const ec2 = new AWS.EC2(); -program.on('command:*', function () { - console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' ')); - process.exit(1); -}); +// program.on('command:*', function () { +// console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' ')); +// process.exit(1); +// }); program .option('-w, --wasps ', 'How many wasps instances') @@ -17,5 +19,17 @@ program // Would be cool if someone made this +if(program.config) +{ + config = require(require('path').resolve(program.config)); +} console.log('Under Construction, view github for more details') + +var user-data-script = ` +#!/bin/bash +echo "export WWB_HIVE_IP="ec2-3-92-208-159.compute-1.amazonaws.com"" +echo "export WWB_HIVE_PORT="4269"" +` +// wasp AMI ami-011939fefc51137e9 +// hive AMI ami-0b20c6ff3c67d3b07 diff --git a/cli/wwb-cli-spawn-local.js b/cli/wwb-cli-spawn-local.js index 5a4e0d5..821f8f5 100644 --- a/cli/wwb-cli-spawn-local.js +++ b/cli/wwb-cli-spawn-local.js @@ -104,10 +104,6 @@ program { ip: '0.0.0.0', port: program.hivePort || '4269' - }, - wasp: - { - ip: '0.0.0.0' } } } diff --git a/hive/client/index.html b/hive/client/index.html new file mode 100644 index 0000000..6ddf28c --- /dev/null +++ b/hive/client/index.html @@ -0,0 +1,99 @@ + + + + + + +
+
+ +
Control this Hive directly via:
+
+ + REST + + + + Node.js SDK + + +
+
+ + diff --git a/hive/hive.js b/hive/hive.js index 661e692..e9a9f12 100755 --- a/hive/hive.js +++ b/hive/hive.js @@ -34,7 +34,14 @@ if(process.argv[3]) fs.appendFileSync(logPath, d + '\n'); }; } +fastify.register(require('fastify-static'), { + root: __dirname+"/client", + serve: false, +}); +fastify.get('/', (req, res) =>{ + res.sendFile('index.html'); +}); fastify.get('/wasp/heartbeat/:port', (req, res) => { var found = findWasp(req.ip, req.params.port); @@ -128,7 +135,7 @@ fastify.get('/wasp/boop/snoots', (req, res) => if(completed_requests >= numOfWasps) { - checkHealtStatus(); + checkHealthStatus(); res.code(200).send(`Hive is operational with ${wasps.length} wasps ready and waiting orders.`); console.log(`Total Wasps: ${wasps.length}`) } @@ -564,7 +571,7 @@ var findWasp = function(ip, port) return found; } -var checkHealtStatus = function() +var checkHealthStatus = function() { if(wasps.length > 0) { @@ -589,7 +596,7 @@ var checkHealtStatus = function() } } -setInterval(checkHealtStatus, heartBeatInt); +setInterval(checkHealthStatus, heartBeatInt); console.log('Hive ready to release the wasps!') diff --git a/node_modules/.bin/auto-changelog b/node_modules/.bin/auto-changelog new file mode 120000 index 0000000..a790464 --- /dev/null +++ b/node_modules/.bin/auto-changelog @@ -0,0 +1 @@ +../auto-changelog/lib/index.js \ No newline at end of file diff --git a/node_modules/.bin/handlebars b/node_modules/.bin/handlebars new file mode 120000 index 0000000..fb7d090 --- /dev/null +++ b/node_modules/.bin/handlebars @@ -0,0 +1 @@ +../handlebars/bin/handlebars \ No newline at end of file diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime new file mode 120000 index 0000000..fbb7ee0 --- /dev/null +++ b/node_modules/.bin/mime @@ -0,0 +1 @@ +../mime/cli.js \ No newline at end of file diff --git a/node_modules/.bin/parse-github-url b/node_modules/.bin/parse-github-url new file mode 120000 index 0000000..1a188ef --- /dev/null +++ b/node_modules/.bin/parse-github-url @@ -0,0 +1 @@ +../parse-github-url/cli.js \ No newline at end of file diff --git a/node_modules/.bin/pino b/node_modules/.bin/pino new file mode 120000 index 0000000..9855bfc --- /dev/null +++ b/node_modules/.bin/pino @@ -0,0 +1 @@ +../pino/bin.js \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver new file mode 120000 index 0000000..5aaadf4 --- /dev/null +++ b/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/.bin/sshpk-conv b/node_modules/.bin/sshpk-conv new file mode 120000 index 0000000..a2a295c --- /dev/null +++ b/node_modules/.bin/sshpk-conv @@ -0,0 +1 @@ +../sshpk/bin/sshpk-conv \ No newline at end of file diff --git a/node_modules/.bin/sshpk-sign b/node_modules/.bin/sshpk-sign new file mode 120000 index 0000000..766b9b3 --- /dev/null +++ b/node_modules/.bin/sshpk-sign @@ -0,0 +1 @@ +../sshpk/bin/sshpk-sign \ No newline at end of file diff --git a/node_modules/.bin/sshpk-verify b/node_modules/.bin/sshpk-verify new file mode 120000 index 0000000..bfd7e3a --- /dev/null +++ b/node_modules/.bin/sshpk-verify @@ -0,0 +1 @@ +../sshpk/bin/sshpk-verify \ No newline at end of file diff --git a/node_modules/.bin/uglifyjs b/node_modules/.bin/uglifyjs new file mode 120000 index 0000000..fef3468 --- /dev/null +++ b/node_modules/.bin/uglifyjs @@ -0,0 +1 @@ +../uglify-js/bin/uglifyjs \ No newline at end of file diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid new file mode 120000 index 0000000..b3e45bc --- /dev/null +++ b/node_modules/.bin/uuid @@ -0,0 +1 @@ +../uuid/bin/uuid \ No newline at end of file diff --git a/node_modules/abstract-logging/Readme.md b/node_modules/abstract-logging/Readme.md new file mode 100644 index 0000000..667d357 --- /dev/null +++ b/node_modules/abstract-logging/Readme.md @@ -0,0 +1,40 @@ +# abstract-logging + +This module provides an interface for modules to include so that they can +support logging via an external logger that conforms to the standard Log4j +interface. One such logger is [Pino](https://npm.im/pino). This module +is intended for modules that are meant to be used by other modules. + +Example: + +```js +'use strict' + +function AwesomeLibrary (options) { + this.log = (options.logger) ? options.logger : require('abstract-logging') +} + +AwesomeLibrary.prototype.coolMethod = function () { + this.log.trace('AwesomeLibrary.coolMethod was invoked') + return {} +} + +module.exports = AwesomeLibrary +``` + +## Interface + +Available methods: + ++ `fatal` ++ `error` ++ `warn` ++ `info` ++ `debug` ++ `trace` + +All methods are no operation functions. + +## License + +[MIT License](http://jsumners.mit-license.org/) diff --git a/node_modules/abstract-logging/index.js b/node_modules/abstract-logging/index.js new file mode 100644 index 0000000..7161a54 --- /dev/null +++ b/node_modules/abstract-logging/index.js @@ -0,0 +1,12 @@ +'use strict' + +function noop () {} + +module.exports = { + fatal: noop, + error: noop, + warn: noop, + info: noop, + debug: noop, + trace: noop +} diff --git a/node_modules/abstract-logging/package.json b/node_modules/abstract-logging/package.json new file mode 100644 index 0000000..204a9ce --- /dev/null +++ b/node_modules/abstract-logging/package.json @@ -0,0 +1,56 @@ +{ + "_args": [ + [ + "abstract-logging@1.0.0", + "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas" + ] + ], + "_from": "abstract-logging@1.0.0", + "_id": "abstract-logging@1.0.0", + "_inBundle": false, + "_integrity": "sha1-i33q/TEFWbwo93ck3RuzAXcnjBs=", + "_location": "/abstract-logging", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "abstract-logging@1.0.0", + "name": "abstract-logging", + "escapedName": "abstract-logging", + "rawSpec": "1.0.0", + "saveSpec": null, + "fetchSpec": "1.0.0" + }, + "_requiredBy": [ + "/fastify" + ], + "_resolved": "https://registry.npmjs.org/abstract-logging/-/abstract-logging-1.0.0.tgz", + "_spec": "1.0.0", + "_where": "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas", + "author": { + "name": "James Sumners", + "email": "james.sumners@gmail.com" + }, + "bugs": { + "url": "https://github.com/jsumners/abstract-logging/issues" + }, + "description": "A noop logger that conforms to the Log4j interface for modules to stub out internal logging", + "homepage": "https://github.com/jsumners/abstract-logging#readme", + "keywords": [ + "log", + "logging", + "logger", + "pino" + ], + "license": "MIT", + "main": "index.js", + "name": "abstract-logging", + "repository": { + "type": "git", + "url": "git+https://github.com/jsumners/abstract-logging.git" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "1.0.0" +} diff --git a/node_modules/ajv/.tonic_example.js b/node_modules/ajv/.tonic_example.js new file mode 100644 index 0000000..aa11812 --- /dev/null +++ b/node_modules/ajv/.tonic_example.js @@ -0,0 +1,20 @@ +var Ajv = require('ajv'); +var ajv = new Ajv({allErrors: true}); + +var schema = { + "properties": { + "foo": { "type": "string" }, + "bar": { "type": "number", "maximum": 3 } + } +}; + +var validate = ajv.compile(schema); + +test({"foo": "abc", "bar": 2}); +test({"foo": 2, "bar": 4}); + +function test(data) { + var valid = validate(data); + if (valid) console.log('Valid!'); + else console.log('Invalid: ' + ajv.errorsText(validate.errors)); +} \ No newline at end of file diff --git a/node_modules/ajv/LICENSE b/node_modules/ajv/LICENSE new file mode 100644 index 0000000..96ee719 --- /dev/null +++ b/node_modules/ajv/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015-2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/node_modules/ajv/README.md b/node_modules/ajv/README.md new file mode 100644 index 0000000..c858efd --- /dev/null +++ b/node_modules/ajv/README.md @@ -0,0 +1,1344 @@ +Ajv logo + +# Ajv: Another JSON Schema Validator + +The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/07. + +[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv) +[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) +[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv) +[![Coverage Status](https://coveralls.io/repos/epoberezkin/ajv/badge.svg?branch=master&service=github)](https://coveralls.io/github/epoberezkin/ajv?branch=master) +[![Greenkeeper badge](https://badges.greenkeeper.io/epoberezkin/ajv.svg)](https://greenkeeper.io/) +[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv) + +### _Ajv and [related repositories](#related-packages) will be transfered to [ajv-validator](https://github.com/ajv-validator) org_ + +## Using version 6 + +[JSON Schema draft-07](http://json-schema.org/latest/json-schema-validation.html) is published. + +[Ajv version 6.0.0](https://github.com/epoberezkin/ajv/releases/tag/v6.0.0) that supports draft-07 is released. It may require either migrating your schemas or updating your code (to continue using draft-04 and v5 schemas, draft-06 schemas will be supported without changes). + +__Please note__: To use Ajv with draft-06 schemas you need to explicitly add the meta-schema to the validator instance: + +```javascript +ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json')); +``` + +To use Ajv with draft-04 schemas in addition to explicitly adding meta-schema you also need to use option schemaId: + +```javascript +var ajv = new Ajv({schemaId: 'id'}); +// If you want to use both draft-04 and draft-06/07 schemas: +// var ajv = new Ajv({schemaId: 'auto'}); +ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json')); +``` + + +## Contents + +- [Performance](#performance) +- [Features](#features) +- [Getting started](#getting-started) +- [Frequently Asked Questions](https://github.com/epoberezkin/ajv/blob/master/FAQ.md) +- [Using in browser](#using-in-browser) +- [Command line interface](#command-line-interface) +- Validation + - [Keywords](#validation-keywords) + - [Annotation keywords](#annotation-keywords) + - [Formats](#formats) + - [Combining schemas with $ref](#ref) + - [$data reference](#data-reference) + - NEW: [$merge and $patch keywords](#merge-and-patch-keywords) + - [Defining custom keywords](#defining-custom-keywords) + - [Asynchronous schema compilation](#asynchronous-schema-compilation) + - [Asynchronous validation](#asynchronous-validation) + - [Security considerations](#security-considerations) +- Modifying data during validation + - [Filtering data](#filtering-data) + - [Assigning defaults](#assigning-defaults) + - [Coercing data types](#coercing-data-types) +- API + - [Methods](#api) + - [Options](#options) + - [Validation errors](#validation-errors) +- [Plugins](#plugins) +- [Related packages](#related-packages) +- [Some packages using Ajv](#some-packages-using-ajv) +- [Tests, Contributing, History, License](#tests) + + +## Performance + +Ajv generates code using [doT templates](https://github.com/olado/doT) to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. + +Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks: + +- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place +- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster +- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) +- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html) + + +Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark): + +[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=32,4,1&chs=600x416&chxl=-1:|djv|ajv|json-schema-validator-generator|jsen|is-my-json-valid|themis|z-schema|jsck|skeemas|json-schema-library|tv4&chd=t:100,98,72.1,66.8,50.1,15.1,6.1,3.8,1.2,0.7,0.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance) + + +## Features + +- Ajv implements full JSON Schema [draft-06/07](http://json-schema.org/) and draft-04 standards: + - all validation keywords (see [JSON Schema validation keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md)) + - full support of remote refs (remote schemas have to be added with `addSchema` or compiled to be available) + - support of circular references between schemas + - correct string lengths for strings with unicode pairs (can be turned off) + - [formats](#formats) defined by JSON Schema draft-07 standard and custom formats (can be turned off) + - [validates schemas against meta-schema](#api-validateschema) +- supports [browsers](#using-in-browser) and Node.js 0.10-8.x +- [asynchronous loading](#asynchronous-schema-compilation) of referenced schemas during compilation +- "All errors" validation mode with [option allErrors](#options) +- [error messages with parameters](#validation-errors) describing error reasons to allow creating custom error messages +- i18n error messages support with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package +- [filtering data](#filtering-data) from additional properties +- [assigning defaults](#assigning-defaults) to missing properties and items +- [coercing data](#coercing-data-types) to the types specified in `type` keywords +- [custom keywords](#defining-custom-keywords) +- draft-06/07 keywords `const`, `contains`, `propertyNames` and `if/then/else` +- draft-06 boolean schemas (`true`/`false` as a schema to always pass/fail). +- keywords `switch`, `patternRequired`, `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum` from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) with [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package +- [$data reference](#data-reference) to use values from the validated data as values for the schema keywords +- [asynchronous validation](#asynchronous-validation) of custom formats and keywords + +Currently Ajv is the only validator that passes all the tests from [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) (according to [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark), apart from the test that requires that `1.0` is not an integer that is impossible to satisfy in JavaScript). + + +## Install + +``` +npm install ajv +``` + + +## Getting started + +Try it in the Node.js REPL: https://tonicdev.com/npm/ajv + + +The fastest validation call: + +```javascript +var Ajv = require('ajv'); +var ajv = new Ajv(); // options can be passed, e.g. {allErrors: true} +var validate = ajv.compile(schema); +var valid = validate(data); +if (!valid) console.log(validate.errors); +``` + +or with less code + +```javascript +// ... +var valid = ajv.validate(schema, data); +if (!valid) console.log(ajv.errors); +// ... +``` + +or + +```javascript +// ... +var valid = ajv.addSchema(schema, 'mySchema') + .validate('mySchema', data); +if (!valid) console.log(ajv.errorsText()); +// ... +``` + +See [API](#api) and [Options](#options) for more details. + +Ajv compiles schemas to functions and caches them in all cases (using schema serialized with [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) or a custom function as a key), so that the next time the same schema is used (not necessarily the same object instance) it won't be compiled again. + +The best performance is achieved when using compiled functions returned by `compile` or `getSchema` methods (there is no additional function call). + +__Please note__: every time a validation function or `ajv.validate` are called `errors` property is overwritten. You need to copy `errors` array reference to another variable if you want to use it later (e.g., in the callback). See [Validation errors](#validation-errors) + + +## Using in browser + +You can require Ajv directly from the code you browserify - in this case Ajv will be a part of your bundle. + +If you need to use Ajv in several bundles you can create a separate UMD bundle using `npm run bundle` script (thanks to [siddo420](https://github.com/siddo420)). + +Then you need to load Ajv in the browser: +```html + +``` + +This bundle can be used with different module systems; it creates global `Ajv` if no module system is found. + +The browser bundle is available on [cdnjs](https://cdnjs.com/libraries/ajv). + +Ajv is tested with these browsers: + +[![Sauce Test Status](https://saucelabs.com/browser-matrix/epoberezkin.svg)](https://saucelabs.com/u/epoberezkin) + +__Please note__: some frameworks, e.g. Dojo, may redefine global require in such way that is not compatible with CommonJS module format. In such case Ajv bundle has to be loaded before the framework and then you can use global Ajv (see issue [#234](https://github.com/epoberezkin/ajv/issues/234)). + + +## Command line interface + +CLI is available as a separate npm package [ajv-cli](https://github.com/jessedc/ajv-cli). It supports: + +- compiling JSON Schemas to test their validity +- BETA: generating standalone module exporting a validation function to be used without Ajv (using [ajv-pack](https://github.com/epoberezkin/ajv-pack)) +- migrate schemas to draft-07 (using [json-schema-migrate](https://github.com/epoberezkin/json-schema-migrate)) +- validating data file(s) against JSON Schema +- testing expected validity of data against JSON Schema +- referenced schemas +- custom meta-schemas +- files in JSON and JavaScript format +- all Ajv options +- reporting changes in data after validation in [JSON-patch](https://tools.ietf.org/html/rfc6902) format + + +## Validation keywords + +Ajv supports all validation keywords from draft-07 of JSON Schema standard: + +- [type](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#type) +- [for numbers](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-numbers) - maximum, minimum, exclusiveMaximum, exclusiveMinimum, multipleOf +- [for strings](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-strings) - maxLength, minLength, pattern, format +- [for arrays](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-arrays) - maxItems, minItems, uniqueItems, items, additionalItems, [contains](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#contains) +- [for objects](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-objects) - maxProperties, minProperties, required, properties, patternProperties, additionalProperties, dependencies, [propertyNames](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#propertynames) +- [for all types](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-all-types) - enum, [const](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#const) +- [compound keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) - not, oneOf, anyOf, allOf, [if/then/else](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#ifthenelse) + +With [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package Ajv also supports validation keywords from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) for JSON Schema standard: + +- [patternRequired](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#patternrequired-proposed) - like `required` but with patterns that some property should match. +- [formatMaximum, formatMinimum, formatExclusiveMaximum, formatExclusiveMinimum](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#formatmaximum--formatminimum-and-exclusiveformatmaximum--exclusiveformatminimum-proposed) - setting limits for date, time, etc. + +See [JSON Schema validation keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md) for more details. + + +## Annotation keywords + +JSON Schema specification defines several annotation keywords that describe schema itself but do not perform any validation. + +- `title` and `description`: information about the data represented by that schema +- `$comment` (NEW in draft-07): information for developers. With option `$comment` Ajv logs or passes the comment string to the user-supplied function. See [Options](#options). +- `default`: a default value of the data instance, see [Assigning defaults](#assigning-defaults). +- `examples` (NEW in draft-07): an array of data instances. Ajv does not check the validity of these instances against the schema. +- `readOnly` and `writeOnly` (NEW in draft-07): marks data-instance as read-only or write-only in relation to the source of the data (database, api, etc.). +- `contentEncoding`: [RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.1 ), e.g., "base64". +- `contentMediaType`: [RFC 2046](https://tools.ietf.org/html/rfc2046), e.g., "image/png". + +__Please note__: Ajv does not implement validation of the keywords `examples`, `contentEncoding` and `contentMediaType` but it reserves them. If you want to create a plugin that implements some of them, it should remove these keywords from the instance. + + +## Formats + +The following formats are supported for string validation with "format" keyword: + +- _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6). +- _time_: time with optional time-zone. +- _date-time_: date-time from the same source (time-zone is mandatory). `date`, `time` and `date-time` validate ranges in `full` mode and only regexp in `fast` mode (see [options](#options)). +- _uri_: full URI. +- _uri-reference_: URI reference, including full and relative URIs. +- _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570) +- _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url). +- _email_: email address. +- _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5). +- _ipv4_: IP address v4. +- _ipv6_: IP address v6. +- _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor. +- _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122). +- _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901). +- _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00). + +__Please note__: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. Ajv does not implement these formats. If you create Ajv plugin that implements them please make a PR to mention this plugin here. + +There are two modes of format validation: `fast` and `full`. This mode affects formats `date`, `time`, `date-time`, `uri`, `uri-reference`, `email`, and `hostname`. See [Options](#options) for details. + +You can add additional formats and replace any of the formats above using [addFormat](#api-addformat) method. + +The option `unknownFormats` allows changing the default behaviour when an unknown format is encountered. In this case Ajv can either fail schema compilation (default) or ignore it (default in versions before 5.0.0). You also can whitelist specific format(s) to be ignored. See [Options](#options) for details. + +You can find regular expressions used for format validation and the sources that were used in [formats.js](https://github.com/epoberezkin/ajv/blob/master/lib/compile/formats.js). + + +## Combining schemas with $ref + +You can structure your validation logic across multiple schema files and have schemas reference each other using `$ref` keyword. + +Example: + +```javascript +var schema = { + "$id": "http://example.com/schemas/schema.json", + "type": "object", + "properties": { + "foo": { "$ref": "defs.json#/definitions/int" }, + "bar": { "$ref": "defs.json#/definitions/str" } + } +}; + +var defsSchema = { + "$id": "http://example.com/schemas/defs.json", + "definitions": { + "int": { "type": "integer" }, + "str": { "type": "string" } + } +}; +``` + +Now to compile your schema you can either pass all schemas to Ajv instance: + +```javascript +var ajv = new Ajv({schemas: [schema, defsSchema]}); +var validate = ajv.getSchema('http://example.com/schemas/schema.json'); +``` + +or use `addSchema` method: + +```javascript +var ajv = new Ajv; +var validate = ajv.addSchema(defsSchema) + .compile(schema); +``` + +See [Options](#options) and [addSchema](#api) method. + +__Please note__: +- `$ref` is resolved as the uri-reference using schema $id as the base URI (see the example). +- References can be recursive (and mutually recursive) to implement the schemas for different data structures (such as linked lists, trees, graphs, etc.). +- You don't have to host your schema files at the URIs that you use as schema $id. These URIs are only used to identify the schemas, and according to JSON Schema specification validators should not expect to be able to download the schemas from these URIs. +- The actual location of the schema file in the file system is not used. +- You can pass the identifier of the schema as the second parameter of `addSchema` method or as a property name in `schemas` option. This identifier can be used instead of (or in addition to) schema $id. +- You cannot have the same $id (or the schema identifier) used for more than one schema - the exception will be thrown. +- You can implement dynamic resolution of the referenced schemas using `compileAsync` method. In this way you can store schemas in any system (files, web, database, etc.) and reference them without explicitly adding to Ajv instance. See [Asynchronous schema compilation](#asynchronous-schema-compilation). + + +## $data reference + +With `$data` option you can use values from the validated data as the values for the schema keywords. See [proposal](https://github.com/json-schema/json-schema/wiki/$data-(v5-proposal)) for more information about how it works. + +`$data` reference is supported in the keywords: const, enum, format, maximum/minimum, exclusiveMaximum / exclusiveMinimum, maxLength / minLength, maxItems / minItems, maxProperties / minProperties, formatMaximum / formatMinimum, formatExclusiveMaximum / formatExclusiveMinimum, multipleOf, pattern, required, uniqueItems. + +The value of "$data" should be a [JSON-pointer](https://tools.ietf.org/html/rfc6901) to the data (the root is always the top level data object, even if the $data reference is inside a referenced subschema) or a [relative JSON-pointer](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) (it is relative to the current point in data; if the $data reference is inside a referenced subschema it cannot point to the data outside of the root level for this subschema). + +Examples. + +This schema requires that the value in property `smaller` is less or equal than the value in the property larger: + +```javascript +var ajv = new Ajv({$data: true}); + +var schema = { + "properties": { + "smaller": { + "type": "number", + "maximum": { "$data": "1/larger" } + }, + "larger": { "type": "number" } + } +}; + +var validData = { + smaller: 5, + larger: 7 +}; + +ajv.validate(schema, validData); // true +``` + +This schema requires that the properties have the same format as their field names: + +```javascript +var schema = { + "additionalProperties": { + "type": "string", + "format": { "$data": "0#" } + } +}; + +var validData = { + 'date-time': '1963-06-19T08:30:06.283185Z', + email: 'joe.bloggs@example.com' +} +``` + +`$data` reference is resolved safely - it won't throw even if some property is undefined. If `$data` resolves to `undefined` the validation succeeds (with the exclusion of `const` keyword). If `$data` resolves to incorrect type (e.g. not "number" for maximum keyword) the validation fails. + + +## $merge and $patch keywords + +With the package [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) you can use the keywords `$merge` and `$patch` that allow extending JSON Schemas with patches using formats [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) and [JSON Patch (RFC 6902)](https://tools.ietf.org/html/rfc6902). + +To add keywords `$merge` and `$patch` to Ajv instance use this code: + +```javascript +require('ajv-merge-patch')(ajv); +``` + +Examples. + +Using `$merge`: + +```json +{ + "$merge": { + "source": { + "type": "object", + "properties": { "p": { "type": "string" } }, + "additionalProperties": false + }, + "with": { + "properties": { "q": { "type": "number" } } + } + } +} +``` + +Using `$patch`: + +```json +{ + "$patch": { + "source": { + "type": "object", + "properties": { "p": { "type": "string" } }, + "additionalProperties": false + }, + "with": [ + { "op": "add", "path": "/properties/q", "value": { "type": "number" } } + ] + } +} +``` + +The schemas above are equivalent to this schema: + +```json +{ + "type": "object", + "properties": { + "p": { "type": "string" }, + "q": { "type": "number" } + }, + "additionalProperties": false +} +``` + +The properties `source` and `with` in the keywords `$merge` and `$patch` can use absolute or relative `$ref` to point to other schemas previously added to the Ajv instance or to the fragments of the current schema. + +See the package [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) for more information. + + +## Defining custom keywords + +The advantages of using custom keywords are: + +- allow creating validation scenarios that cannot be expressed using JSON Schema +- simplify your schemas +- help bringing a bigger part of the validation logic to your schemas +- make your schemas more expressive, less verbose and closer to your application domain +- implement custom data processors that modify your data (`modifying` option MUST be used in keyword definition) and/or create side effects while the data is being validated + +If a keyword is used only for side-effects and its validation result is pre-defined, use option `valid: true/false` in keyword definition to simplify both generated code (no error handling in case of `valid: true`) and your keyword functions (no need to return any validation result). + +The concerns you have to be aware of when extending JSON Schema standard with custom keywords are the portability and understanding of your schemas. You will have to support these custom keywords on other platforms and to properly document these keywords so that everybody can understand them in your schemas. + +You can define custom keywords with [addKeyword](#api-addkeyword) method. Keywords are defined on the `ajv` instance level - new instances will not have previously defined keywords. + +Ajv allows defining keywords with: +- validation function +- compilation function +- macro function +- inline compilation function that should return code (as string) that will be inlined in the currently compiled schema. + +Example. `range` and `exclusiveRange` keywords using compiled schema: + +```javascript +ajv.addKeyword('range', { + type: 'number', + compile: function (sch, parentSchema) { + var min = sch[0]; + var max = sch[1]; + + return parentSchema.exclusiveRange === true + ? function (data) { return data > min && data < max; } + : function (data) { return data >= min && data <= max; } + } +}); + +var schema = { "range": [2, 4], "exclusiveRange": true }; +var validate = ajv.compile(schema); +console.log(validate(2.01)); // true +console.log(validate(3.99)); // true +console.log(validate(2)); // false +console.log(validate(4)); // false +``` + +Several custom keywords (typeof, instanceof, range and propertyNames) are defined in [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package - they can be used for your schemas and as a starting point for your own custom keywords. + +See [Defining custom keywords](https://github.com/epoberezkin/ajv/blob/master/CUSTOM.md) for more details. + + +## Asynchronous schema compilation + +During asynchronous compilation remote references are loaded using supplied function. See `compileAsync` [method](#api-compileAsync) and `loadSchema` [option](#options). + +Example: + +```javascript +var ajv = new Ajv({ loadSchema: loadSchema }); + +ajv.compileAsync(schema).then(function (validate) { + var valid = validate(data); + // ... +}); + +function loadSchema(uri) { + return request.json(uri).then(function (res) { + if (res.statusCode >= 400) + throw new Error('Loading error: ' + res.statusCode); + return res.body; + }); +} +``` + +__Please note__: [Option](#options) `missingRefs` should NOT be set to `"ignore"` or `"fail"` for asynchronous compilation to work. + + +## Asynchronous validation + +Example in Node.js REPL: https://tonicdev.com/esp/ajv-asynchronous-validation + +You can define custom formats and keywords that perform validation asynchronously by accessing database or some other service. You should add `async: true` in the keyword or format definition (see [addFormat](#api-addformat), [addKeyword](#api-addkeyword) and [Defining custom keywords](#defining-custom-keywords)). + +If your schema uses asynchronous formats/keywords or refers to some schema that contains them it should have `"$async": true` keyword so that Ajv can compile it correctly. If asynchronous format/keyword or reference to asynchronous schema is used in the schema without `$async` keyword Ajv will throw an exception during schema compilation. + +__Please note__: all asynchronous subschemas that are referenced from the current or other schemas should have `"$async": true` keyword as well, otherwise the schema compilation will fail. + +Validation function for an asynchronous custom format/keyword should return a promise that resolves with `true` or `false` (or rejects with `new Ajv.ValidationError(errors)` if you want to return custom errors from the keyword function). + +Ajv compiles asynchronous schemas to [es7 async functions](http://tc39.github.io/ecmascript-asyncawait/) that can optionally be transpiled with [nodent](https://github.com/MatAtBread/nodent). Async functions are supported in Node.js 7+ and all modern browsers. You can also supply any other transpiler as a function via `processCode` option. See [Options](#options). + +The compiled validation function has `$async: true` property (if the schema is asynchronous), so you can differentiate these functions if you are using both synchronous and asynchronous schemas. + +Validation result will be a promise that resolves with validated data or rejects with an exception `Ajv.ValidationError` that contains the array of validation errors in `errors` property. + + +Example: + +```javascript +var ajv = new Ajv; +// require('ajv-async')(ajv); + +ajv.addKeyword('idExists', { + async: true, + type: 'number', + validate: checkIdExists +}); + + +function checkIdExists(schema, data) { + return knex(schema.table) + .select('id') + .where('id', data) + .then(function (rows) { + return !!rows.length; // true if record is found + }); +} + +var schema = { + "$async": true, + "properties": { + "userId": { + "type": "integer", + "idExists": { "table": "users" } + }, + "postId": { + "type": "integer", + "idExists": { "table": "posts" } + } + } +}; + +var validate = ajv.compile(schema); + +validate({ userId: 1, postId: 19 }) +.then(function (data) { + console.log('Data is valid', data); // { userId: 1, postId: 19 } +}) +.catch(function (err) { + if (!(err instanceof Ajv.ValidationError)) throw err; + // data is invalid + console.log('Validation errors:', err.errors); +}); +``` + +### Using transpilers with asynchronous validation functions. + +[ajv-async](https://github.com/epoberezkin/ajv-async) uses [nodent](https://github.com/MatAtBread/nodent) to transpile async functions. To use another transpiler you should separately install it (or load its bundle in the browser). + + +#### Using nodent + +```javascript +var ajv = new Ajv; +require('ajv-async')(ajv); +// in the browser if you want to load ajv-async bundle separately you can: +// window.ajvAsync(ajv); +var validate = ajv.compile(schema); // transpiled es7 async function +validate(data).then(successFunc).catch(errorFunc); +``` + + +#### Using other transpilers + +```javascript +var ajv = new Ajv({ processCode: transpileFunc }); +var validate = ajv.compile(schema); // transpiled es7 async function +validate(data).then(successFunc).catch(errorFunc); +``` + +See [Options](#options). + + +## Security considerations + +JSON Schema, if properly used, can replace data sanitisation. It doesn't replace other API security considerations. It also introduces additional security aspects to consider. + + +##### Untrusted schemas + +Ajv treats JSON schemas as trusted as your application code. This security model is based on the most common use case, when the schemas are static and bundled together with the application. + +If your schemas are received from untrusted sources (or generated from untrusted data) there are several scenarios you need to prevent: +- compiling schemas can cause stack overflow (if they are too deep) +- compiling schemas can be slow (e.g. [#557](https://github.com/epoberezkin/ajv/issues/557)) +- validating certain data can be slow + +It is difficult to predict all the scenarios, but at the very least it may help to limit the size of untrusted schemas (e.g. limit JSON string length) and also the maximum schema object depth (that can be high for relatively small JSON strings). You also may want to mitigate slow regular expressions in `pattern` and `patternProperties` keywords. + +Regardless the measures you take, using untrusted schemas increases security risks. + + +##### Circular references in JavaScript objects + +Ajv does not support schemas and validated data that have circular references in objects. See [issue #802](https://github.com/epoberezkin/ajv/issues/802). + +An attempt to compile such schemas or validate such data would cause stack overflow (or will not complete in case of asynchronous validation). Depending on the parser you use, untrusted data can lead to circular references. + + +##### Security risks of trusted schemas + +Some keywords in JSON Schemas can lead to very slow validation for certain data. These keywords include (but may be not limited to): + +- `pattern` and `format` for large strings - use `maxLength` to mitigate +- `uniqueItems` for large non-scalar arrays - use `maxItems` to mitigate +- `patternProperties` for large property names - use `propertyNames` to mitigate + +__Please note__: The suggestions above to prevent slow validation would only work if you do NOT use `allErrors: true` in production code (using it would continue validation after validation errors). + +You can validate your JSON schemas against [this meta-schema](https://github.com/epoberezkin/ajv/blob/master/lib/refs/json-schema-secure.json) to check that these recommendations are followed: + +```javascript +const isSchemaSecure = ajv.compile(require('ajv/lib/refs/json-schema-secure.json')); + +const schema1 = {format: 'email'}; +isSchemaSecure(schema1); // false + +const schema2 = {format: 'email', maxLength: 256}; +isSchemaSecure(schema2); // true +``` + +__Please note__: following all these recommendation is not a guarantee that validation of untrusted data is safe - it can still lead to some undesirable results. + + +## Filtering data + +With [option `removeAdditional`](#options) (added by [andyscott](https://github.com/andyscott)) you can filter data during the validation. + +This option modifies original data. + +Example: + +```javascript +var ajv = new Ajv({ removeAdditional: true }); +var schema = { + "additionalProperties": false, + "properties": { + "foo": { "type": "number" }, + "bar": { + "additionalProperties": { "type": "number" }, + "properties": { + "baz": { "type": "string" } + } + } + } +} + +var data = { + "foo": 0, + "additional1": 1, // will be removed; `additionalProperties` == false + "bar": { + "baz": "abc", + "additional2": 2 // will NOT be removed; `additionalProperties` != false + }, +} + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": 0, "bar": { "baz": "abc", "additional2": 2 } +``` + +If `removeAdditional` option in the example above were `"all"` then both `additional1` and `additional2` properties would have been removed. + +If the option were `"failing"` then property `additional1` would have been removed regardless of its value and property `additional2` would have been removed only if its value were failing the schema in the inner `additionalProperties` (so in the example above it would have stayed because it passes the schema, but any non-number would have been removed). + +__Please note__: If you use `removeAdditional` option with `additionalProperties` keyword inside `anyOf`/`oneOf` keywords your validation can fail with this schema, for example: + +```json +{ + "type": "object", + "oneOf": [ + { + "properties": { + "foo": { "type": "string" } + }, + "required": [ "foo" ], + "additionalProperties": false + }, + { + "properties": { + "bar": { "type": "integer" } + }, + "required": [ "bar" ], + "additionalProperties": false + } + ] +} +``` + +The intention of the schema above is to allow objects with either the string property "foo" or the integer property "bar", but not with both and not with any other properties. + +With the option `removeAdditional: true` the validation will pass for the object `{ "foo": "abc"}` but will fail for the object `{"bar": 1}`. It happens because while the first subschema in `oneOf` is validated, the property `bar` is removed because it is an additional property according to the standard (because it is not included in `properties` keyword in the same schema). + +While this behaviour is unexpected (issues [#129](https://github.com/epoberezkin/ajv/issues/129), [#134](https://github.com/epoberezkin/ajv/issues/134)), it is correct. To have the expected behaviour (both objects are allowed and additional properties are removed) the schema has to be refactored in this way: + +```json +{ + "type": "object", + "properties": { + "foo": { "type": "string" }, + "bar": { "type": "integer" } + }, + "additionalProperties": false, + "oneOf": [ + { "required": [ "foo" ] }, + { "required": [ "bar" ] } + ] +} +``` + +The schema above is also more efficient - it will compile into a faster function. + + +## Assigning defaults + +With [option `useDefaults`](#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items. + +With the option value `"empty"` properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. + +This option modifies original data. + +__Please note__: the default value is inserted in the generated validation code as a literal, so the value inserted in the data will be the deep clone of the default in the schema. + + +Example 1 (`default` in `properties`): + +```javascript +var ajv = new Ajv({ useDefaults: true }); +var schema = { + "type": "object", + "properties": { + "foo": { "type": "number" }, + "bar": { "type": "string", "default": "baz" } + }, + "required": [ "foo", "bar" ] +}; + +var data = { "foo": 1 }; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": 1, "bar": "baz" } +``` + +Example 2 (`default` in `items`): + +```javascript +var schema = { + "type": "array", + "items": [ + { "type": "number" }, + { "type": "string", "default": "foo" } + ] +} + +var data = [ 1 ]; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // [ 1, "foo" ] +``` + +`default` keywords in other cases are ignored: + +- not in `properties` or `items` subschemas +- in schemas inside `anyOf`, `oneOf` and `not` (see [#42](https://github.com/epoberezkin/ajv/issues/42)) +- in `if` subschema of `switch` keyword +- in schemas generated by custom macro keywords + +The [`strictDefaults` option](#options) customizes Ajv's behavior for the defaults that Ajv ignores (`true` raises an error, and `"log"` outputs a warning). + + +## Coercing data types + +When you are validating user inputs all your data properties are usually strings. The option `coerceTypes` allows you to have your data types coerced to the types specified in your schema `type` keywords, both to pass the validation and to use the correctly typed data afterwards. + +This option modifies original data. + +__Please note__: if you pass a scalar value to the validating function its type will be coerced and it will pass the validation, but the value of the variable you pass won't be updated because scalars are passed by value. + + +Example 1: + +```javascript +var ajv = new Ajv({ coerceTypes: true }); +var schema = { + "type": "object", + "properties": { + "foo": { "type": "number" }, + "bar": { "type": "boolean" } + }, + "required": [ "foo", "bar" ] +}; + +var data = { "foo": "1", "bar": "false" }; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": 1, "bar": false } +``` + +Example 2 (array coercions): + +```javascript +var ajv = new Ajv({ coerceTypes: 'array' }); +var schema = { + "properties": { + "foo": { "type": "array", "items": { "type": "number" } }, + "bar": { "type": "boolean" } + } +}; + +var data = { "foo": "1", "bar": ["false"] }; + +var validate = ajv.compile(schema); + +console.log(validate(data)); // true +console.log(data); // { "foo": [1], "bar": false } +``` + +The coercion rules, as you can see from the example, are different from JavaScript both to validate user input as expected and to have the coercion reversible (to correctly validate cases where different types are defined in subschemas of "anyOf" and other compound keywords). + +See [Coercion rules](https://github.com/epoberezkin/ajv/blob/master/COERCION.md) for details. + + +## API + +##### new Ajv(Object options) -> Object + +Create Ajv instance. + + +##### .compile(Object schema) -> Function<Object data> + +Generate validating function and cache the compiled schema for future use. + +Validating function returns a boolean value. This function has properties `errors` and `schema`. Errors encountered during the last validation are assigned to `errors` property (it is assigned `null` if there was no errors). `schema` property contains the reference to the original schema. + +The schema passed to this method will be validated against meta-schema unless `validateSchema` option is false. If schema is invalid, an error will be thrown. See [options](#options). + + +##### .compileAsync(Object schema [, Boolean meta] [, Function callback]) -> Promise + +Asynchronous version of `compile` method that loads missing remote schemas using asynchronous function in `options.loadSchema`. This function returns a Promise that resolves to a validation function. An optional callback passed to `compileAsync` will be called with 2 parameters: error (or null) and validating function. The returned promise will reject (and the callback will be called with an error) when: + +- missing schema can't be loaded (`loadSchema` returns a Promise that rejects). +- a schema containing a missing reference is loaded, but the reference cannot be resolved. +- schema (or some loaded/referenced schema) is invalid. + +The function compiles schema and loads the first missing schema (or meta-schema) until all missing schemas are loaded. + +You can asynchronously compile meta-schema by passing `true` as the second parameter. + +See example in [Asynchronous compilation](#asynchronous-schema-compilation). + + +##### .validate(Object schema|String key|String ref, data) -> Boolean + +Validate data using passed schema (it will be compiled and cached). + +Instead of the schema you can use the key that was previously passed to `addSchema`, the schema id if it was present in the schema or any previously resolved reference. + +Validation errors will be available in the `errors` property of Ajv instance (`null` if there were no errors). + +__Please note__: every time this method is called the errors are overwritten so you need to copy them to another variable if you want to use them later. + +If the schema is asynchronous (has `$async` keyword on the top level) this method returns a Promise. See [Asynchronous validation](#asynchronous-validation). + + +##### .addSchema(Array<Object>|Object schema [, String key]) -> Ajv + +Add schema(s) to validator instance. This method does not compile schemas (but it still validates them). Because of that dependencies can be added in any order and circular dependencies are supported. It also prevents unnecessary compilation of schemas that are containers for other schemas but not used as a whole. + +Array of schemas can be passed (schemas should have ids), the second parameter will be ignored. + +Key can be passed that can be used to reference the schema and will be used as the schema id if there is no id inside the schema. If the key is not passed, the schema id will be used as the key. + + +Once the schema is added, it (and all the references inside it) can be referenced in other schemas and used to validate data. + +Although `addSchema` does not compile schemas, explicit compilation is not required - the schema will be compiled when it is used first time. + +By default the schema is validated against meta-schema before it is added, and if the schema does not pass validation the exception is thrown. This behaviour is controlled by `validateSchema` option. + +__Please note__: Ajv uses the [method chaining syntax](https://en.wikipedia.org/wiki/Method_chaining) for all methods with the prefix `add*` and `remove*`. +This allows you to do nice things like the following. + +```javascript +var validate = new Ajv().addSchema(schema).addFormat(name, regex).getSchema(uri); +``` + +##### .addMetaSchema(Array<Object>|Object schema [, String key]) -> Ajv + +Adds meta schema(s) that can be used to validate other schemas. That function should be used instead of `addSchema` because there may be instance options that would compile a meta schema incorrectly (at the moment it is `removeAdditional` option). + +There is no need to explicitly add draft-07 meta schema (http://json-schema.org/draft-07/schema) - it is added by default, unless option `meta` is set to `false`. You only need to use it if you have a changed meta-schema that you want to use to validate your schemas. See `validateSchema`. + + +##### .validateSchema(Object schema) -> Boolean + +Validates schema. This method should be used to validate schemas rather than `validate` due to the inconsistency of `uri` format in JSON Schema standard. + +By default this method is called automatically when the schema is added, so you rarely need to use it directly. + +If schema doesn't have `$schema` property, it is validated against draft 6 meta-schema (option `meta` should not be false). + +If schema has `$schema` property, then the schema with this id (that should be previously added) is used to validate passed schema. + +Errors will be available at `ajv.errors`. + + +##### .getSchema(String key) -> Function<Object data> + +Retrieve compiled schema previously added with `addSchema` by the key passed to `addSchema` or by its full reference (id). The returned validating function has `schema` property with the reference to the original schema. + + +##### .removeSchema([Object schema|String key|String ref|RegExp pattern]) -> Ajv + +Remove added/cached schema. Even if schema is referenced by other schemas it can be safely removed as dependent schemas have local references. + +Schema can be removed using: +- key passed to `addSchema` +- it's full reference (id) +- RegExp that should match schema id or key (meta-schemas won't be removed) +- actual schema object that will be stable-stringified to remove schema from cache + +If no parameter is passed all schemas but meta-schemas will be removed and the cache will be cleared. + + +##### .addFormat(String name, String|RegExp|Function|Object format) -> Ajv + +Add custom format to validate strings or numbers. It can also be used to replace pre-defined formats for Ajv instance. + +Strings are converted to RegExp. + +Function should return validation result as `true` or `false`. + +If object is passed it should have properties `validate`, `compare` and `async`: + +- _validate_: a string, RegExp or a function as described above. +- _compare_: an optional comparison function that accepts two strings and compares them according to the format meaning. This function is used with keywords `formatMaximum`/`formatMinimum` (defined in [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package). It should return `1` if the first value is bigger than the second value, `-1` if it is smaller and `0` if it is equal. +- _async_: an optional `true` value if `validate` is an asynchronous function; in this case it should return a promise that resolves with a value `true` or `false`. +- _type_: an optional type of data that the format applies to. It can be `"string"` (default) or `"number"` (see https://github.com/epoberezkin/ajv/issues/291#issuecomment-259923858). If the type of data is different, the validation will pass. + +Custom formats can be also added via `formats` option. + + +##### .addKeyword(String keyword, Object definition) -> Ajv + +Add custom validation keyword to Ajv instance. + +Keyword should be different from all standard JSON Schema keywords and different from previously defined keywords. There is no way to redefine keywords or to remove keyword definition from the instance. + +Keyword must start with a letter, `_` or `$`, and may continue with letters, numbers, `_`, `$`, or `-`. +It is recommended to use an application-specific prefix for keywords to avoid current and future name collisions. + +Example Keywords: +- `"xyz-example"`: valid, and uses prefix for the xyz project to avoid name collisions. +- `"example"`: valid, but not recommended as it could collide with future versions of JSON Schema etc. +- `"3-example"`: invalid as numbers are not allowed to be the first character in a keyword + +Keyword definition is an object with the following properties: + +- _type_: optional string or array of strings with data type(s) that the keyword applies to. If not present, the keyword will apply to all types. +- _validate_: validating function +- _compile_: compiling function +- _macro_: macro function +- _inline_: compiling function that returns code (as string) +- _schema_: an optional `false` value used with "validate" keyword to not pass schema +- _metaSchema_: an optional meta-schema for keyword schema +- _dependencies_: an optional list of properties that must be present in the parent schema - it will be checked during schema compilation +- _modifying_: `true` MUST be passed if keyword modifies data +- _statements_: `true` can be passed in case inline keyword generates statements (as opposed to expression) +- _valid_: pass `true`/`false` to pre-define validation result, the result returned from validation function will be ignored. This option cannot be used with macro keywords. +- _$data_: an optional `true` value to support [$data reference](#data-reference) as the value of custom keyword. The reference will be resolved at validation time. If the keyword has meta-schema it would be extended to allow $data and it will be used to validate the resolved value. Supporting $data reference requires that keyword has validating function (as the only option or in addition to compile, macro or inline function). +- _async_: an optional `true` value if the validation function is asynchronous (whether it is compiled or passed in _validate_ property); in this case it should return a promise that resolves with a value `true` or `false`. This option is ignored in case of "macro" and "inline" keywords. +- _errors_: an optional boolean or string `"full"` indicating whether keyword returns errors. If this property is not set Ajv will determine if the errors were set in case of failed validation. + +_compile_, _macro_ and _inline_ are mutually exclusive, only one should be used at a time. _validate_ can be used separately or in addition to them to support $data reference. + +__Please note__: If the keyword is validating data type that is different from the type(s) in its definition, the validation function will not be called (and expanded macro will not be used), so there is no need to check for data type inside validation function or inside schema returned by macro function (unless you want to enforce a specific type and for some reason do not want to use a separate `type` keyword for that). In the same way as standard keywords work, if the keyword does not apply to the data type being validated, the validation of this keyword will succeed. + +See [Defining custom keywords](#defining-custom-keywords) for more details. + + +##### .getKeyword(String keyword) -> Object|Boolean + +Returns custom keyword definition, `true` for pre-defined keywords and `false` if the keyword is unknown. + + +##### .removeKeyword(String keyword) -> Ajv + +Removes custom or pre-defined keyword so you can redefine them. + +While this method can be used to extend pre-defined keywords, it can also be used to completely change their meaning - it may lead to unexpected results. + +__Please note__: schemas compiled before the keyword is removed will continue to work without changes. To recompile schemas use `removeSchema` method and compile them again. + + +##### .errorsText([Array<Object> errors [, Object options]]) -> String + +Returns the text with all errors in a String. + +Options can have properties `separator` (string used to separate errors, ", " by default) and `dataVar` (the variable name that dataPaths are prefixed with, "data" by default). + + +## Options + +Defaults: + +```javascript +{ + // validation and reporting options: + $data: false, + allErrors: false, + verbose: false, + $comment: false, // NEW in Ajv version 6.0 + jsonPointers: false, + uniqueItems: true, + unicode: true, + nullable: false, + format: 'fast', + formats: {}, + unknownFormats: true, + schemas: {}, + logger: undefined, + // referenced schema options: + schemaId: '$id', + missingRefs: true, + extendRefs: 'ignore', // recommended 'fail' + loadSchema: undefined, // function(uri: string): Promise {} + // options to modify validated data: + removeAdditional: false, + useDefaults: false, + coerceTypes: false, + // strict mode options + strictDefaults: false, + strictKeywords: false, + // asynchronous validation options: + transpile: undefined, // requires ajv-async package + // advanced options: + meta: true, + validateSchema: true, + addUsedSchema: true, + inlineRefs: true, + passContext: false, + loopRequired: Infinity, + ownProperties: false, + multipleOfPrecision: false, + errorDataPath: 'object', // deprecated + messages: true, + sourceCode: false, + processCode: undefined, // function (str: string): string {} + cache: new Cache, + serialize: undefined +} +``` + +##### Validation and reporting options + +- _$data_: support [$data references](#data-reference). Draft 6 meta-schema that is added by default will be extended to allow them. If you want to use another meta-schema you need to use $dataMetaSchema method to add support for $data reference. See [API](#api). +- _allErrors_: check all rules collecting all errors. Default is to return after the first error. +- _verbose_: include the reference to the part of the schema (`schema` and `parentSchema`) and validated data in errors (false by default). +- _$comment_ (NEW in Ajv version 6.0): log or pass the value of `$comment` keyword to a function. Option values: + - `false` (default): ignore $comment keyword. + - `true`: log the keyword value to console. + - function: pass the keyword value, its schema path and root schema to the specified function +- _jsonPointers_: set `dataPath` property of errors using [JSON Pointers](https://tools.ietf.org/html/rfc6901) instead of JavaScript property access notation. +- _uniqueItems_: validate `uniqueItems` keyword (true by default). +- _unicode_: calculate correct length of strings with unicode pairs (true by default). Pass `false` to use `.length` of strings that is faster, but gives "incorrect" lengths of strings with unicode pairs - each unicode pair is counted as two characters. +- _nullable_: support keyword "nullable" from [Open API 3 specification](https://swagger.io/docs/specification/data-models/data-types/). +- _format_: formats validation mode. Option values: + - `"fast"` (default) - simplified and fast validation (see [Formats](#formats) for details of which formats are available and affected by this option). + - `"full"` - more restrictive and slow validation. E.g., 25:00:00 and 2015/14/33 will be invalid time and date in 'full' mode but it will be valid in 'fast' mode. + - `false` - ignore all format keywords. +- _formats_: an object with custom formats. Keys and values will be passed to `addFormat` method. +- _unknownFormats_: handling of unknown formats. Option values: + - `true` (default) - if an unknown format is encountered the exception is thrown during schema compilation. If `format` keyword value is [$data reference](#data-reference) and it is unknown the validation will fail. + - `[String]` - an array of unknown format names that will be ignored. This option can be used to allow usage of third party schemas with format(s) for which you don't have definitions, but still fail if another unknown format is used. If `format` keyword value is [$data reference](#data-reference) and it is not in this array the validation will fail. + - `"ignore"` - to log warning during schema compilation and always pass validation (the default behaviour in versions before 5.0.0). This option is not recommended, as it allows to mistype format name and it won't be validated without any error message. This behaviour is required by JSON Schema specification. +- _schemas_: an array or object of schemas that will be added to the instance. In case you pass the array the schemas must have IDs in them. When the object is passed the method `addSchema(value, key)` will be called for each schema in this object. +- _logger_: sets the logging method. Default is the global `console` object that should have methods `log`, `warn` and `error`. Option values: + - custom logger - it should have methods `log`, `warn` and `error`. If any of these methods is missing an exception will be thrown. + - `false` - logging is disabled. + + +##### Referenced schema options + +- _schemaId_: this option defines which keywords are used as schema URI. Option value: + - `"$id"` (default) - only use `$id` keyword as schema URI (as specified in JSON Schema draft-06/07), ignore `id` keyword (if it is present a warning will be logged). + - `"id"` - only use `id` keyword as schema URI (as specified in JSON Schema draft-04), ignore `$id` keyword (if it is present a warning will be logged). + - `"auto"` - use both `$id` and `id` keywords as schema URI. If both are present (in the same schema object) and different the exception will be thrown during schema compilation. +- _missingRefs_: handling of missing referenced schemas. Option values: + - `true` (default) - if the reference cannot be resolved during compilation the exception is thrown. The thrown error has properties `missingRef` (with hash fragment) and `missingSchema` (without it). Both properties are resolved relative to the current base id (usually schema id, unless it was substituted). + - `"ignore"` - to log error during compilation and always pass validation. + - `"fail"` - to log error and successfully compile schema but fail validation if this rule is checked. +- _extendRefs_: validation of other keywords when `$ref` is present in the schema. Option values: + - `"ignore"` (default) - when `$ref` is used other keywords are ignored (as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03#section-3) standard). A warning will be logged during the schema compilation. + - `"fail"` (recommended) - if other validation keywords are used together with `$ref` the exception will be thrown when the schema is compiled. This option is recommended to make sure schema has no keywords that are ignored, which can be confusing. + - `true` - validate all keywords in the schemas with `$ref` (the default behaviour in versions before 5.0.0). +- _loadSchema_: asynchronous function that will be used to load remote schemas when `compileAsync` [method](#api-compileAsync) is used and some reference is missing (option `missingRefs` should NOT be 'fail' or 'ignore'). This function should accept remote schema uri as a parameter and return a Promise that resolves to a schema. See example in [Asynchronous compilation](#asynchronous-schema-compilation). + + +##### Options to modify validated data + +- _removeAdditional_: remove additional properties - see example in [Filtering data](#filtering-data). This option is not used if schema is added with `addMetaSchema` method. Option values: + - `false` (default) - not to remove additional properties + - `"all"` - all additional properties are removed, regardless of `additionalProperties` keyword in schema (and no validation is made for them). + - `true` - only additional properties with `additionalProperties` keyword equal to `false` are removed. + - `"failing"` - additional properties that fail schema validation will be removed (where `additionalProperties` keyword is `false` or schema). +- _useDefaults_: replace missing or undefined properties and items with the values from corresponding `default` keywords. Default behaviour is to ignore `default` keywords. This option is not used if schema is added with `addMetaSchema` method. See examples in [Assigning defaults](#assigning-defaults). Option values: + - `false` (default) - do not use defaults + - `true` - insert defaults by value (object literal is used). + - `"empty"` - in addition to missing or undefined, use defaults for properties and items that are equal to `null` or `""` (an empty string). + - `"shared"` (deprecated) - insert defaults by reference. If the default is an object, it will be shared by all instances of validated data. If you modify the inserted default in the validated data, it will be modified in the schema as well. +- _coerceTypes_: change data type of data to match `type` keyword. See the example in [Coercing data types](#coercing-data-types) and [coercion rules](https://github.com/epoberezkin/ajv/blob/master/COERCION.md). Option values: + - `false` (default) - no type coercion. + - `true` - coerce scalar data types. + - `"array"` - in addition to coercions between scalar types, coerce scalar data to an array with one element and vice versa (as required by the schema). + + +##### Strict mode options + +- _strictDefaults_: report ignored `default` keywords in schemas. Option values: + - `false` (default) - ignored defaults are not reported + - `true` - if an ignored default is present, throw an error + - `"log"` - if an ignored default is present, log warning +- _strictKeywords_: report unknown keywords in schemas. Option values: + - `false` (default) - unknown keywords are not reported + - `true` - if an unknown keyword is present, throw an error + - `"log"` - if an unknown keyword is present, log warning + + +##### Asynchronous validation options + +- _transpile_: Requires [ajv-async](https://github.com/epoberezkin/ajv-async) package. It determines whether Ajv transpiles compiled asynchronous validation function. Option values: + - `undefined` (default) - transpile with [nodent](https://github.com/MatAtBread/nodent) if async functions are not supported. + - `true` - always transpile with nodent. + - `false` - do not transpile; if async functions are not supported an exception will be thrown. + + +##### Advanced options + +- _meta_: add [meta-schema](http://json-schema.org/documentation.html) so it can be used by other schemas (true by default). If an object is passed, it will be used as the default meta-schema for schemas that have no `$schema` keyword. This default meta-schema MUST have `$schema` keyword. +- _validateSchema_: validate added/compiled schemas against meta-schema (true by default). `$schema` property in the schema can be http://json-schema.org/draft-07/schema or absent (draft-07 meta-schema will be used) or can be a reference to the schema previously added with `addMetaSchema` method. Option values: + - `true` (default) - if the validation fails, throw the exception. + - `"log"` - if the validation fails, log error. + - `false` - skip schema validation. +- _addUsedSchema_: by default methods `compile` and `validate` add schemas to the instance if they have `$id` (or `id`) property that doesn't start with "#". If `$id` is present and it is not unique the exception will be thrown. Set this option to `false` to skip adding schemas to the instance and the `$id` uniqueness check when these methods are used. This option does not affect `addSchema` method. +- _inlineRefs_: Affects compilation of referenced schemas. Option values: + - `true` (default) - the referenced schemas that don't have refs in them are inlined, regardless of their size - that substantially improves performance at the cost of the bigger size of compiled schema functions. + - `false` - to not inline referenced schemas (they will be compiled as separate functions). + - integer number - to limit the maximum number of keywords of the schema that will be inlined. +- _passContext_: pass validation context to custom keyword functions. If this option is `true` and you pass some context to the compiled validation function with `validate.call(context, data)`, the `context` will be available as `this` in your custom keywords. By default `this` is Ajv instance. +- _loopRequired_: by default `required` keyword is compiled into a single expression (or a sequence of statements in `allErrors` mode). In case of a very large number of properties in this keyword it may result in a very big validation function. Pass integer to set the number of properties above which `required` keyword will be validated in a loop - smaller validation function size but also worse performance. +- _ownProperties_: by default Ajv iterates over all enumerable object properties; when this option is `true` only own enumerable object properties (i.e. found directly on the object rather than on its prototype) are iterated. Contributed by @mbroadst. +- _multipleOfPrecision_: by default `multipleOf` keyword is validated by comparing the result of division with parseInt() of that result. It works for dividers that are bigger than 1. For small dividers such as 0.01 the result of the division is usually not integer (even when it should be integer, see issue [#84](https://github.com/epoberezkin/ajv/issues/84)). If you need to use fractional dividers set this option to some positive integer N to have `multipleOf` validated using this formula: `Math.abs(Math.round(division) - division) < 1e-N` (it is slower but allows for float arithmetics deviations). +- _errorDataPath_ (deprecated): set `dataPath` to point to 'object' (default) or to 'property' when validating keywords `required`, `additionalProperties` and `dependencies`. +- _messages_: Include human-readable messages in errors. `true` by default. `false` can be passed when custom messages are used (e.g. with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n)). +- _sourceCode_: add `sourceCode` property to validating function (for debugging; this code can be different from the result of toString call). +- _processCode_: an optional function to process generated code before it is passed to Function constructor. It can be used to either beautify (the validating function is generated without line-breaks) or to transpile code. Starting from version 5.0.0 this option replaced options: + - `beautify` that formatted the generated function using [js-beautify](https://github.com/beautify-web/js-beautify). If you want to beautify the generated code pass `require('js-beautify').js_beautify`. + - `transpile` that transpiled asynchronous validation function. You can still use `transpile` option with [ajv-async](https://github.com/epoberezkin/ajv-async) package. See [Asynchronous validation](#asynchronous-validation) for more information. +- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)`, `get(key)`, `del(key)` and `clear()`. +- _serialize_: an optional function to serialize schema to cache key. Pass `false` to use schema itself as a key (e.g., if WeakMap used as a cache). By default [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used. + + +## Validation errors + +In case of validation failure, Ajv assigns the array of errors to `errors` property of validation function (or to `errors` property of Ajv instance when `validate` or `validateSchema` methods were called). In case of [asynchronous validation](#asynchronous-validation), the returned promise is rejected with exception `Ajv.ValidationError` that has `errors` property. + + +### Error objects + +Each error is an object with the following properties: + +- _keyword_: validation keyword. +- _dataPath_: the path to the part of the data that was validated. By default `dataPath` uses JavaScript property access notation (e.g., `".prop[1].subProp"`). When the option `jsonPointers` is true (see [Options](#options)) `dataPath` will be set using JSON pointer standard (e.g., `"/prop/1/subProp"`). +- _schemaPath_: the path (JSON-pointer as a URI fragment) to the schema of the keyword that failed validation. +- _params_: the object with the additional information about error that can be used to create custom error messages (e.g., using [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package). See below for parameters set by all keywords. +- _message_: the standard error message (can be excluded with option `messages` set to false). +- _schema_: the schema of the keyword (added with `verbose` option). +- _parentSchema_: the schema containing the keyword (added with `verbose` option) +- _data_: the data validated by the keyword (added with `verbose` option). + +__Please note__: `propertyNames` keyword schema validation errors have an additional property `propertyName`, `dataPath` points to the object. After schema validation for each property name, if it is invalid an additional error is added with the property `keyword` equal to `"propertyNames"`. + + +### Error parameters + +Properties of `params` object in errors depend on the keyword that failed validation. + +- `maxItems`, `minItems`, `maxLength`, `minLength`, `maxProperties`, `minProperties` - property `limit` (number, the schema of the keyword). +- `additionalItems` - property `limit` (the maximum number of allowed items in case when `items` keyword is an array of schemas and `additionalItems` is false). +- `additionalProperties` - property `additionalProperty` (the property not used in `properties` and `patternProperties` keywords). +- `dependencies` - properties: + - `property` (dependent property), + - `missingProperty` (required missing dependency - only the first one is reported currently) + - `deps` (required dependencies, comma separated list as a string), + - `depsCount` (the number of required dependencies). +- `format` - property `format` (the schema of the keyword). +- `maximum`, `minimum` - properties: + - `limit` (number, the schema of the keyword), + - `exclusive` (boolean, the schema of `exclusiveMaximum` or `exclusiveMinimum`), + - `comparison` (string, comparison operation to compare the data to the limit, with the data on the left and the limit on the right; can be "<", "<=", ">", ">=") +- `multipleOf` - property `multipleOf` (the schema of the keyword) +- `pattern` - property `pattern` (the schema of the keyword) +- `required` - property `missingProperty` (required property that is missing). +- `propertyNames` - property `propertyName` (an invalid property name). +- `patternRequired` (in ajv-keywords) - property `missingPattern` (required pattern that did not match any property). +- `type` - property `type` (required type(s), a string, can be a comma-separated list) +- `uniqueItems` - properties `i` and `j` (indices of duplicate items). +- `const` - property `allowedValue` pointing to the value (the schema of the keyword). +- `enum` - property `allowedValues` pointing to the array of values (the schema of the keyword). +- `$ref` - property `ref` with the referenced schema URI. +- `oneOf` - property `passingSchemas` (array of indices of passing schemas, null if no schema passes). +- custom keywords (in case keyword definition doesn't create errors) - property `keyword` (the keyword name). + + +## Plugins + +Ajv can be extended with plugins that add custom keywords, formats or functions to process generated code. When such plugin is published as npm package it is recommended that it follows these conventions: + +- it exports a function +- this function accepts ajv instance as the first parameter and returns the same instance to allow chaining +- this function can accept an optional configuration as the second parameter + +If you have published a useful plugin please submit a PR to add it to the next section. + + +## Related packages + +- [ajv-async](https://github.com/epoberezkin/ajv-async) - plugin to configure async validation mode +- [ajv-bsontype](https://github.com/BoLaMN/ajv-bsontype) - plugin to validate mongodb's bsonType formats +- [ajv-cli](https://github.com/jessedc/ajv-cli) - command line interface +- [ajv-errors](https://github.com/epoberezkin/ajv-errors) - plugin for custom error messages +- [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) - internationalised error messages +- [ajv-istanbul](https://github.com/epoberezkin/ajv-istanbul) - plugin to instrument generated validation code to measure test coverage of your schemas +- [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) - plugin with custom validation keywords (select, typeof, etc.) +- [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) - plugin with keywords $merge and $patch +- [ajv-pack](https://github.com/epoberezkin/ajv-pack) - produces a compact module exporting validation functions + + +## Some packages using Ajv + +- [webpack](https://github.com/webpack/webpack) - a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser +- [jsonscript-js](https://github.com/JSONScript/jsonscript-js) - the interpreter for [JSONScript](http://www.jsonscript.org) - scripted processing of existing endpoints and services +- [osprey-method-handler](https://github.com/mulesoft-labs/osprey-method-handler) - Express middleware for validating requests and responses based on a RAML method object, used in [osprey](https://github.com/mulesoft/osprey) - validating API proxy generated from a RAML definition +- [har-validator](https://github.com/ahmadnassri/har-validator) - HTTP Archive (HAR) validator +- [jsoneditor](https://github.com/josdejong/jsoneditor) - a web-based tool to view, edit, format, and validate JSON http://jsoneditoronline.org +- [JSON Schema Lint](https://github.com/nickcmaynard/jsonschemalint) - a web tool to validate JSON/YAML document against a single JSON Schema http://jsonschemalint.com +- [objection](https://github.com/vincit/objection.js) - SQL-friendly ORM for Node.js +- [table](https://github.com/gajus/table) - formats data into a string table +- [ripple-lib](https://github.com/ripple/ripple-lib) - a JavaScript API for interacting with [Ripple](https://ripple.com) in Node.js and the browser +- [restbase](https://github.com/wikimedia/restbase) - distributed storage with REST API & dispatcher for backend services built to provide a low-latency & high-throughput API for Wikipedia / Wikimedia content +- [hippie-swagger](https://github.com/CacheControl/hippie-swagger) - [Hippie](https://github.com/vesln/hippie) wrapper that provides end to end API testing with swagger validation +- [react-form-controlled](https://github.com/seeden/react-form-controlled) - React controlled form components with validation +- [rabbitmq-schema](https://github.com/tjmehta/rabbitmq-schema) - a schema definition module for RabbitMQ graphs and messages +- [@query/schema](https://www.npmjs.com/package/@query/schema) - stream filtering with a URI-safe query syntax parsing to JSON Schema +- [chai-ajv-json-schema](https://github.com/peon374/chai-ajv-json-schema) - chai plugin to us JSON Schema with expect in mocha tests +- [grunt-jsonschema-ajv](https://github.com/SignpostMarv/grunt-jsonschema-ajv) - Grunt plugin for validating files against JSON Schema +- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) - extract text from bundle into a file +- [electron-builder](https://github.com/electron-userland/electron-builder) - a solution to package and build a ready for distribution Electron app +- [addons-linter](https://github.com/mozilla/addons-linter) - Mozilla Add-ons Linter +- [gh-pages-generator](https://github.com/epoberezkin/gh-pages-generator) - multi-page site generator converting markdown files to GitHub pages +- [ESLint](https://github.com/eslint/eslint) - the pluggable linting utility for JavaScript and JSX + + +## Tests + +``` +npm install +git submodule update --init +npm test +``` + +## Contributing + +All validation functions are generated using doT templates in [dot](https://github.com/epoberezkin/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency. + +`npm run build` - compiles templates to [dotjs](https://github.com/epoberezkin/ajv/tree/master/lib/dotjs) folder. + +`npm run watch` - automatically compiles templates when files in dot folder change + +Please see [Contributing guidelines](https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md) + + +## Changes history + +See https://github.com/epoberezkin/ajv/releases + +__Please note__: [Changes in version 6.0.0](https://github.com/epoberezkin/ajv/releases/tag/v6.0.0). + +[Version 5.0.0](https://github.com/epoberezkin/ajv/releases/tag/5.0.0). + +[Version 4.0.0](https://github.com/epoberezkin/ajv/releases/tag/4.0.0). + +[Version 3.0.0](https://github.com/epoberezkin/ajv/releases/tag/3.0.0). + +[Version 2.0.0](https://github.com/epoberezkin/ajv/releases/tag/2.0.0). + + +## License + +[MIT](https://github.com/epoberezkin/ajv/blob/master/LICENSE) diff --git a/node_modules/ajv/dist/ajv.bundle.js b/node_modules/ajv/dist/ajv.bundle.js new file mode 100644 index 0000000..286dc92 --- /dev/null +++ b/node_modules/ajv/dist/ajv.bundle.js @@ -0,0 +1,7165 @@ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Ajv = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; +// For the source: https://gist.github.com/dperini/729294 +// For test cases: https://mathiasbynens.be/demo/url-regex +// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983. +// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; +var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; +var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; +var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; +var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; +var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + + +module.exports = formats; + +function formats(mode) { + mode = mode == 'full' ? 'full' : 'fast'; + return util.copy(formats[mode]); +} + + +formats.fast = { + // date: http://tools.ietf.org/html/rfc3339#section-5.6 + date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, + // date-time: http://tools.ietf.org/html/rfc3339#section-5.6 + time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i, + 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i, + // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js + uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i, + 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, + 'uri-template': URITEMPLATE, + url: URL, + // email (sources from jsen validator): + // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363 + // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation') + email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, + hostname: HOSTNAME, + // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + // uuid: http://tools.ietf.org/html/rfc4122 + uuid: UUID, + // JSON-pointer: https://tools.ietf.org/html/rfc6901 + // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00 + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +formats.full = { + date: date, + time: time, + 'date-time': date_time, + uri: uri, + 'uri-reference': URIREF, + 'uri-template': URITEMPLATE, + url: URL, + email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, + hostname: hostname, + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + uuid: UUID, + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +function isLeapYear(year) { + // https://tools.ietf.org/html/rfc3339#appendix-C + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +} + + +function date(str) { + // full-date from http://tools.ietf.org/html/rfc3339#section-5.6 + var matches = str.match(DATE); + if (!matches) return false; + + var year = +matches[1]; + var month = +matches[2]; + var day = +matches[3]; + + return month >= 1 && month <= 12 && day >= 1 && + day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); +} + + +function time(str, full) { + var matches = str.match(TIME); + if (!matches) return false; + + var hour = matches[1]; + var minute = matches[2]; + var second = matches[3]; + var timeZone = matches[5]; + return ((hour <= 23 && minute <= 59 && second <= 59) || + (hour == 23 && minute == 59 && second == 60)) && + (!full || timeZone); +} + + +var DATE_TIME_SEPARATOR = /t|\s/i; +function date_time(str) { + // http://tools.ietf.org/html/rfc3339#section-5.6 + var dateTime = str.split(DATE_TIME_SEPARATOR); + return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true); +} + + +function hostname(str) { + // https://tools.ietf.org/html/rfc1034#section-3.5 + // https://tools.ietf.org/html/rfc1123#section-2 + return str.length <= 255 && HOSTNAME.test(str); +} + + +var NOT_URI_FRAGMENT = /\/|:/; +function uri(str) { + // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "." + return NOT_URI_FRAGMENT.test(str) && URI.test(str); +} + + +var Z_ANCHOR = /[^\\]\\Z/; +function regex(str) { + if (Z_ANCHOR.test(str)) return false; + try { + new RegExp(str); + return true; + } catch(e) { + return false; + } +} + +},{"./util":10}],5:[function(require,module,exports){ +'use strict'; + +var resolve = require('./resolve') + , util = require('./util') + , errorClasses = require('./error_classes') + , stableStringify = require('fast-json-stable-stringify'); + +var validateGenerator = require('../dotjs/validate'); + +/** + * Functions below are used inside compiled validations function + */ + +var ucs2length = util.ucs2length; +var equal = require('fast-deep-equal'); + +// this error is thrown by async schemas to return validation errors via exception +var ValidationError = errorClasses.Validation; + +module.exports = compile; + + +/** + * Compiles schema to validation function + * @this Ajv + * @param {Object} schema schema object + * @param {Object} root object with information about the root schema for this schema + * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution + * @param {String} baseId base ID for IDs in the schema + * @return {Function} validation function + */ +function compile(schema, root, localRefs, baseId) { + /* jshint validthis: true, evil: true */ + /* eslint no-shadow: 0 */ + var self = this + , opts = this._opts + , refVal = [ undefined ] + , refs = {} + , patterns = [] + , patternsHash = {} + , defaults = [] + , defaultsHash = {} + , customRules = []; + + root = root || { schema: schema, refVal: refVal, refs: refs }; + + var c = checkCompiling.call(this, schema, root, baseId); + var compilation = this._compilations[c.index]; + if (c.compiling) return (compilation.callValidate = callValidate); + + var formats = this._formats; + var RULES = this.RULES; + + try { + var v = localCompile(schema, root, localRefs, baseId); + compilation.validate = v; + var cv = compilation.callValidate; + if (cv) { + cv.schema = v.schema; + cv.errors = null; + cv.refs = v.refs; + cv.refVal = v.refVal; + cv.root = v.root; + cv.$async = v.$async; + if (opts.sourceCode) cv.source = v.source; + } + return v; + } finally { + endCompiling.call(this, schema, root, baseId); + } + + /* @this {*} - custom context, see passContext option */ + function callValidate() { + /* jshint validthis: true */ + var validate = compilation.validate; + var result = validate.apply(this, arguments); + callValidate.errors = validate.errors; + return result; + } + + function localCompile(_schema, _root, localRefs, baseId) { + var isRoot = !_root || (_root && _root.schema == _schema); + if (_root.schema != root.schema) + return compile.call(self, _schema, _root, localRefs, baseId); + + var $async = _schema.$async === true; + + var sourceCode = validateGenerator({ + isTop: true, + schema: _schema, + isRoot: isRoot, + baseId: baseId, + root: _root, + schemaPath: '', + errSchemaPath: '#', + errorPath: '""', + MissingRefError: errorClasses.MissingRef, + RULES: RULES, + validate: validateGenerator, + util: util, + resolve: resolve, + resolveRef: resolveRef, + usePattern: usePattern, + useDefault: useDefault, + useCustomRule: useCustomRule, + opts: opts, + formats: formats, + logger: self.logger, + self: self + }); + + sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + + vars(defaults, defaultCode) + vars(customRules, customRuleCode) + + sourceCode; + + if (opts.processCode) sourceCode = opts.processCode(sourceCode); + // console.log('\n\n\n *** \n', JSON.stringify(sourceCode)); + var validate; + try { + var makeValidate = new Function( + 'self', + 'RULES', + 'formats', + 'root', + 'refVal', + 'defaults', + 'customRules', + 'equal', + 'ucs2length', + 'ValidationError', + sourceCode + ); + + validate = makeValidate( + self, + RULES, + formats, + root, + refVal, + defaults, + customRules, + equal, + ucs2length, + ValidationError + ); + + refVal[0] = validate; + } catch(e) { + self.logger.error('Error compiling schema, function code:', sourceCode); + throw e; + } + + validate.schema = _schema; + validate.errors = null; + validate.refs = refs; + validate.refVal = refVal; + validate.root = isRoot ? validate : _root; + if ($async) validate.$async = true; + if (opts.sourceCode === true) { + validate.source = { + code: sourceCode, + patterns: patterns, + defaults: defaults + }; + } + + return validate; + } + + function resolveRef(baseId, ref, isRoot) { + ref = resolve.url(baseId, ref); + var refIndex = refs[ref]; + var _refVal, refCode; + if (refIndex !== undefined) { + _refVal = refVal[refIndex]; + refCode = 'refVal[' + refIndex + ']'; + return resolvedRef(_refVal, refCode); + } + if (!isRoot && root.refs) { + var rootRefId = root.refs[ref]; + if (rootRefId !== undefined) { + _refVal = root.refVal[rootRefId]; + refCode = addLocalRef(ref, _refVal); + return resolvedRef(_refVal, refCode); + } + } + + refCode = addLocalRef(ref); + var v = resolve.call(self, localCompile, root, ref); + if (v === undefined) { + var localSchema = localRefs && localRefs[ref]; + if (localSchema) { + v = resolve.inlineRef(localSchema, opts.inlineRefs) + ? localSchema + : compile.call(self, localSchema, root, localRefs, baseId); + } + } + + if (v === undefined) { + removeLocalRef(ref); + } else { + replaceLocalRef(ref, v); + return resolvedRef(v, refCode); + } + } + + function addLocalRef(ref, v) { + var refId = refVal.length; + refVal[refId] = v; + refs[ref] = refId; + return 'refVal' + refId; + } + + function removeLocalRef(ref) { + delete refs[ref]; + } + + function replaceLocalRef(ref, v) { + var refId = refs[ref]; + refVal[refId] = v; + } + + function resolvedRef(refVal, code) { + return typeof refVal == 'object' || typeof refVal == 'boolean' + ? { code: code, schema: refVal, inline: true } + : { code: code, $async: refVal && !!refVal.$async }; + } + + function usePattern(regexStr) { + var index = patternsHash[regexStr]; + if (index === undefined) { + index = patternsHash[regexStr] = patterns.length; + patterns[index] = regexStr; + } + return 'pattern' + index; + } + + function useDefault(value) { + switch (typeof value) { + case 'boolean': + case 'number': + return '' + value; + case 'string': + return util.toQuotedString(value); + case 'object': + if (value === null) return 'null'; + var valueStr = stableStringify(value); + var index = defaultsHash[valueStr]; + if (index === undefined) { + index = defaultsHash[valueStr] = defaults.length; + defaults[index] = value; + } + return 'default' + index; + } + } + + function useCustomRule(rule, schema, parentSchema, it) { + if (self._opts.validateSchema !== false) { + var deps = rule.definition.dependencies; + if (deps && !deps.every(function(keyword) { + return Object.prototype.hasOwnProperty.call(parentSchema, keyword); + })) + throw new Error('parent schema must have all required keywords: ' + deps.join(',')); + + var validateSchema = rule.definition.validateSchema; + if (validateSchema) { + var valid = validateSchema(schema); + if (!valid) { + var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors); + if (self._opts.validateSchema == 'log') self.logger.error(message); + else throw new Error(message); + } + } + } + + var compile = rule.definition.compile + , inline = rule.definition.inline + , macro = rule.definition.macro; + + var validate; + if (compile) { + validate = compile.call(self, schema, parentSchema, it); + } else if (macro) { + validate = macro.call(self, schema, parentSchema, it); + if (opts.validateSchema !== false) self.validateSchema(validate, true); + } else if (inline) { + validate = inline.call(self, it, rule.keyword, schema, parentSchema); + } else { + validate = rule.definition.validate; + if (!validate) return; + } + + if (validate === undefined) + throw new Error('custom keyword "' + rule.keyword + '"failed to compile'); + + var index = customRules.length; + customRules[index] = validate; + + return { + code: 'customRule' + index, + validate: validate + }; + } +} + + +/** + * Checks if the schema is currently compiled + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean) + */ +function checkCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var index = compIndex.call(this, schema, root, baseId); + if (index >= 0) return { index: index, compiling: true }; + index = this._compilations.length; + this._compilations[index] = { + schema: schema, + root: root, + baseId: baseId + }; + return { index: index, compiling: false }; +} + + +/** + * Removes the schema from the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + */ +function endCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var i = compIndex.call(this, schema, root, baseId); + if (i >= 0) this._compilations.splice(i, 1); +} + + +/** + * Index of schema compilation in the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Integer} compilation index + */ +function compIndex(schema, root, baseId) { + /* jshint validthis: true */ + for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) { + // high surrogate, and there is a next character + value = str.charCodeAt(pos); + if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate + } + } + return length; +}; + +},{}],10:[function(require,module,exports){ +'use strict'; + + +module.exports = { + copy: copy, + checkDataType: checkDataType, + checkDataTypes: checkDataTypes, + coerceToTypes: coerceToTypes, + toHash: toHash, + getProperty: getProperty, + escapeQuotes: escapeQuotes, + equal: require('fast-deep-equal'), + ucs2length: require('./ucs2length'), + varOccurences: varOccurences, + varReplace: varReplace, + cleanUpCode: cleanUpCode, + finalCleanUpCode: finalCleanUpCode, + schemaHasRules: schemaHasRules, + schemaHasRulesExcept: schemaHasRulesExcept, + schemaUnknownRules: schemaUnknownRules, + toQuotedString: toQuotedString, + getPathExpr: getPathExpr, + getPath: getPath, + getData: getData, + unescapeFragment: unescapeFragment, + unescapeJsonPointer: unescapeJsonPointer, + escapeFragment: escapeFragment, + escapeJsonPointer: escapeJsonPointer +}; + + +function copy(o, to) { + to = to || {}; + for (var key in o) to[key] = o[key]; + return to; +} + + +function checkDataType(dataType, data, negate) { + var EQUAL = negate ? ' !== ' : ' === ' + , AND = negate ? ' || ' : ' && ' + , OK = negate ? '!' : '' + , NOT = negate ? '' : '!'; + switch (dataType) { + case 'null': return data + EQUAL + 'null'; + case 'array': return OK + 'Array.isArray(' + data + ')'; + case 'object': return '(' + OK + data + AND + + 'typeof ' + data + EQUAL + '"object"' + AND + + NOT + 'Array.isArray(' + data + '))'; + case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND + + NOT + '(' + data + ' % 1)' + + AND + data + EQUAL + data + ')'; + default: return 'typeof ' + data + EQUAL + '"' + dataType + '"'; + } +} + + +function checkDataTypes(dataTypes, data) { + switch (dataTypes.length) { + case 1: return checkDataType(dataTypes[0], data, true); + default: + var code = ''; + var types = toHash(dataTypes); + if (types.array && types.object) { + code = types.null ? '(': '(!' + data + ' || '; + code += 'typeof ' + data + ' !== "object")'; + delete types.null; + delete types.array; + delete types.object; + } + if (types.number) delete types.integer; + for (var t in types) + code += (code ? ' && ' : '' ) + checkDataType(t, data, true); + + return code; + } +} + + +var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]); +function coerceToTypes(optionCoerceTypes, dataTypes) { + if (Array.isArray(dataTypes)) { + var types = []; + for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl); + return paths[lvl - up]; + } + + if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl); + data = 'data' + ((lvl - up) || ''); + if (!jsonPointer) return data; + } + + var expr = data; + var segments = jsonPointer.split('/'); + for (var i=0; i', + $notOp = $isMax ? '>' : '<', + $errorKeyword = undefined; + if ($isDataExcl) { + var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), + $exclusive = 'exclusive' + $lvl, + $exclType = 'exclType' + $lvl, + $exclIsNumber = 'exclIsNumber' + $lvl, + $opExpr = 'op' + $lvl, + $opStr = '\' + ' + $opExpr + ' + \''; + out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; + $schemaValueExcl = 'schemaExcl' + $lvl; + out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { '; + var $errorKeyword = $exclusiveKeyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; '; + if ($schema === undefined) { + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaValueExcl; + $isData = $isDataExcl; + } + } else { + var $exclIsNumber = typeof $schemaExcl == 'number', + $opStr = $op; + if ($exclIsNumber && $isData) { + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { '; + } else { + if ($exclIsNumber && $schema === undefined) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaExcl; + $notOp += '='; + } else { + if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); + if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $notOp += '='; + } else { + $exclusive = false; + $opStr += '='; + } + } + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { '; + } + } + $errorKeyword = $errorKeyword || $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be ' + ($opStr) + ' '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],13:[function(require,module,exports){ +'use strict'; +module.exports = function generate__limitItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxItems' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxItems') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],14:[function(require,module,exports){ +'use strict'; +module.exports = function generate__limitLength(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxLength' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + if (it.opts.unicode === false) { + out += ' ' + ($data) + '.length '; + } else { + out += ' ucs2length(' + ($data) + ') '; + } + out += ' ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be '; + if ($keyword == 'maxLength') { + out += 'longer'; + } else { + out += 'shorter'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' characters\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],15:[function(require,module,exports){ +'use strict'; +module.exports = function generate__limitProperties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxProperties' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxProperties') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' properties\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],16:[function(require,module,exports){ +'use strict'; +module.exports = function generate_allOf(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $allSchemasEmpty = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + $allSchemasEmpty = false; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($breakOnError) { + if ($allSchemasEmpty) { + out += ' if (true) { '; + } else { + out += ' ' + ($closingBraces.slice(0, -1)) + ' '; + } + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],17:[function(require,module,exports){ +'use strict'; +module.exports = function generate_anyOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $noEmptySchema = $schema.every(function($sch) { + return it.util.schemaHasRules($sch, it.RULES.all); + }); + if ($noEmptySchema) { + var $currentBaseId = $it.baseId; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { '; + $closingBraces += '}'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should match some schema in anyOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} + +},{}],18:[function(require,module,exports){ +'use strict'; +module.exports = function generate_comment(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $comment = it.util.toQuotedString($schema); + if (it.opts.$comment === true) { + out += ' console.log(' + ($comment) + ');'; + } else if (typeof it.opts.$comment == 'function') { + out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; + } + return out; +} + +},{}],19:[function(require,module,exports){ +'use strict'; +module.exports = function generate_const(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (!$isData) { + out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';'; + } + out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be equal to constant\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' }'; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],20:[function(require,module,exports){ +'use strict'; +module.exports = function generate_contains(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId, + $nonEmptySchema = it.util.schemaHasRules($schema, it.RULES.all); + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($nonEmptySchema) { + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (' + ($nextValid) + ') break; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {'; + } else { + out += ' if (' + ($data) + '.length == 0) {'; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should contain a valid item\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + if ($nonEmptySchema) { + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + } + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],21:[function(require,module,exports){ +'use strict'; +module.exports = function generate_custom(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $rule = this, + $definition = 'definition' + $lvl, + $rDef = $rule.definition, + $closingBraces = ''; + var $compile, $inline, $macro, $ruleValidate, $validateCode; + if ($isData && $rDef.$data) { + $validateCode = 'keywordValidate' + $lvl; + var $validateSchema = $rDef.validateSchema; + out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;'; + } else { + $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); + if (!$ruleValidate) return; + $schemaValue = 'validate.schema' + $schemaPath; + $validateCode = $ruleValidate.code; + $compile = $rDef.compile; + $inline = $rDef.inline; + $macro = $rDef.macro; + } + var $ruleErrs = $validateCode + '.errors', + $i = 'i' + $lvl, + $ruleErr = 'ruleErr' + $lvl, + $asyncKeyword = $rDef.async; + if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema'); + if (!($inline || $macro)) { + out += '' + ($ruleErrs) + ' = null;'; + } + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($isData && $rDef.$data) { + $closingBraces += '}'; + out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { '; + if ($validateSchema) { + $closingBraces += '}'; + out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { '; + } + } + if ($inline) { + if ($rDef.statements) { + out += ' ' + ($ruleValidate.validate) + ' '; + } else { + out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; '; + } + } else if ($macro) { + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + $it.schema = $ruleValidate.validate; + $it.schemaPath = ''; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($code); + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + out += ' ' + ($validateCode) + '.call( '; + if (it.opts.passContext) { + out += 'this'; + } else { + out += 'self'; + } + if ($compile || $rDef.schema === false) { + out += ' , ' + ($data) + ' '; + } else { + out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' '; + } + out += ' , (dataPath || \'\')'; + if (it.errorPath != '""') { + out += ' + ' + (it.errorPath); + } + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) '; + var def_callRuleValidate = out; + out = $$outStack.pop(); + if ($rDef.errors === false) { + out += ' ' + ($valid) + ' = '; + if ($asyncKeyword) { + out += 'await '; + } + out += '' + (def_callRuleValidate) + '; '; + } else { + if ($asyncKeyword) { + $ruleErrs = 'customErrors' + $lvl; + out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } '; + } else { + out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; '; + } + } + } + if ($rDef.modifying) { + out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];'; + } + out += '' + ($closingBraces); + if ($rDef.valid) { + if ($breakOnError) { + out += ' if (true) { '; + } + } else { + out += ' if ( '; + if ($rDef.valid === undefined) { + out += ' !'; + if ($macro) { + out += '' + ($nextValid); + } else { + out += '' + ($valid); + } + } else { + out += ' ' + (!$rDef.valid) + ' '; + } + out += ') { '; + $errorKeyword = $rule.keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + var def_customError = out; + out = $$outStack.pop(); + if ($inline) { + if ($rDef.errors) { + if ($rDef.errors != 'full') { + out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '= 0) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } else { + throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); + } + } + var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate; + var $formatType = $isObject && $format.type || 'string'; + if ($isObject) { + var $async = $format.async === true; + $format = $format.validate; + } + if ($formatType != $ruleType) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } + if ($async) { + if (!it.async) throw new Error('async format in sync schema'); + var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; + out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { '; + } else { + out += ' if (! '; + var $formatRef = 'formats' + it.util.getProperty($schema); + if ($isObject) $formatRef += '.validate'; + if (typeof $format == 'function') { + out += ' ' + ($formatRef) + '(' + ($data) + ') '; + } else { + out += ' ' + ($formatRef) + '.test(' + ($data) + ') '; + } + out += ') { '; + } + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match format "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],25:[function(require,module,exports){ +'use strict'; +module.exports = function generate_if(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + var $thenSch = it.schema['then'], + $elseSch = it.schema['else'], + $thenPresent = $thenSch !== undefined && it.util.schemaHasRules($thenSch, it.RULES.all), + $elsePresent = $elseSch !== undefined && it.util.schemaHasRules($elseSch, it.RULES.all), + $currentBaseId = $it.baseId; + if ($thenPresent || $elsePresent) { + var $ifClause; + $it.createErrors = false; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + $it.createErrors = true; + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + if ($thenPresent) { + out += ' if (' + ($nextValid) + ') { '; + $it.schema = it.schema['then']; + $it.schemaPath = it.schemaPath + '.then'; + $it.errSchemaPath = it.errSchemaPath + '/then'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'then\'; '; + } else { + $ifClause = '\'then\''; + } + out += ' } '; + if ($elsePresent) { + out += ' else { '; + } + } else { + out += ' if (!' + ($nextValid) + ') { '; + } + if ($elsePresent) { + $it.schema = it.schema['else']; + $it.schemaPath = it.schemaPath + '.else'; + $it.errSchemaPath = it.errSchemaPath + '/else'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'else\'; '; + } else { + $ifClause = '\'else\''; + } + out += ' } '; + } + out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} + +},{}],26:[function(require,module,exports){ +'use strict'; + +//all requires must be explicit because browserify won't work with dynamic requires +module.exports = { + '$ref': require('./ref'), + allOf: require('./allOf'), + anyOf: require('./anyOf'), + '$comment': require('./comment'), + const: require('./const'), + contains: require('./contains'), + dependencies: require('./dependencies'), + 'enum': require('./enum'), + format: require('./format'), + 'if': require('./if'), + items: require('./items'), + maximum: require('./_limit'), + minimum: require('./_limit'), + maxItems: require('./_limitItems'), + minItems: require('./_limitItems'), + maxLength: require('./_limitLength'), + minLength: require('./_limitLength'), + maxProperties: require('./_limitProperties'), + minProperties: require('./_limitProperties'), + multipleOf: require('./multipleOf'), + not: require('./not'), + oneOf: require('./oneOf'), + pattern: require('./pattern'), + properties: require('./properties'), + propertyNames: require('./propertyNames'), + required: require('./required'), + uniqueItems: require('./uniqueItems'), + validate: require('./validate') +}; + +},{"./_limit":12,"./_limitItems":13,"./_limitLength":14,"./_limitProperties":15,"./allOf":16,"./anyOf":17,"./comment":18,"./const":19,"./contains":20,"./dependencies":22,"./enum":23,"./format":24,"./if":25,"./items":27,"./multipleOf":28,"./not":29,"./oneOf":30,"./pattern":31,"./properties":32,"./propertyNames":33,"./ref":34,"./required":35,"./uniqueItems":36,"./validate":37}],27:[function(require,module,exports){ +'use strict'; +module.exports = function generate_items(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId; + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if (Array.isArray($schema)) { + var $additionalItems = it.schema.additionalItems; + if ($additionalItems === false) { + out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + $closingBraces += '}'; + out += ' else { '; + } + } + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { '; + var $passData = $data + '[' + $i + ']'; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); + $it.dataPathArr[$dataNxt] = $i; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if (typeof $additionalItems == 'object' && it.util.schemaHasRules($additionalItems, it.RULES.all)) { + $it.schema = $additionalItems; + $it.schemaPath = it.schemaPath + '.additionalItems'; + $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } else if (it.util.schemaHasRules($schema, it.RULES.all)) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' }'; + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],28:[function(require,module,exports){ +'use strict'; +module.exports = function generate_multipleOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + out += 'var division' + ($lvl) + ';if ('; + if ($isData) { + out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || '; + } + out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', '; + if (it.opts.multipleOfPrecision) { + out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' '; + } else { + out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') '; + } + out += ' ) '; + if ($isData) { + out += ' ) '; + } + out += ' ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be multiple of '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],29:[function(require,module,exports){ +'use strict'; +module.exports = function generate_not(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + if (it.util.schemaHasRules($schema, it.RULES.all)) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.createErrors = false; + var $allErrorsOption; + if ($it.opts.allErrors) { + $allErrorsOption = $it.opts.allErrors; + $it.opts.allErrors = false; + } + out += ' ' + (it.validate($it)) + ' '; + $it.createErrors = true; + if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (' + ($nextValid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + } else { + out += ' var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if ($breakOnError) { + out += ' if (false) { '; + } + } + return out; +} + +},{}],30:[function(require,module,exports){ +'use strict'; +module.exports = function generate_oneOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $prevValid = 'prevValid' + $lvl, + $passingSchemas = 'passingSchemas' + $lvl; + out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + } else { + out += ' var ' + ($nextValid) + ' = true; '; + } + if ($i) { + out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { '; + $closingBraces += '}'; + } + out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match exactly one schema in oneOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }'; + if (it.opts.allErrors) { + out += ' } '; + } + return out; +} + +},{}],31:[function(require,module,exports){ +'use strict'; +module.exports = function generate_pattern(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema); + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; + } + out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match pattern "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} + +},{}],32:[function(require,module,exports){ +'use strict'; +module.exports = function generate_properties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl; + var $schemaKeys = Object.keys($schema || {}), + $pProperties = it.schema.patternProperties || {}, + $pPropertyKeys = Object.keys($pProperties), + $aProperties = it.schema.additionalProperties, + $someProperties = $schemaKeys.length || $pPropertyKeys.length, + $noAdditional = $aProperties === false, + $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length, + $removeAdditional = it.opts.removeAdditional, + $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + var $required = it.schema.required; + if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required); + out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;'; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined;'; + } + if ($checkAdditional) { + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + if ($someProperties) { + out += ' var isAdditional' + ($lvl) + ' = !(false '; + if ($schemaKeys.length) { + if ($schemaKeys.length > 8) { + out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') '; + } else { + var arr1 = $schemaKeys; + if (arr1) { + var $propertyKey, i1 = -1, + l1 = arr1.length - 1; + while (i1 < l1) { + $propertyKey = arr1[i1 += 1]; + out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' '; + } + } + } + } + if ($pPropertyKeys.length) { + var arr2 = $pPropertyKeys; + if (arr2) { + var $pProperty, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $pProperty = arr2[$i += 1]; + out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') '; + } + } + } + out += ' ); if (isAdditional' + ($lvl) + ') { '; + } + if ($removeAdditional == 'all') { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + var $currentErrorPath = it.errorPath; + var $additionalProperty = '\' + ' + $key + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + } + if ($noAdditional) { + if ($removeAdditional) { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + out += ' ' + ($nextValid) + ' = false; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalProperties'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is an invalid additional property'; + } else { + out += 'should NOT have additional properties'; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + out += ' break; '; + } + } + } else if ($additionalIsSchema) { + if ($removeAdditional == 'failing') { + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + } else { + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + } + } + it.errorPath = $currentErrorPath; + } + if ($someProperties) { + out += ' } '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + var $useDefaults = it.opts.useDefaults && !it.compositeRule; + if ($schemaKeys.length) { + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + var $prop = it.util.getProperty($propertyKey), + $passData = $data + $prop, + $hasDefault = $useDefaults && $sch.default !== undefined; + $it.schema = $sch; + $it.schemaPath = $schemaPath + $prop; + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); + $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); + $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + $code = it.util.varReplace($code, $nextData, $passData); + var $useData = $passData; + } else { + var $useData = $nextData; + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; '; + } + if ($hasDefault) { + out += ' ' + ($code) + ' '; + } else { + if ($requiredHash && $requiredHash[$propertyKey]) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = false; '; + var $currentErrorPath = it.errorPath, + $currErrSchemaPath = $errSchemaPath, + $missingProperty = it.util.escapeQuotes($propertyKey); + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + $errSchemaPath = it.errSchemaPath + '/required'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + it.errorPath = $currentErrorPath; + out += ' } else { '; + } else { + if ($breakOnError) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = true; } else { '; + } else { + out += ' if (' + ($useData) + ' !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ' ) { '; + } + } + out += ' ' + ($code) + ' } '; + } + } + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($pPropertyKeys.length) { + var arr4 = $pPropertyKeys; + if (arr4) { + var $pProperty, i4 = -1, + l4 = arr4.length - 1; + while (i4 < l4) { + $pProperty = arr4[i4 += 1]; + var $sch = $pProperties[$pProperty]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + $it.schema = $sch; + $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); + $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty); + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else ' + ($nextValid) + ' = true; '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} + +},{}],33:[function(require,module,exports){ +'use strict'; +module.exports = function generate_propertyNames(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + out += 'var ' + ($errs) + ' = errors;'; + if (it.util.schemaHasRules($schema, it.RULES.all)) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $i = 'i' + $lvl, + $invalidName = '\' + ' + $key + ' + \'', + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined; '; + } + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' var startErrs' + ($lvl) + ' = errors; '; + var $passData = $key; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + '= it.opts.loopRequired, + $ownProperties = it.opts.ownProperties; + if ($breakOnError) { + out += ' var missing' + ($lvl) + '; '; + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + out += ' var ' + ($valid) + ' = true; '; + if ($isData) { + out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += '; if (!' + ($valid) + ') break; } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } else { + out += ' if ( '; + var arr2 = $required; + if (arr2) { + var $propertyKey, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $propertyKey = arr2[$i += 1]; + if ($i) { + out += ' || '; + } + var $prop = it.util.getProperty($propertyKey), + $useData = $data + $prop; + out += ' ( ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) '; + } + } + out += ') { '; + var $propertyPath = 'missing' + $lvl, + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } + } else { + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + if ($isData) { + out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { '; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '; + if ($isData) { + out += ' } '; + } + } else { + var arr3 = $required; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $prop = it.util.getProperty($propertyKey), + $missingProperty = it.util.escapeQuotes($propertyKey), + $useData = $data + $prop; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; + } + } + } + } + it.errorPath = $currentErrorPath; + } else if ($breakOnError) { + out += ' if (true) {'; + } + return out; +} + +},{}],36:[function(require,module,exports){ +'use strict'; +module.exports = function generate_uniqueItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (($schema || $isData) && it.opts.uniqueItems !== false) { + if ($isData) { + out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { '; + } + out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { '; + var $itemType = it.schema.items && it.schema.items.type, + $typeIsArray = Array.isArray($itemType); + if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) { + out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } '; + } else { + out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; '; + var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); + out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; '; + if ($typeIsArray) { + out += ' if (typeof item == \'string\') item = \'"\' + item; '; + } + out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } '; + } + out += ' } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} + +},{}],37:[function(require,module,exports){ +'use strict'; +module.exports = function generate_validate(it, $keyword, $ruleType) { + var out = ''; + var $async = it.schema.$async === true, + $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'), + $id = it.self._getId(it.schema); + if (it.opts.strictKeywords) { + var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); + if ($unknownKwd) { + var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; + if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); + else throw new Error($keywordsMsg); + } + } + if (it.isTop) { + out += ' var validate = '; + if ($async) { + it.async = true; + out += 'async '; + } + out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; '; + if ($id && (it.opts.sourceCode || it.opts.processCode)) { + out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' '; + } + } + if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) { + var $keyword = 'false schema'; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + if (it.schema === false) { + if (it.isTop) { + $breakOnError = true; + } else { + out += ' var ' + ($valid) + ' = false; '; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'boolean schema is false\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } else { + if (it.isTop) { + if ($async) { + out += ' return data; '; + } else { + out += ' validate.errors = null; return true; '; + } + } else { + out += ' var ' + ($valid) + ' = true; '; + } + } + if (it.isTop) { + out += ' }; return validate; '; + } + return out; + } + if (it.isTop) { + var $top = it.isTop, + $lvl = it.level = 0, + $dataLvl = it.dataLevel = 0, + $data = 'data'; + it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); + it.baseId = it.baseId || it.rootId; + delete it.isTop; + it.dataPathArr = [undefined]; + if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored in the schema root'; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + out += ' var vErrors = null; '; + out += ' var errors = 0; '; + out += ' if (rootData === undefined) rootData = data; '; + } else { + var $lvl = it.level, + $dataLvl = it.dataLevel, + $data = 'data' + ($dataLvl || ''); + if ($id) it.baseId = it.resolve.url(it.baseId, $id); + if ($async && !it.async) throw new Error('async schema in sync schema'); + out += ' var errs_' + ($lvl) + ' = errors;'; + } + var $valid = 'valid' + $lvl, + $breakOnError = !it.opts.allErrors, + $closingBraces1 = '', + $closingBraces2 = ''; + var $errorKeyword; + var $typeSchema = it.schema.type, + $typeIsArray = Array.isArray($typeSchema); + if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { + if ($typeIsArray) { + if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null'); + } else if ($typeSchema != 'null') { + $typeSchema = [$typeSchema, 'null']; + $typeIsArray = true; + } + } + if ($typeIsArray && $typeSchema.length == 1) { + $typeSchema = $typeSchema[0]; + $typeIsArray = false; + } + if (it.schema.$ref && $refKeywords) { + if (it.opts.extendRefs == 'fail') { + throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); + } else if (it.opts.extendRefs !== true) { + $refKeywords = false; + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + } + } + if (it.schema.$comment && it.opts.$comment) { + out += ' ' + (it.RULES.all.$comment.code(it, '$comment')); + } + if ($typeSchema) { + if (it.opts.coerceTypes) { + var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); + } + var $rulesGroup = it.RULES.types[$typeSchema]; + if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) { + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type', + $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; + out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { '; + if ($coerceToTypes) { + var $dataType = 'dataType' + $lvl, + $coerced = 'coerced' + $lvl; + out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; '; + if (it.opts.coerceTypes == 'array') { + out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; '; + } + out += ' var ' + ($coerced) + ' = undefined; '; + var $bracesCoercion = ''; + var arr1 = $coerceToTypes; + if (arr1) { + var $type, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $type = arr1[$i += 1]; + if ($i) { + out += ' if (' + ($coerced) + ' === undefined) { '; + $bracesCoercion += '}'; + } + if (it.opts.coerceTypes == 'array' && $type != 'array') { + out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; } '; + } + if ($type == 'string') { + out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; '; + } else if ($type == 'number' || $type == 'integer') { + out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' '; + if ($type == 'integer') { + out += ' && !(' + ($data) + ' % 1)'; + } + out += ')) ' + ($coerced) + ' = +' + ($data) + '; '; + } else if ($type == 'boolean') { + out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; '; + } else if ($type == 'null') { + out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; '; + } else if (it.opts.coerceTypes == 'array' && $type == 'array') { + out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; '; + } + } + } + out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' ' + ($data) + ' = ' + ($coerced) + '; '; + if (!$dataLvl) { + out += 'if (' + ($parentData) + ' !== undefined)'; + } + out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } '; + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } + out += ' } '; + } + } + if (it.schema.$ref && !$refKeywords) { + out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' '; + if ($breakOnError) { + out += ' } if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } else { + var arr2 = it.RULES; + if (arr2) { + var $rulesGroup, i2 = -1, + l2 = arr2.length - 1; + while (i2 < l2) { + $rulesGroup = arr2[i2 += 1]; + if ($shouldUseGroup($rulesGroup)) { + if ($rulesGroup.type) { + out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { '; + } + if (it.opts.useDefaults) { + if ($rulesGroup.type == 'object' && it.schema.properties) { + var $schema = it.schema.properties, + $schemaKeys = Object.keys($schema); + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if ($sch.default !== undefined) { + var $passData = $data + it.util.getProperty($propertyKey); + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) { + var arr4 = it.schema.items; + if (arr4) { + var $sch, $i = -1, + l4 = arr4.length - 1; + while ($i < l4) { + $sch = arr4[$i += 1]; + if ($sch.default !== undefined) { + var $passData = $data + '[' + $i + ']'; + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } + } + var arr5 = $rulesGroup.rules; + if (arr5) { + var $rule, i5 = -1, + l5 = arr5.length - 1; + while (i5 < l5) { + $rule = arr5[i5 += 1]; + if ($shouldUseRule($rule)) { + var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); + if ($code) { + out += ' ' + ($code) + ' '; + if ($breakOnError) { + $closingBraces1 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces1) + ' '; + $closingBraces1 = ''; + } + if ($rulesGroup.type) { + out += ' } '; + if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) { + out += ' else { '; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + } + } + if ($breakOnError) { + out += ' if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces2) + ' '; + } + if ($top) { + if ($async) { + out += ' if (errors === 0) return data; '; + out += ' else throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; '; + out += ' return errors === 0; '; + } + out += ' }; return validate;'; + } else { + out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';'; + } + out = it.util.cleanUpCode(out); + if ($top) { + out = it.util.finalCleanUpCode(out, $async); + } + + function $shouldUseGroup($rulesGroup) { + var rules = $rulesGroup.rules; + for (var i = 0; i < rules.length; i++) + if ($shouldUseRule(rules[i])) return true; + } + + function $shouldUseRule($rule) { + return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule)); + } + + function $ruleImplementsSomeKeyword($rule) { + var impl = $rule.implements; + for (var i = 0; i < impl.length; i++) + if (it.schema[impl[i]] !== undefined) return true; + } + return out; +} + +},{}],38:[function(require,module,exports){ +'use strict'; + +var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; +var customRuleCode = require('./dotjs/custom'); +var metaSchema = require('./refs/json-schema-draft-07.json'); + +module.exports = { + add: addKeyword, + get: getKeyword, + remove: removeKeyword, + validate: validateKeyword +}; + +var definitionSchema = { + definitions: { + simpleTypes: metaSchema.definitions.simpleTypes + }, + type: 'object', + dependencies: { + schema: ['validate'], + $data: ['validate'], + statements: ['inline'], + valid: {not: {required: ['macro']}} + }, + properties: { + type: metaSchema.properties.type, + schema: {type: 'boolean'}, + statements: {type: 'boolean'}, + dependencies: { + type: 'array', + items: {type: 'string'} + }, + metaSchema: {type: 'object'}, + modifying: {type: 'boolean'}, + valid: {type: 'boolean'}, + $data: {type: 'boolean'}, + async: {type: 'boolean'}, + errors: { + anyOf: [ + {type: 'boolean'}, + {const: 'full'} + ] + } + } +}; + +/** + * Define custom keyword + * @this Ajv + * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords). + * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. + * @return {Ajv} this for method chaining + */ +function addKeyword(keyword, definition) { + /* jshint validthis: true */ + /* eslint no-shadow: 0 */ + var RULES = this.RULES; + if (RULES.keywords[keyword]) + throw new Error('Keyword ' + keyword + ' is already defined'); + + if (!IDENTIFIER.test(keyword)) + throw new Error('Keyword ' + keyword + ' is not a valid identifier'); + + if (definition) { + this.validateKeyword(definition, true); + + var dataType = definition.type; + if (Array.isArray(dataType)) { + for (var i=0; i 1) { + sets[0] = sets[0].slice(0, -1); + var xl = sets.length - 1; + for (var x = 1; x < xl; ++x) { + sets[x] = sets[x].slice(1, -1); + } + sets[xl] = sets[xl].slice(1); + return sets.join(''); + } else { + return sets[0]; + } +} +function subexp(str) { + return "(?:" + str + ")"; +} +function typeOf(o) { + return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase(); +} +function toUpperCase(str) { + return str.toUpperCase(); +} +function toArray(obj) { + return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : []; +} +function assign(target, source) { + var obj = target; + if (source) { + for (var key in source) { + obj[key] = source[key]; + } + } + return obj; +} + +function buildExps(isIRI) { + var ALPHA$$ = "[A-Za-z]", + CR$ = "[\\x0D]", + DIGIT$$ = "[0-9]", + DQUOTE$$ = "[\\x22]", + HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), + //case-insensitive + LF$$ = "[\\x0A]", + SP$$ = "[\\x20]", + PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), + //expanded + GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", + SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", + RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), + UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", + //subset, excludes bidi control characters + IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", + //subset + UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), + SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), + USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), + DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), + DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), + //relaxed parsing rules + IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), + H16$ = subexp(HEXDIG$$ + "{1,4}"), + LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), + IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), + // 6( h16 ":" ) ls32 + IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), + // "::" 5( h16 ":" ) ls32 + IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), + //[ h16 ] "::" 4( h16 ":" ) ls32 + IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), + //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 + IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), + //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 + IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), + //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 + IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), + //[ *4( h16 ":" ) h16 ] "::" ls32 + IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), + //[ *5( h16 ":" ) h16 ] "::" h16 + IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), + //[ *6( h16 ":" ) h16 ] "::" + IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), + ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), + //RFC 6874 + IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), + //RFC 6874 + IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), + //RFC 6874, with relaxed parsing rules + IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), + IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), + //RFC 6874 + REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), + HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), + PORT$ = subexp(DIGIT$$ + "*"), + AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), + PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), + SEGMENT$ = subexp(PCHAR$ + "*"), + SEGMENT_NZ$ = subexp(PCHAR$ + "+"), + SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), + PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), + PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), + //simplified + PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), + //simplified + PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), + //simplified + PATH_EMPTY$ = "(?!" + PCHAR$ + ")", + PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), + QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), + FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), + HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), + URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), + RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), + RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), + URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), + ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), + GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", + RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", + ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", + SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", + AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$"; + return { + NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"), + NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"), + NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"), + NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"), + ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"), + UNRESERVED: new RegExp(UNRESERVED$$, "g"), + OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"), + PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"), + IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"), + IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules + }; +} +var URI_PROTOCOL = buildExps(false); + +var IRI_PROTOCOL = buildExps(true); + +var slicedToArray = function () { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; + } + + return function (arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; +}(); + + + + + + + + + + + + + +var toConsumableArray = function (arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } else { + return Array.from(arr); + } +}; + +/** Highest positive signed 32-bit float value */ + +var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 + +/** Bootstring parameters */ +var base = 36; +var tMin = 1; +var tMax = 26; +var skew = 38; +var damp = 700; +var initialBias = 72; +var initialN = 128; // 0x80 +var delimiter = '-'; // '\x2D' + +/** Regular expressions */ +var regexPunycode = /^xn--/; +var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars +var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators + +/** Error messages */ +var errors = { + 'overflow': 'Overflow: input needs wider integers to process', + 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', + 'invalid-input': 'Invalid input' +}; + +/** Convenience shortcuts */ +var baseMinusTMin = base - tMin; +var floor = Math.floor; +var stringFromCharCode = String.fromCharCode; + +/*--------------------------------------------------------------------------*/ + +/** + * A generic error utility function. + * @private + * @param {String} type The error type. + * @returns {Error} Throws a `RangeError` with the applicable error message. + */ +function error$1(type) { + throw new RangeError(errors[type]); +} + +/** + * A generic `Array#map` utility function. + * @private + * @param {Array} array The array to iterate over. + * @param {Function} callback The function that gets called for every array + * item. + * @returns {Array} A new array of values returned by the callback function. + */ +function map(array, fn) { + var result = []; + var length = array.length; + while (length--) { + result[length] = fn(array[length]); + } + return result; +} + +/** + * A simple `Array#map`-like wrapper to work with domain name strings or email + * addresses. + * @private + * @param {String} domain The domain name or email address. + * @param {Function} callback The function that gets called for every + * character. + * @returns {Array} A new string of characters returned by the callback + * function. + */ +function mapDomain(string, fn) { + var parts = string.split('@'); + var result = ''; + if (parts.length > 1) { + // In email addresses, only the domain name should be punycoded. Leave + // the local part (i.e. everything up to `@`) intact. + result = parts[0] + '@'; + string = parts[1]; + } + // Avoid `split(regex)` for IE8 compatibility. See #17. + string = string.replace(regexSeparators, '\x2E'); + var labels = string.split('.'); + var encoded = map(labels, fn).join('.'); + return result + encoded; +} + +/** + * Creates an array containing the numeric code points of each Unicode + * character in the string. While JavaScript uses UCS-2 internally, + * this function will convert a pair of surrogate halves (each of which + * UCS-2 exposes as separate characters) into a single code point, + * matching UTF-16. + * @see `punycode.ucs2.encode` + * @see + * @memberOf punycode.ucs2 + * @name decode + * @param {String} string The Unicode input string (UCS-2). + * @returns {Array} The new array of code points. + */ +function ucs2decode(string) { + var output = []; + var counter = 0; + var length = string.length; + while (counter < length) { + var value = string.charCodeAt(counter++); + if (value >= 0xD800 && value <= 0xDBFF && counter < length) { + // It's a high surrogate, and there is a next character. + var extra = string.charCodeAt(counter++); + if ((extra & 0xFC00) == 0xDC00) { + // Low surrogate. + output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); + } else { + // It's an unmatched surrogate; only append this code unit, in case the + // next code unit is the high surrogate of a surrogate pair. + output.push(value); + counter--; + } + } else { + output.push(value); + } + } + return output; +} + +/** + * Creates a string based on an array of numeric code points. + * @see `punycode.ucs2.decode` + * @memberOf punycode.ucs2 + * @name encode + * @param {Array} codePoints The array of numeric code points. + * @returns {String} The new Unicode string (UCS-2). + */ +var ucs2encode = function ucs2encode(array) { + return String.fromCodePoint.apply(String, toConsumableArray(array)); +}; + +/** + * Converts a basic code point into a digit/integer. + * @see `digitToBasic()` + * @private + * @param {Number} codePoint The basic numeric code point value. + * @returns {Number} The numeric value of a basic code point (for use in + * representing integers) in the range `0` to `base - 1`, or `base` if + * the code point does not represent a value. + */ +var basicToDigit = function basicToDigit(codePoint) { + if (codePoint - 0x30 < 0x0A) { + return codePoint - 0x16; + } + if (codePoint - 0x41 < 0x1A) { + return codePoint - 0x41; + } + if (codePoint - 0x61 < 0x1A) { + return codePoint - 0x61; + } + return base; +}; + +/** + * Converts a digit/integer into a basic code point. + * @see `basicToDigit()` + * @private + * @param {Number} digit The numeric value of a basic code point. + * @returns {Number} The basic code point whose value (when used for + * representing integers) is `digit`, which needs to be in the range + * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is + * used; else, the lowercase form is used. The behavior is undefined + * if `flag` is non-zero and `digit` has no uppercase form. + */ +var digitToBasic = function digitToBasic(digit, flag) { + // 0..25 map to ASCII a..z or A..Z + // 26..35 map to ASCII 0..9 + return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); +}; + +/** + * Bias adaptation function as per section 3.4 of RFC 3492. + * https://tools.ietf.org/html/rfc3492#section-3.4 + * @private + */ +var adapt = function adapt(delta, numPoints, firstTime) { + var k = 0; + delta = firstTime ? floor(delta / damp) : delta >> 1; + delta += floor(delta / numPoints); + for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) { + delta = floor(delta / baseMinusTMin); + } + return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); +}; + +/** + * Converts a Punycode string of ASCII-only symbols to a string of Unicode + * symbols. + * @memberOf punycode + * @param {String} input The Punycode string of ASCII-only symbols. + * @returns {String} The resulting string of Unicode symbols. + */ +var decode = function decode(input) { + // Don't use UCS-2. + var output = []; + var inputLength = input.length; + var i = 0; + var n = initialN; + var bias = initialBias; + + // Handle the basic code points: let `basic` be the number of input code + // points before the last delimiter, or `0` if there is none, then copy + // the first basic code points to the output. + + var basic = input.lastIndexOf(delimiter); + if (basic < 0) { + basic = 0; + } + + for (var j = 0; j < basic; ++j) { + // if it's not a basic code point + if (input.charCodeAt(j) >= 0x80) { + error$1('not-basic'); + } + output.push(input.charCodeAt(j)); + } + + // Main decoding loop: start just after the last delimiter if any basic code + // points were copied; start at the beginning otherwise. + + for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{ + + // `index` is the index of the next character to be consumed. + // Decode a generalized variable-length integer into `delta`, + // which gets added to `i`. The overflow checking is easier + // if we increase `i` as we go, then subtract off its starting + // value at the end to obtain `delta`. + var oldi = i; + for (var w = 1, k = base;; /* no condition */k += base) { + + if (index >= inputLength) { + error$1('invalid-input'); + } + + var digit = basicToDigit(input.charCodeAt(index++)); + + if (digit >= base || digit > floor((maxInt - i) / w)) { + error$1('overflow'); + } + + i += digit * w; + var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + + if (digit < t) { + break; + } + + var baseMinusT = base - t; + if (w > floor(maxInt / baseMinusT)) { + error$1('overflow'); + } + + w *= baseMinusT; + } + + var out = output.length + 1; + bias = adapt(i - oldi, out, oldi == 0); + + // `i` was supposed to wrap around from `out` to `0`, + // incrementing `n` each time, so we'll fix that now: + if (floor(i / out) > maxInt - n) { + error$1('overflow'); + } + + n += floor(i / out); + i %= out; + + // Insert `n` at position `i` of the output. + output.splice(i++, 0, n); + } + + return String.fromCodePoint.apply(String, output); +}; + +/** + * Converts a string of Unicode symbols (e.g. a domain name label) to a + * Punycode string of ASCII-only symbols. + * @memberOf punycode + * @param {String} input The string of Unicode symbols. + * @returns {String} The resulting Punycode string of ASCII-only symbols. + */ +var encode = function encode(input) { + var output = []; + + // Convert the input in UCS-2 to an array of Unicode code points. + input = ucs2decode(input); + + // Cache the length. + var inputLength = input.length; + + // Initialize the state. + var n = initialN; + var delta = 0; + var bias = initialBias; + + // Handle the basic code points. + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var _currentValue2 = _step.value; + + if (_currentValue2 < 0x80) { + output.push(stringFromCharCode(_currentValue2)); + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + var basicLength = output.length; + var handledCPCount = basicLength; + + // `handledCPCount` is the number of code points that have been handled; + // `basicLength` is the number of basic code points. + + // Finish the basic string with a delimiter unless it's empty. + if (basicLength) { + output.push(delimiter); + } + + // Main encoding loop: + while (handledCPCount < inputLength) { + + // All non-basic code points < n have been handled already. Find the next + // larger one: + var m = maxInt; + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; + + try { + for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var currentValue = _step2.value; + + if (currentValue >= n && currentValue < m) { + m = currentValue; + } + } + + // Increase `delta` enough to advance the decoder's state to , + // but guard against overflow. + } catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; + } finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2.return) { + _iterator2.return(); + } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } + } + + var handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { + error$1('overflow'); + } + + delta += (m - n) * handledCPCountPlusOne; + n = m; + + var _iteratorNormalCompletion3 = true; + var _didIteratorError3 = false; + var _iteratorError3 = undefined; + + try { + for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { + var _currentValue = _step3.value; + + if (_currentValue < n && ++delta > maxInt) { + error$1('overflow'); + } + if (_currentValue == n) { + // Represent delta as a generalized variable-length integer. + var q = delta; + for (var k = base;; /* no condition */k += base) { + var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; + if (q < t) { + break; + } + var qMinusT = q - t; + var baseMinusT = base - t; + output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))); + q = floor(qMinusT / baseMinusT); + } + + output.push(stringFromCharCode(digitToBasic(q, 0))); + bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); + delta = 0; + ++handledCPCount; + } + } + } catch (err) { + _didIteratorError3 = true; + _iteratorError3 = err; + } finally { + try { + if (!_iteratorNormalCompletion3 && _iterator3.return) { + _iterator3.return(); + } + } finally { + if (_didIteratorError3) { + throw _iteratorError3; + } + } + } + + ++delta; + ++n; + } + return output.join(''); +}; + +/** + * Converts a Punycode string representing a domain name or an email address + * to Unicode. Only the Punycoded parts of the input will be converted, i.e. + * it doesn't matter if you call it on a string that has already been + * converted to Unicode. + * @memberOf punycode + * @param {String} input The Punycoded domain name or email address to + * convert to Unicode. + * @returns {String} The Unicode representation of the given Punycode + * string. + */ +var toUnicode = function toUnicode(input) { + return mapDomain(input, function (string) { + return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; + }); +}; + +/** + * Converts a Unicode string representing a domain name or an email address to + * Punycode. Only the non-ASCII parts of the domain name will be converted, + * i.e. it doesn't matter if you call it with a domain that's already in + * ASCII. + * @memberOf punycode + * @param {String} input The domain name or email address to convert, as a + * Unicode string. + * @returns {String} The Punycode representation of the given domain name or + * email address. + */ +var toASCII = function toASCII(input) { + return mapDomain(input, function (string) { + return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; + }); +}; + +/*--------------------------------------------------------------------------*/ + +/** Define the public API */ +var punycode = { + /** + * A string representing the current Punycode.js version number. + * @memberOf punycode + * @type String + */ + 'version': '2.1.0', + /** + * An object of methods to convert from JavaScript's internal character + * representation (UCS-2) to Unicode code points, and back. + * @see + * @memberOf punycode + * @type Object + */ + 'ucs2': { + 'decode': ucs2decode, + 'encode': ucs2encode + }, + 'decode': decode, + 'encode': encode, + 'toASCII': toASCII, + 'toUnicode': toUnicode +}; + +/** + * URI.js + * + * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript. + * @author Gary Court + * @see http://github.com/garycourt/uri-js + */ +/** + * Copyright 2011 Gary Court. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of Gary Court. + */ +var SCHEMES = {}; +function pctEncChar(chr) { + var c = chr.charCodeAt(0); + var e = void 0; + if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase(); + return e; +} +function pctDecChars(str) { + var newStr = ""; + var i = 0; + var il = str.length; + while (i < il) { + var c = parseInt(str.substr(i + 1, 2), 16); + if (c < 128) { + newStr += String.fromCharCode(c); + i += 3; + } else if (c >= 194 && c < 224) { + if (il - i >= 6) { + var c2 = parseInt(str.substr(i + 4, 2), 16); + newStr += String.fromCharCode((c & 31) << 6 | c2 & 63); + } else { + newStr += str.substr(i, 6); + } + i += 6; + } else if (c >= 224) { + if (il - i >= 9) { + var _c = parseInt(str.substr(i + 4, 2), 16); + var c3 = parseInt(str.substr(i + 7, 2), 16); + newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63); + } else { + newStr += str.substr(i, 9); + } + i += 9; + } else { + newStr += str.substr(i, 3); + i += 3; + } + } + return newStr; +} +function _normalizeComponentEncoding(components, protocol) { + function decodeUnreserved(str) { + var decStr = pctDecChars(str); + return !decStr.match(protocol.UNRESERVED) ? str : decStr; + } + if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, ""); + if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase); + return components; +} + +function _stripLeadingZeros(str) { + return str.replace(/^0*(.*)/, "$1") || "0"; +} +function _normalizeIPv4(host, protocol) { + var matches = host.match(protocol.IPV4ADDRESS) || []; + + var _matches = slicedToArray(matches, 2), + address = _matches[1]; + + if (address) { + return address.split(".").map(_stripLeadingZeros).join("."); + } else { + return host; + } +} +function _normalizeIPv6(host, protocol) { + var matches = host.match(protocol.IPV6ADDRESS) || []; + + var _matches2 = slicedToArray(matches, 3), + address = _matches2[1], + zone = _matches2[2]; + + if (address) { + var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(), + _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), + last = _address$toLowerCase$2[0], + first = _address$toLowerCase$2[1]; + + var firstFields = first ? first.split(":").map(_stripLeadingZeros) : []; + var lastFields = last.split(":").map(_stripLeadingZeros); + var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]); + var fieldCount = isLastFieldIPv4Address ? 7 : 8; + var lastFieldsStart = lastFields.length - fieldCount; + var fields = Array(fieldCount); + for (var x = 0; x < fieldCount; ++x) { + fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || ''; + } + if (isLastFieldIPv4Address) { + fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol); + } + var allZeroFields = fields.reduce(function (acc, field, index) { + if (!field || field === "0") { + var lastLongest = acc[acc.length - 1]; + if (lastLongest && lastLongest.index + lastLongest.length === index) { + lastLongest.length++; + } else { + acc.push({ index: index, length: 1 }); + } + } + return acc; + }, []); + var longestZeroFields = allZeroFields.sort(function (a, b) { + return b.length - a.length; + })[0]; + var newHost = void 0; + if (longestZeroFields && longestZeroFields.length > 1) { + var newFirst = fields.slice(0, longestZeroFields.index); + var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length); + newHost = newFirst.join(":") + "::" + newLast.join(":"); + } else { + newHost = fields.join(":"); + } + if (zone) { + newHost += "%" + zone; + } + return newHost; + } else { + return host; + } +} +var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i; +var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined; +function parse(uriString) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var components = {}; + var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; + if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString; + var matches = uriString.match(URI_PARSE); + if (matches) { + if (NO_MATCH_IS_UNDEFINED) { + //store each component + components.scheme = matches[1]; + components.userinfo = matches[3]; + components.host = matches[4]; + components.port = parseInt(matches[5], 10); + components.path = matches[6] || ""; + components.query = matches[7]; + components.fragment = matches[8]; + //fix port number + if (isNaN(components.port)) { + components.port = matches[5]; + } + } else { + //IE FIX for improper RegExp matching + //store each component + components.scheme = matches[1] || undefined; + components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined; + components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined; + components.port = parseInt(matches[5], 10); + components.path = matches[6] || ""; + components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined; + components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined; + //fix port number + if (isNaN(components.port)) { + components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined; + } + } + if (components.host) { + //normalize IP hosts + components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol); + } + //determine reference type + if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) { + components.reference = "same-document"; + } else if (components.scheme === undefined) { + components.reference = "relative"; + } else if (components.fragment === undefined) { + components.reference = "absolute"; + } else { + components.reference = "uri"; + } + //check for reference errors + if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) { + components.error = components.error || "URI is not a " + options.reference + " reference."; + } + //find scheme handler + var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; + //check if scheme can't handle IRIs + if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { + //if host component is a domain name + if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) { + //convert Unicode IDN -> ASCII IDN + try { + components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()); + } catch (e) { + components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e; + } + } + //convert IRI -> URI + _normalizeComponentEncoding(components, URI_PROTOCOL); + } else { + //normalize encodings + _normalizeComponentEncoding(components, protocol); + } + //perform scheme specific parsing + if (schemeHandler && schemeHandler.parse) { + schemeHandler.parse(components, options); + } + } else { + components.error = components.error || "URI can not be parsed."; + } + return components; +} + +function _recomposeAuthority(components, options) { + var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL; + var uriTokens = []; + if (components.userinfo !== undefined) { + uriTokens.push(components.userinfo); + uriTokens.push("@"); + } + if (components.host !== undefined) { + //normalize IP hosts, add brackets and escape zone separator for IPv6 + uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) { + return "[" + $1 + ($2 ? "%25" + $2 : "") + "]"; + })); + } + if (typeof components.port === "number") { + uriTokens.push(":"); + uriTokens.push(components.port.toString(10)); + } + return uriTokens.length ? uriTokens.join("") : undefined; +} + +var RDS1 = /^\.\.?\//; +var RDS2 = /^\/\.(\/|$)/; +var RDS3 = /^\/\.\.(\/|$)/; +var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/; +function removeDotSegments(input) { + var output = []; + while (input.length) { + if (input.match(RDS1)) { + input = input.replace(RDS1, ""); + } else if (input.match(RDS2)) { + input = input.replace(RDS2, "/"); + } else if (input.match(RDS3)) { + input = input.replace(RDS3, "/"); + output.pop(); + } else if (input === "." || input === "..") { + input = ""; + } else { + var im = input.match(RDS5); + if (im) { + var s = im[0]; + input = input.slice(s.length); + output.push(s); + } else { + throw new Error("Unexpected dot segment condition"); + } + } + } + return output.join(""); +} + +function serialize(components) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL; + var uriTokens = []; + //find scheme handler + var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()]; + //perform scheme specific serialization + if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options); + if (components.host) { + //if host component is an IPv6 address + if (protocol.IPV6ADDRESS.test(components.host)) {} + //TODO: normalize IPv6 address as per RFC 5952 + + //if host component is a domain name + else if (options.domainHost || schemeHandler && schemeHandler.domainHost) { + //convert IDN via punycode + try { + components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host); + } catch (e) { + components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; + } + } + } + //normalize encoding + _normalizeComponentEncoding(components, protocol); + if (options.reference !== "suffix" && components.scheme) { + uriTokens.push(components.scheme); + uriTokens.push(":"); + } + var authority = _recomposeAuthority(components, options); + if (authority !== undefined) { + if (options.reference !== "suffix") { + uriTokens.push("//"); + } + uriTokens.push(authority); + if (components.path && components.path.charAt(0) !== "/") { + uriTokens.push("/"); + } + } + if (components.path !== undefined) { + var s = components.path; + if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { + s = removeDotSegments(s); + } + if (authority === undefined) { + s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//" + } + uriTokens.push(s); + } + if (components.query !== undefined) { + uriTokens.push("?"); + uriTokens.push(components.query); + } + if (components.fragment !== undefined) { + uriTokens.push("#"); + uriTokens.push(components.fragment); + } + return uriTokens.join(""); //merge tokens into a string +} + +function resolveComponents(base, relative) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var skipNormalization = arguments[3]; + + var target = {}; + if (!skipNormalization) { + base = parse(serialize(base, options), options); //normalize base components + relative = parse(serialize(relative, options), options); //normalize relative components + } + options = options || {}; + if (!options.tolerant && relative.scheme) { + target.scheme = relative.scheme; + //target.authority = relative.authority; + target.userinfo = relative.userinfo; + target.host = relative.host; + target.port = relative.port; + target.path = removeDotSegments(relative.path || ""); + target.query = relative.query; + } else { + if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { + //target.authority = relative.authority; + target.userinfo = relative.userinfo; + target.host = relative.host; + target.port = relative.port; + target.path = removeDotSegments(relative.path || ""); + target.query = relative.query; + } else { + if (!relative.path) { + target.path = base.path; + if (relative.query !== undefined) { + target.query = relative.query; + } else { + target.query = base.query; + } + } else { + if (relative.path.charAt(0) === "/") { + target.path = removeDotSegments(relative.path); + } else { + if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { + target.path = "/" + relative.path; + } else if (!base.path) { + target.path = relative.path; + } else { + target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path; + } + target.path = removeDotSegments(target.path); + } + target.query = relative.query; + } + //target.authority = base.authority; + target.userinfo = base.userinfo; + target.host = base.host; + target.port = base.port; + } + target.scheme = base.scheme; + } + target.fragment = relative.fragment; + return target; +} + +function resolve(baseURI, relativeURI, options) { + var schemelessOptions = assign({ scheme: 'null' }, options); + return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions); +} + +function normalize(uri, options) { + if (typeof uri === "string") { + uri = serialize(parse(uri, options), options); + } else if (typeOf(uri) === "object") { + uri = parse(serialize(uri, options), options); + } + return uri; +} + +function equal(uriA, uriB, options) { + if (typeof uriA === "string") { + uriA = serialize(parse(uriA, options), options); + } else if (typeOf(uriA) === "object") { + uriA = serialize(uriA, options); + } + if (typeof uriB === "string") { + uriB = serialize(parse(uriB, options), options); + } else if (typeOf(uriB) === "object") { + uriB = serialize(uriB, options); + } + return uriA === uriB; +} + +function escapeComponent(str, options) { + return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar); +} + +function unescapeComponent(str, options) { + return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars); +} + +var handler = { + scheme: "http", + domainHost: true, + parse: function parse(components, options) { + //report missing host + if (!components.host) { + components.error = components.error || "HTTP URIs must have a host."; + } + return components; + }, + serialize: function serialize(components, options) { + //normalize the default port + if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") { + components.port = undefined; + } + //normalize the empty path + if (!components.path) { + components.path = "/"; + } + //NOTE: We do not parse query strings for HTTP URIs + //as WWW Form Url Encoded query strings are part of the HTML4+ spec, + //and not the HTTP spec. + return components; + } +}; + +var handler$1 = { + scheme: "https", + domainHost: handler.domainHost, + parse: handler.parse, + serialize: handler.serialize +}; + +var O = {}; +var isIRI = true; +//RFC 3986 +var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]"; +var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive +var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded +//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; = +//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]"; +//const WSP$$ = "[\\x20\\x09]"; +//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127) +//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext +//const VCHAR$$ = "[\\x21-\\x7E]"; +//const WSP$$ = "[\\x20\\x09]"; +//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext +//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+"); +//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$); +//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"'); +var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]"; +var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]"; +var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]"); +var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"; +var UNRESERVED = new RegExp(UNRESERVED$$, "g"); +var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g"); +var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g"); +var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g"); +var NOT_HFVALUE = NOT_HFNAME; +function decodeUnreserved(str) { + var decStr = pctDecChars(str); + return !decStr.match(UNRESERVED) ? str : decStr; +} +var handler$2 = { + scheme: "mailto", + parse: function parse$$1(components, options) { + var mailtoComponents = components; + var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : []; + mailtoComponents.path = undefined; + if (mailtoComponents.query) { + var unknownHeaders = false; + var headers = {}; + var hfields = mailtoComponents.query.split("&"); + for (var x = 0, xl = hfields.length; x < xl; ++x) { + var hfield = hfields[x].split("="); + switch (hfield[0]) { + case "to": + var toAddrs = hfield[1].split(","); + for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) { + to.push(toAddrs[_x]); + } + break; + case "subject": + mailtoComponents.subject = unescapeComponent(hfield[1], options); + break; + case "body": + mailtoComponents.body = unescapeComponent(hfield[1], options); + break; + default: + unknownHeaders = true; + headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options); + break; + } + } + if (unknownHeaders) mailtoComponents.headers = headers; + } + mailtoComponents.query = undefined; + for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) { + var addr = to[_x2].split("@"); + addr[0] = unescapeComponent(addr[0]); + if (!options.unicodeSupport) { + //convert Unicode IDN -> ASCII IDN + try { + addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase()); + } catch (e) { + mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e; + } + } else { + addr[1] = unescapeComponent(addr[1], options).toLowerCase(); + } + to[_x2] = addr.join("@"); + } + return mailtoComponents; + }, + serialize: function serialize$$1(mailtoComponents, options) { + var components = mailtoComponents; + var to = toArray(mailtoComponents.to); + if (to) { + for (var x = 0, xl = to.length; x < xl; ++x) { + var toAddr = String(to[x]); + var atIdx = toAddr.lastIndexOf("@"); + var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar); + var domain = toAddr.slice(atIdx + 1); + //convert IDN via punycode + try { + domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain); + } catch (e) { + components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e; + } + to[x] = localPart + "@" + domain; + } + components.path = to.join(","); + } + var headers = mailtoComponents.headers = mailtoComponents.headers || {}; + if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject; + if (mailtoComponents.body) headers["body"] = mailtoComponents.body; + var fields = []; + for (var name in headers) { + if (headers[name] !== O[name]) { + fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)); + } + } + if (fields.length) { + components.query = fields.join("&"); + } + return components; + } +}; + +var URN_PARSE = /^([^\:]+)\:(.*)/; +//RFC 2141 +var handler$3 = { + scheme: "urn", + parse: function parse$$1(components, options) { + var matches = components.path && components.path.match(URN_PARSE); + var urnComponents = components; + if (matches) { + var scheme = options.scheme || urnComponents.scheme || "urn"; + var nid = matches[1].toLowerCase(); + var nss = matches[2]; + var urnScheme = scheme + ":" + (options.nid || nid); + var schemeHandler = SCHEMES[urnScheme]; + urnComponents.nid = nid; + urnComponents.nss = nss; + urnComponents.path = undefined; + if (schemeHandler) { + urnComponents = schemeHandler.parse(urnComponents, options); + } + } else { + urnComponents.error = urnComponents.error || "URN can not be parsed."; + } + return urnComponents; + }, + serialize: function serialize$$1(urnComponents, options) { + var scheme = options.scheme || urnComponents.scheme || "urn"; + var nid = urnComponents.nid; + var urnScheme = scheme + ":" + (options.nid || nid); + var schemeHandler = SCHEMES[urnScheme]; + if (schemeHandler) { + urnComponents = schemeHandler.serialize(urnComponents, options); + } + var uriComponents = urnComponents; + var nss = urnComponents.nss; + uriComponents.path = (nid || options.nid) + ":" + nss; + return uriComponents; + } +}; + +var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/; +//RFC 4122 +var handler$4 = { + scheme: "urn:uuid", + parse: function parse(urnComponents, options) { + var uuidComponents = urnComponents; + uuidComponents.uuid = uuidComponents.nss; + uuidComponents.nss = undefined; + if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) { + uuidComponents.error = uuidComponents.error || "UUID is not valid."; + } + return uuidComponents; + }, + serialize: function serialize(uuidComponents, options) { + var urnComponents = uuidComponents; + //normalize UUID + urnComponents.nss = (uuidComponents.uuid || "").toLowerCase(); + return urnComponents; + } +}; + +SCHEMES[handler.scheme] = handler; +SCHEMES[handler$1.scheme] = handler$1; +SCHEMES[handler$2.scheme] = handler$2; +SCHEMES[handler$3.scheme] = handler$3; +SCHEMES[handler$4.scheme] = handler$4; + +exports.SCHEMES = SCHEMES; +exports.pctEncChar = pctEncChar; +exports.pctDecChars = pctDecChars; +exports.parse = parse; +exports.removeDotSegments = removeDotSegments; +exports.serialize = serialize; +exports.resolveComponents = resolveComponents; +exports.resolve = resolve; +exports.normalize = normalize; +exports.equal = equal; +exports.escapeComponent = escapeComponent; +exports.unescapeComponent = unescapeComponent; + +Object.defineProperty(exports, '__esModule', { value: true }); + +}))); + + +},{}],"ajv":[function(require,module,exports){ +'use strict'; + +var compileSchema = require('./compile') + , resolve = require('./compile/resolve') + , Cache = require('./cache') + , SchemaObject = require('./compile/schema_obj') + , stableStringify = require('fast-json-stable-stringify') + , formats = require('./compile/formats') + , rules = require('./compile/rules') + , $dataMetaSchema = require('./data') + , util = require('./compile/util'); + +module.exports = Ajv; + +Ajv.prototype.validate = validate; +Ajv.prototype.compile = compile; +Ajv.prototype.addSchema = addSchema; +Ajv.prototype.addMetaSchema = addMetaSchema; +Ajv.prototype.validateSchema = validateSchema; +Ajv.prototype.getSchema = getSchema; +Ajv.prototype.removeSchema = removeSchema; +Ajv.prototype.addFormat = addFormat; +Ajv.prototype.errorsText = errorsText; + +Ajv.prototype._addSchema = _addSchema; +Ajv.prototype._compile = _compile; + +Ajv.prototype.compileAsync = require('./compile/async'); +var customKeyword = require('./keyword'); +Ajv.prototype.addKeyword = customKeyword.add; +Ajv.prototype.getKeyword = customKeyword.get; +Ajv.prototype.removeKeyword = customKeyword.remove; +Ajv.prototype.validateKeyword = customKeyword.validate; + +var errorClasses = require('./compile/error_classes'); +Ajv.ValidationError = errorClasses.Validation; +Ajv.MissingRefError = errorClasses.MissingRef; +Ajv.$dataMetaSchema = $dataMetaSchema; + +var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; + +var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ]; +var META_SUPPORT_DATA = ['/properties']; + +/** + * Creates validator instance. + * Usage: `Ajv(opts)` + * @param {Object} opts optional options + * @return {Object} ajv instance + */ +function Ajv(opts) { + if (!(this instanceof Ajv)) return new Ajv(opts); + opts = this._opts = util.copy(opts) || {}; + setLogger(this); + this._schemas = {}; + this._refs = {}; + this._fragments = {}; + this._formats = formats(opts.format); + + this._cache = opts.cache || new Cache; + this._loadingSchemas = {}; + this._compilations = []; + this.RULES = rules(); + this._getId = chooseGetId(opts); + + opts.loopRequired = opts.loopRequired || Infinity; + if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; + if (opts.serialize === undefined) opts.serialize = stableStringify; + this._metaOpts = getMetaSchemaOptions(this); + + if (opts.formats) addInitialFormats(this); + addDefaultMetaSchema(this); + if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta); + if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}}); + addInitialSchemas(this); +} + + + +/** + * Validate data using schema + * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize. + * @this Ajv + * @param {String|Object} schemaKeyRef key, ref or schema object + * @param {Any} data to be validated + * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). + */ +function validate(schemaKeyRef, data) { + var v; + if (typeof schemaKeyRef == 'string') { + v = this.getSchema(schemaKeyRef); + if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"'); + } else { + var schemaObj = this._addSchema(schemaKeyRef); + v = schemaObj.validate || this._compile(schemaObj); + } + + var valid = v(data); + if (v.$async !== true) this.errors = v.errors; + return valid; +} + + +/** + * Create validating function for passed schema. + * @this Ajv + * @param {Object} schema schema object + * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords. + * @return {Function} validating function + */ +function compile(schema, _meta) { + var schemaObj = this._addSchema(schema, undefined, _meta); + return schemaObj.validate || this._compile(schemaObj); +} + + +/** + * Adds schema to the instance. + * @this Ajv + * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. + * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. + * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead. + * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. + * @return {Ajv} this for method chaining + */ +function addSchema(schema, key, _skipValidation, _meta) { + if (Array.isArray(schema)){ + for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used. + * @param {Object} options optional options with properties `separator` and `dataVar`. + * @return {String} human readable string with all errors descriptions + */ +function errorsText(errors, options) { + errors = errors || this.errors; + if (!errors) return 'No errors'; + options = options || {}; + var separator = options.separator === undefined ? ', ' : options.separator; + var dataVar = options.dataVar === undefined ? 'data' : options.dataVar; + + var text = ''; + for (var i=0; i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,c=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,f=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return a.copy(m[e="full"==e?"full":"fast"])}function v(e){var r=e.match(o);if(!r)return!1;var t,a=+r[2],s=+r[3];return 1<=a&&a<=12&&1<=s&&s<=(2!=a||((t=+r[1])%4!=0||t%100==0&&t%400!=0)?i[a]:29)}function y(e,r){var t=e.match(n);if(!t)return!1;var a=t[1],s=t[2],o=t[3];return(a<=23&&s<=59&&o<=59||23==a&&59==s&&60==o)&&(!r||t[5])}(r.exports=m).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p},m.full={date:v,time:y,"date-time":function(e){var r=e.split(g);return 2==r.length&&v(r[0])&&y(r[1],!0)},uri:function(e){return P.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:function(e){return e.length<=255&&s.test(e)},ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p};var g=/t|\s/i;var P=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},{"./util":10}],5:[function(e,r,t){"use strict";var $=e("./resolve"),D=e("./util"),j=e("./error_classes"),O=e("fast-json-stable-stringify"),I=e("../dotjs/validate"),A=D.ucs2length,C=e("fast-deep-equal"),k=j.Validation;function L(e,r,t){var a=s.call(this,e,r,t);return 0<=a?{index:a,compiling:!0}:{index:a=this._compilations.length,compiling:!(this._compilations[a]={schema:e,root:r,baseId:t})}}function z(e,r,t){var a=s.call(this,e,r,t);0<=a&&this._compilations.splice(a,1)}function s(e,r,t){for(var a=0;a",g=f?">":"<",P=void 0;if(v){var E=e.util.getData(m.$data,i,e.dataPathArr),w="exclusive"+o,S="exclType"+o,b="exclIsNumber"+o,_="' + "+(R="op"+o)+" + '";s+=" var schemaExcl"+o+" = "+E+"; ";var F;P=p;(F=F||[]).push(s+=" var "+w+"; var "+S+" = typeof "+(E="schemaExcl"+o)+"; if ("+S+" != 'boolean' && "+S+" != 'undefined' && "+S+" != 'number') { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(P||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var x=s;s=F.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+x+"]); ":" validate.errors = ["+x+"]; return false; ":" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+S+" == 'number' ? ( ("+w+" = "+a+" === undefined || "+E+" "+y+"= "+a+") ? "+h+" "+g+"= "+E+" : "+h+" "+g+" "+a+" ) : ( ("+w+" = "+E+" === true) ? "+h+" "+g+"= "+a+" : "+h+" "+g+" "+a+" ) || "+h+" !== "+h+") { var op"+o+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===n&&(u=e.errSchemaPath+"/"+(P=p),a=E,d=v)}else{_=y;if((b="number"==typeof m)&&d){var R="'"+_+"'";s+=" if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" ( "+a+" === undefined || "+m+" "+y+"= "+a+" ? "+h+" "+g+"= "+m+" : "+h+" "+g+" "+a+" ) || "+h+" !== "+h+") { "}else{b&&void 0===n?(w=!0,u=e.errSchemaPath+"/"+(P=p),a=m,g+="="):(b&&(a=Math[f?"min":"max"](m,n)),m===(!b||a)?(w=!0,u=e.errSchemaPath+"/"+(P=p),g+="="):(w=!1,_+="="));R="'"+_+"'";s+=" if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+h+" "+g+" "+a+" || "+h+" !== "+h+") { "}}P=P||r,(F=F||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(P||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+R+", limit: "+a+", exclusive: "+w+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+_+" ",s+=d?"' + "+a:a+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";x=s;return s=F.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+x+"]); ":" validate.errors = ["+x+"]; return false; ":" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { "),s}},{}],13:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || ");var f=r,p=p||[];p.push(s+=" "+h+".length "+("maxItems"==r?">":"<")+" "+a+") { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==r?"more":"fewer",s+=" than ",s+=d?"' + "+a+" + '":""+n,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=p.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},{}],14:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=!1===e.opts.unicode?" "+h+".length ":" ucs2length("+h+") ";var f=r,p=p||[];p.push(s+=" "+("maxLength"==r?">":"<")+" "+a+") { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==r?"longer":"shorter",s+=" than ",s+=d?"' + "+a+" + '":""+n,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=p.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},{}],15:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="if ( ",d&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || ");var f=r,p=p||[];p.push(s+=" Object.keys("+h+").length "+("maxProperties"==r?">":"<")+" "+a+") { "),s="",!1!==e.createErrors?(s+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==r?"more":"fewer",s+=" than ",s+=d?"' + "+a+" + '":""+n,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=p.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},{}],16:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a=" ",s=e.schema[r],o=e.schemaPath+e.util.getProperty(r),i=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,l=e.util.copy(e),u="";l.level++;var c="valid"+l.level,h=l.baseId,d=!0,f=s;if(f)for(var p,m=-1,v=f.length-1;m "+x+") { ";var $=c+"["+x+"]";f.schema=F,f.schemaPath=n+"["+x+"]",f.errSchemaPath=l+"/"+x,f.errorPath=e.util.getPathExpr(e.errorPath,x,e.opts.jsonPointers,!0),f.dataPathArr[y]=x;var D=e.validate(f);f.baseId=P,e.util.varOccurences(D,g)<2?a+=" "+e.util.varReplace(D,g,$)+" ":a+=" var "+g+" = "+$+"; "+D+" ",a+=" } ",u&&(a+=" if ("+m+") { ",p+="}")}if("object"==typeof E&&e.util.schemaHasRules(E,e.RULES.all)){f.schema=E,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",a+=" "+m+" = true; if ("+c+".length > "+i.length+") { for (var "+v+" = "+i.length+"; "+v+" < "+c+".length; "+v+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);$=c+"["+v+"]";f.dataPathArr[y]=v;D=e.validate(f);f.baseId=P,e.util.varOccurences(D,g)<2?a+=" "+e.util.varReplace(D,g,$)+" ":a+=" var "+g+" = "+$+"; "+D+" ",u&&(a+=" if (!"+m+") break; "),a+=" } } ",u&&(a+=" if ("+m+") { ",p+="}")}}else if(e.util.schemaHasRules(i,e.RULES.all)){f.schema=i,f.schemaPath=n,f.errSchemaPath=l,a+=" for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);$=c+"["+v+"]";f.dataPathArr[y]=v;D=e.validate(f);f.baseId=P,e.util.varOccurences(D,g)<2?a+=" "+e.util.varReplace(D,g,$)+" ":a+=" var "+g+" = "+$+"; "+D+" ",u&&(a+=" if (!"+m+") break; "),a+=" }"}return u&&(a+=" "+p+" if ("+d+" == errors) {"),a=e.util.cleanUpCode(a)}},{}],28:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),d=e.opts.$data&&n&&n.$data;a=d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n,s+="var division"+o+";if (",d&&(s+=" "+a+" !== undefined && ( typeof "+a+" != 'number' || "),s+=" (division"+o+" = "+h+" / "+a+", ",s+=e.opts.multipleOfPrecision?" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":" division"+o+" !== parseInt(division"+o+") ",s+=" ) ",d&&(s+=" ) ");var f=f||[];f.push(s+=" ) { "),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=d?"' + "+a:a+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var p=s;return s=f.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},{}],29:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="errs__"+s,d=e.util.copy(e);d.level++;var f="valid"+d.level;if(e.util.schemaHasRules(i,e.RULES.all)){d.schema=i,d.schemaPath=n,d.errSchemaPath=l,a+=" var "+h+" = errors; ";var p,m=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(p=d.opts.allErrors,d.opts.allErrors=!1),a+=" "+e.validate(d)+" ",d.createErrors=!0,p&&(d.opts.allErrors=p),e.compositeRule=d.compositeRule=m;var v=v||[];v.push(a+=" if ("+f+") { "),a="",!1!==e.createErrors?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be valid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var y=a;a=v.pop(),a+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(a+=" } ")}else a+=" var err = ",!1!==e.createErrors?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be valid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(a+=" if (false) { ");return a}},{}],30:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,d="errs__"+s,f=e.util.copy(e),p="";f.level++;var m="valid"+f.level,v=f.baseId,y="prevValid"+s,g="passingSchemas"+s;a+="var "+d+" = errors , "+y+" = false , "+h+" = false , "+g+" = null; ";var P=e.compositeRule;e.compositeRule=f.compositeRule=!0;var E=i;if(E)for(var w,S=-1,b=E.length-1;S 1) { ";var p=e.schema.items&&e.schema.items.type,m=Array.isArray(p);if(!p||"object"==p||"array"==p||m&&(0<=p.indexOf("object")||0<=p.indexOf("array")))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+d+" = false; break outer; } } } ";else s+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ",s+=" if ("+e.util["checkDataType"+(m?"s":"")](p,"item",!0)+") continue; ",m&&(s+=" if (typeof item == 'string') item = '\"' + item; "),s+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ";s+=" } ",f&&(s+=" } ");var v=v||[];v.push(s+=" if (!"+d+") { "),s="",!1!==e.createErrors?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var y=s;s=v.pop(),s+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { ")}else c&&(s+=" if (true) { ");return s}},{}],37:[function(e,r,t){"use strict";r.exports=function(a,e,r){var t="",s=!0===a.schema.$async,o=a.util.schemaHasRulesExcept(a.schema,a.RULES.all,"$ref"),i=a.self._getId(a.schema);if(a.opts.strictKeywords){var n=a.util.schemaUnknownRules(a.schema,a.RULES.keywords);if(n){var l="unknown keyword: "+n;if("log"!==a.opts.strictKeywords)throw new Error(l);a.logger.warn(l)}}if(a.isTop&&(t+=" var validate = ",s&&(a.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(a.opts.sourceCode||a.opts.processCode)&&(t+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof a.schema||!o&&!a.schema.$ref){var u=a.level,c=a.dataLevel,h=a.schema[e="false schema"],d=a.schemaPath+a.util.getProperty(e),f=a.errSchemaPath+"/"+e,p=!a.opts.allErrors,m="data"+(c||""),v="valid"+u;if(!1===a.schema){a.isTop?p=!0:t+=" var "+v+" = false; ",(G=G||[]).push(t),t="",!1!==a.createErrors?(t+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: {} ",!1!==a.opts.messages&&(t+=" , message: 'boolean schema is false' "),a.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";var y=t;t=G.pop(),t+=!a.compositeRule&&p?a.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t+=a.isTop?s?" return data; ":" validate.errors = null; return true; ":" var "+v+" = true; ";return a.isTop&&(t+=" }; return validate; "),t}if(a.isTop){var g=a.isTop;u=a.level=0,c=a.dataLevel=0,m="data";if(a.rootId=a.resolve.fullPath(a.self._getId(a.root.schema)),a.baseId=a.baseId||a.rootId,delete a.isTop,a.dataPathArr=[void 0],void 0!==a.schema.default&&a.opts.useDefaults&&a.opts.strictDefaults){var P="default is ignored in the schema root";if("log"!==a.opts.strictDefaults)throw new Error(P);a.logger.warn(P)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{u=a.level,m="data"+((c=a.dataLevel)||"");if(i&&(a.baseId=a.resolve.url(a.baseId,i)),s&&!a.async)throw new Error("async schema in sync schema");t+=" var errs_"+u+" = errors;"}v="valid"+u,p=!a.opts.allErrors;var E="",w="",S=a.schema.type,b=Array.isArray(S);if(S&&a.opts.nullable&&!0===a.schema.nullable&&(b?-1==S.indexOf("null")&&(S=S.concat("null")):"null"!=S&&(S=[S,"null"],b=!0)),b&&1==S.length&&(S=S[0],b=!1),a.schema.$ref&&o){if("fail"==a.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+a.errSchemaPath+'" (see option extendRefs)');!0!==a.opts.extendRefs&&(o=!1,a.logger.warn('$ref: keywords ignored in schema at path "'+a.errSchemaPath+'"'))}if(a.schema.$comment&&a.opts.$comment&&(t+=" "+a.RULES.all.$comment.code(a,"$comment")),S){if(a.opts.coerceTypes)var _=a.util.coerceToTypes(a.opts.coerceTypes,S);var F=a.RULES.types[S];if(_||b||!0===F||F&&!Y(F)){d=a.schemaPath+".type",f=a.errSchemaPath+"/type",d=a.schemaPath+".type",f=a.errSchemaPath+"/type";if(t+=" if ("+a.util[b?"checkDataTypes":"checkDataType"](S,m,!0)+") { ",_){var x="dataType"+u,R="coerced"+u;t+=" var "+x+" = typeof "+m+"; ","array"==a.opts.coerceTypes&&(t+=" if ("+x+" == 'object' && Array.isArray("+m+")) "+x+" = 'array'; "),t+=" var "+R+" = undefined; ";var $="",D=_;if(D)for(var j,O=-1,I=D.length-1;O= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=Math.floor,z=String.fromCharCode;function T(e){throw new RangeError(i[e])}function n(e,r){var t=e.split("@"),a="";return 1>1,e+=L(e/r);455L((A-s)/h))&&T("overflow"),s+=f*h;var p=d<=i?1:i+26<=d?26:d-i;if(fL(A/m)&&T("overflow"),h*=m}var v=t.length+1;i=Q(s-c,v,0==c),L(s/v)>A-o&&T("overflow"),o+=L(s/v),s%=v,t.splice(s++,0,o)}return String.fromCodePoint.apply(String,t)},u=function(e){var r=[],t=(e=q(e)).length,a=128,s=0,o=72,i=!0,n=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var h=u.value;h<128&&r.push(z(h))}}catch(e){n=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(n)throw l}}var d=r.length,f=d;for(d&&r.push("-");fL((A-s)/w)&&T("overflow"),s+=(p-a)*w,a=p;var S=!0,b=!1,_=void 0;try{for(var F,x=e[Symbol.iterator]();!(S=(F=x.next()).done);S=!0){var R=F.value;if(RA&&T("overflow"),R==a){for(var $=s,D=36;;D+=36){var j=D<=o?1:o+26<=D?26:D-o;if($>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function f(e){for(var r="",t=0,a=e.length;tA-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(M,"g"),G=new RegExp(B,"g"),Y=new RegExp(C("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',J),"g"),W=new RegExp(C("[^]",M,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),X=W;function ee(e){var r=f(e);return r.match(Z)?r:e}var re={scheme:"mailto",parse:function(e,r){var t=e,a=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var s=!1,o={},i=t.query.split("&"),n=0,l=i.length;n$ zdAwS@eht7D?@tfF48WA`h?9r0`MLYZZYpC$I`4SK9@~%A+hKnkRbNgx_YNBz@q*W% z{KGD9y-ZV93P=GdAO)m=6!@hA-g{}&`$R=4AO)nrw*vlsXmrP3I3&iWgCRx$;)Lli zu49%UHct?H;gHA-&5}w?s?~^LNoT%QT`wFGlMbul!|KUa6N<&td4G#?SWi@x0#e{y zf!o~9y#GJaugw4FB<-Yt6!=#P*krj{F8E5-TSqVFy|&TUbg%iOyKx;9hG@scXvf@m fJDx{T)-_-AycZ6ML1#YbMEwl7E;1?b*9v?Ar~DO` literal 0 HcmV?d00001 diff --git a/node_modules/ajv/lib/ajv.d.ts b/node_modules/ajv/lib/ajv.d.ts new file mode 100644 index 0000000..63f110a --- /dev/null +++ b/node_modules/ajv/lib/ajv.d.ts @@ -0,0 +1,389 @@ +declare var ajv: { + (options?: ajv.Options): ajv.Ajv; + new(options?: ajv.Options): ajv.Ajv; + ValidationError: typeof AjvErrors.ValidationError; + MissingRefError: typeof AjvErrors.MissingRefError; + $dataMetaSchema: object; +} + +declare namespace AjvErrors { + class ValidationError extends Error { + constructor(errors: Array); + + message: string; + errors: Array; + ajv: true; + validation: true; + } + + class MissingRefError extends Error { + constructor(baseId: string, ref: string, message?: string); + static message: (baseId: string, ref: string) => string; + + message: string; + missingRef: string; + missingSchema: string; + } +} + +declare namespace ajv { + type ValidationError = AjvErrors.ValidationError; + + type MissingRefError = AjvErrors.MissingRefError; + + interface Ajv { + /** + * Validate data using schema + * Schema will be compiled and cached (using serialized JSON as key, [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize by default). + * @param {string|object|Boolean} schemaKeyRef key, ref or schema object + * @param {Any} data to be validated + * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). + */ + validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike; + /** + * Create validating function for passed schema. + * @param {object|Boolean} schema schema object + * @return {Function} validating function + */ + compile(schema: object | boolean): ValidateFunction; + /** + * Creates validating function for passed schema with asynchronous loading of missing schemas. + * `loadSchema` option should be a function that accepts schema uri and node-style callback. + * @this Ajv + * @param {object|Boolean} schema schema object + * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped + * @param {Function} callback optional node-style callback, it is always called with 2 parameters: error (or null) and validating function. + * @return {PromiseLike} validating function + */ + compileAsync(schema: object | boolean, meta?: Boolean, callback?: (err: Error, validate: ValidateFunction) => any): PromiseLike; + /** + * Adds schema to the instance. + * @param {object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. + * @param {string} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. + * @return {Ajv} this for method chaining + */ + addSchema(schema: Array | object, key?: string): Ajv; + /** + * Add schema that will be used to validate other schemas + * options in META_IGNORE_OPTIONS are alway set to false + * @param {object} schema schema object + * @param {string} key optional schema key + * @return {Ajv} this for method chaining + */ + addMetaSchema(schema: object, key?: string): Ajv; + /** + * Validate schema + * @param {object|Boolean} schema schema to validate + * @return {Boolean} true if schema is valid + */ + validateSchema(schema: object | boolean): boolean; + /** + * Get compiled schema from the instance by `key` or `ref`. + * @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id). + * @return {Function} schema validating function (with property `schema`). + */ + getSchema(keyRef: string): ValidateFunction; + /** + * Remove cached schema(s). + * If no parameter is passed all schemas but meta-schemas are removed. + * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. + * Even if schema is referenced by other schemas it still can be removed as other schemas have local references. + * @param {string|object|RegExp|Boolean} schemaKeyRef key, ref, pattern to match key/ref or schema object + * @return {Ajv} this for method chaining + */ + removeSchema(schemaKeyRef?: object | string | RegExp | boolean): Ajv; + /** + * Add custom format + * @param {string} name format name + * @param {string|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid) + * @return {Ajv} this for method chaining + */ + addFormat(name: string, format: FormatValidator | FormatDefinition): Ajv; + /** + * Define custom keyword + * @this Ajv + * @param {string} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords. + * @param {object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. + * @return {Ajv} this for method chaining + */ + addKeyword(keyword: string, definition: KeywordDefinition): Ajv; + /** + * Get keyword definition + * @this Ajv + * @param {string} keyword pre-defined or custom keyword. + * @return {object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise. + */ + getKeyword(keyword: string): object | boolean; + /** + * Remove keyword + * @this Ajv + * @param {string} keyword pre-defined or custom keyword. + * @return {Ajv} this for method chaining + */ + removeKeyword(keyword: string): Ajv; + /** + * Validate keyword + * @this Ajv + * @param {object} definition keyword definition object + * @param {boolean} throwError true to throw exception if definition is invalid + * @return {boolean} validation result + */ + validateKeyword(definition: KeywordDefinition, throwError: boolean): boolean; + /** + * Convert array of error message objects to string + * @param {Array} errors optional array of validation errors, if not passed errors from the instance are used. + * @param {object} options optional options with properties `separator` and `dataVar`. + * @return {string} human readable string with all errors descriptions + */ + errorsText(errors?: Array | null, options?: ErrorsTextOptions): string; + errors?: Array | null; + } + + interface CustomLogger { + log(...args: any[]): any; + warn(...args: any[]): any; + error(...args: any[]): any; + } + + interface ValidateFunction { + ( + data: any, + dataPath?: string, + parentData?: object | Array, + parentDataProperty?: string | number, + rootData?: object | Array + ): boolean | PromiseLike; + schema?: object | boolean; + errors?: null | Array; + refs?: object; + refVal?: Array; + root?: ValidateFunction | object; + $async?: true; + source?: object; + } + + interface Options { + $data?: boolean; + allErrors?: boolean; + verbose?: boolean; + jsonPointers?: boolean; + uniqueItems?: boolean; + unicode?: boolean; + format?: string; + formats?: object; + unknownFormats?: true | string[] | 'ignore'; + schemas?: Array | object; + schemaId?: '$id' | 'id' | 'auto'; + missingRefs?: true | 'ignore' | 'fail'; + extendRefs?: true | 'ignore' | 'fail'; + loadSchema?: (uri: string, cb?: (err: Error, schema: object) => void) => PromiseLike; + removeAdditional?: boolean | 'all' | 'failing'; + useDefaults?: boolean | 'shared'; + coerceTypes?: boolean | 'array'; + strictDefaults?: boolean | 'log'; + async?: boolean | string; + transpile?: string | ((code: string) => string); + meta?: boolean | object; + validateSchema?: boolean | 'log'; + addUsedSchema?: boolean; + inlineRefs?: boolean | number; + passContext?: boolean; + loopRequired?: number; + ownProperties?: boolean; + multipleOfPrecision?: boolean | number; + errorDataPath?: string, + messages?: boolean; + sourceCode?: boolean; + processCode?: (code: string) => string; + cache?: object; + logger?: CustomLogger | false; + nullable?: boolean; + serialize?: ((schema: object | boolean) => any) | false; + } + + type FormatValidator = string | RegExp | ((data: string) => boolean | PromiseLike); + type NumberFormatValidator = ((data: number) => boolean | PromiseLike); + + interface NumberFormatDefinition { + type: "number", + validate: NumberFormatValidator; + compare?: (data1: number, data2: number) => number; + async?: boolean; + } + + interface StringFormatDefinition { + type?: "string", + validate: FormatValidator; + compare?: (data1: string, data2: string) => number; + async?: boolean; + } + + type FormatDefinition = NumberFormatDefinition | StringFormatDefinition; + + interface KeywordDefinition { + type?: string | Array; + async?: boolean; + $data?: boolean; + errors?: boolean | string; + metaSchema?: object; + // schema: false makes validate not to expect schema (ValidateFunction) + schema?: boolean; + statements?: boolean; + dependencies?: Array; + modifying?: boolean; + valid?: boolean; + // one and only one of the following properties should be present + validate?: SchemaValidateFunction | ValidateFunction; + compile?: (schema: any, parentSchema: object, it: CompilationContext) => ValidateFunction; + macro?: (schema: any, parentSchema: object, it: CompilationContext) => object | boolean; + inline?: (it: CompilationContext, keyword: string, schema: any, parentSchema: object) => string; + } + + interface CompilationContext { + level: number; + dataLevel: number; + schema: any; + schemaPath: string; + baseId: string; + async: boolean; + opts: Options; + formats: { + [index: string]: FormatDefinition | undefined; + }; + compositeRule: boolean; + validate: (schema: object) => boolean; + util: { + copy(obj: any, target?: any): any; + toHash(source: string[]): { [index: string]: true | undefined }; + equal(obj: any, target: any): boolean; + getProperty(str: string): string; + schemaHasRules(schema: object, rules: any): string; + escapeQuotes(str: string): string; + toQuotedString(str: string): string; + getData(jsonPointer: string, dataLevel: number, paths: string[]): string; + escapeJsonPointer(str: string): string; + unescapeJsonPointer(str: string): string; + escapeFragment(str: string): string; + unescapeFragment(str: string): string; + }; + self: Ajv; + } + + interface SchemaValidateFunction { + ( + schema: any, + data: any, + parentSchema?: object, + dataPath?: string, + parentData?: object | Array, + parentDataProperty?: string | number, + rootData?: object | Array + ): boolean | PromiseLike; + errors?: Array; + } + + interface ErrorsTextOptions { + separator?: string; + dataVar?: string; + } + + interface ErrorObject { + keyword: string; + dataPath: string; + schemaPath: string; + params: ErrorParameters; + // Added to validation errors of propertyNames keyword schema + propertyName?: string; + // Excluded if messages set to false. + message?: string; + // These are added with the `verbose` option. + schema?: any; + parentSchema?: object; + data?: any; + } + + type ErrorParameters = RefParams | LimitParams | AdditionalPropertiesParams | + DependenciesParams | FormatParams | ComparisonParams | + MultipleOfParams | PatternParams | RequiredParams | + TypeParams | UniqueItemsParams | CustomParams | + PatternRequiredParams | PropertyNamesParams | + IfParams | SwitchParams | NoParams | EnumParams; + + interface RefParams { + ref: string; + } + + interface LimitParams { + limit: number; + } + + interface AdditionalPropertiesParams { + additionalProperty: string; + } + + interface DependenciesParams { + property: string; + missingProperty: string; + depsCount: number; + deps: string; + } + + interface FormatParams { + format: string + } + + interface ComparisonParams { + comparison: string; + limit: number | string; + exclusive: boolean; + } + + interface MultipleOfParams { + multipleOf: number; + } + + interface PatternParams { + pattern: string; + } + + interface RequiredParams { + missingProperty: string; + } + + interface TypeParams { + type: string; + } + + interface UniqueItemsParams { + i: number; + j: number; + } + + interface CustomParams { + keyword: string; + } + + interface PatternRequiredParams { + missingPattern: string; + } + + interface PropertyNamesParams { + propertyName: string; + } + + interface IfParams { + failingKeyword: string; + } + + interface SwitchParams { + caseIndex: number; + } + + interface NoParams { } + + interface EnumParams { + allowedValues: Array; + } +} + +export = ajv; diff --git a/node_modules/ajv/lib/ajv.js b/node_modules/ajv/lib/ajv.js new file mode 100644 index 0000000..611b938 --- /dev/null +++ b/node_modules/ajv/lib/ajv.js @@ -0,0 +1,497 @@ +'use strict'; + +var compileSchema = require('./compile') + , resolve = require('./compile/resolve') + , Cache = require('./cache') + , SchemaObject = require('./compile/schema_obj') + , stableStringify = require('fast-json-stable-stringify') + , formats = require('./compile/formats') + , rules = require('./compile/rules') + , $dataMetaSchema = require('./data') + , util = require('./compile/util'); + +module.exports = Ajv; + +Ajv.prototype.validate = validate; +Ajv.prototype.compile = compile; +Ajv.prototype.addSchema = addSchema; +Ajv.prototype.addMetaSchema = addMetaSchema; +Ajv.prototype.validateSchema = validateSchema; +Ajv.prototype.getSchema = getSchema; +Ajv.prototype.removeSchema = removeSchema; +Ajv.prototype.addFormat = addFormat; +Ajv.prototype.errorsText = errorsText; + +Ajv.prototype._addSchema = _addSchema; +Ajv.prototype._compile = _compile; + +Ajv.prototype.compileAsync = require('./compile/async'); +var customKeyword = require('./keyword'); +Ajv.prototype.addKeyword = customKeyword.add; +Ajv.prototype.getKeyword = customKeyword.get; +Ajv.prototype.removeKeyword = customKeyword.remove; +Ajv.prototype.validateKeyword = customKeyword.validate; + +var errorClasses = require('./compile/error_classes'); +Ajv.ValidationError = errorClasses.Validation; +Ajv.MissingRefError = errorClasses.MissingRef; +Ajv.$dataMetaSchema = $dataMetaSchema; + +var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema'; + +var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ]; +var META_SUPPORT_DATA = ['/properties']; + +/** + * Creates validator instance. + * Usage: `Ajv(opts)` + * @param {Object} opts optional options + * @return {Object} ajv instance + */ +function Ajv(opts) { + if (!(this instanceof Ajv)) return new Ajv(opts); + opts = this._opts = util.copy(opts) || {}; + setLogger(this); + this._schemas = {}; + this._refs = {}; + this._fragments = {}; + this._formats = formats(opts.format); + + this._cache = opts.cache || new Cache; + this._loadingSchemas = {}; + this._compilations = []; + this.RULES = rules(); + this._getId = chooseGetId(opts); + + opts.loopRequired = opts.loopRequired || Infinity; + if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; + if (opts.serialize === undefined) opts.serialize = stableStringify; + this._metaOpts = getMetaSchemaOptions(this); + + if (opts.formats) addInitialFormats(this); + addDefaultMetaSchema(this); + if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta); + if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}}); + addInitialSchemas(this); +} + + + +/** + * Validate data using schema + * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize. + * @this Ajv + * @param {String|Object} schemaKeyRef key, ref or schema object + * @param {Any} data to be validated + * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). + */ +function validate(schemaKeyRef, data) { + var v; + if (typeof schemaKeyRef == 'string') { + v = this.getSchema(schemaKeyRef); + if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"'); + } else { + var schemaObj = this._addSchema(schemaKeyRef); + v = schemaObj.validate || this._compile(schemaObj); + } + + var valid = v(data); + if (v.$async !== true) this.errors = v.errors; + return valid; +} + + +/** + * Create validating function for passed schema. + * @this Ajv + * @param {Object} schema schema object + * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords. + * @return {Function} validating function + */ +function compile(schema, _meta) { + var schemaObj = this._addSchema(schema, undefined, _meta); + return schemaObj.validate || this._compile(schemaObj); +} + + +/** + * Adds schema to the instance. + * @this Ajv + * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. + * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. + * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead. + * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead. + * @return {Ajv} this for method chaining + */ +function addSchema(schema, key, _skipValidation, _meta) { + if (Array.isArray(schema)){ + for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used. + * @param {Object} options optional options with properties `separator` and `dataVar`. + * @return {String} human readable string with all errors descriptions + */ +function errorsText(errors, options) { + errors = errors || this.errors; + if (!errors) return 'No errors'; + options = options || {}; + var separator = options.separator === undefined ? ', ' : options.separator; + var dataVar = options.dataVar === undefined ? 'data' : options.dataVar; + + var text = ''; + for (var i=0; i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i; +// For the source: https://gist.github.com/dperini/729294 +// For test cases: https://mathiasbynens.be/demo/url-regex +// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983. +// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu; +var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; +var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i; +var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/; +var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i; +var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + + +module.exports = formats; + +function formats(mode) { + mode = mode == 'full' ? 'full' : 'fast'; + return util.copy(formats[mode]); +} + + +formats.fast = { + // date: http://tools.ietf.org/html/rfc3339#section-5.6 + date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, + // date-time: http://tools.ietf.org/html/rfc3339#section-5.6 + time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i, + 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i, + // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js + uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i, + 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, + 'uri-template': URITEMPLATE, + url: URL, + // email (sources from jsen validator): + // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363 + // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation') + email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, + hostname: HOSTNAME, + // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + // uuid: http://tools.ietf.org/html/rfc4122 + uuid: UUID, + // JSON-pointer: https://tools.ietf.org/html/rfc6901 + // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00 + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +formats.full = { + date: date, + time: time, + 'date-time': date_time, + uri: uri, + 'uri-reference': URIREF, + 'uri-template': URITEMPLATE, + url: URL, + email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, + hostname: hostname, + ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, + ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, + regex: regex, + uuid: UUID, + 'json-pointer': JSON_POINTER, + 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT, + 'relative-json-pointer': RELATIVE_JSON_POINTER +}; + + +function isLeapYear(year) { + // https://tools.ietf.org/html/rfc3339#appendix-C + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +} + + +function date(str) { + // full-date from http://tools.ietf.org/html/rfc3339#section-5.6 + var matches = str.match(DATE); + if (!matches) return false; + + var year = +matches[1]; + var month = +matches[2]; + var day = +matches[3]; + + return month >= 1 && month <= 12 && day >= 1 && + day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]); +} + + +function time(str, full) { + var matches = str.match(TIME); + if (!matches) return false; + + var hour = matches[1]; + var minute = matches[2]; + var second = matches[3]; + var timeZone = matches[5]; + return ((hour <= 23 && minute <= 59 && second <= 59) || + (hour == 23 && minute == 59 && second == 60)) && + (!full || timeZone); +} + + +var DATE_TIME_SEPARATOR = /t|\s/i; +function date_time(str) { + // http://tools.ietf.org/html/rfc3339#section-5.6 + var dateTime = str.split(DATE_TIME_SEPARATOR); + return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true); +} + + +function hostname(str) { + // https://tools.ietf.org/html/rfc1034#section-3.5 + // https://tools.ietf.org/html/rfc1123#section-2 + return str.length <= 255 && HOSTNAME.test(str); +} + + +var NOT_URI_FRAGMENT = /\/|:/; +function uri(str) { + // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "." + return NOT_URI_FRAGMENT.test(str) && URI.test(str); +} + + +var Z_ANCHOR = /[^\\]\\Z/; +function regex(str) { + if (Z_ANCHOR.test(str)) return false; + try { + new RegExp(str); + return true; + } catch(e) { + return false; + } +} diff --git a/node_modules/ajv/lib/compile/index.js b/node_modules/ajv/lib/compile/index.js new file mode 100644 index 0000000..f4d3f0d --- /dev/null +++ b/node_modules/ajv/lib/compile/index.js @@ -0,0 +1,387 @@ +'use strict'; + +var resolve = require('./resolve') + , util = require('./util') + , errorClasses = require('./error_classes') + , stableStringify = require('fast-json-stable-stringify'); + +var validateGenerator = require('../dotjs/validate'); + +/** + * Functions below are used inside compiled validations function + */ + +var ucs2length = util.ucs2length; +var equal = require('fast-deep-equal'); + +// this error is thrown by async schemas to return validation errors via exception +var ValidationError = errorClasses.Validation; + +module.exports = compile; + + +/** + * Compiles schema to validation function + * @this Ajv + * @param {Object} schema schema object + * @param {Object} root object with information about the root schema for this schema + * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution + * @param {String} baseId base ID for IDs in the schema + * @return {Function} validation function + */ +function compile(schema, root, localRefs, baseId) { + /* jshint validthis: true, evil: true */ + /* eslint no-shadow: 0 */ + var self = this + , opts = this._opts + , refVal = [ undefined ] + , refs = {} + , patterns = [] + , patternsHash = {} + , defaults = [] + , defaultsHash = {} + , customRules = []; + + root = root || { schema: schema, refVal: refVal, refs: refs }; + + var c = checkCompiling.call(this, schema, root, baseId); + var compilation = this._compilations[c.index]; + if (c.compiling) return (compilation.callValidate = callValidate); + + var formats = this._formats; + var RULES = this.RULES; + + try { + var v = localCompile(schema, root, localRefs, baseId); + compilation.validate = v; + var cv = compilation.callValidate; + if (cv) { + cv.schema = v.schema; + cv.errors = null; + cv.refs = v.refs; + cv.refVal = v.refVal; + cv.root = v.root; + cv.$async = v.$async; + if (opts.sourceCode) cv.source = v.source; + } + return v; + } finally { + endCompiling.call(this, schema, root, baseId); + } + + /* @this {*} - custom context, see passContext option */ + function callValidate() { + /* jshint validthis: true */ + var validate = compilation.validate; + var result = validate.apply(this, arguments); + callValidate.errors = validate.errors; + return result; + } + + function localCompile(_schema, _root, localRefs, baseId) { + var isRoot = !_root || (_root && _root.schema == _schema); + if (_root.schema != root.schema) + return compile.call(self, _schema, _root, localRefs, baseId); + + var $async = _schema.$async === true; + + var sourceCode = validateGenerator({ + isTop: true, + schema: _schema, + isRoot: isRoot, + baseId: baseId, + root: _root, + schemaPath: '', + errSchemaPath: '#', + errorPath: '""', + MissingRefError: errorClasses.MissingRef, + RULES: RULES, + validate: validateGenerator, + util: util, + resolve: resolve, + resolveRef: resolveRef, + usePattern: usePattern, + useDefault: useDefault, + useCustomRule: useCustomRule, + opts: opts, + formats: formats, + logger: self.logger, + self: self + }); + + sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + + vars(defaults, defaultCode) + vars(customRules, customRuleCode) + + sourceCode; + + if (opts.processCode) sourceCode = opts.processCode(sourceCode); + // console.log('\n\n\n *** \n', JSON.stringify(sourceCode)); + var validate; + try { + var makeValidate = new Function( + 'self', + 'RULES', + 'formats', + 'root', + 'refVal', + 'defaults', + 'customRules', + 'equal', + 'ucs2length', + 'ValidationError', + sourceCode + ); + + validate = makeValidate( + self, + RULES, + formats, + root, + refVal, + defaults, + customRules, + equal, + ucs2length, + ValidationError + ); + + refVal[0] = validate; + } catch(e) { + self.logger.error('Error compiling schema, function code:', sourceCode); + throw e; + } + + validate.schema = _schema; + validate.errors = null; + validate.refs = refs; + validate.refVal = refVal; + validate.root = isRoot ? validate : _root; + if ($async) validate.$async = true; + if (opts.sourceCode === true) { + validate.source = { + code: sourceCode, + patterns: patterns, + defaults: defaults + }; + } + + return validate; + } + + function resolveRef(baseId, ref, isRoot) { + ref = resolve.url(baseId, ref); + var refIndex = refs[ref]; + var _refVal, refCode; + if (refIndex !== undefined) { + _refVal = refVal[refIndex]; + refCode = 'refVal[' + refIndex + ']'; + return resolvedRef(_refVal, refCode); + } + if (!isRoot && root.refs) { + var rootRefId = root.refs[ref]; + if (rootRefId !== undefined) { + _refVal = root.refVal[rootRefId]; + refCode = addLocalRef(ref, _refVal); + return resolvedRef(_refVal, refCode); + } + } + + refCode = addLocalRef(ref); + var v = resolve.call(self, localCompile, root, ref); + if (v === undefined) { + var localSchema = localRefs && localRefs[ref]; + if (localSchema) { + v = resolve.inlineRef(localSchema, opts.inlineRefs) + ? localSchema + : compile.call(self, localSchema, root, localRefs, baseId); + } + } + + if (v === undefined) { + removeLocalRef(ref); + } else { + replaceLocalRef(ref, v); + return resolvedRef(v, refCode); + } + } + + function addLocalRef(ref, v) { + var refId = refVal.length; + refVal[refId] = v; + refs[ref] = refId; + return 'refVal' + refId; + } + + function removeLocalRef(ref) { + delete refs[ref]; + } + + function replaceLocalRef(ref, v) { + var refId = refs[ref]; + refVal[refId] = v; + } + + function resolvedRef(refVal, code) { + return typeof refVal == 'object' || typeof refVal == 'boolean' + ? { code: code, schema: refVal, inline: true } + : { code: code, $async: refVal && !!refVal.$async }; + } + + function usePattern(regexStr) { + var index = patternsHash[regexStr]; + if (index === undefined) { + index = patternsHash[regexStr] = patterns.length; + patterns[index] = regexStr; + } + return 'pattern' + index; + } + + function useDefault(value) { + switch (typeof value) { + case 'boolean': + case 'number': + return '' + value; + case 'string': + return util.toQuotedString(value); + case 'object': + if (value === null) return 'null'; + var valueStr = stableStringify(value); + var index = defaultsHash[valueStr]; + if (index === undefined) { + index = defaultsHash[valueStr] = defaults.length; + defaults[index] = value; + } + return 'default' + index; + } + } + + function useCustomRule(rule, schema, parentSchema, it) { + if (self._opts.validateSchema !== false) { + var deps = rule.definition.dependencies; + if (deps && !deps.every(function(keyword) { + return Object.prototype.hasOwnProperty.call(parentSchema, keyword); + })) + throw new Error('parent schema must have all required keywords: ' + deps.join(',')); + + var validateSchema = rule.definition.validateSchema; + if (validateSchema) { + var valid = validateSchema(schema); + if (!valid) { + var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors); + if (self._opts.validateSchema == 'log') self.logger.error(message); + else throw new Error(message); + } + } + } + + var compile = rule.definition.compile + , inline = rule.definition.inline + , macro = rule.definition.macro; + + var validate; + if (compile) { + validate = compile.call(self, schema, parentSchema, it); + } else if (macro) { + validate = macro.call(self, schema, parentSchema, it); + if (opts.validateSchema !== false) self.validateSchema(validate, true); + } else if (inline) { + validate = inline.call(self, it, rule.keyword, schema, parentSchema); + } else { + validate = rule.definition.validate; + if (!validate) return; + } + + if (validate === undefined) + throw new Error('custom keyword "' + rule.keyword + '"failed to compile'); + + var index = customRules.length; + customRules[index] = validate; + + return { + code: 'customRule' + index, + validate: validate + }; + } +} + + +/** + * Checks if the schema is currently compiled + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean) + */ +function checkCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var index = compIndex.call(this, schema, root, baseId); + if (index >= 0) return { index: index, compiling: true }; + index = this._compilations.length; + this._compilations[index] = { + schema: schema, + root: root, + baseId: baseId + }; + return { index: index, compiling: false }; +} + + +/** + * Removes the schema from the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + */ +function endCompiling(schema, root, baseId) { + /* jshint validthis: true */ + var i = compIndex.call(this, schema, root, baseId); + if (i >= 0) this._compilations.splice(i, 1); +} + + +/** + * Index of schema compilation in the currently compiled list + * @this Ajv + * @param {Object} schema schema to compile + * @param {Object} root root object + * @param {String} baseId base schema ID + * @return {Integer} compilation index + */ +function compIndex(schema, root, baseId) { + /* jshint validthis: true */ + for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) { + // high surrogate, and there is a next character + value = str.charCodeAt(pos); + if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate + } + } + return length; +}; diff --git a/node_modules/ajv/lib/compile/util.js b/node_modules/ajv/lib/compile/util.js new file mode 100644 index 0000000..0efa001 --- /dev/null +++ b/node_modules/ajv/lib/compile/util.js @@ -0,0 +1,274 @@ +'use strict'; + + +module.exports = { + copy: copy, + checkDataType: checkDataType, + checkDataTypes: checkDataTypes, + coerceToTypes: coerceToTypes, + toHash: toHash, + getProperty: getProperty, + escapeQuotes: escapeQuotes, + equal: require('fast-deep-equal'), + ucs2length: require('./ucs2length'), + varOccurences: varOccurences, + varReplace: varReplace, + cleanUpCode: cleanUpCode, + finalCleanUpCode: finalCleanUpCode, + schemaHasRules: schemaHasRules, + schemaHasRulesExcept: schemaHasRulesExcept, + schemaUnknownRules: schemaUnknownRules, + toQuotedString: toQuotedString, + getPathExpr: getPathExpr, + getPath: getPath, + getData: getData, + unescapeFragment: unescapeFragment, + unescapeJsonPointer: unescapeJsonPointer, + escapeFragment: escapeFragment, + escapeJsonPointer: escapeJsonPointer +}; + + +function copy(o, to) { + to = to || {}; + for (var key in o) to[key] = o[key]; + return to; +} + + +function checkDataType(dataType, data, negate) { + var EQUAL = negate ? ' !== ' : ' === ' + , AND = negate ? ' || ' : ' && ' + , OK = negate ? '!' : '' + , NOT = negate ? '' : '!'; + switch (dataType) { + case 'null': return data + EQUAL + 'null'; + case 'array': return OK + 'Array.isArray(' + data + ')'; + case 'object': return '(' + OK + data + AND + + 'typeof ' + data + EQUAL + '"object"' + AND + + NOT + 'Array.isArray(' + data + '))'; + case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND + + NOT + '(' + data + ' % 1)' + + AND + data + EQUAL + data + ')'; + default: return 'typeof ' + data + EQUAL + '"' + dataType + '"'; + } +} + + +function checkDataTypes(dataTypes, data) { + switch (dataTypes.length) { + case 1: return checkDataType(dataTypes[0], data, true); + default: + var code = ''; + var types = toHash(dataTypes); + if (types.array && types.object) { + code = types.null ? '(': '(!' + data + ' || '; + code += 'typeof ' + data + ' !== "object")'; + delete types.null; + delete types.array; + delete types.object; + } + if (types.number) delete types.integer; + for (var t in types) + code += (code ? ' && ' : '' ) + checkDataType(t, data, true); + + return code; + } +} + + +var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]); +function coerceToTypes(optionCoerceTypes, dataTypes) { + if (Array.isArray(dataTypes)) { + var types = []; + for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl); + return paths[lvl - up]; + } + + if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl); + data = 'data' + ((lvl - up) || ''); + if (!jsonPointer) return data; + } + + var expr = data; + var segments = jsonPointer.split('/'); + for (var i=0; i' + , $notOp = $isMax ? '>' : '<' + , $errorKeyword = undefined; +}} + +{{? $isDataExcl }} + {{ + var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr) + , $exclusive = 'exclusive' + $lvl + , $exclType = 'exclType' + $lvl + , $exclIsNumber = 'exclIsNumber' + $lvl + , $opExpr = 'op' + $lvl + , $opStr = '\' + ' + $opExpr + ' + \''; + }} + var schemaExcl{{=$lvl}} = {{=$schemaValueExcl}}; + {{ $schemaValueExcl = 'schemaExcl' + $lvl; }} + + var {{=$exclusive}}; + var {{=$exclType}} = typeof {{=$schemaValueExcl}}; + if ({{=$exclType}} != 'boolean' && {{=$exclType}} != 'undefined' && {{=$exclType}} != 'number') { + {{ var $errorKeyword = $exclusiveKeyword; }} + {{# def.error:'_exclusiveLimit' }} + } else if ({{# def.$dataNotType:'number' }} + {{=$exclType}} == 'number' + ? ( + ({{=$exclusive}} = {{=$schemaValue}} === undefined || {{=$schemaValueExcl}} {{=$op}}= {{=$schemaValue}}) + ? {{=$data}} {{=$notOp}}= {{=$schemaValueExcl}} + : {{=$data}} {{=$notOp}} {{=$schemaValue}} + ) + : ( + ({{=$exclusive}} = {{=$schemaValueExcl}} === true) + ? {{=$data}} {{=$notOp}}= {{=$schemaValue}} + : {{=$data}} {{=$notOp}} {{=$schemaValue}} + ) + || {{=$data}} !== {{=$data}}) { + var op{{=$lvl}} = {{=$exclusive}} ? '{{=$op}}' : '{{=$op}}='; + {{ + if ($schema === undefined) { + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaValueExcl; + $isData = $isDataExcl; + } + }} +{{??}} + {{ + var $exclIsNumber = typeof $schemaExcl == 'number' + , $opStr = $op; /*used in error*/ + }} + + {{? $exclIsNumber && $isData }} + {{ var $opExpr = '\'' + $opStr + '\''; /*used in error*/ }} + if ({{# def.$dataNotType:'number' }} + ( {{=$schemaValue}} === undefined + || {{=$schemaExcl}} {{=$op}}= {{=$schemaValue}} + ? {{=$data}} {{=$notOp}}= {{=$schemaExcl}} + : {{=$data}} {{=$notOp}} {{=$schemaValue}} ) + || {{=$data}} !== {{=$data}}) { + {{??}} + {{ + if ($exclIsNumber && $schema === undefined) { + {{# def.setExclusiveLimit }} + $schemaValue = $schemaExcl; + $notOp += '='; + } else { + if ($exclIsNumber) + $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); + + if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { + {{# def.setExclusiveLimit }} + $notOp += '='; + } else { + $exclusive = false; + $opStr += '='; + } + } + + var $opExpr = '\'' + $opStr + '\''; /*used in error*/ + }} + + if ({{# def.$dataNotType:'number' }} + {{=$data}} {{=$notOp}} {{=$schemaValue}} + || {{=$data}} !== {{=$data}}) { + {{?}} +{{?}} + {{ $errorKeyword = $errorKeyword || $keyword; }} + {{# def.error:'_limit' }} + } {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/_limitItems.jst b/node_modules/ajv/lib/dot/_limitItems.jst new file mode 100644 index 0000000..a3e078e --- /dev/null +++ b/node_modules/ajv/lib/dot/_limitItems.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitItems' }} +} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/_limitLength.jst b/node_modules/ajv/lib/dot/_limitLength.jst new file mode 100644 index 0000000..cfc8dbb --- /dev/null +++ b/node_modules/ajv/lib/dot/_limitLength.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxLength' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitLength' }} +} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/_limitProperties.jst b/node_modules/ajv/lib/dot/_limitProperties.jst new file mode 100644 index 0000000..da7ea77 --- /dev/null +++ b/node_modules/ajv/lib/dot/_limitProperties.jst @@ -0,0 +1,10 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ var $op = $keyword == 'maxProperties' ? '>' : '<'; }} +if ({{# def.$dataNotType:'number' }} Object.keys({{=$data}}).length {{=$op}} {{=$schemaValue}}) { + {{ var $errorKeyword = $keyword; }} + {{# def.error:'_limitProperties' }} +} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/allOf.jst b/node_modules/ajv/lib/dot/allOf.jst new file mode 100644 index 0000000..4c28363 --- /dev/null +++ b/node_modules/ajv/lib/dot/allOf.jst @@ -0,0 +1,34 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{ + var $currentBaseId = $it.baseId + , $allSchemasEmpty = true; +}} + +{{~ $schema:$sch:$i }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{ + $allSchemasEmpty = false; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + }} + + {{# def.insertSubschemaCode }} + + {{# def.ifResultValid }} + {{?}} +{{~}} + +{{? $breakOnError }} + {{? $allSchemasEmpty }} + if (true) { + {{??}} + {{= $closingBraces.slice(0,-1) }} + {{?}} +{{?}} + +{{# def.cleanUp }} diff --git a/node_modules/ajv/lib/dot/anyOf.jst b/node_modules/ajv/lib/dot/anyOf.jst new file mode 100644 index 0000000..086cf2b --- /dev/null +++ b/node_modules/ajv/lib/dot/anyOf.jst @@ -0,0 +1,48 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{ + var $noEmptySchema = $schema.every(function($sch) { + return {{# def.nonEmptySchema:$sch }}; + }); +}} +{{? $noEmptySchema }} + {{ var $currentBaseId = $it.baseId; }} + var {{=$errs}} = errors; + var {{=$valid}} = false; + + {{# def.setCompositeRule }} + + {{~ $schema:$sch:$i }} + {{ + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + }} + + {{# def.insertSubschemaCode }} + + {{=$valid}} = {{=$valid}} || {{=$nextValid}}; + + if (!{{=$valid}}) { + {{ $closingBraces += '}'; }} + {{~}} + + {{# def.resetCompositeRule }} + + {{= $closingBraces }} + + if (!{{=$valid}}) { + {{# def.extraError:'anyOf' }} + } else { + {{# def.resetErrors }} + {{? it.opts.allErrors }} } {{?}} + + {{# def.cleanUp }} +{{??}} + {{? $breakOnError }} + if (true) { + {{?}} +{{?}} diff --git a/node_modules/ajv/lib/dot/coerce.def b/node_modules/ajv/lib/dot/coerce.def new file mode 100644 index 0000000..86e0e18 --- /dev/null +++ b/node_modules/ajv/lib/dot/coerce.def @@ -0,0 +1,61 @@ +{{## def.coerceType: + {{ + var $dataType = 'dataType' + $lvl + , $coerced = 'coerced' + $lvl; + }} + var {{=$dataType}} = typeof {{=$data}}; + {{? it.opts.coerceTypes == 'array'}} + if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array'; + {{?}} + + var {{=$coerced}} = undefined; + + {{ var $bracesCoercion = ''; }} + {{~ $coerceToTypes:$type:$i }} + {{? $i }} + if ({{=$coerced}} === undefined) { + {{ $bracesCoercion += '}'; }} + {{?}} + + {{? it.opts.coerceTypes == 'array' && $type != 'array' }} + if ({{=$dataType}} == 'array' && {{=$data}}.length == 1) { + {{=$coerced}} = {{=$data}} = {{=$data}}[0]; + {{=$dataType}} = typeof {{=$data}}; + /*if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array';*/ + } + {{?}} + + {{? $type == 'string' }} + if ({{=$dataType}} == 'number' || {{=$dataType}} == 'boolean') + {{=$coerced}} = '' + {{=$data}}; + else if ({{=$data}} === null) {{=$coerced}} = ''; + {{?? $type == 'number' || $type == 'integer' }} + if ({{=$dataType}} == 'boolean' || {{=$data}} === null + || ({{=$dataType}} == 'string' && {{=$data}} && {{=$data}} == +{{=$data}} + {{? $type == 'integer' }} && !({{=$data}} % 1){{?}})) + {{=$coerced}} = +{{=$data}}; + {{?? $type == 'boolean' }} + if ({{=$data}} === 'false' || {{=$data}} === 0 || {{=$data}} === null) + {{=$coerced}} = false; + else if ({{=$data}} === 'true' || {{=$data}} === 1) + {{=$coerced}} = true; + {{?? $type == 'null' }} + if ({{=$data}} === '' || {{=$data}} === 0 || {{=$data}} === false) + {{=$coerced}} = null; + {{?? it.opts.coerceTypes == 'array' && $type == 'array' }} + if ({{=$dataType}} == 'string' || {{=$dataType}} == 'number' || {{=$dataType}} == 'boolean' || {{=$data}} == null) + {{=$coerced}} = [{{=$data}}]; + {{?}} + {{~}} + + {{= $bracesCoercion }} + + if ({{=$coerced}} === undefined) { + {{# def.error:'type' }} + } else { + {{# def.setParentData }} + {{=$data}} = {{=$coerced}}; + {{? !$dataLvl }}if ({{=$parentData}} !== undefined){{?}} + {{=$parentData}}[{{=$parentDataProperty}}] = {{=$coerced}}; + } +#}} diff --git a/node_modules/ajv/lib/dot/comment.jst b/node_modules/ajv/lib/dot/comment.jst new file mode 100644 index 0000000..f959150 --- /dev/null +++ b/node_modules/ajv/lib/dot/comment.jst @@ -0,0 +1,9 @@ +{{# def.definitions }} +{{# def.setupKeyword }} + +{{ var $comment = it.util.toQuotedString($schema); }} +{{? it.opts.$comment === true }} + console.log({{=$comment}}); +{{?? typeof it.opts.$comment == 'function' }} + self._opts.$comment({{=$comment}}, {{=it.util.toQuotedString($errSchemaPath)}}, validate.root.schema); +{{?}} diff --git a/node_modules/ajv/lib/dot/const.jst b/node_modules/ajv/lib/dot/const.jst new file mode 100644 index 0000000..2aa2298 --- /dev/null +++ b/node_modules/ajv/lib/dot/const.jst @@ -0,0 +1,11 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{? !$isData }} + var schema{{=$lvl}} = validate.schema{{=$schemaPath}}; +{{?}} +var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}}); +{{# def.checkError:'const' }} +{{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/contains.jst b/node_modules/ajv/lib/dot/contains.jst new file mode 100644 index 0000000..925d2c8 --- /dev/null +++ b/node_modules/ajv/lib/dot/contains.jst @@ -0,0 +1,57 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{ + var $idx = 'i' + $lvl + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $currentBaseId = it.baseId + , $nonEmptySchema = {{# def.nonEmptySchema:$schema }}; +}} + +var {{=$errs}} = errors; +var {{=$valid}}; + +{{? $nonEmptySchema }} + {{# def.setCompositeRule }} + + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + + var {{=$nextValid}} = false; + + for (var {{=$idx}} = 0; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) { + {{ + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + + if ({{=$nextValid}}) break; + } + + {{# def.resetCompositeRule }} + {{= $closingBraces }} + + if (!{{=$nextValid}}) { +{{??}} + if ({{=$data}}.length == 0) { +{{?}} + + {{# def.error:'contains' }} + } else { + {{? $nonEmptySchema }} + {{# def.resetErrors }} + {{?}} + {{? it.opts.allErrors }} } {{?}} + +{{# def.cleanUp }} diff --git a/node_modules/ajv/lib/dot/custom.jst b/node_modules/ajv/lib/dot/custom.jst new file mode 100644 index 0000000..d30588f --- /dev/null +++ b/node_modules/ajv/lib/dot/custom.jst @@ -0,0 +1,191 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ + var $rule = this + , $definition = 'definition' + $lvl + , $rDef = $rule.definition + , $closingBraces = ''; + var $validate = $rDef.validate; + var $compile, $inline, $macro, $ruleValidate, $validateCode; +}} + +{{? $isData && $rDef.$data }} + {{ + $validateCode = 'keywordValidate' + $lvl; + var $validateSchema = $rDef.validateSchema; + }} + var {{=$definition}} = RULES.custom['{{=$keyword}}'].definition; + var {{=$validateCode}} = {{=$definition}}.validate; +{{??}} + {{ + $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); + if (!$ruleValidate) return; + $schemaValue = 'validate.schema' + $schemaPath; + $validateCode = $ruleValidate.code; + $compile = $rDef.compile; + $inline = $rDef.inline; + $macro = $rDef.macro; + }} +{{?}} + +{{ + var $ruleErrs = $validateCode + '.errors' + , $i = 'i' + $lvl + , $ruleErr = 'ruleErr' + $lvl + , $asyncKeyword = $rDef.async; + + if ($asyncKeyword && !it.async) + throw new Error('async keyword in sync schema'); +}} + + +{{? !($inline || $macro) }}{{=$ruleErrs}} = null;{{?}} +var {{=$errs}} = errors; +var {{=$valid}}; + +{{## def.callRuleValidate: + {{=$validateCode}}.call( + {{? it.opts.passContext }}this{{??}}self{{?}} + {{? $compile || $rDef.schema === false }} + , {{=$data}} + {{??}} + , {{=$schemaValue}} + , {{=$data}} + , validate.schema{{=it.schemaPath}} + {{?}} + , {{# def.dataPath }} + {{# def.passParentData }} + , rootData + ) +#}} + +{{## def.extendErrors:_inline: + for (var {{=$i}}={{=$errs}}; {{=$i}}= 0 }} + {{# def.skipFormat }} + {{??}} + {{ throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); }} + {{?}} + {{?}} + {{ + var $isObject = typeof $format == 'object' + && !($format instanceof RegExp) + && $format.validate; + var $formatType = $isObject && $format.type || 'string'; + if ($isObject) { + var $async = $format.async === true; + $format = $format.validate; + } + }} + {{? $formatType != $ruleType }} + {{# def.skipFormat }} + {{?}} + {{? $async }} + {{ + if (!it.async) throw new Error('async format in sync schema'); + var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; + }} + if (!(await {{=$formatRef}}({{=$data}}))) { + {{??}} + if (!{{# def.checkFormat }}) { + {{?}} +{{?}} + {{# def.error:'format' }} + } {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/if.jst b/node_modules/ajv/lib/dot/if.jst new file mode 100644 index 0000000..7ccc9b7 --- /dev/null +++ b/node_modules/ajv/lib/dot/if.jst @@ -0,0 +1,75 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.validateIfClause:_clause: + {{ + $it.schema = it.schema['_clause']; + $it.schemaPath = it.schemaPath + '._clause'; + $it.errSchemaPath = it.errSchemaPath + '/_clause'; + }} + {{# def.insertSubschemaCode }} + {{=$valid}} = {{=$nextValid}}; + {{? $thenPresent && $elsePresent }} + {{ $ifClause = 'ifClause' + $lvl; }} + var {{=$ifClause}} = '_clause'; + {{??}} + {{ $ifClause = '\'_clause\''; }} + {{?}} +#}} + +{{ + var $thenSch = it.schema['then'] + , $elseSch = it.schema['else'] + , $thenPresent = $thenSch !== undefined && {{# def.nonEmptySchema:$thenSch }} + , $elsePresent = $elseSch !== undefined && {{# def.nonEmptySchema:$elseSch }} + , $currentBaseId = $it.baseId; +}} + +{{? $thenPresent || $elsePresent }} + {{ + var $ifClause; + $it.createErrors = false; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + var {{=$errs}} = errors; + var {{=$valid}} = true; + + {{# def.setCompositeRule }} + {{# def.insertSubschemaCode }} + {{ $it.createErrors = true; }} + {{# def.resetErrors }} + {{# def.resetCompositeRule }} + + {{? $thenPresent }} + if ({{=$nextValid}}) { + {{# def.validateIfClause:then }} + } + {{? $elsePresent }} + else { + {{?}} + {{??}} + if (!{{=$nextValid}}) { + {{?}} + + {{? $elsePresent }} + {{# def.validateIfClause:else }} + } + {{?}} + + if (!{{=$valid}}) { + {{# def.extraError:'if' }} + } + {{? $breakOnError }} else { {{?}} + + {{# def.cleanUp }} +{{??}} + {{? $breakOnError }} + if (true) { + {{?}} +{{?}} + diff --git a/node_modules/ajv/lib/dot/items.jst b/node_modules/ajv/lib/dot/items.jst new file mode 100644 index 0000000..8c0f5ac --- /dev/null +++ b/node_modules/ajv/lib/dot/items.jst @@ -0,0 +1,100 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.validateItems:startFrom: + for (var {{=$idx}} = {{=startFrom}}; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) { + {{ + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + + {{? $breakOnError }} + if (!{{=$nextValid}}) break; + {{?}} + } +#}} + +{{ + var $idx = 'i' + $lvl + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $currentBaseId = it.baseId; +}} + +var {{=$errs}} = errors; +var {{=$valid}}; + +{{? Array.isArray($schema) }} + {{ /* 'items' is an array of schemas */}} + {{ var $additionalItems = it.schema.additionalItems; }} + {{? $additionalItems === false }} + {{=$valid}} = {{=$data}}.length <= {{= $schema.length }}; + {{ + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalItems'; + }} + {{# def.checkError:'additionalItems' }} + {{ $errSchemaPath = $currErrSchemaPath; }} + {{# def.elseIfValid}} + {{?}} + + {{~ $schema:$sch:$i }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{=$nextValid}} = true; + + if ({{=$data}}.length > {{=$i}}) { + {{ + var $passData = $data + '[' + $i + ']'; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); + $it.dataPathArr[$dataNxt] = $i; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + } + + {{# def.ifResultValid }} + {{?}} + {{~}} + + {{? typeof $additionalItems == 'object' && {{# def.nonEmptySchema:$additionalItems }} }} + {{ + $it.schema = $additionalItems; + $it.schemaPath = it.schemaPath + '.additionalItems'; + $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; + }} + {{=$nextValid}} = true; + + if ({{=$data}}.length > {{= $schema.length }}) { + {{# def.validateItems: $schema.length }} + } + + {{# def.ifResultValid }} + {{?}} + +{{?? {{# def.nonEmptySchema:$schema }} }} + {{ /* 'items' is a single schema */}} + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + {{# def.validateItems: 0 }} +{{?}} + +{{? $breakOnError }} + {{= $closingBraces }} + if ({{=$errs}} == errors) { +{{?}} + +{{# def.cleanUp }} diff --git a/node_modules/ajv/lib/dot/missing.def b/node_modules/ajv/lib/dot/missing.def new file mode 100644 index 0000000..a73b9f9 --- /dev/null +++ b/node_modules/ajv/lib/dot/missing.def @@ -0,0 +1,39 @@ +{{## def.checkMissingProperty:_properties: + {{~ _properties:$propertyKey:$i }} + {{?$i}} || {{?}} + {{ + var $prop = it.util.getProperty($propertyKey) + , $useData = $data + $prop; + }} + ( ({{# def.noPropertyInData }}) && (missing{{=$lvl}} = {{= it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) }}) ) + {{~}} +#}} + + +{{## def.errorMissingProperty:_error: + {{ + var $propertyPath = 'missing' + $lvl + , $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.opts.jsonPointers + ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) + : $currentErrorPath + ' + ' + $propertyPath; + } + }} + {{# def.error:_error }} +#}} + + +{{## def.allErrorsMissingProperty:_error: + {{ + var $prop = it.util.getProperty($propertyKey) + , $missingProperty = it.util.escapeQuotes($propertyKey) + , $useData = $data + $prop; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + }} + if ({{# def.noPropertyInData }}) { + {{# def.addError:_error }} + } +#}} diff --git a/node_modules/ajv/lib/dot/multipleOf.jst b/node_modules/ajv/lib/dot/multipleOf.jst new file mode 100644 index 0000000..5f8dd33 --- /dev/null +++ b/node_modules/ajv/lib/dot/multipleOf.jst @@ -0,0 +1,20 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +var division{{=$lvl}}; +if ({{?$isData}} + {{=$schemaValue}} !== undefined && ( + typeof {{=$schemaValue}} != 'number' || + {{?}} + (division{{=$lvl}} = {{=$data}} / {{=$schemaValue}}, + {{? it.opts.multipleOfPrecision }} + Math.abs(Math.round(division{{=$lvl}}) - division{{=$lvl}}) > 1e-{{=it.opts.multipleOfPrecision}} + {{??}} + division{{=$lvl}} !== parseInt(division{{=$lvl}}) + {{?}} + ) + {{?$isData}} ) {{?}} ) { + {{# def.error:'multipleOf' }} +} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/not.jst b/node_modules/ajv/lib/dot/not.jst new file mode 100644 index 0000000..e03185a --- /dev/null +++ b/node_modules/ajv/lib/dot/not.jst @@ -0,0 +1,43 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{? {{# def.nonEmptySchema:$schema }} }} + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + + var {{=$errs}} = errors; + + {{# def.setCompositeRule }} + + {{ + $it.createErrors = false; + var $allErrorsOption; + if ($it.opts.allErrors) { + $allErrorsOption = $it.opts.allErrors; + $it.opts.allErrors = false; + } + }} + {{= it.validate($it) }} + {{ + $it.createErrors = true; + if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; + }} + + {{# def.resetCompositeRule }} + + if ({{=$nextValid}}) { + {{# def.error:'not' }} + } else { + {{# def.resetErrors }} + {{? it.opts.allErrors }} } {{?}} +{{??}} + {{# def.addError:'not' }} + {{? $breakOnError}} + if (false) { + {{?}} +{{?}} diff --git a/node_modules/ajv/lib/dot/oneOf.jst b/node_modules/ajv/lib/dot/oneOf.jst new file mode 100644 index 0000000..bcce2c6 --- /dev/null +++ b/node_modules/ajv/lib/dot/oneOf.jst @@ -0,0 +1,54 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +{{ + var $currentBaseId = $it.baseId + , $prevValid = 'prevValid' + $lvl + , $passingSchemas = 'passingSchemas' + $lvl; +}} + +var {{=$errs}} = errors + , {{=$prevValid}} = false + , {{=$valid}} = false + , {{=$passingSchemas}} = null; + +{{# def.setCompositeRule }} + +{{~ $schema:$sch:$i }} + {{? {{# def.nonEmptySchema:$sch }} }} + {{ + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + }} + + {{# def.insertSubschemaCode }} + {{??}} + var {{=$nextValid}} = true; + {{?}} + + {{? $i }} + if ({{=$nextValid}} && {{=$prevValid}}) { + {{=$valid}} = false; + {{=$passingSchemas}} = [{{=$passingSchemas}}, {{=$i}}]; + } else { + {{ $closingBraces += '}'; }} + {{?}} + + if ({{=$nextValid}}) { + {{=$valid}} = {{=$prevValid}} = true; + {{=$passingSchemas}} = {{=$i}}; + } +{{~}} + +{{# def.resetCompositeRule }} + +{{= $closingBraces }} + +if (!{{=$valid}}) { + {{# def.extraError:'oneOf' }} +} else { + {{# def.resetErrors }} +{{? it.opts.allErrors }} } {{?}} diff --git a/node_modules/ajv/lib/dot/pattern.jst b/node_modules/ajv/lib/dot/pattern.jst new file mode 100644 index 0000000..3a37ef6 --- /dev/null +++ b/node_modules/ajv/lib/dot/pattern.jst @@ -0,0 +1,14 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + +{{ + var $regexp = $isData + ? '(new RegExp(' + $schemaValue + '))' + : it.usePattern($schema); +}} + +if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) { + {{# def.error:'pattern' }} +} {{? $breakOnError }} else { {{?}} diff --git a/node_modules/ajv/lib/dot/properties.jst b/node_modules/ajv/lib/dot/properties.jst new file mode 100644 index 0000000..862067e --- /dev/null +++ b/node_modules/ajv/lib/dot/properties.jst @@ -0,0 +1,244 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + + +{{## def.validateAdditional: + {{ /* additionalProperties is schema */ + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty + ? it.errorPath + : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} +#}} + + +{{ + var $key = 'key' + $lvl + , $idx = 'idx' + $lvl + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $dataProperties = 'dataProperties' + $lvl; + + var $schemaKeys = Object.keys($schema || {}) + , $pProperties = it.schema.patternProperties || {} + , $pPropertyKeys = Object.keys($pProperties) + , $aProperties = it.schema.additionalProperties + , $someProperties = $schemaKeys.length || $pPropertyKeys.length + , $noAdditional = $aProperties === false + , $additionalIsSchema = typeof $aProperties == 'object' + && Object.keys($aProperties).length + , $removeAdditional = it.opts.removeAdditional + , $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional + , $ownProperties = it.opts.ownProperties + , $currentBaseId = it.baseId; + + var $required = it.schema.required; + if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) + var $requiredHash = it.util.toHash($required); +}} + + +var {{=$errs}} = errors; +var {{=$nextValid}} = true; +{{? $ownProperties }} + var {{=$dataProperties}} = undefined; +{{?}} + +{{? $checkAdditional }} + {{# def.iterateProperties }} + {{? $someProperties }} + var isAdditional{{=$lvl}} = !(false + {{? $schemaKeys.length }} + {{? $schemaKeys.length > 8 }} + || validate.schema{{=$schemaPath}}.hasOwnProperty({{=$key}}) + {{??}} + {{~ $schemaKeys:$propertyKey }} + || {{=$key}} == {{= it.util.toQuotedString($propertyKey) }} + {{~}} + {{?}} + {{?}} + {{? $pPropertyKeys.length }} + {{~ $pPropertyKeys:$pProperty:$i }} + || {{= it.usePattern($pProperty) }}.test({{=$key}}) + {{~}} + {{?}} + ); + + if (isAdditional{{=$lvl}}) { + {{?}} + {{? $removeAdditional == 'all' }} + delete {{=$data}}[{{=$key}}]; + {{??}} + {{ + var $currentErrorPath = it.errorPath; + var $additionalProperty = '\' + ' + $key + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + } + }} + {{? $noAdditional }} + {{? $removeAdditional }} + delete {{=$data}}[{{=$key}}]; + {{??}} + {{=$nextValid}} = false; + {{ + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalProperties'; + }} + {{# def.error:'additionalProperties' }} + {{ $errSchemaPath = $currErrSchemaPath; }} + {{? $breakOnError }} break; {{?}} + {{?}} + {{?? $additionalIsSchema }} + {{? $removeAdditional == 'failing' }} + var {{=$errs}} = errors; + {{# def.setCompositeRule }} + + {{# def.validateAdditional }} + + if (!{{=$nextValid}}) { + errors = {{=$errs}}; + if (validate.errors !== null) { + if (errors) validate.errors.length = errors; + else validate.errors = null; + } + delete {{=$data}}[{{=$key}}]; + } + + {{# def.resetCompositeRule }} + {{??}} + {{# def.validateAdditional }} + {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}} + {{?}} + {{?}} + {{ it.errorPath = $currentErrorPath; }} + {{?}} + {{? $someProperties }} + } + {{?}} + } + + {{# def.ifResultValid }} +{{?}} + +{{ var $useDefaults = it.opts.useDefaults && !it.compositeRule; }} + +{{? $schemaKeys.length }} + {{~ $schemaKeys:$propertyKey }} + {{ var $sch = $schema[$propertyKey]; }} + + {{? {{# def.nonEmptySchema:$sch}} }} + {{ + var $prop = it.util.getProperty($propertyKey) + , $passData = $data + $prop + , $hasDefault = $useDefaults && $sch.default !== undefined; + $it.schema = $sch; + $it.schemaPath = $schemaPath + $prop; + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); + $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); + $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); + }} + + {{# def.generateSubschemaCode }} + + {{? {{# def.willOptimize }} }} + {{ + $code = {{# def._optimizeValidate }}; + var $useData = $passData; + }} + {{??}} + {{ var $useData = $nextData; }} + var {{=$nextData}} = {{=$passData}}; + {{?}} + + {{? $hasDefault }} + {{= $code }} + {{??}} + {{? $requiredHash && $requiredHash[$propertyKey] }} + if ({{# def.noPropertyInData }}) { + {{=$nextValid}} = false; + {{ + var $currentErrorPath = it.errorPath + , $currErrSchemaPath = $errSchemaPath + , $missingProperty = it.util.escapeQuotes($propertyKey); + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + $errSchemaPath = it.errSchemaPath + '/required'; + }} + {{# def.error:'required' }} + {{ $errSchemaPath = $currErrSchemaPath; }} + {{ it.errorPath = $currentErrorPath; }} + } else { + {{??}} + {{? $breakOnError }} + if ({{# def.noPropertyInData }}) { + {{=$nextValid}} = true; + } else { + {{??}} + if ({{=$useData}} !== undefined + {{? $ownProperties }} + && {{# def.isOwnProperty }} + {{?}} + ) { + {{?}} + {{?}} + + {{= $code }} + } + {{?}} {{ /* $hasDefault */ }} + {{?}} {{ /* def.nonEmptySchema */ }} + + {{# def.ifResultValid }} + {{~}} +{{?}} + +{{? $pPropertyKeys.length }} + {{~ $pPropertyKeys:$pProperty }} + {{ var $sch = $pProperties[$pProperty]; }} + + {{? {{# def.nonEmptySchema:$sch}} }} + {{ + $it.schema = $sch; + $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); + $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + + it.util.escapeFragment($pProperty); + }} + + {{# def.iterateProperties }} + if ({{= it.usePattern($pProperty) }}.test({{=$key}})) { + {{ + $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + }} + + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + + {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}} + } + {{? $breakOnError }} else {{=$nextValid}} = true; {{?}} + } + + {{# def.ifResultValid }} + {{?}} {{ /* def.nonEmptySchema */ }} + {{~}} +{{?}} + + +{{? $breakOnError }} + {{= $closingBraces }} + if ({{=$errs}} == errors) { +{{?}} + +{{# def.cleanUp }} diff --git a/node_modules/ajv/lib/dot/propertyNames.jst b/node_modules/ajv/lib/dot/propertyNames.jst new file mode 100644 index 0000000..ee52b21 --- /dev/null +++ b/node_modules/ajv/lib/dot/propertyNames.jst @@ -0,0 +1,54 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.setupNextLevel }} + +var {{=$errs}} = errors; + +{{? {{# def.nonEmptySchema:$schema }} }} + {{ + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + }} + + {{ + var $key = 'key' + $lvl + , $idx = 'idx' + $lvl + , $i = 'i' + $lvl + , $invalidName = '\' + ' + $key + ' + \'' + , $dataNxt = $it.dataLevel = it.dataLevel + 1 + , $nextData = 'data' + $dataNxt + , $dataProperties = 'dataProperties' + $lvl + , $ownProperties = it.opts.ownProperties + , $currentBaseId = it.baseId; + }} + + {{? $ownProperties }} + var {{=$dataProperties}} = undefined; + {{?}} + {{# def.iterateProperties }} + var startErrs{{=$lvl}} = errors; + + {{ var $passData = $key; }} + {{# def.setCompositeRule }} + {{# def.generateSubschemaCode }} + {{# def.optimizeValidate }} + {{# def.resetCompositeRule }} + + if (!{{=$nextValid}}) { + for (var {{=$i}}=startErrs{{=$lvl}}; {{=$i}}= it.opts.loopRequired + , $ownProperties = it.opts.ownProperties; + }} + + {{? $breakOnError }} + var missing{{=$lvl}}; + {{? $loopRequired }} + {{# def.setupLoop }} + var {{=$valid}} = true; + + {{?$isData}}{{# def.check$dataIsArray }}{{?}} + + for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { + {{=$valid}} = {{=$data}}[{{=$vSchema}}[{{=$i}}]] !== undefined + {{? $ownProperties }} + && {{# def.isRequiredOwnProperty }} + {{?}}; + if (!{{=$valid}}) break; + } + + {{? $isData }} } {{?}} + + {{# def.checkError:'required' }} + else { + {{??}} + if ({{# def.checkMissingProperty:$required }}) { + {{# def.errorMissingProperty:'required' }} + } else { + {{?}} + {{??}} + {{? $loopRequired }} + {{# def.setupLoop }} + {{? $isData }} + if ({{=$vSchema}} && !Array.isArray({{=$vSchema}})) { + {{# def.addError:'required' }} + } else if ({{=$vSchema}} !== undefined) { + {{?}} + + for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) { + if ({{=$data}}[{{=$vSchema}}[{{=$i}}]] === undefined + {{? $ownProperties }} + || !{{# def.isRequiredOwnProperty }} + {{?}}) { + {{# def.addError:'required' }} + } + } + + {{? $isData }} } {{?}} + {{??}} + {{~ $required:$propertyKey }} + {{# def.allErrorsMissingProperty:'required' }} + {{~}} + {{?}} + {{?}} + + {{ it.errorPath = $currentErrorPath; }} + +{{?? $breakOnError }} + if (true) { +{{?}} diff --git a/node_modules/ajv/lib/dot/uniqueItems.jst b/node_modules/ajv/lib/dot/uniqueItems.jst new file mode 100644 index 0000000..22f82f9 --- /dev/null +++ b/node_modules/ajv/lib/dot/uniqueItems.jst @@ -0,0 +1,62 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.setupKeyword }} +{{# def.$data }} + + +{{? ($schema || $isData) && it.opts.uniqueItems !== false }} + {{? $isData }} + var {{=$valid}}; + if ({{=$schemaValue}} === false || {{=$schemaValue}} === undefined) + {{=$valid}} = true; + else if (typeof {{=$schemaValue}} != 'boolean') + {{=$valid}} = false; + else { + {{?}} + + var i = {{=$data}}.length + , {{=$valid}} = true + , j; + if (i > 1) { + {{ + var $itemType = it.schema.items && it.schema.items.type + , $typeIsArray = Array.isArray($itemType); + }} + {{? !$itemType || $itemType == 'object' || $itemType == 'array' || + ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0)) }} + outer: + for (;i--;) { + for (j = i; j--;) { + if (equal({{=$data}}[i], {{=$data}}[j])) { + {{=$valid}} = false; + break outer; + } + } + } + {{??}} + var itemIndices = {}, item; + for (;i--;) { + var item = {{=$data}}[i]; + {{ var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); }} + if ({{= it.util[$method]($itemType, 'item', true) }}) continue; + {{? $typeIsArray}} + if (typeof item == 'string') item = '"' + item; + {{?}} + if (typeof itemIndices[item] == 'number') { + {{=$valid}} = false; + j = itemIndices[item]; + break; + } + itemIndices[item] = i; + } + {{?}} + } + + {{? $isData }} } {{?}} + + if (!{{=$valid}}) { + {{# def.error:'uniqueItems' }} + } {{? $breakOnError }} else { {{?}} +{{??}} + {{? $breakOnError }} if (true) { {{?}} +{{?}} diff --git a/node_modules/ajv/lib/dot/validate.jst b/node_modules/ajv/lib/dot/validate.jst new file mode 100644 index 0000000..f8a1edf --- /dev/null +++ b/node_modules/ajv/lib/dot/validate.jst @@ -0,0 +1,282 @@ +{{# def.definitions }} +{{# def.errors }} +{{# def.defaults }} +{{# def.coerce }} + +{{ /** + * schema compilation (render) time: + * it = { schema, RULES, _validate, opts } + * it.validate - this template function, + * it is used recursively to generate code for subschemas + * + * runtime: + * "validate" is a variable name to which this function will be assigned + * validateRef etc. are defined in the parent scope in index.js + */ }} + +{{ + var $async = it.schema.$async === true + , $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref') + , $id = it.self._getId(it.schema); +}} + +{{ + if (it.opts.strictKeywords) { + var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); + if ($unknownKwd) { + var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; + if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); + else throw new Error($keywordsMsg); + } + } +}} + +{{? it.isTop }} + var validate = {{?$async}}{{it.async = true;}}async {{?}}function(data, dataPath, parentData, parentDataProperty, rootData) { + 'use strict'; + {{? $id && (it.opts.sourceCode || it.opts.processCode) }} + {{= '/\*# sourceURL=' + $id + ' */' }} + {{?}} +{{?}} + +{{? typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref) }} + {{ var $keyword = 'false schema'; }} + {{# def.setupKeyword }} + {{? it.schema === false}} + {{? it.isTop}} + {{ $breakOnError = true; }} + {{??}} + var {{=$valid}} = false; + {{?}} + {{# def.error:'false schema' }} + {{??}} + {{? it.isTop}} + {{? $async }} + return data; + {{??}} + validate.errors = null; + return true; + {{?}} + {{??}} + var {{=$valid}} = true; + {{?}} + {{?}} + + {{? it.isTop}} + }; + return validate; + {{?}} + + {{ return out; }} +{{?}} + + +{{? it.isTop }} + {{ + var $top = it.isTop + , $lvl = it.level = 0 + , $dataLvl = it.dataLevel = 0 + , $data = 'data'; + it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); + it.baseId = it.baseId || it.rootId; + delete it.isTop; + + it.dataPathArr = [undefined]; + + if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored in the schema root'; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + }} + + var vErrors = null; {{ /* don't edit, used in replace */ }} + var errors = 0; {{ /* don't edit, used in replace */ }} + if (rootData === undefined) rootData = data; {{ /* don't edit, used in replace */ }} +{{??}} + {{ + var $lvl = it.level + , $dataLvl = it.dataLevel + , $data = 'data' + ($dataLvl || ''); + + if ($id) it.baseId = it.resolve.url(it.baseId, $id); + + if ($async && !it.async) throw new Error('async schema in sync schema'); + }} + + var errs_{{=$lvl}} = errors; +{{?}} + +{{ + var $valid = 'valid' + $lvl + , $breakOnError = !it.opts.allErrors + , $closingBraces1 = '' + , $closingBraces2 = ''; + + var $errorKeyword; + var $typeSchema = it.schema.type + , $typeIsArray = Array.isArray($typeSchema); + + if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { + if ($typeIsArray) { + if ($typeSchema.indexOf('null') == -1) + $typeSchema = $typeSchema.concat('null'); + } else if ($typeSchema != 'null') { + $typeSchema = [$typeSchema, 'null']; + $typeIsArray = true; + } + } + + if ($typeIsArray && $typeSchema.length == 1) { + $typeSchema = $typeSchema[0]; + $typeIsArray = false; + } +}} + +{{## def.checkType: + {{ + var $schemaPath = it.schemaPath + '.type' + , $errSchemaPath = it.errSchemaPath + '/type' + , $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; + }} + + if ({{= it.util[$method]($typeSchema, $data, true) }}) { +#}} + +{{? it.schema.$ref && $refKeywords }} + {{? it.opts.extendRefs == 'fail' }} + {{ throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); }} + {{?? it.opts.extendRefs !== true }} + {{ + $refKeywords = false; + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + }} + {{?}} +{{?}} + +{{? it.schema.$comment && it.opts.$comment }} + {{= it.RULES.all.$comment.code(it, '$comment') }} +{{?}} + +{{? $typeSchema }} + {{? it.opts.coerceTypes }} + {{ var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); }} + {{?}} + + {{ var $rulesGroup = it.RULES.types[$typeSchema]; }} + {{? $coerceToTypes || $typeIsArray || $rulesGroup === true || + ($rulesGroup && !$shouldUseGroup($rulesGroup)) }} + {{ + var $schemaPath = it.schemaPath + '.type' + , $errSchemaPath = it.errSchemaPath + '/type'; + }} + {{# def.checkType }} + {{? $coerceToTypes }} + {{# def.coerceType }} + {{??}} + {{# def.error:'type' }} + {{?}} + } + {{?}} +{{?}} + + +{{? it.schema.$ref && !$refKeywords }} + {{= it.RULES.all.$ref.code(it, '$ref') }} + {{? $breakOnError }} + } + if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) { + {{ $closingBraces2 += '}'; }} + {{?}} +{{??}} + {{~ it.RULES:$rulesGroup }} + {{? $shouldUseGroup($rulesGroup) }} + {{? $rulesGroup.type }} + if ({{= it.util.checkDataType($rulesGroup.type, $data) }}) { + {{?}} + {{? it.opts.useDefaults }} + {{? $rulesGroup.type == 'object' && it.schema.properties }} + {{# def.defaultProperties }} + {{?? $rulesGroup.type == 'array' && Array.isArray(it.schema.items) }} + {{# def.defaultItems }} + {{?}} + {{?}} + {{~ $rulesGroup.rules:$rule }} + {{? $shouldUseRule($rule) }} + {{ var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); }} + {{? $code }} + {{= $code }} + {{? $breakOnError }} + {{ $closingBraces1 += '}'; }} + {{?}} + {{?}} + {{?}} + {{~}} + {{? $breakOnError }} + {{= $closingBraces1 }} + {{ $closingBraces1 = ''; }} + {{?}} + {{? $rulesGroup.type }} + } + {{? $typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes }} + else { + {{ + var $schemaPath = it.schemaPath + '.type' + , $errSchemaPath = it.errSchemaPath + '/type'; + }} + {{# def.error:'type' }} + } + {{?}} + {{?}} + + {{? $breakOnError }} + if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) { + {{ $closingBraces2 += '}'; }} + {{?}} + {{?}} + {{~}} +{{?}} + +{{? $breakOnError }} {{= $closingBraces2 }} {{?}} + +{{? $top }} + {{? $async }} + if (errors === 0) return data; {{ /* don't edit, used in replace */ }} + else throw new ValidationError(vErrors); {{ /* don't edit, used in replace */ }} + {{??}} + validate.errors = vErrors; {{ /* don't edit, used in replace */ }} + return errors === 0; {{ /* don't edit, used in replace */ }} + {{?}} + }; + + return validate; +{{??}} + var {{=$valid}} = errors === errs_{{=$lvl}}; +{{?}} + +{{# def.cleanUp }} + +{{? $top }} + {{# def.finalCleanUp }} +{{?}} + +{{ + function $shouldUseGroup($rulesGroup) { + var rules = $rulesGroup.rules; + for (var i=0; i < rules.length; i++) + if ($shouldUseRule(rules[i])) + return true; + } + + function $shouldUseRule($rule) { + return it.schema[$rule.keyword] !== undefined || + ($rule.implements && $ruleImplementsSomeKeyword($rule)); + } + + function $ruleImplementsSomeKeyword($rule) { + var impl = $rule.implements; + for (var i=0; i < impl.length; i++) + if (it.schema[impl[i]] !== undefined) + return true; + } +}} diff --git a/node_modules/ajv/lib/dotjs/README.md b/node_modules/ajv/lib/dotjs/README.md new file mode 100644 index 0000000..4d99484 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/README.md @@ -0,0 +1,3 @@ +These files are compiled dot templates from dot folder. + +Do NOT edit them directly, edit the templates and run `npm run build` from main ajv folder. diff --git a/node_modules/ajv/lib/dotjs/_limit.js b/node_modules/ajv/lib/dotjs/_limit.js new file mode 100644 index 0000000..f02a760 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/_limit.js @@ -0,0 +1,157 @@ +'use strict'; +module.exports = function generate__limit(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $isMax = $keyword == 'maximum', + $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum', + $schemaExcl = it.schema[$exclusiveKeyword], + $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data, + $op = $isMax ? '<' : '>', + $notOp = $isMax ? '>' : '<', + $errorKeyword = undefined; + if ($isDataExcl) { + var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr), + $exclusive = 'exclusive' + $lvl, + $exclType = 'exclType' + $lvl, + $exclIsNumber = 'exclIsNumber' + $lvl, + $opExpr = 'op' + $lvl, + $opStr = '\' + ' + $opExpr + ' + \''; + out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; '; + $schemaValueExcl = 'schemaExcl' + $lvl; + out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { '; + var $errorKeyword = $exclusiveKeyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; '; + if ($schema === undefined) { + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaValueExcl; + $isData = $isDataExcl; + } + } else { + var $exclIsNumber = typeof $schemaExcl == 'number', + $opStr = $op; + if ($exclIsNumber && $isData) { + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { '; + } else { + if ($exclIsNumber && $schema === undefined) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $schemaValue = $schemaExcl; + $notOp += '='; + } else { + if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema); + if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) { + $exclusive = true; + $errorKeyword = $exclusiveKeyword; + $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword; + $notOp += '='; + } else { + $exclusive = false; + $opStr += '='; + } + } + var $opExpr = '\'' + $opStr + '\''; + out += ' if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { '; + } + } + $errorKeyword = $errorKeyword || $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be ' + ($opStr) + ' '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/_limitItems.js b/node_modules/ajv/lib/dotjs/_limitItems.js new file mode 100644 index 0000000..a27d118 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/_limitItems.js @@ -0,0 +1,77 @@ +'use strict'; +module.exports = function generate__limitItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxItems' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxItems') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/_limitLength.js b/node_modules/ajv/lib/dotjs/_limitLength.js new file mode 100644 index 0000000..789f374 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/_limitLength.js @@ -0,0 +1,82 @@ +'use strict'; +module.exports = function generate__limitLength(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxLength' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + if (it.opts.unicode === false) { + out += ' ' + ($data) + '.length '; + } else { + out += ' ucs2length(' + ($data) + ') '; + } + out += ' ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be '; + if ($keyword == 'maxLength') { + out += 'longer'; + } else { + out += 'shorter'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' characters\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/_limitProperties.js b/node_modules/ajv/lib/dotjs/_limitProperties.js new file mode 100644 index 0000000..11dc939 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/_limitProperties.js @@ -0,0 +1,77 @@ +'use strict'; +module.exports = function generate__limitProperties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $op = $keyword == 'maxProperties' ? '>' : '<'; + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || '; + } + out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { '; + var $errorKeyword = $keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have '; + if ($keyword == 'maxProperties') { + out += 'more'; + } else { + out += 'fewer'; + } + out += ' than '; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + ($schema); + } + out += ' properties\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/allOf.js b/node_modules/ajv/lib/dotjs/allOf.js new file mode 100644 index 0000000..5107b18 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/allOf.js @@ -0,0 +1,43 @@ +'use strict'; +module.exports = function generate_allOf(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $allSchemasEmpty = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + $allSchemasEmpty = false; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($breakOnError) { + if ($allSchemasEmpty) { + out += ' if (true) { '; + } else { + out += ' ' + ($closingBraces.slice(0, -1)) + ' '; + } + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/node_modules/ajv/lib/dotjs/anyOf.js b/node_modules/ajv/lib/dotjs/anyOf.js new file mode 100644 index 0000000..819c6f8 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/anyOf.js @@ -0,0 +1,74 @@ +'use strict'; +module.exports = function generate_anyOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $noEmptySchema = $schema.every(function($sch) { + return it.util.schemaHasRules($sch, it.RULES.all); + }); + if ($noEmptySchema) { + var $currentBaseId = $it.baseId; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { '; + $closingBraces += '}'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should match some schema in anyOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/comment.js b/node_modules/ajv/lib/dotjs/comment.js new file mode 100644 index 0000000..dd66bb8 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/comment.js @@ -0,0 +1,14 @@ +'use strict'; +module.exports = function generate_comment(it, $keyword, $ruleType) { + var out = ' '; + var $schema = it.schema[$keyword]; + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $comment = it.util.toQuotedString($schema); + if (it.opts.$comment === true) { + out += ' console.log(' + ($comment) + ');'; + } else if (typeof it.opts.$comment == 'function') { + out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/const.js b/node_modules/ajv/lib/dotjs/const.js new file mode 100644 index 0000000..15b7c61 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/const.js @@ -0,0 +1,56 @@ +'use strict'; +module.exports = function generate_const(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (!$isData) { + out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';'; + } + out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be equal to constant\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' }'; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/contains.js b/node_modules/ajv/lib/dotjs/contains.js new file mode 100644 index 0000000..8899ce5 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/contains.js @@ -0,0 +1,82 @@ +'use strict'; +module.exports = function generate_contains(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId, + $nonEmptySchema = it.util.schemaHasRules($schema, it.RULES.all); + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($nonEmptySchema) { + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (' + ($nextValid) + ') break; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {'; + } else { + out += ' if (' + ($data) + '.length == 0) {'; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should contain a valid item\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + if ($nonEmptySchema) { + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + } + if (it.opts.allErrors) { + out += ' } '; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/node_modules/ajv/lib/dotjs/custom.js b/node_modules/ajv/lib/dotjs/custom.js new file mode 100644 index 0000000..f3e641e --- /dev/null +++ b/node_modules/ajv/lib/dotjs/custom.js @@ -0,0 +1,228 @@ +'use strict'; +module.exports = function generate_custom(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $rule = this, + $definition = 'definition' + $lvl, + $rDef = $rule.definition, + $closingBraces = ''; + var $compile, $inline, $macro, $ruleValidate, $validateCode; + if ($isData && $rDef.$data) { + $validateCode = 'keywordValidate' + $lvl; + var $validateSchema = $rDef.validateSchema; + out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;'; + } else { + $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it); + if (!$ruleValidate) return; + $schemaValue = 'validate.schema' + $schemaPath; + $validateCode = $ruleValidate.code; + $compile = $rDef.compile; + $inline = $rDef.inline; + $macro = $rDef.macro; + } + var $ruleErrs = $validateCode + '.errors', + $i = 'i' + $lvl, + $ruleErr = 'ruleErr' + $lvl, + $asyncKeyword = $rDef.async; + if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema'); + if (!($inline || $macro)) { + out += '' + ($ruleErrs) + ' = null;'; + } + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if ($isData && $rDef.$data) { + $closingBraces += '}'; + out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { '; + if ($validateSchema) { + $closingBraces += '}'; + out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { '; + } + } + if ($inline) { + if ($rDef.statements) { + out += ' ' + ($ruleValidate.validate) + ' '; + } else { + out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; '; + } + } else if ($macro) { + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + $it.schema = $ruleValidate.validate; + $it.schemaPath = ''; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' ' + ($code); + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + out += ' ' + ($validateCode) + '.call( '; + if (it.opts.passContext) { + out += 'this'; + } else { + out += 'self'; + } + if ($compile || $rDef.schema === false) { + out += ' , ' + ($data) + ' '; + } else { + out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' '; + } + out += ' , (dataPath || \'\')'; + if (it.errorPath != '""') { + out += ' + ' + (it.errorPath); + } + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) '; + var def_callRuleValidate = out; + out = $$outStack.pop(); + if ($rDef.errors === false) { + out += ' ' + ($valid) + ' = '; + if ($asyncKeyword) { + out += 'await '; + } + out += '' + (def_callRuleValidate) + '; '; + } else { + if ($asyncKeyword) { + $ruleErrs = 'customErrors' + $lvl; + out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } '; + } else { + out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; '; + } + } + } + if ($rDef.modifying) { + out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];'; + } + out += '' + ($closingBraces); + if ($rDef.valid) { + if ($breakOnError) { + out += ' if (true) { '; + } + } else { + out += ' if ( '; + if ($rDef.valid === undefined) { + out += ' !'; + if ($macro) { + out += '' + ($nextValid); + } else { + out += '' + ($valid); + } + } else { + out += ' ' + (!$rDef.valid) + ' '; + } + out += ') { '; + $errorKeyword = $rule.keyword; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + var def_customError = out; + out = $$outStack.pop(); + if ($inline) { + if ($rDef.errors) { + if ($rDef.errors != 'full') { + out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '= 0) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } else { + throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); + } + } + var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate; + var $formatType = $isObject && $format.type || 'string'; + if ($isObject) { + var $async = $format.async === true; + $format = $format.validate; + } + if ($formatType != $ruleType) { + if ($breakOnError) { + out += ' if (true) { '; + } + return out; + } + if ($async) { + if (!it.async) throw new Error('async format in sync schema'); + var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate'; + out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { '; + } else { + out += ' if (! '; + var $formatRef = 'formats' + it.util.getProperty($schema); + if ($isObject) $formatRef += '.validate'; + if (typeof $format == 'function') { + out += ' ' + ($formatRef) + '(' + ($data) + ') '; + } else { + out += ' ' + ($formatRef) + '.test(' + ($data) + ') '; + } + out += ') { '; + } + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match format "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/if.js b/node_modules/ajv/lib/dotjs/if.js new file mode 100644 index 0000000..eff9090 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/if.js @@ -0,0 +1,104 @@ +'use strict'; +module.exports = function generate_if(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + var $thenSch = it.schema['then'], + $elseSch = it.schema['else'], + $thenPresent = $thenSch !== undefined && it.util.schemaHasRules($thenSch, it.RULES.all), + $elsePresent = $elseSch !== undefined && it.util.schemaHasRules($elseSch, it.RULES.all), + $currentBaseId = $it.baseId; + if ($thenPresent || $elsePresent) { + var $ifClause; + $it.createErrors = false; + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + $it.createErrors = true; + out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + if ($thenPresent) { + out += ' if (' + ($nextValid) + ') { '; + $it.schema = it.schema['then']; + $it.schemaPath = it.schemaPath + '.then'; + $it.errSchemaPath = it.errSchemaPath + '/then'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'then\'; '; + } else { + $ifClause = '\'then\''; + } + out += ' } '; + if ($elsePresent) { + out += ' else { '; + } + } else { + out += ' if (!' + ($nextValid) + ') { '; + } + if ($elsePresent) { + $it.schema = it.schema['else']; + $it.schemaPath = it.schemaPath + '.else'; + $it.errSchemaPath = it.errSchemaPath + '/else'; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + out += ' ' + ($valid) + ' = ' + ($nextValid) + '; '; + if ($thenPresent && $elsePresent) { + $ifClause = 'ifClause' + $lvl; + out += ' var ' + ($ifClause) + ' = \'else\'; '; + } else { + $ifClause = '\'else\''; + } + out += ' } '; + } + out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + out = it.util.cleanUpCode(out); + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/index.js b/node_modules/ajv/lib/dotjs/index.js new file mode 100644 index 0000000..2fb1b00 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/index.js @@ -0,0 +1,33 @@ +'use strict'; + +//all requires must be explicit because browserify won't work with dynamic requires +module.exports = { + '$ref': require('./ref'), + allOf: require('./allOf'), + anyOf: require('./anyOf'), + '$comment': require('./comment'), + const: require('./const'), + contains: require('./contains'), + dependencies: require('./dependencies'), + 'enum': require('./enum'), + format: require('./format'), + 'if': require('./if'), + items: require('./items'), + maximum: require('./_limit'), + minimum: require('./_limit'), + maxItems: require('./_limitItems'), + minItems: require('./_limitItems'), + maxLength: require('./_limitLength'), + minLength: require('./_limitLength'), + maxProperties: require('./_limitProperties'), + minProperties: require('./_limitProperties'), + multipleOf: require('./multipleOf'), + not: require('./not'), + oneOf: require('./oneOf'), + pattern: require('./pattern'), + properties: require('./properties'), + propertyNames: require('./propertyNames'), + required: require('./required'), + uniqueItems: require('./uniqueItems'), + validate: require('./validate') +}; diff --git a/node_modules/ajv/lib/dotjs/items.js b/node_modules/ajv/lib/dotjs/items.js new file mode 100644 index 0000000..99ce738 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/items.js @@ -0,0 +1,141 @@ +'use strict'; +module.exports = function generate_items(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $idx = 'i' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $currentBaseId = it.baseId; + out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';'; + if (Array.isArray($schema)) { + var $additionalItems = it.schema.additionalItems; + if ($additionalItems === false) { + out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + $closingBraces += '}'; + out += ' else { '; + } + } + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { '; + var $passData = $data + '[' + $i + ']'; + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true); + $it.dataPathArr[$dataNxt] = $i; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if (typeof $additionalItems == 'object' && it.util.schemaHasRules($additionalItems, it.RULES.all)) { + $it.schema = $additionalItems; + $it.schemaPath = it.schemaPath + '.additionalItems'; + $it.errSchemaPath = it.errSchemaPath + '/additionalItems'; + out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } else if (it.util.schemaHasRules($schema, it.RULES.all)) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true); + var $passData = $data + '[' + $idx + ']'; + $it.dataPathArr[$dataNxt] = $idx; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' }'; + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/node_modules/ajv/lib/dotjs/multipleOf.js b/node_modules/ajv/lib/dotjs/multipleOf.js new file mode 100644 index 0000000..af087d2 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/multipleOf.js @@ -0,0 +1,77 @@ +'use strict'; +module.exports = function generate_multipleOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + out += 'var division' + ($lvl) + ';if ('; + if ($isData) { + out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || '; + } + out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', '; + if (it.opts.multipleOfPrecision) { + out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' '; + } else { + out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') '; + } + out += ' ) '; + if ($isData) { + out += ' ) '; + } + out += ' ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be multiple of '; + if ($isData) { + out += '\' + ' + ($schemaValue); + } else { + out += '' + ($schemaValue) + '\''; + } + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/not.js b/node_modules/ajv/lib/dotjs/not.js new file mode 100644 index 0000000..c8f8af7 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/not.js @@ -0,0 +1,84 @@ +'use strict'; +module.exports = function generate_not(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + $it.level++; + var $nextValid = 'valid' + $it.level; + if (it.util.schemaHasRules($schema, it.RULES.all)) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.createErrors = false; + var $allErrorsOption; + if ($it.opts.allErrors) { + $allErrorsOption = $it.opts.allErrors; + $it.opts.allErrors = false; + } + out += ' ' + (it.validate($it)) + ' '; + $it.createErrors = true; + if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption; + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (' + ($nextValid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } '; + if (it.opts.allErrors) { + out += ' } '; + } + } else { + out += ' var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT be valid\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if ($breakOnError) { + out += ' if (false) { '; + } + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/oneOf.js b/node_modules/ajv/lib/dotjs/oneOf.js new file mode 100644 index 0000000..e9df453 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/oneOf.js @@ -0,0 +1,73 @@ +'use strict'; +module.exports = function generate_oneOf(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $currentBaseId = $it.baseId, + $prevValid = 'prevValid' + $lvl, + $passingSchemas = 'passingSchemas' + $lvl; + out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var arr1 = $schema; + if (arr1) { + var $sch, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $sch = arr1[$i += 1]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + $it.schema = $sch; + $it.schemaPath = $schemaPath + '[' + $i + ']'; + $it.errSchemaPath = $errSchemaPath + '/' + $i; + out += ' ' + (it.validate($it)) + ' '; + $it.baseId = $currentBaseId; + } else { + out += ' var ' + ($nextValid) + ' = true; '; + } + if ($i) { + out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { '; + $closingBraces += '}'; + } + out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }'; + } + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match exactly one schema in oneOf\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; return false; '; + } + } + out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }'; + if (it.opts.allErrors) { + out += ' } '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/pattern.js b/node_modules/ajv/lib/dotjs/pattern.js new file mode 100644 index 0000000..1d74d6b --- /dev/null +++ b/node_modules/ajv/lib/dotjs/pattern.js @@ -0,0 +1,75 @@ +'use strict'; +module.exports = function generate_pattern(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema); + out += 'if ( '; + if ($isData) { + out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || '; + } + out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: '; + if ($isData) { + out += '' + ($schemaValue); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should match pattern "'; + if ($isData) { + out += '\' + ' + ($schemaValue) + ' + \''; + } else { + out += '' + (it.util.escapeQuotes($schema)); + } + out += '"\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + (it.util.toQuotedString($schema)); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += '} '; + if ($breakOnError) { + out += ' else { '; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/properties.js b/node_modules/ajv/lib/dotjs/properties.js new file mode 100644 index 0000000..7d2ea86 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/properties.js @@ -0,0 +1,330 @@ +'use strict'; +module.exports = function generate_properties(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl; + var $schemaKeys = Object.keys($schema || {}), + $pProperties = it.schema.patternProperties || {}, + $pPropertyKeys = Object.keys($pProperties), + $aProperties = it.schema.additionalProperties, + $someProperties = $schemaKeys.length || $pPropertyKeys.length, + $noAdditional = $aProperties === false, + $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length, + $removeAdditional = it.opts.removeAdditional, + $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + var $required = it.schema.required; + if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required); + out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;'; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined;'; + } + if ($checkAdditional) { + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + if ($someProperties) { + out += ' var isAdditional' + ($lvl) + ' = !(false '; + if ($schemaKeys.length) { + if ($schemaKeys.length > 8) { + out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') '; + } else { + var arr1 = $schemaKeys; + if (arr1) { + var $propertyKey, i1 = -1, + l1 = arr1.length - 1; + while (i1 < l1) { + $propertyKey = arr1[i1 += 1]; + out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' '; + } + } + } + } + if ($pPropertyKeys.length) { + var arr2 = $pPropertyKeys; + if (arr2) { + var $pProperty, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $pProperty = arr2[$i += 1]; + out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') '; + } + } + } + out += ' ); if (isAdditional' + ($lvl) + ') { '; + } + if ($removeAdditional == 'all') { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + var $currentErrorPath = it.errorPath; + var $additionalProperty = '\' + ' + $key + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + } + if ($noAdditional) { + if ($removeAdditional) { + out += ' delete ' + ($data) + '[' + ($key) + ']; '; + } else { + out += ' ' + ($nextValid) + ' = false; '; + var $currErrSchemaPath = $errSchemaPath; + $errSchemaPath = it.errSchemaPath + '/additionalProperties'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is an invalid additional property'; + } else { + out += 'should NOT have additional properties'; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + if ($breakOnError) { + out += ' break; '; + } + } + } else if ($additionalIsSchema) { + if ($removeAdditional == 'failing') { + out += ' var ' + ($errs) + ' = errors; '; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } '; + it.compositeRule = $it.compositeRule = $wasComposite; + } else { + $it.schema = $aProperties; + $it.schemaPath = it.schemaPath + '.additionalProperties'; + $it.errSchemaPath = it.errSchemaPath + '/additionalProperties'; + $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + } + } + it.errorPath = $currentErrorPath; + } + if ($someProperties) { + out += ' } '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + var $useDefaults = it.opts.useDefaults && !it.compositeRule; + if ($schemaKeys.length) { + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + var $prop = it.util.getProperty($propertyKey), + $passData = $data + $prop, + $hasDefault = $useDefaults && $sch.default !== undefined; + $it.schema = $sch; + $it.schemaPath = $schemaPath + $prop; + $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey); + $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers); + $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey); + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + $code = it.util.varReplace($code, $nextData, $passData); + var $useData = $passData; + } else { + var $useData = $nextData; + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; '; + } + if ($hasDefault) { + out += ' ' + ($code) + ' '; + } else { + if ($requiredHash && $requiredHash[$propertyKey]) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = false; '; + var $currentErrorPath = it.errorPath, + $currErrSchemaPath = $errSchemaPath, + $missingProperty = it.util.escapeQuotes($propertyKey); + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + $errSchemaPath = it.errSchemaPath + '/required'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + $errSchemaPath = $currErrSchemaPath; + it.errorPath = $currentErrorPath; + out += ' } else { '; + } else { + if ($breakOnError) { + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { ' + ($nextValid) + ' = true; } else { '; + } else { + out += ' if (' + ($useData) + ' !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ' ) { '; + } + } + out += ' ' + ($code) + ' } '; + } + } + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + if ($pPropertyKeys.length) { + var arr4 = $pPropertyKeys; + if (arr4) { + var $pProperty, i4 = -1, + l4 = arr4.length - 1; + while (i4 < l4) { + $pProperty = arr4[i4 += 1]; + var $sch = $pProperties[$pProperty]; + if (it.util.schemaHasRules($sch, it.RULES.all)) { + $it.schema = $sch; + $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty); + $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty); + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { '; + $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers); + var $passData = $data + '[' + $key + ']'; + $it.dataPathArr[$dataNxt] = $key; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + if ($breakOnError) { + out += ' if (!' + ($nextValid) + ') break; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else ' + ($nextValid) + ' = true; '; + } + out += ' } '; + if ($breakOnError) { + out += ' if (' + ($nextValid) + ') { '; + $closingBraces += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {'; + } + out = it.util.cleanUpCode(out); + return out; +} diff --git a/node_modules/ajv/lib/dotjs/propertyNames.js b/node_modules/ajv/lib/dotjs/propertyNames.js new file mode 100644 index 0000000..c86a8cb --- /dev/null +++ b/node_modules/ajv/lib/dotjs/propertyNames.js @@ -0,0 +1,82 @@ +'use strict'; +module.exports = function generate_propertyNames(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $errs = 'errs__' + $lvl; + var $it = it.util.copy(it); + var $closingBraces = ''; + $it.level++; + var $nextValid = 'valid' + $it.level; + out += 'var ' + ($errs) + ' = errors;'; + if (it.util.schemaHasRules($schema, it.RULES.all)) { + $it.schema = $schema; + $it.schemaPath = $schemaPath; + $it.errSchemaPath = $errSchemaPath; + var $key = 'key' + $lvl, + $idx = 'idx' + $lvl, + $i = 'i' + $lvl, + $invalidName = '\' + ' + $key + ' + \'', + $dataNxt = $it.dataLevel = it.dataLevel + 1, + $nextData = 'data' + $dataNxt, + $dataProperties = 'dataProperties' + $lvl, + $ownProperties = it.opts.ownProperties, + $currentBaseId = it.baseId; + if ($ownProperties) { + out += ' var ' + ($dataProperties) + ' = undefined; '; + } + if ($ownProperties) { + out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; '; + } else { + out += ' for (var ' + ($key) + ' in ' + ($data) + ') { '; + } + out += ' var startErrs' + ($lvl) + ' = errors; '; + var $passData = $key; + var $wasComposite = it.compositeRule; + it.compositeRule = $it.compositeRule = true; + var $code = it.validate($it); + $it.baseId = $currentBaseId; + if (it.util.varOccurences($code, $nextData) < 2) { + out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' '; + } else { + out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' '; + } + it.compositeRule = $it.compositeRule = $wasComposite; + out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + '= it.opts.loopRequired, + $ownProperties = it.opts.ownProperties; + if ($breakOnError) { + out += ' var missing' + ($lvl) + '; '; + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + out += ' var ' + ($valid) + ' = true; '; + if ($isData) { + out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {'; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined '; + if ($ownProperties) { + out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += '; if (!' + ($valid) + ') break; } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } else { + out += ' if ( '; + var arr2 = $required; + if (arr2) { + var $propertyKey, $i = -1, + l2 = arr2.length - 1; + while ($i < l2) { + $propertyKey = arr2[$i += 1]; + if ($i) { + out += ' || '; + } + var $prop = it.util.getProperty($propertyKey), + $useData = $data + $prop; + out += ' ( ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) '; + } + } + out += ') { '; + var $propertyPath = 'missing' + $lvl, + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + } + } else { + if ($loopRequired) { + if (!$isData) { + out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; '; + } + var $i = 'i' + $lvl, + $propertyPath = 'schema' + $lvl + '[' + $i + ']', + $missingProperty = '\' + ' + $propertyPath + ' + \''; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers); + } + if ($isData) { + out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { '; + } + out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '; + if ($isData) { + out += ' } '; + } + } else { + var arr3 = $required; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $prop = it.util.getProperty($propertyKey), + $missingProperty = it.util.escapeQuotes($propertyKey), + $useData = $data + $prop; + if (it.opts._errorDataPathProperty) { + it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers); + } + out += ' if ( ' + ($useData) + ' === undefined '; + if ($ownProperties) { + out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') '; + } + out += ') { var err = '; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \''; + if (it.opts._errorDataPathProperty) { + out += 'is a required property'; + } else { + out += 'should have required property \\\'' + ($missingProperty) + '\\\''; + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } '; + } + } + } + } + it.errorPath = $currentErrorPath; + } else if ($breakOnError) { + out += ' if (true) {'; + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/uniqueItems.js b/node_modules/ajv/lib/dotjs/uniqueItems.js new file mode 100644 index 0000000..c4f6536 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/uniqueItems.js @@ -0,0 +1,86 @@ +'use strict'; +module.exports = function generate_uniqueItems(it, $keyword, $ruleType) { + var out = ' '; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + var $isData = it.opts.$data && $schema && $schema.$data, + $schemaValue; + if ($isData) { + out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; '; + $schemaValue = 'schema' + $lvl; + } else { + $schemaValue = $schema; + } + if (($schema || $isData) && it.opts.uniqueItems !== false) { + if ($isData) { + out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { '; + } + out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { '; + var $itemType = it.schema.items && it.schema.items.type, + $typeIsArray = Array.isArray($itemType); + if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) { + out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } '; + } else { + out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; '; + var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); + out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; '; + if ($typeIsArray) { + out += ' if (typeof item == \'string\') item = \'"\' + item; '; + } + out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } '; + } + out += ' } '; + if ($isData) { + out += ' } '; + } + out += ' if (!' + ($valid) + ') { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } '; + if (it.opts.messages !== false) { + out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' '; + } + if (it.opts.verbose) { + out += ' , schema: '; + if ($isData) { + out += 'validate.schema' + ($schemaPath); + } else { + out += '' + ($schema); + } + out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + if ($breakOnError) { + out += ' else { '; + } + } else { + if ($breakOnError) { + out += ' if (true) { '; + } + } + return out; +} diff --git a/node_modules/ajv/lib/dotjs/validate.js b/node_modules/ajv/lib/dotjs/validate.js new file mode 100644 index 0000000..cd0efc8 --- /dev/null +++ b/node_modules/ajv/lib/dotjs/validate.js @@ -0,0 +1,494 @@ +'use strict'; +module.exports = function generate_validate(it, $keyword, $ruleType) { + var out = ''; + var $async = it.schema.$async === true, + $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'), + $id = it.self._getId(it.schema); + if (it.opts.strictKeywords) { + var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords); + if ($unknownKwd) { + var $keywordsMsg = 'unknown keyword: ' + $unknownKwd; + if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg); + else throw new Error($keywordsMsg); + } + } + if (it.isTop) { + out += ' var validate = '; + if ($async) { + it.async = true; + out += 'async '; + } + out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; '; + if ($id && (it.opts.sourceCode || it.opts.processCode)) { + out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' '; + } + } + if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) { + var $keyword = 'false schema'; + var $lvl = it.level; + var $dataLvl = it.dataLevel; + var $schema = it.schema[$keyword]; + var $schemaPath = it.schemaPath + it.util.getProperty($keyword); + var $errSchemaPath = it.errSchemaPath + '/' + $keyword; + var $breakOnError = !it.opts.allErrors; + var $errorKeyword; + var $data = 'data' + ($dataLvl || ''); + var $valid = 'valid' + $lvl; + if (it.schema === false) { + if (it.isTop) { + $breakOnError = true; + } else { + out += ' var ' + ($valid) + ' = false; '; + } + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} '; + if (it.opts.messages !== false) { + out += ' , message: \'boolean schema is false\' '; + } + if (it.opts.verbose) { + out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } else { + if (it.isTop) { + if ($async) { + out += ' return data; '; + } else { + out += ' validate.errors = null; return true; '; + } + } else { + out += ' var ' + ($valid) + ' = true; '; + } + } + if (it.isTop) { + out += ' }; return validate; '; + } + return out; + } + if (it.isTop) { + var $top = it.isTop, + $lvl = it.level = 0, + $dataLvl = it.dataLevel = 0, + $data = 'data'; + it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema)); + it.baseId = it.baseId || it.rootId; + delete it.isTop; + it.dataPathArr = [undefined]; + if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored in the schema root'; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + out += ' var vErrors = null; '; + out += ' var errors = 0; '; + out += ' if (rootData === undefined) rootData = data; '; + } else { + var $lvl = it.level, + $dataLvl = it.dataLevel, + $data = 'data' + ($dataLvl || ''); + if ($id) it.baseId = it.resolve.url(it.baseId, $id); + if ($async && !it.async) throw new Error('async schema in sync schema'); + out += ' var errs_' + ($lvl) + ' = errors;'; + } + var $valid = 'valid' + $lvl, + $breakOnError = !it.opts.allErrors, + $closingBraces1 = '', + $closingBraces2 = ''; + var $errorKeyword; + var $typeSchema = it.schema.type, + $typeIsArray = Array.isArray($typeSchema); + if ($typeSchema && it.opts.nullable && it.schema.nullable === true) { + if ($typeIsArray) { + if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null'); + } else if ($typeSchema != 'null') { + $typeSchema = [$typeSchema, 'null']; + $typeIsArray = true; + } + } + if ($typeIsArray && $typeSchema.length == 1) { + $typeSchema = $typeSchema[0]; + $typeIsArray = false; + } + if (it.schema.$ref && $refKeywords) { + if (it.opts.extendRefs == 'fail') { + throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); + } else if (it.opts.extendRefs !== true) { + $refKeywords = false; + it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"'); + } + } + if (it.schema.$comment && it.opts.$comment) { + out += ' ' + (it.RULES.all.$comment.code(it, '$comment')); + } + if ($typeSchema) { + if (it.opts.coerceTypes) { + var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); + } + var $rulesGroup = it.RULES.types[$typeSchema]; + if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) { + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type', + $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType'; + out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { '; + if ($coerceToTypes) { + var $dataType = 'dataType' + $lvl, + $coerced = 'coerced' + $lvl; + out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; '; + if (it.opts.coerceTypes == 'array') { + out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; '; + } + out += ' var ' + ($coerced) + ' = undefined; '; + var $bracesCoercion = ''; + var arr1 = $coerceToTypes; + if (arr1) { + var $type, $i = -1, + l1 = arr1.length - 1; + while ($i < l1) { + $type = arr1[$i += 1]; + if ($i) { + out += ' if (' + ($coerced) + ' === undefined) { '; + $bracesCoercion += '}'; + } + if (it.opts.coerceTypes == 'array' && $type != 'array') { + out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; } '; + } + if ($type == 'string') { + out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; '; + } else if ($type == 'number' || $type == 'integer') { + out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' '; + if ($type == 'integer') { + out += ' && !(' + ($data) + ' % 1)'; + } + out += ')) ' + ($coerced) + ' = +' + ($data) + '; '; + } else if ($type == 'boolean') { + out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; '; + } else if ($type == 'null') { + out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; '; + } else if (it.opts.coerceTypes == 'array' && $type == 'array') { + out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; '; + } + } + } + out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { '; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } else { '; + var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData', + $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty'; + out += ' ' + ($data) + ' = ' + ($coerced) + '; '; + if (!$dataLvl) { + out += 'if (' + ($parentData) + ' !== undefined)'; + } + out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } '; + } else { + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + } + out += ' } '; + } + } + if (it.schema.$ref && !$refKeywords) { + out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' '; + if ($breakOnError) { + out += ' } if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } else { + var arr2 = it.RULES; + if (arr2) { + var $rulesGroup, i2 = -1, + l2 = arr2.length - 1; + while (i2 < l2) { + $rulesGroup = arr2[i2 += 1]; + if ($shouldUseGroup($rulesGroup)) { + if ($rulesGroup.type) { + out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { '; + } + if (it.opts.useDefaults) { + if ($rulesGroup.type == 'object' && it.schema.properties) { + var $schema = it.schema.properties, + $schemaKeys = Object.keys($schema); + var arr3 = $schemaKeys; + if (arr3) { + var $propertyKey, i3 = -1, + l3 = arr3.length - 1; + while (i3 < l3) { + $propertyKey = arr3[i3 += 1]; + var $sch = $schema[$propertyKey]; + if ($sch.default !== undefined) { + var $passData = $data + it.util.getProperty($propertyKey); + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) { + var arr4 = it.schema.items; + if (arr4) { + var $sch, $i = -1, + l4 = arr4.length - 1; + while ($i < l4) { + $sch = arr4[$i += 1]; + if ($sch.default !== undefined) { + var $passData = $data + '[' + $i + ']'; + if (it.compositeRule) { + if (it.opts.strictDefaults) { + var $defaultMsg = 'default is ignored for: ' + $passData; + if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg); + else throw new Error($defaultMsg); + } + } else { + out += ' if (' + ($passData) + ' === undefined '; + if (it.opts.useDefaults == 'empty') { + out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' '; + } + out += ' ) ' + ($passData) + ' = '; + if (it.opts.useDefaults == 'shared') { + out += ' ' + (it.useDefault($sch.default)) + ' '; + } else { + out += ' ' + (JSON.stringify($sch.default)) + ' '; + } + out += '; '; + } + } + } + } + } + } + var arr5 = $rulesGroup.rules; + if (arr5) { + var $rule, i5 = -1, + l5 = arr5.length - 1; + while (i5 < l5) { + $rule = arr5[i5 += 1]; + if ($shouldUseRule($rule)) { + var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); + if ($code) { + out += ' ' + ($code) + ' '; + if ($breakOnError) { + $closingBraces1 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces1) + ' '; + $closingBraces1 = ''; + } + if ($rulesGroup.type) { + out += ' } '; + if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) { + out += ' else { '; + var $schemaPath = it.schemaPath + '.type', + $errSchemaPath = it.errSchemaPath + '/type'; + var $$outStack = $$outStack || []; + $$outStack.push(out); + out = ''; /* istanbul ignore else */ + if (it.createErrors !== false) { + out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \''; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' } '; + if (it.opts.messages !== false) { + out += ' , message: \'should be '; + if ($typeIsArray) { + out += '' + ($typeSchema.join(",")); + } else { + out += '' + ($typeSchema); + } + out += '\' '; + } + if (it.opts.verbose) { + out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' '; + } + out += ' } '; + } else { + out += ' {} '; + } + var __err = out; + out = $$outStack.pop(); + if (!it.compositeRule && $breakOnError) { + /* istanbul ignore if */ + if (it.async) { + out += ' throw new ValidationError([' + (__err) + ']); '; + } else { + out += ' validate.errors = [' + (__err) + ']; return false; '; + } + } else { + out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '; + } + out += ' } '; + } + } + if ($breakOnError) { + out += ' if (errors === '; + if ($top) { + out += '0'; + } else { + out += 'errs_' + ($lvl); + } + out += ') { '; + $closingBraces2 += '}'; + } + } + } + } + } + if ($breakOnError) { + out += ' ' + ($closingBraces2) + ' '; + } + if ($top) { + if ($async) { + out += ' if (errors === 0) return data; '; + out += ' else throw new ValidationError(vErrors); '; + } else { + out += ' validate.errors = vErrors; '; + out += ' return errors === 0; '; + } + out += ' }; return validate;'; + } else { + out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';'; + } + out = it.util.cleanUpCode(out); + if ($top) { + out = it.util.finalCleanUpCode(out, $async); + } + + function $shouldUseGroup($rulesGroup) { + var rules = $rulesGroup.rules; + for (var i = 0; i < rules.length; i++) + if ($shouldUseRule(rules[i])) return true; + } + + function $shouldUseRule($rule) { + return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule)); + } + + function $ruleImplementsSomeKeyword($rule) { + var impl = $rule.implements; + for (var i = 0; i < impl.length; i++) + if (it.schema[impl[i]] !== undefined) return true; + } + return out; +} diff --git a/node_modules/ajv/lib/keyword.js b/node_modules/ajv/lib/keyword.js new file mode 100644 index 0000000..cf4d699 --- /dev/null +++ b/node_modules/ajv/lib/keyword.js @@ -0,0 +1,178 @@ +'use strict'; + +var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; +var customRuleCode = require('./dotjs/custom'); +var metaSchema = require('./refs/json-schema-draft-07.json'); + +module.exports = { + add: addKeyword, + get: getKeyword, + remove: removeKeyword, + validate: validateKeyword +}; + +var definitionSchema = { + definitions: { + simpleTypes: metaSchema.definitions.simpleTypes + }, + type: 'object', + dependencies: { + schema: ['validate'], + $data: ['validate'], + statements: ['inline'], + valid: {not: {required: ['macro']}} + }, + properties: { + type: metaSchema.properties.type, + schema: {type: 'boolean'}, + statements: {type: 'boolean'}, + dependencies: { + type: 'array', + items: {type: 'string'} + }, + metaSchema: {type: 'object'}, + modifying: {type: 'boolean'}, + valid: {type: 'boolean'}, + $data: {type: 'boolean'}, + async: {type: 'boolean'}, + errors: { + anyOf: [ + {type: 'boolean'}, + {const: 'full'} + ] + } + } +}; + +/** + * Define custom keyword + * @this Ajv + * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords). + * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. + * @return {Ajv} this for method chaining + */ +function addKeyword(keyword, definition) { + /* jshint validthis: true */ + /* eslint no-shadow: 0 */ + var RULES = this.RULES; + if (RULES.keywords[keyword]) + throw new Error('Keyword ' + keyword + ' is already defined'); + + if (!IDENTIFIER.test(keyword)) + throw new Error('Keyword ' + keyword + ' is not a valid identifier'); + + if (definition) { + this.validateKeyword(definition, true); + + var dataType = definition.type; + if (Array.isArray(dataType)) { + for (var i=0; i ../ajv-dist/bower.json + cd ../ajv-dist + + if [[ `git status --porcelain` ]]; then + echo "Changes detected. Updating master branch..." + git add -A + git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER" + git push --quiet origin master > /dev/null 2>&1 + fi + + echo "Publishing tag..." + + git tag $TRAVIS_TAG + git push --tags > /dev/null 2>&1 + + echo "Done" +fi diff --git a/node_modules/ajv/scripts/travis-gh-pages b/node_modules/ajv/scripts/travis-gh-pages new file mode 100755 index 0000000..46ded16 --- /dev/null +++ b/node_modules/ajv/scripts/travis-gh-pages @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -e + +if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then + git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && { + rm -rf ../gh-pages + git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv.git ../gh-pages + mkdir -p ../gh-pages/_source + cp *.md ../gh-pages/_source + cp LICENSE ../gh-pages/_source + currentDir=$(pwd) + cd ../gh-pages + $currentDir/node_modules/.bin/gh-pages-generator + # remove logo from README + sed -i -E "s/]+ajv_logo[^>]+>//" index.md + git config user.email "$GIT_USER_EMAIL" + git config user.name "$GIT_USER_NAME" + git add . + git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER" + git push --quiet origin gh-pages > /dev/null 2>&1 + } +fi diff --git a/node_modules/archy/.travis.yml b/node_modules/archy/.travis.yml new file mode 100644 index 0000000..895dbd3 --- /dev/null +++ b/node_modules/archy/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - 0.6 + - 0.8 diff --git a/node_modules/archy/LICENSE b/node_modules/archy/LICENSE new file mode 100644 index 0000000..ee27ba4 --- /dev/null +++ b/node_modules/archy/LICENSE @@ -0,0 +1,18 @@ +This software is released under the MIT license: + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/archy/examples/beep.js b/node_modules/archy/examples/beep.js new file mode 100644 index 0000000..9c07047 --- /dev/null +++ b/node_modules/archy/examples/beep.js @@ -0,0 +1,24 @@ +var archy = require('../'); +var s = archy({ + label : 'beep', + nodes : [ + 'ity', + { + label : 'boop', + nodes : [ + { + label : 'o_O', + nodes : [ + { + label : 'oh', + nodes : [ 'hello', 'puny' ] + }, + 'human' + ] + }, + 'party\ntime!' + ] + } + ] +}); +console.log(s); diff --git a/node_modules/archy/examples/multi_line.js b/node_modules/archy/examples/multi_line.js new file mode 100644 index 0000000..8afdfad --- /dev/null +++ b/node_modules/archy/examples/multi_line.js @@ -0,0 +1,25 @@ +var archy = require('../'); + +var s = archy({ + label : 'beep\none\ntwo', + nodes : [ + 'ity', + { + label : 'boop', + nodes : [ + { + label : 'o_O\nwheee', + nodes : [ + { + label : 'oh', + nodes : [ 'hello', 'puny\nmeat' ] + }, + 'creature' + ] + }, + 'party\ntime!' + ] + } + ] +}); +console.log(s); diff --git a/node_modules/archy/index.js b/node_modules/archy/index.js new file mode 100644 index 0000000..869d64e --- /dev/null +++ b/node_modules/archy/index.js @@ -0,0 +1,35 @@ +module.exports = function archy (obj, prefix, opts) { + if (prefix === undefined) prefix = ''; + if (!opts) opts = {}; + var chr = function (s) { + var chars = { + '│' : '|', + '└' : '`', + '├' : '+', + '─' : '-', + '┬' : '-' + }; + return opts.unicode === false ? chars[s] : s; + }; + + if (typeof obj === 'string') obj = { label : obj }; + + var nodes = obj.nodes || []; + var lines = (obj.label || '').split('\n'); + var splitter = '\n' + prefix + (nodes.length ? chr('│') : ' ') + ' '; + + return prefix + + lines.join(splitter) + '\n' + + nodes.map(function (node, ix) { + var last = ix === nodes.length - 1; + var more = node.nodes && node.nodes.length; + var prefix_ = prefix + (last ? ' ' : chr('│')) + ' '; + + return prefix + + (last ? chr('└') : chr('├')) + chr('─') + + (more ? chr('┬') : chr('─')) + ' ' + + archy(node, prefix_, opts).slice(prefix.length + 2) + ; + }).join('') + ; +}; diff --git a/node_modules/archy/package.json b/node_modules/archy/package.json new file mode 100644 index 0000000..8cac9c8 --- /dev/null +++ b/node_modules/archy/package.json @@ -0,0 +1,86 @@ +{ + "_args": [ + [ + "archy@1.0.0", + "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas" + ] + ], + "_from": "archy@1.0.0", + "_id": "archy@1.0.0", + "_inBundle": false, + "_integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "_location": "/archy", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "archy@1.0.0", + "name": "archy", + "escapedName": "archy", + "rawSpec": "1.0.0", + "saveSpec": null, + "fetchSpec": "1.0.0" + }, + "_requiredBy": [ + "/avvio" + ], + "_resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", + "_spec": "1.0.0", + "_where": "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas", + "author": { + "name": "James Halliday", + "email": "mail@substack.net", + "url": "http://substack.net" + }, + "bugs": { + "url": "https://github.com/substack/node-archy/issues" + }, + "description": "render nested hierarchies `npm ls` style with unicode pipes", + "devDependencies": { + "tap": "~0.3.3", + "tape": "~0.1.1" + }, + "homepage": "https://github.com/substack/node-archy#readme", + "keywords": [ + "hierarchy", + "npm ls", + "unicode", + "pretty", + "print" + ], + "license": "MIT", + "main": "index.js", + "name": "archy", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/substack/node-archy.git" + }, + "scripts": { + "test": "tap test" + }, + "testling": { + "files": "test/*.js", + "browsers": { + "iexplore": [ + "6.0", + "7.0", + "8.0", + "9.0" + ], + "chrome": [ + "20.0" + ], + "firefox": [ + "10.0", + "15.0" + ], + "safari": [ + "5.1" + ], + "opera": [ + "12.0" + ] + } + }, + "version": "1.0.0" +} diff --git a/node_modules/archy/readme.markdown b/node_modules/archy/readme.markdown new file mode 100644 index 0000000..ef7a5cf --- /dev/null +++ b/node_modules/archy/readme.markdown @@ -0,0 +1,88 @@ +# archy + +Render nested hierarchies `npm ls` style with unicode pipes. + +[![browser support](http://ci.testling.com/substack/node-archy.png)](http://ci.testling.com/substack/node-archy) + +[![build status](https://secure.travis-ci.org/substack/node-archy.png)](http://travis-ci.org/substack/node-archy) + +# example + +``` js +var archy = require('archy'); +var s = archy({ + label : 'beep', + nodes : [ + 'ity', + { + label : 'boop', + nodes : [ + { + label : 'o_O', + nodes : [ + { + label : 'oh', + nodes : [ 'hello', 'puny' ] + }, + 'human' + ] + }, + 'party\ntime!' + ] + } + ] +}); +console.log(s); +``` + +output + +``` +beep +├── ity +└─┬ boop + ├─┬ o_O + │ ├─┬ oh + │ │ ├── hello + │ │ └── puny + │ └── human + └── party + time! +``` + +# methods + +var archy = require('archy') + +## archy(obj, prefix='', opts={}) + +Return a string representation of `obj` with unicode pipe characters like how +`npm ls` looks. + +`obj` should be a tree of nested objects with `'label'` and `'nodes'` fields. +`'label'` is a string of text to display at a node level and `'nodes'` is an +array of the descendents of the current node. + +If a node is a string, that string will be used as the `'label'` and an empty +array of `'nodes'` will be used. + +`prefix` gets prepended to all the lines and is used by the algorithm to +recursively update. + +If `'label'` has newlines they will be indented at the present indentation level +with the current prefix. + +To disable unicode results in favor of all-ansi output set `opts.unicode` to +`false`. + +# install + +With [npm](http://npmjs.org) do: + +``` +npm install archy +``` + +# license + +MIT diff --git a/node_modules/archy/test/beep.js b/node_modules/archy/test/beep.js new file mode 100644 index 0000000..4ea74f9 --- /dev/null +++ b/node_modules/archy/test/beep.js @@ -0,0 +1,40 @@ +var test = require('tape'); +var archy = require('../'); + +test('beep', function (t) { + var s = archy({ + label : 'beep', + nodes : [ + 'ity', + { + label : 'boop', + nodes : [ + { + label : 'o_O', + nodes : [ + { + label : 'oh', + nodes : [ 'hello', 'puny' ] + }, + 'human' + ] + }, + 'party!' + ] + } + ] + }); + t.equal(s, [ + 'beep', + '├── ity', + '└─┬ boop', + ' ├─┬ o_O', + ' │ ├─┬ oh', + ' │ │ ├── hello', + ' │ │ └── puny', + ' │ └── human', + ' └── party!', + '' + ].join('\n')); + t.end(); +}); diff --git a/node_modules/archy/test/multi_line.js b/node_modules/archy/test/multi_line.js new file mode 100644 index 0000000..2cf2154 --- /dev/null +++ b/node_modules/archy/test/multi_line.js @@ -0,0 +1,45 @@ +var test = require('tape'); +var archy = require('../'); + +test('multi-line', function (t) { + var s = archy({ + label : 'beep\none\ntwo', + nodes : [ + 'ity', + { + label : 'boop', + nodes : [ + { + label : 'o_O\nwheee', + nodes : [ + { + label : 'oh', + nodes : [ 'hello', 'puny\nmeat' ] + }, + 'creature' + ] + }, + 'party\ntime!' + ] + } + ] + }); + t.equal(s, [ + 'beep', + '│ one', + '│ two', + '├── ity', + '└─┬ boop', + ' ├─┬ o_O', + ' │ │ wheee', + ' │ ├─┬ oh', + ' │ │ ├── hello', + ' │ │ └── puny', + ' │ │ meat', + ' │ └── creature', + ' └── party', + ' time!', + '' + ].join('\n')); + t.end(); +}); diff --git a/node_modules/archy/test/non_unicode.js b/node_modules/archy/test/non_unicode.js new file mode 100644 index 0000000..7204d33 --- /dev/null +++ b/node_modules/archy/test/non_unicode.js @@ -0,0 +1,40 @@ +var test = require('tape'); +var archy = require('../'); + +test('beep', function (t) { + var s = archy({ + label : 'beep', + nodes : [ + 'ity', + { + label : 'boop', + nodes : [ + { + label : 'o_O', + nodes : [ + { + label : 'oh', + nodes : [ 'hello', 'puny' ] + }, + 'human' + ] + }, + 'party!' + ] + } + ] + }, '', { unicode : false }); + t.equal(s, [ + 'beep', + '+-- ity', + '`-- boop', + ' +-- o_O', + ' | +-- oh', + ' | | +-- hello', + ' | | `-- puny', + ' | `-- human', + ' `-- party!', + '' + ].join('\n')); + t.end(); +}); diff --git a/node_modules/asn1/LICENSE b/node_modules/asn1/LICENSE new file mode 100644 index 0000000..9b5dcdb --- /dev/null +++ b/node_modules/asn1/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011 Mark Cavage, All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE diff --git a/node_modules/asn1/README.md b/node_modules/asn1/README.md new file mode 100644 index 0000000..2208210 --- /dev/null +++ b/node_modules/asn1/README.md @@ -0,0 +1,50 @@ +node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS. +Currently BER encoding is supported; at some point I'll likely have to do DER. + +## Usage + +Mostly, if you're *actually* needing to read and write ASN.1, you probably don't +need this readme to explain what and why. If you have no idea what ASN.1 is, +see this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc + +The source is pretty much self-explanatory, and has read/write methods for the +common types out there. + +### Decoding + +The following reads an ASN.1 sequence with a boolean. + + var Ber = require('asn1').Ber; + + var reader = new Ber.Reader(Buffer.from([0x30, 0x03, 0x01, 0x01, 0xff])); + + reader.readSequence(); + console.log('Sequence len: ' + reader.length); + if (reader.peek() === Ber.Boolean) + console.log(reader.readBoolean()); + +### Encoding + +The following generates the same payload as above. + + var Ber = require('asn1').Ber; + + var writer = new Ber.Writer(); + + writer.startSequence(); + writer.writeBoolean(true); + writer.endSequence(); + + console.log(writer.buffer); + +## Installation + + npm install asn1 + +## License + +MIT. + +## Bugs + +See . diff --git a/node_modules/asn1/lib/ber/errors.js b/node_modules/asn1/lib/ber/errors.js new file mode 100644 index 0000000..4557b8a --- /dev/null +++ b/node_modules/asn1/lib/ber/errors.js @@ -0,0 +1,13 @@ +// Copyright 2011 Mark Cavage All rights reserved. + + +module.exports = { + + newInvalidAsn1Error: function (msg) { + var e = new Error(); + e.name = 'InvalidAsn1Error'; + e.message = msg || ''; + return e; + } + +}; diff --git a/node_modules/asn1/lib/ber/index.js b/node_modules/asn1/lib/ber/index.js new file mode 100644 index 0000000..387d132 --- /dev/null +++ b/node_modules/asn1/lib/ber/index.js @@ -0,0 +1,27 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +var errors = require('./errors'); +var types = require('./types'); + +var Reader = require('./reader'); +var Writer = require('./writer'); + + +// --- Exports + +module.exports = { + + Reader: Reader, + + Writer: Writer + +}; + +for (var t in types) { + if (types.hasOwnProperty(t)) + module.exports[t] = types[t]; +} +for (var e in errors) { + if (errors.hasOwnProperty(e)) + module.exports[e] = errors[e]; +} diff --git a/node_modules/asn1/lib/ber/reader.js b/node_modules/asn1/lib/ber/reader.js new file mode 100644 index 0000000..8a7e4ca --- /dev/null +++ b/node_modules/asn1/lib/ber/reader.js @@ -0,0 +1,262 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +var assert = require('assert'); +var Buffer = require('safer-buffer').Buffer; + +var ASN1 = require('./types'); +var errors = require('./errors'); + + +// --- Globals + +var newInvalidAsn1Error = errors.newInvalidAsn1Error; + + + +// --- API + +function Reader(data) { + if (!data || !Buffer.isBuffer(data)) + throw new TypeError('data must be a node Buffer'); + + this._buf = data; + this._size = data.length; + + // These hold the "current" state + this._len = 0; + this._offset = 0; +} + +Object.defineProperty(Reader.prototype, 'length', { + enumerable: true, + get: function () { return (this._len); } +}); + +Object.defineProperty(Reader.prototype, 'offset', { + enumerable: true, + get: function () { return (this._offset); } +}); + +Object.defineProperty(Reader.prototype, 'remain', { + get: function () { return (this._size - this._offset); } +}); + +Object.defineProperty(Reader.prototype, 'buffer', { + get: function () { return (this._buf.slice(this._offset)); } +}); + + +/** + * Reads a single byte and advances offset; you can pass in `true` to make this + * a "peek" operation (i.e., get the byte, but don't advance the offset). + * + * @param {Boolean} peek true means don't move offset. + * @return {Number} the next byte, null if not enough data. + */ +Reader.prototype.readByte = function (peek) { + if (this._size - this._offset < 1) + return null; + + var b = this._buf[this._offset] & 0xff; + + if (!peek) + this._offset += 1; + + return b; +}; + + +Reader.prototype.peek = function () { + return this.readByte(true); +}; + + +/** + * Reads a (potentially) variable length off the BER buffer. This call is + * not really meant to be called directly, as callers have to manipulate + * the internal buffer afterwards. + * + * As a result of this call, you can call `Reader.length`, until the + * next thing called that does a readLength. + * + * @return {Number} the amount of offset to advance the buffer. + * @throws {InvalidAsn1Error} on bad ASN.1 + */ +Reader.prototype.readLength = function (offset) { + if (offset === undefined) + offset = this._offset; + + if (offset >= this._size) + return null; + + var lenB = this._buf[offset++] & 0xff; + if (lenB === null) + return null; + + if ((lenB & 0x80) === 0x80) { + lenB &= 0x7f; + + if (lenB === 0) + throw newInvalidAsn1Error('Indefinite length not supported'); + + if (lenB > 4) + throw newInvalidAsn1Error('encoding too long'); + + if (this._size - offset < lenB) + return null; + + this._len = 0; + for (var i = 0; i < lenB; i++) + this._len = (this._len << 8) + (this._buf[offset++] & 0xff); + + } else { + // Wasn't a variable length + this._len = lenB; + } + + return offset; +}; + + +/** + * Parses the next sequence in this BER buffer. + * + * To get the length of the sequence, call `Reader.length`. + * + * @return {Number} the sequence's tag. + */ +Reader.prototype.readSequence = function (tag) { + var seq = this.peek(); + if (seq === null) + return null; + if (tag !== undefined && tag !== seq) + throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) + + ': got 0x' + seq.toString(16)); + + var o = this.readLength(this._offset + 1); // stored in `length` + if (o === null) + return null; + + this._offset = o; + return seq; +}; + + +Reader.prototype.readInt = function () { + return this._readTag(ASN1.Integer); +}; + + +Reader.prototype.readBoolean = function () { + return (this._readTag(ASN1.Boolean) === 0 ? false : true); +}; + + +Reader.prototype.readEnumeration = function () { + return this._readTag(ASN1.Enumeration); +}; + + +Reader.prototype.readString = function (tag, retbuf) { + if (!tag) + tag = ASN1.OctetString; + + var b = this.peek(); + if (b === null) + return null; + + if (b !== tag) + throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) + + ': got 0x' + b.toString(16)); + + var o = this.readLength(this._offset + 1); // stored in `length` + + if (o === null) + return null; + + if (this.length > this._size - o) + return null; + + this._offset = o; + + if (this.length === 0) + return retbuf ? Buffer.alloc(0) : ''; + + var str = this._buf.slice(this._offset, this._offset + this.length); + this._offset += this.length; + + return retbuf ? str : str.toString('utf8'); +}; + +Reader.prototype.readOID = function (tag) { + if (!tag) + tag = ASN1.OID; + + var b = this.readString(tag, true); + if (b === null) + return null; + + var values = []; + var value = 0; + + for (var i = 0; i < b.length; i++) { + var byte = b[i] & 0xff; + + value <<= 7; + value += byte & 0x7f; + if ((byte & 0x80) === 0) { + values.push(value); + value = 0; + } + } + + value = values.shift(); + values.unshift(value % 40); + values.unshift((value / 40) >> 0); + + return values.join('.'); +}; + + +Reader.prototype._readTag = function (tag) { + assert.ok(tag !== undefined); + + var b = this.peek(); + + if (b === null) + return null; + + if (b !== tag) + throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) + + ': got 0x' + b.toString(16)); + + var o = this.readLength(this._offset + 1); // stored in `length` + if (o === null) + return null; + + if (this.length > 4) + throw newInvalidAsn1Error('Integer too long: ' + this.length); + + if (this.length > this._size - o) + return null; + this._offset = o; + + var fb = this._buf[this._offset]; + var value = 0; + + for (var i = 0; i < this.length; i++) { + value <<= 8; + value |= (this._buf[this._offset++] & 0xff); + } + + if ((fb & 0x80) === 0x80 && i !== 4) + value -= (1 << (i * 8)); + + return value >> 0; +}; + + + +// --- Exported API + +module.exports = Reader; diff --git a/node_modules/asn1/lib/ber/types.js b/node_modules/asn1/lib/ber/types.js new file mode 100644 index 0000000..8aea000 --- /dev/null +++ b/node_modules/asn1/lib/ber/types.js @@ -0,0 +1,36 @@ +// Copyright 2011 Mark Cavage All rights reserved. + + +module.exports = { + EOC: 0, + Boolean: 1, + Integer: 2, + BitString: 3, + OctetString: 4, + Null: 5, + OID: 6, + ObjectDescriptor: 7, + External: 8, + Real: 9, // float + Enumeration: 10, + PDV: 11, + Utf8String: 12, + RelativeOID: 13, + Sequence: 16, + Set: 17, + NumericString: 18, + PrintableString: 19, + T61String: 20, + VideotexString: 21, + IA5String: 22, + UTCTime: 23, + GeneralizedTime: 24, + GraphicString: 25, + VisibleString: 26, + GeneralString: 28, + UniversalString: 29, + CharacterString: 30, + BMPString: 31, + Constructor: 32, + Context: 128 +}; diff --git a/node_modules/asn1/lib/ber/writer.js b/node_modules/asn1/lib/ber/writer.js new file mode 100644 index 0000000..3515acf --- /dev/null +++ b/node_modules/asn1/lib/ber/writer.js @@ -0,0 +1,317 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +var assert = require('assert'); +var Buffer = require('safer-buffer').Buffer; +var ASN1 = require('./types'); +var errors = require('./errors'); + + +// --- Globals + +var newInvalidAsn1Error = errors.newInvalidAsn1Error; + +var DEFAULT_OPTS = { + size: 1024, + growthFactor: 8 +}; + + +// --- Helpers + +function merge(from, to) { + assert.ok(from); + assert.equal(typeof (from), 'object'); + assert.ok(to); + assert.equal(typeof (to), 'object'); + + var keys = Object.getOwnPropertyNames(from); + keys.forEach(function (key) { + if (to[key]) + return; + + var value = Object.getOwnPropertyDescriptor(from, key); + Object.defineProperty(to, key, value); + }); + + return to; +} + + + +// --- API + +function Writer(options) { + options = merge(DEFAULT_OPTS, options || {}); + + this._buf = Buffer.alloc(options.size || 1024); + this._size = this._buf.length; + this._offset = 0; + this._options = options; + + // A list of offsets in the buffer where we need to insert + // sequence tag/len pairs. + this._seq = []; +} + +Object.defineProperty(Writer.prototype, 'buffer', { + get: function () { + if (this._seq.length) + throw newInvalidAsn1Error(this._seq.length + ' unended sequence(s)'); + + return (this._buf.slice(0, this._offset)); + } +}); + +Writer.prototype.writeByte = function (b) { + if (typeof (b) !== 'number') + throw new TypeError('argument must be a Number'); + + this._ensure(1); + this._buf[this._offset++] = b; +}; + + +Writer.prototype.writeInt = function (i, tag) { + if (typeof (i) !== 'number') + throw new TypeError('argument must be a Number'); + if (typeof (tag) !== 'number') + tag = ASN1.Integer; + + var sz = 4; + + while ((((i & 0xff800000) === 0) || ((i & 0xff800000) === 0xff800000 >> 0)) && + (sz > 1)) { + sz--; + i <<= 8; + } + + if (sz > 4) + throw newInvalidAsn1Error('BER ints cannot be > 0xffffffff'); + + this._ensure(2 + sz); + this._buf[this._offset++] = tag; + this._buf[this._offset++] = sz; + + while (sz-- > 0) { + this._buf[this._offset++] = ((i & 0xff000000) >>> 24); + i <<= 8; + } + +}; + + +Writer.prototype.writeNull = function () { + this.writeByte(ASN1.Null); + this.writeByte(0x00); +}; + + +Writer.prototype.writeEnumeration = function (i, tag) { + if (typeof (i) !== 'number') + throw new TypeError('argument must be a Number'); + if (typeof (tag) !== 'number') + tag = ASN1.Enumeration; + + return this.writeInt(i, tag); +}; + + +Writer.prototype.writeBoolean = function (b, tag) { + if (typeof (b) !== 'boolean') + throw new TypeError('argument must be a Boolean'); + if (typeof (tag) !== 'number') + tag = ASN1.Boolean; + + this._ensure(3); + this._buf[this._offset++] = tag; + this._buf[this._offset++] = 0x01; + this._buf[this._offset++] = b ? 0xff : 0x00; +}; + + +Writer.prototype.writeString = function (s, tag) { + if (typeof (s) !== 'string') + throw new TypeError('argument must be a string (was: ' + typeof (s) + ')'); + if (typeof (tag) !== 'number') + tag = ASN1.OctetString; + + var len = Buffer.byteLength(s); + this.writeByte(tag); + this.writeLength(len); + if (len) { + this._ensure(len); + this._buf.write(s, this._offset); + this._offset += len; + } +}; + + +Writer.prototype.writeBuffer = function (buf, tag) { + if (typeof (tag) !== 'number') + throw new TypeError('tag must be a number'); + if (!Buffer.isBuffer(buf)) + throw new TypeError('argument must be a buffer'); + + this.writeByte(tag); + this.writeLength(buf.length); + this._ensure(buf.length); + buf.copy(this._buf, this._offset, 0, buf.length); + this._offset += buf.length; +}; + + +Writer.prototype.writeStringArray = function (strings) { + if ((!strings instanceof Array)) + throw new TypeError('argument must be an Array[String]'); + + var self = this; + strings.forEach(function (s) { + self.writeString(s); + }); +}; + +// This is really to solve DER cases, but whatever for now +Writer.prototype.writeOID = function (s, tag) { + if (typeof (s) !== 'string') + throw new TypeError('argument must be a string'); + if (typeof (tag) !== 'number') + tag = ASN1.OID; + + if (!/^([0-9]+\.){3,}[0-9]+$/.test(s)) + throw new Error('argument is not a valid OID string'); + + function encodeOctet(bytes, octet) { + if (octet < 128) { + bytes.push(octet); + } else if (octet < 16384) { + bytes.push((octet >>> 7) | 0x80); + bytes.push(octet & 0x7F); + } else if (octet < 2097152) { + bytes.push((octet >>> 14) | 0x80); + bytes.push(((octet >>> 7) | 0x80) & 0xFF); + bytes.push(octet & 0x7F); + } else if (octet < 268435456) { + bytes.push((octet >>> 21) | 0x80); + bytes.push(((octet >>> 14) | 0x80) & 0xFF); + bytes.push(((octet >>> 7) | 0x80) & 0xFF); + bytes.push(octet & 0x7F); + } else { + bytes.push(((octet >>> 28) | 0x80) & 0xFF); + bytes.push(((octet >>> 21) | 0x80) & 0xFF); + bytes.push(((octet >>> 14) | 0x80) & 0xFF); + bytes.push(((octet >>> 7) | 0x80) & 0xFF); + bytes.push(octet & 0x7F); + } + } + + var tmp = s.split('.'); + var bytes = []; + bytes.push(parseInt(tmp[0], 10) * 40 + parseInt(tmp[1], 10)); + tmp.slice(2).forEach(function (b) { + encodeOctet(bytes, parseInt(b, 10)); + }); + + var self = this; + this._ensure(2 + bytes.length); + this.writeByte(tag); + this.writeLength(bytes.length); + bytes.forEach(function (b) { + self.writeByte(b); + }); +}; + + +Writer.prototype.writeLength = function (len) { + if (typeof (len) !== 'number') + throw new TypeError('argument must be a Number'); + + this._ensure(4); + + if (len <= 0x7f) { + this._buf[this._offset++] = len; + } else if (len <= 0xff) { + this._buf[this._offset++] = 0x81; + this._buf[this._offset++] = len; + } else if (len <= 0xffff) { + this._buf[this._offset++] = 0x82; + this._buf[this._offset++] = len >> 8; + this._buf[this._offset++] = len; + } else if (len <= 0xffffff) { + this._buf[this._offset++] = 0x83; + this._buf[this._offset++] = len >> 16; + this._buf[this._offset++] = len >> 8; + this._buf[this._offset++] = len; + } else { + throw newInvalidAsn1Error('Length too long (> 4 bytes)'); + } +}; + +Writer.prototype.startSequence = function (tag) { + if (typeof (tag) !== 'number') + tag = ASN1.Sequence | ASN1.Constructor; + + this.writeByte(tag); + this._seq.push(this._offset); + this._ensure(3); + this._offset += 3; +}; + + +Writer.prototype.endSequence = function () { + var seq = this._seq.pop(); + var start = seq + 3; + var len = this._offset - start; + + if (len <= 0x7f) { + this._shift(start, len, -2); + this._buf[seq] = len; + } else if (len <= 0xff) { + this._shift(start, len, -1); + this._buf[seq] = 0x81; + this._buf[seq + 1] = len; + } else if (len <= 0xffff) { + this._buf[seq] = 0x82; + this._buf[seq + 1] = len >> 8; + this._buf[seq + 2] = len; + } else if (len <= 0xffffff) { + this._shift(start, len, 1); + this._buf[seq] = 0x83; + this._buf[seq + 1] = len >> 16; + this._buf[seq + 2] = len >> 8; + this._buf[seq + 3] = len; + } else { + throw newInvalidAsn1Error('Sequence too long'); + } +}; + + +Writer.prototype._shift = function (start, len, shift) { + assert.ok(start !== undefined); + assert.ok(len !== undefined); + assert.ok(shift); + + this._buf.copy(this._buf, start + shift, start, start + len); + this._offset += shift; +}; + +Writer.prototype._ensure = function (len) { + assert.ok(len); + + if (this._size - this._offset < len) { + var sz = this._size * this._options.growthFactor; + if (sz - this._offset < len) + sz += len; + + var buf = Buffer.alloc(sz); + + this._buf.copy(buf, 0, 0, this._offset); + this._buf = buf; + this._size = sz; + } +}; + + + +// --- Exported API + +module.exports = Writer; diff --git a/node_modules/asn1/lib/index.js b/node_modules/asn1/lib/index.js new file mode 100644 index 0000000..ede3ab2 --- /dev/null +++ b/node_modules/asn1/lib/index.js @@ -0,0 +1,20 @@ +// Copyright 2011 Mark Cavage All rights reserved. + +// If you have no idea what ASN.1 or BER is, see this: +// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc + +var Ber = require('./ber/index'); + + + +// --- Exported API + +module.exports = { + + Ber: Ber, + + BerReader: Ber.Reader, + + BerWriter: Ber.Writer + +}; diff --git a/node_modules/asn1/package.json b/node_modules/asn1/package.json new file mode 100644 index 0000000..44c6291 --- /dev/null +++ b/node_modules/asn1/package.json @@ -0,0 +1,78 @@ +{ + "_args": [ + [ + "asn1@0.2.4", + "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas" + ] + ], + "_from": "asn1@0.2.4", + "_id": "asn1@0.2.4", + "_inBundle": false, + "_integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "_location": "/asn1", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "asn1@0.2.4", + "name": "asn1", + "escapedName": "asn1", + "rawSpec": "0.2.4", + "saveSpec": null, + "fetchSpec": "0.2.4" + }, + "_requiredBy": [ + "/sshpk" + ], + "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "_spec": "0.2.4", + "_where": "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas", + "author": { + "name": "Joyent", + "url": "joyent.com" + }, + "bugs": { + "url": "https://github.com/joyent/node-asn1/issues" + }, + "contributors": [ + { + "name": "Mark Cavage", + "email": "mcavage@gmail.com" + }, + { + "name": "David Gwynne", + "email": "loki@animata.net" + }, + { + "name": "Yunong Xiao", + "email": "yunong@joyent.com" + }, + { + "name": "Alex Wilson", + "email": "alex.wilson@joyent.com" + } + ], + "dependencies": { + "safer-buffer": "~2.1.0" + }, + "description": "Contains parsers and serializers for ASN.1 (currently BER only)", + "devDependencies": { + "eslint": "2.13.1", + "eslint-plugin-joyent": "~1.3.0", + "faucet": "0.0.1", + "istanbul": "^0.3.6", + "tape": "^3.5.0" + }, + "homepage": "https://github.com/joyent/node-asn1#readme", + "license": "MIT", + "main": "lib/index.js", + "name": "asn1", + "repository": { + "type": "git", + "url": "git://github.com/joyent/node-asn1.git" + }, + "scripts": { + "test": "tape ./test/ber/*.test.js" + }, + "version": "0.2.4" +} diff --git a/node_modules/assert-plus/AUTHORS b/node_modules/assert-plus/AUTHORS new file mode 100644 index 0000000..1923524 --- /dev/null +++ b/node_modules/assert-plus/AUTHORS @@ -0,0 +1,6 @@ +Dave Eddy +Fred Kuo +Lars-Magnus Skog +Mark Cavage +Patrick Mooney +Rob Gulewich diff --git a/node_modules/assert-plus/CHANGES.md b/node_modules/assert-plus/CHANGES.md new file mode 100644 index 0000000..57d92bf --- /dev/null +++ b/node_modules/assert-plus/CHANGES.md @@ -0,0 +1,14 @@ +# assert-plus Changelog + +## 1.0.0 + +- *BREAKING* assert.number (and derivatives) now accept Infinity as valid input +- Add assert.finite check. Previous assert.number callers should use this if + they expect Infinity inputs to throw. + +## 0.2.0 + +- Fix `assert.object(null)` so it throws +- Fix optional/arrayOf exports for non-type-of asserts +- Add optiona/arrayOf exports for Stream/Date/Regex/uuid +- Add basic unit test coverage diff --git a/node_modules/assert-plus/README.md b/node_modules/assert-plus/README.md new file mode 100644 index 0000000..ec200d1 --- /dev/null +++ b/node_modules/assert-plus/README.md @@ -0,0 +1,162 @@ +# assert-plus + +This library is a super small wrapper over node's assert module that has two +things: (1) the ability to disable assertions with the environment variable +NODE\_NDEBUG, and (2) some API wrappers for argument testing. Like +`assert.string(myArg, 'myArg')`. As a simple example, most of my code looks +like this: + +```javascript + var assert = require('assert-plus'); + + function fooAccount(options, callback) { + assert.object(options, 'options'); + assert.number(options.id, 'options.id'); + assert.bool(options.isManager, 'options.isManager'); + assert.string(options.name, 'options.name'); + assert.arrayOfString(options.email, 'options.email'); + assert.func(callback, 'callback'); + + // Do stuff + callback(null, {}); + } +``` + +# API + +All methods that *aren't* part of node's core assert API are simply assumed to +take an argument, and then a string 'name' that's not a message; `AssertionError` +will be thrown if the assertion fails with a message like: + + AssertionError: foo (string) is required + at test (/home/mark/work/foo/foo.js:3:9) + at Object. (/home/mark/work/foo/foo.js:15:1) + at Module._compile (module.js:446:26) + at Object..js (module.js:464:10) + at Module.load (module.js:353:31) + at Function._load (module.js:311:12) + at Array.0 (module.js:484:10) + at EventEmitter._tickCallback (node.js:190:38) + +from: + +```javascript + function test(foo) { + assert.string(foo, 'foo'); + } +``` + +There you go. You can check that arrays are of a homogeneous type with `Arrayof$Type`: + +```javascript + function test(foo) { + assert.arrayOfString(foo, 'foo'); + } +``` + +You can assert IFF an argument is not `undefined` (i.e., an optional arg): + +```javascript + assert.optionalString(foo, 'foo'); +``` + +Lastly, you can opt-out of assertion checking altogether by setting the +environment variable `NODE_NDEBUG=1`. This is pseudo-useful if you have +lots of assertions, and don't want to pay `typeof ()` taxes to v8 in +production. Be advised: The standard functions re-exported from `assert` are +also disabled in assert-plus if NDEBUG is specified. Using them directly from +the `assert` module avoids this behavior. + +The complete list of APIs is: + +* assert.array +* assert.bool +* assert.buffer +* assert.func +* assert.number +* assert.finite +* assert.object +* assert.string +* assert.stream +* assert.date +* assert.regexp +* assert.uuid +* assert.arrayOfArray +* assert.arrayOfBool +* assert.arrayOfBuffer +* assert.arrayOfFunc +* assert.arrayOfNumber +* assert.arrayOfFinite +* assert.arrayOfObject +* assert.arrayOfString +* assert.arrayOfStream +* assert.arrayOfDate +* assert.arrayOfRegexp +* assert.arrayOfUuid +* assert.optionalArray +* assert.optionalBool +* assert.optionalBuffer +* assert.optionalFunc +* assert.optionalNumber +* assert.optionalFinite +* assert.optionalObject +* assert.optionalString +* assert.optionalStream +* assert.optionalDate +* assert.optionalRegexp +* assert.optionalUuid +* assert.optionalArrayOfArray +* assert.optionalArrayOfBool +* assert.optionalArrayOfBuffer +* assert.optionalArrayOfFunc +* assert.optionalArrayOfNumber +* assert.optionalArrayOfFinite +* assert.optionalArrayOfObject +* assert.optionalArrayOfString +* assert.optionalArrayOfStream +* assert.optionalArrayOfDate +* assert.optionalArrayOfRegexp +* assert.optionalArrayOfUuid +* assert.AssertionError +* assert.fail +* assert.ok +* assert.equal +* assert.notEqual +* assert.deepEqual +* assert.notDeepEqual +* assert.strictEqual +* assert.notStrictEqual +* assert.throws +* assert.doesNotThrow +* assert.ifError + +# Installation + + npm install assert-plus + +## License + +The MIT License (MIT) +Copyright (c) 2012 Mark Cavage + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +## Bugs + +See . diff --git a/node_modules/assert-plus/assert.js b/node_modules/assert-plus/assert.js new file mode 100644 index 0000000..26f944e --- /dev/null +++ b/node_modules/assert-plus/assert.js @@ -0,0 +1,211 @@ +// Copyright (c) 2012, Mark Cavage. All rights reserved. +// Copyright 2015 Joyent, Inc. + +var assert = require('assert'); +var Stream = require('stream').Stream; +var util = require('util'); + + +///--- Globals + +/* JSSTYLED */ +var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/; + + +///--- Internal + +function _capitalize(str) { + return (str.charAt(0).toUpperCase() + str.slice(1)); +} + +function _toss(name, expected, oper, arg, actual) { + throw new assert.AssertionError({ + message: util.format('%s (%s) is required', name, expected), + actual: (actual === undefined) ? typeof (arg) : actual(arg), + expected: expected, + operator: oper || '===', + stackStartFunction: _toss.caller + }); +} + +function _getClass(arg) { + return (Object.prototype.toString.call(arg).slice(8, -1)); +} + +function noop() { + // Why even bother with asserts? +} + + +///--- Exports + +var types = { + bool: { + check: function (arg) { return typeof (arg) === 'boolean'; } + }, + func: { + check: function (arg) { return typeof (arg) === 'function'; } + }, + string: { + check: function (arg) { return typeof (arg) === 'string'; } + }, + object: { + check: function (arg) { + return typeof (arg) === 'object' && arg !== null; + } + }, + number: { + check: function (arg) { + return typeof (arg) === 'number' && !isNaN(arg); + } + }, + finite: { + check: function (arg) { + return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg); + } + }, + buffer: { + check: function (arg) { return Buffer.isBuffer(arg); }, + operator: 'Buffer.isBuffer' + }, + array: { + check: function (arg) { return Array.isArray(arg); }, + operator: 'Array.isArray' + }, + stream: { + check: function (arg) { return arg instanceof Stream; }, + operator: 'instanceof', + actual: _getClass + }, + date: { + check: function (arg) { return arg instanceof Date; }, + operator: 'instanceof', + actual: _getClass + }, + regexp: { + check: function (arg) { return arg instanceof RegExp; }, + operator: 'instanceof', + actual: _getClass + }, + uuid: { + check: function (arg) { + return typeof (arg) === 'string' && UUID_REGEXP.test(arg); + }, + operator: 'isUUID' + } +}; + +function _setExports(ndebug) { + var keys = Object.keys(types); + var out; + + /* re-export standard assert */ + if (process.env.NODE_NDEBUG) { + out = noop; + } else { + out = function (arg, msg) { + if (!arg) { + _toss(msg, 'true', arg); + } + }; + } + + /* standard checks */ + keys.forEach(function (k) { + if (ndebug) { + out[k] = noop; + return; + } + var type = types[k]; + out[k] = function (arg, msg) { + if (!type.check(arg)) { + _toss(msg, k, type.operator, arg, type.actual); + } + }; + }); + + /* optional checks */ + keys.forEach(function (k) { + var name = 'optional' + _capitalize(k); + if (ndebug) { + out[name] = noop; + return; + } + var type = types[k]; + out[name] = function (arg, msg) { + if (arg === undefined || arg === null) { + return; + } + if (!type.check(arg)) { + _toss(msg, k, type.operator, arg, type.actual); + } + }; + }); + + /* arrayOf checks */ + keys.forEach(function (k) { + var name = 'arrayOf' + _capitalize(k); + if (ndebug) { + out[name] = noop; + return; + } + var type = types[k]; + var expected = '[' + k + ']'; + out[name] = function (arg, msg) { + if (!Array.isArray(arg)) { + _toss(msg, expected, type.operator, arg, type.actual); + } + var i; + for (i = 0; i < arg.length; i++) { + if (!type.check(arg[i])) { + _toss(msg, expected, type.operator, arg, type.actual); + } + } + }; + }); + + /* optionalArrayOf checks */ + keys.forEach(function (k) { + var name = 'optionalArrayOf' + _capitalize(k); + if (ndebug) { + out[name] = noop; + return; + } + var type = types[k]; + var expected = '[' + k + ']'; + out[name] = function (arg, msg) { + if (arg === undefined || arg === null) { + return; + } + if (!Array.isArray(arg)) { + _toss(msg, expected, type.operator, arg, type.actual); + } + var i; + for (i = 0; i < arg.length; i++) { + if (!type.check(arg[i])) { + _toss(msg, expected, type.operator, arg, type.actual); + } + } + }; + }); + + /* re-export built-in assertions */ + Object.keys(assert).forEach(function (k) { + if (k === 'AssertionError') { + out[k] = assert[k]; + return; + } + if (ndebug) { + out[k] = noop; + return; + } + out[k] = assert[k]; + }); + + /* export ourselves (for unit tests _only_) */ + out._setExports = _setExports; + + return out; +} + +module.exports = _setExports(process.env.NODE_NDEBUG); diff --git a/node_modules/assert-plus/package.json b/node_modules/assert-plus/package.json new file mode 100644 index 0000000..c99650c --- /dev/null +++ b/node_modules/assert-plus/package.json @@ -0,0 +1,90 @@ +{ + "_args": [ + [ + "assert-plus@1.0.0", + "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas" + ] + ], + "_from": "assert-plus@1.0.0", + "_id": "assert-plus@1.0.0", + "_inBundle": false, + "_integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "_location": "/assert-plus", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "assert-plus@1.0.0", + "name": "assert-plus", + "escapedName": "assert-plus", + "rawSpec": "1.0.0", + "saveSpec": null, + "fetchSpec": "1.0.0" + }, + "_requiredBy": [ + "/dashdash", + "/getpass", + "/http-signature", + "/jsprim", + "/sshpk", + "/verror" + ], + "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "_spec": "1.0.0", + "_where": "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas", + "author": { + "name": "Mark Cavage", + "email": "mcavage@gmail.com" + }, + "bugs": { + "url": "https://github.com/mcavage/node-assert-plus/issues" + }, + "contributors": [ + { + "name": "Dave Eddy", + "email": "dave@daveeddy.com" + }, + { + "name": "Fred Kuo", + "email": "fred.kuo@joyent.com" + }, + { + "name": "Lars-Magnus Skog", + "email": "ralphtheninja@riseup.net" + }, + { + "name": "Mark Cavage", + "email": "mcavage@gmail.com" + }, + { + "name": "Patrick Mooney", + "email": "pmooney@pfmooney.com" + }, + { + "name": "Rob Gulewich", + "email": "robert.gulewich@joyent.com" + } + ], + "dependencies": {}, + "description": "Extra assertions on top of node's assert module", + "devDependencies": { + "faucet": "0.0.1", + "tape": "4.2.2" + }, + "engines": { + "node": ">=0.8" + }, + "homepage": "https://github.com/mcavage/node-assert-plus#readme", + "license": "MIT", + "main": "./assert.js", + "name": "assert-plus", + "optionalDependencies": {}, + "repository": { + "type": "git", + "url": "git+https://github.com/mcavage/node-assert-plus.git" + }, + "scripts": { + "test": "tape tests/*.js | ./node_modules/.bin/faucet" + }, + "version": "1.0.0" +} diff --git a/node_modules/asynckit/LICENSE b/node_modules/asynckit/LICENSE new file mode 100644 index 0000000..c9eca5d --- /dev/null +++ b/node_modules/asynckit/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Alex Indigo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/asynckit/README.md b/node_modules/asynckit/README.md new file mode 100644 index 0000000..ddcc7e6 --- /dev/null +++ b/node_modules/asynckit/README.md @@ -0,0 +1,233 @@ +# asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit) + +Minimal async jobs utility library, with streams support. + +[![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit) +[![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit) +[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit) + +[![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master) +[![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit) +[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit) + + + +AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects. +Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method. + +It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators. + +| compression | size | +| :----------------- | -------: | +| asynckit.js | 12.34 kB | +| asynckit.min.js | 4.11 kB | +| asynckit.min.js.gz | 1.47 kB | + + +## Install + +```sh +$ npm install --save asynckit +``` + +## Examples + +### Parallel Jobs + +Runs iterator over provided array in parallel. Stores output in the `result` array, +on the matching positions. In unlikely event of an error from one of the jobs, +will terminate rest of the active jobs (if abort function is provided) +and return error along with salvaged data to the main callback function. + +#### Input Array + +```javascript +var parallel = require('asynckit').parallel + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] + , target = [] + ; + +parallel(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// async job accepts one element from the array +// and a callback function +function asyncJob(item, cb) +{ + // different delays (in ms) per item + var delay = item * 25; + + // pretend different jobs take different time to finish + // and not in consequential order + var timeoutId = setTimeout(function() { + target.push(item); + cb(null, item * 2); + }, delay); + + // allow to cancel "leftover" jobs upon error + // return function, invoking of which will abort this job + return clearTimeout.bind(null, timeoutId); +} +``` + +More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js). + +#### Input Object + +Also it supports named jobs, listed via object. + +```javascript +var parallel = require('asynckit/parallel') + , assert = require('assert') + ; + +var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } + , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } + , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] + , expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ] + , target = [] + , keys = [] + ; + +parallel(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); + assert.deepEqual(keys, expectedKeys); +}); + +// supports full value, key, callback (shortcut) interface +function asyncJob(item, key, cb) +{ + // different delays (in ms) per item + var delay = item * 25; + + // pretend different jobs take different time to finish + // and not in consequential order + var timeoutId = setTimeout(function() { + keys.push(key); + target.push(item); + cb(null, item * 2); + }, delay); + + // allow to cancel "leftover" jobs upon error + // return function, invoking of which will abort this job + return clearTimeout.bind(null, timeoutId); +} +``` + +More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js). + +### Serial Jobs + +Runs iterator over provided array sequentially. Stores output in the `result` array, +on the matching positions. In unlikely event of an error from one of the jobs, +will not proceed to the rest of the items in the list +and return error along with salvaged data to the main callback function. + +#### Input Array + +```javascript +var serial = require('asynckit/serial') + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] + , target = [] + ; + +serial(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// extended interface (item, key, callback) +// also supported for arrays +function asyncJob(item, key, cb) +{ + target.push(key); + + // it will be automatically made async + // even it iterator "returns" in the same event loop + cb(null, item * 2); +} +``` + +More examples could be found in [test/test-serial-array.js](test/test-serial-array.js). + +#### Input Object + +Also it supports named jobs, listed via object. + +```javascript +var serial = require('asynckit').serial + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] + , target = [] + ; + +var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } + , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } + , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , target = [] + ; + + +serial(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// shortcut interface (item, callback) +// works for object as well as for the arrays +function asyncJob(item, cb) +{ + target.push(item); + + // it will be automatically made async + // even it iterator "returns" in the same event loop + cb(null, item * 2); +} +``` + +More examples could be found in [test/test-serial-object.js](test/test-serial-object.js). + +_Note: Since _object_ is an _unordered_ collection of properties, +it may produce unexpected results with sequential iterations. +Whenever order of the jobs' execution is important please use `serialOrdered` method._ + +### Ordered Serial Iterations + +TBD + +For example [compare-property](compare-property) package. + +### Streaming interface + +TBD + +## Want to Know More? + +More examples can be found in [test folder](test/). + +Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions. + +## License + +AsyncKit is licensed under the MIT license. diff --git a/node_modules/asynckit/bench.js b/node_modules/asynckit/bench.js new file mode 100644 index 0000000..c612f1a --- /dev/null +++ b/node_modules/asynckit/bench.js @@ -0,0 +1,76 @@ +/* eslint no-console: "off" */ + +var asynckit = require('./') + , async = require('async') + , assert = require('assert') + , expected = 0 + ; + +var Benchmark = require('benchmark'); +var suite = new Benchmark.Suite; + +var source = []; +for (var z = 1; z < 100; z++) +{ + source.push(z); + expected += z; +} + +suite +// add tests + +.add('async.map', function(deferred) +{ + var total = 0; + + async.map(source, + function(i, cb) + { + setImmediate(function() + { + total += i; + cb(null, total); + }); + }, + function(err, result) + { + assert.ifError(err); + assert.equal(result[result.length - 1], expected); + deferred.resolve(); + }); +}, {'defer': true}) + + +.add('asynckit.parallel', function(deferred) +{ + var total = 0; + + asynckit.parallel(source, + function(i, cb) + { + setImmediate(function() + { + total += i; + cb(null, total); + }); + }, + function(err, result) + { + assert.ifError(err); + assert.equal(result[result.length - 1], expected); + deferred.resolve(); + }); +}, {'defer': true}) + + +// add listeners +.on('cycle', function(ev) +{ + console.log(String(ev.target)); +}) +.on('complete', function() +{ + console.log('Fastest is ' + this.filter('fastest').map('name')); +}) +// run async +.run({ 'async': true }); diff --git a/node_modules/asynckit/index.js b/node_modules/asynckit/index.js new file mode 100644 index 0000000..455f945 --- /dev/null +++ b/node_modules/asynckit/index.js @@ -0,0 +1,6 @@ +module.exports = +{ + parallel : require('./parallel.js'), + serial : require('./serial.js'), + serialOrdered : require('./serialOrdered.js') +}; diff --git a/node_modules/asynckit/lib/abort.js b/node_modules/asynckit/lib/abort.js new file mode 100644 index 0000000..114367e --- /dev/null +++ b/node_modules/asynckit/lib/abort.js @@ -0,0 +1,29 @@ +// API +module.exports = abort; + +/** + * Aborts leftover active jobs + * + * @param {object} state - current state object + */ +function abort(state) +{ + Object.keys(state.jobs).forEach(clean.bind(state)); + + // reset leftover jobs + state.jobs = {}; +} + +/** + * Cleans up leftover job by invoking abort function for the provided job id + * + * @this state + * @param {string|number} key - job id to abort + */ +function clean(key) +{ + if (typeof this.jobs[key] == 'function') + { + this.jobs[key](); + } +} diff --git a/node_modules/asynckit/lib/async.js b/node_modules/asynckit/lib/async.js new file mode 100644 index 0000000..7f1288a --- /dev/null +++ b/node_modules/asynckit/lib/async.js @@ -0,0 +1,34 @@ +var defer = require('./defer.js'); + +// API +module.exports = async; + +/** + * Runs provided callback asynchronously + * even if callback itself is not + * + * @param {function} callback - callback to invoke + * @returns {function} - augmented callback + */ +function async(callback) +{ + var isAsync = false; + + // check if async happened + defer(function() { isAsync = true; }); + + return function async_callback(err, result) + { + if (isAsync) + { + callback(err, result); + } + else + { + defer(function nextTick_callback() + { + callback(err, result); + }); + } + }; +} diff --git a/node_modules/asynckit/lib/defer.js b/node_modules/asynckit/lib/defer.js new file mode 100644 index 0000000..b67110c --- /dev/null +++ b/node_modules/asynckit/lib/defer.js @@ -0,0 +1,26 @@ +module.exports = defer; + +/** + * Runs provided function on next iteration of the event loop + * + * @param {function} fn - function to run + */ +function defer(fn) +{ + var nextTick = typeof setImmediate == 'function' + ? setImmediate + : ( + typeof process == 'object' && typeof process.nextTick == 'function' + ? process.nextTick + : null + ); + + if (nextTick) + { + nextTick(fn); + } + else + { + setTimeout(fn, 0); + } +} diff --git a/node_modules/asynckit/lib/iterate.js b/node_modules/asynckit/lib/iterate.js new file mode 100644 index 0000000..5d2839a --- /dev/null +++ b/node_modules/asynckit/lib/iterate.js @@ -0,0 +1,75 @@ +var async = require('./async.js') + , abort = require('./abort.js') + ; + +// API +module.exports = iterate; + +/** + * Iterates over each job object + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {object} state - current job status + * @param {function} callback - invoked when all elements processed + */ +function iterate(list, iterator, state, callback) +{ + // store current index + var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; + + state.jobs[key] = runJob(iterator, key, list[key], function(error, output) + { + // don't repeat yourself + // skip secondary callbacks + if (!(key in state.jobs)) + { + return; + } + + // clean up jobs + delete state.jobs[key]; + + if (error) + { + // don't process rest of the results + // stop still active jobs + // and reset the list + abort(state); + } + else + { + state.results[key] = output; + } + + // return salvaged results + callback(error, state.results); + }); +} + +/** + * Runs iterator over provided job element + * + * @param {function} iterator - iterator to invoke + * @param {string|number} key - key/index of the element in the list of jobs + * @param {mixed} item - job description + * @param {function} callback - invoked after iterator is done with the job + * @returns {function|mixed} - job abort function or something else + */ +function runJob(iterator, key, item, callback) +{ + var aborter; + + // allow shortcut if iterator expects only two arguments + if (iterator.length == 2) + { + aborter = iterator(item, async(callback)); + } + // otherwise go with full three arguments + else + { + aborter = iterator(item, key, async(callback)); + } + + return aborter; +} diff --git a/node_modules/asynckit/lib/readable_asynckit.js b/node_modules/asynckit/lib/readable_asynckit.js new file mode 100644 index 0000000..78ad240 --- /dev/null +++ b/node_modules/asynckit/lib/readable_asynckit.js @@ -0,0 +1,91 @@ +var streamify = require('./streamify.js') + , defer = require('./defer.js') + ; + +// API +module.exports = ReadableAsyncKit; + +/** + * Base constructor for all streams + * used to hold properties/methods + */ +function ReadableAsyncKit() +{ + ReadableAsyncKit.super_.apply(this, arguments); + + // list of active jobs + this.jobs = {}; + + // add stream methods + this.destroy = destroy; + this._start = _start; + this._read = _read; +} + +/** + * Destroys readable stream, + * by aborting outstanding jobs + * + * @returns {void} + */ +function destroy() +{ + if (this.destroyed) + { + return; + } + + this.destroyed = true; + + if (typeof this.terminator == 'function') + { + this.terminator(); + } +} + +/** + * Starts provided jobs in async manner + * + * @private + */ +function _start() +{ + // first argument – runner function + var runner = arguments[0] + // take away first argument + , args = Array.prototype.slice.call(arguments, 1) + // second argument - input data + , input = args[0] + // last argument - result callback + , endCb = streamify.callback.call(this, args[args.length - 1]) + ; + + args[args.length - 1] = endCb; + // third argument - iterator + args[1] = streamify.iterator.call(this, args[1]); + + // allow time for proper setup + defer(function() + { + if (!this.destroyed) + { + this.terminator = runner.apply(null, args); + } + else + { + endCb(null, Array.isArray(input) ? [] : {}); + } + }.bind(this)); +} + + +/** + * Implement _read to comply with Readable streams + * Doesn't really make sense for flowing object mode + * + * @private + */ +function _read() +{ + +} diff --git a/node_modules/asynckit/lib/readable_parallel.js b/node_modules/asynckit/lib/readable_parallel.js new file mode 100644 index 0000000..5d2929f --- /dev/null +++ b/node_modules/asynckit/lib/readable_parallel.js @@ -0,0 +1,25 @@ +var parallel = require('../parallel.js'); + +// API +module.exports = ReadableParallel; + +/** + * Streaming wrapper to `asynckit.parallel` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableParallel(list, iterator, callback) +{ + if (!(this instanceof ReadableParallel)) + { + return new ReadableParallel(list, iterator, callback); + } + + // turn on object mode + ReadableParallel.super_.call(this, {objectMode: true}); + + this._start(parallel, list, iterator, callback); +} diff --git a/node_modules/asynckit/lib/readable_serial.js b/node_modules/asynckit/lib/readable_serial.js new file mode 100644 index 0000000..7822698 --- /dev/null +++ b/node_modules/asynckit/lib/readable_serial.js @@ -0,0 +1,25 @@ +var serial = require('../serial.js'); + +// API +module.exports = ReadableSerial; + +/** + * Streaming wrapper to `asynckit.serial` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableSerial(list, iterator, callback) +{ + if (!(this instanceof ReadableSerial)) + { + return new ReadableSerial(list, iterator, callback); + } + + // turn on object mode + ReadableSerial.super_.call(this, {objectMode: true}); + + this._start(serial, list, iterator, callback); +} diff --git a/node_modules/asynckit/lib/readable_serial_ordered.js b/node_modules/asynckit/lib/readable_serial_ordered.js new file mode 100644 index 0000000..3de89c4 --- /dev/null +++ b/node_modules/asynckit/lib/readable_serial_ordered.js @@ -0,0 +1,29 @@ +var serialOrdered = require('../serialOrdered.js'); + +// API +module.exports = ReadableSerialOrdered; +// expose sort helpers +module.exports.ascending = serialOrdered.ascending; +module.exports.descending = serialOrdered.descending; + +/** + * Streaming wrapper to `asynckit.serialOrdered` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} sortMethod - custom sort function + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableSerialOrdered(list, iterator, sortMethod, callback) +{ + if (!(this instanceof ReadableSerialOrdered)) + { + return new ReadableSerialOrdered(list, iterator, sortMethod, callback); + } + + // turn on object mode + ReadableSerialOrdered.super_.call(this, {objectMode: true}); + + this._start(serialOrdered, list, iterator, sortMethod, callback); +} diff --git a/node_modules/asynckit/lib/state.js b/node_modules/asynckit/lib/state.js new file mode 100644 index 0000000..cbea7ad --- /dev/null +++ b/node_modules/asynckit/lib/state.js @@ -0,0 +1,37 @@ +// API +module.exports = state; + +/** + * Creates initial state object + * for iteration over list + * + * @param {array|object} list - list to iterate over + * @param {function|null} sortMethod - function to use for keys sort, + * or `null` to keep them as is + * @returns {object} - initial state object + */ +function state(list, sortMethod) +{ + var isNamedList = !Array.isArray(list) + , initState = + { + index : 0, + keyedList: isNamedList || sortMethod ? Object.keys(list) : null, + jobs : {}, + results : isNamedList ? {} : [], + size : isNamedList ? Object.keys(list).length : list.length + } + ; + + if (sortMethod) + { + // sort array keys based on it's values + // sort object's keys just on own merit + initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) + { + return sortMethod(list[a], list[b]); + }); + } + + return initState; +} diff --git a/node_modules/asynckit/lib/streamify.js b/node_modules/asynckit/lib/streamify.js new file mode 100644 index 0000000..f56a1c9 --- /dev/null +++ b/node_modules/asynckit/lib/streamify.js @@ -0,0 +1,141 @@ +var async = require('./async.js'); + +// API +module.exports = { + iterator: wrapIterator, + callback: wrapCallback +}; + +/** + * Wraps iterators with long signature + * + * @this ReadableAsyncKit# + * @param {function} iterator - function to wrap + * @returns {function} - wrapped function + */ +function wrapIterator(iterator) +{ + var stream = this; + + return function(item, key, cb) + { + var aborter + , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key)) + ; + + stream.jobs[key] = wrappedCb; + + // it's either shortcut (item, cb) + if (iterator.length == 2) + { + aborter = iterator(item, wrappedCb); + } + // or long format (item, key, cb) + else + { + aborter = iterator(item, key, wrappedCb); + } + + return aborter; + }; +} + +/** + * Wraps provided callback function + * allowing to execute snitch function before + * real callback + * + * @this ReadableAsyncKit# + * @param {function} callback - function to wrap + * @returns {function} - wrapped function + */ +function wrapCallback(callback) +{ + var stream = this; + + var wrapped = function(error, result) + { + return finisher.call(stream, error, result, callback); + }; + + return wrapped; +} + +/** + * Wraps provided iterator callback function + * makes sure snitch only called once, + * but passes secondary calls to the original callback + * + * @this ReadableAsyncKit# + * @param {function} callback - callback to wrap + * @param {number|string} key - iteration key + * @returns {function} wrapped callback + */ +function wrapIteratorCallback(callback, key) +{ + var stream = this; + + return function(error, output) + { + // don't repeat yourself + if (!(key in stream.jobs)) + { + callback(error, output); + return; + } + + // clean up jobs + delete stream.jobs[key]; + + return streamer.call(stream, error, {key: key, value: output}, callback); + }; +} + +/** + * Stream wrapper for iterator callback + * + * @this ReadableAsyncKit# + * @param {mixed} error - error response + * @param {mixed} output - iterator output + * @param {function} callback - callback that expects iterator results + */ +function streamer(error, output, callback) +{ + if (error && !this.error) + { + this.error = error; + this.pause(); + this.emit('error', error); + // send back value only, as expected + callback(error, output && output.value); + return; + } + + // stream stuff + this.push(output); + + // back to original track + // send back value only, as expected + callback(error, output && output.value); +} + +/** + * Stream wrapper for finishing callback + * + * @this ReadableAsyncKit# + * @param {mixed} error - error response + * @param {mixed} output - iterator output + * @param {function} callback - callback that expects final results + */ +function finisher(error, output, callback) +{ + // signal end of the stream + // only for successfully finished streams + if (!error) + { + this.push(null); + } + + // back to original track + callback(error, output); +} diff --git a/node_modules/asynckit/lib/terminator.js b/node_modules/asynckit/lib/terminator.js new file mode 100644 index 0000000..d6eb992 --- /dev/null +++ b/node_modules/asynckit/lib/terminator.js @@ -0,0 +1,29 @@ +var abort = require('./abort.js') + , async = require('./async.js') + ; + +// API +module.exports = terminator; + +/** + * Terminates jobs in the attached state context + * + * @this AsyncKitState# + * @param {function} callback - final callback to invoke after termination + */ +function terminator(callback) +{ + if (!Object.keys(this.jobs).length) + { + return; + } + + // fast forward iteration index + this.index = this.size; + + // abort jobs + abort(this); + + // send back results we have so far + async(callback)(null, this.results); +} diff --git a/node_modules/asynckit/package.json b/node_modules/asynckit/package.json new file mode 100644 index 0000000..f8b4194 --- /dev/null +++ b/node_modules/asynckit/package.json @@ -0,0 +1,94 @@ +{ + "_args": [ + [ + "asynckit@0.4.0", + "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas" + ] + ], + "_from": "asynckit@0.4.0", + "_id": "asynckit@0.4.0", + "_inBundle": false, + "_integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "_location": "/asynckit", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "asynckit@0.4.0", + "name": "asynckit", + "escapedName": "asynckit", + "rawSpec": "0.4.0", + "saveSpec": null, + "fetchSpec": "0.4.0" + }, + "_requiredBy": [ + "/form-data" + ], + "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "_spec": "0.4.0", + "_where": "/Users/joseph.whissel/Documents/GitHub/WaspsWithBazookas", + "author": { + "name": "Alex Indigo", + "email": "iam@alexindigo.com" + }, + "bugs": { + "url": "https://github.com/alexindigo/asynckit/issues" + }, + "dependencies": {}, + "description": "Minimal async jobs utility library, with streams support", + "devDependencies": { + "browserify": "^13.0.0", + "browserify-istanbul": "^2.0.0", + "coveralls": "^2.11.9", + "eslint": "^2.9.0", + "istanbul": "^0.4.3", + "obake": "^0.1.2", + "phantomjs-prebuilt": "^2.1.7", + "pre-commit": "^1.1.3", + "reamde": "^1.1.0", + "rimraf": "^2.5.2", + "size-table": "^0.2.0", + "tap-spec": "^4.1.1", + "tape": "^4.5.1" + }, + "homepage": "https://github.com/alexindigo/asynckit#readme", + "keywords": [ + "async", + "jobs", + "parallel", + "serial", + "iterator", + "array", + "object", + "stream", + "destroy", + "terminate", + "abort" + ], + "license": "MIT", + "main": "index.js", + "name": "asynckit", + "pre-commit": [ + "clean", + "lint", + "test", + "browser", + "report", + "size" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/alexindigo/asynckit.git" + }, + "scripts": { + "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec", + "clean": "rimraf coverage", + "debug": "tape test/test-*.js", + "lint": "eslint *.js lib/*.js test/*.js", + "report": "istanbul report", + "size": "browserify index.js | size-table asynckit", + "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec", + "win-test": "tape test/test-*.js" + }, + "version": "0.4.0" +} diff --git a/node_modules/asynckit/parallel.js b/node_modules/asynckit/parallel.js new file mode 100644 index 0000000..3c50344 --- /dev/null +++ b/node_modules/asynckit/parallel.js @@ -0,0 +1,43 @@ +var iterate = require('./lib/iterate.js') + , initState = require('./lib/state.js') + , terminator = require('./lib/terminator.js') + ; + +// Public API +module.exports = parallel; + +/** + * Runs iterator over provided array elements in parallel + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function parallel(list, iterator, callback) +{ + var state = initState(list); + + while (state.index < (state['keyedList'] || list).length) + { + iterate(list, iterator, state, function(error, result) + { + if (error) + { + callback(error, result); + return; + } + + // looks like it's the last one + if (Object.keys(state.jobs).length === 0) + { + callback(null, state.results); + return; + } + }); + + state.index++; + } + + return terminator.bind(state, callback); +} diff --git a/node_modules/asynckit/serial.js b/node_modules/asynckit/serial.js new file mode 100644 index 0000000..6cd949a --- /dev/null +++ b/node_modules/asynckit/serial.js @@ -0,0 +1,17 @@ +var serialOrdered = require('./serialOrdered.js'); + +// Public API +module.exports = serial; + +/** + * Runs iterator over provided array elements in series + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function serial(list, iterator, callback) +{ + return serialOrdered(list, iterator, null, callback); +} diff --git a/node_modules/asynckit/serialOrdered.js b/node_modules/asynckit/serialOrdered.js new file mode 100644 index 0000000..607eafe --- /dev/null +++ b/node_modules/asynckit/serialOrdered.js @@ -0,0 +1,75 @@ +var iterate = require('./lib/iterate.js') + , initState = require('./lib/state.js') + , terminator = require('./lib/terminator.js') + ; + +// Public API +module.exports = serialOrdered; +// sorting helpers +module.exports.ascending = ascending; +module.exports.descending = descending; + +/** + * Runs iterator over provided sorted array elements in series + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} sortMethod - custom sort function + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function serialOrdered(list, iterator, sortMethod, callback) +{ + var state = initState(list, sortMethod); + + iterate(list, iterator, state, function iteratorHandler(error, result) + { + if (error) + { + callback(error, result); + return; + } + + state.index++; + + // are we there yet? + if (state.index < (state['keyedList'] || list).length) + { + iterate(list, iterator, state, iteratorHandler); + return; + } + + // done here + callback(null, state.results); + }); + + return terminator.bind(state, callback); +} + +/* + * -- Sort methods + */ + +/** + * sort helper to sort array elements in ascending order + * + * @param {mixed} a - an item to compare + * @param {mixed} b - an item to compare + * @returns {number} - comparison result + */ +function ascending(a, b) +{ + return a < b ? -1 : a > b ? 1 : 0; +} + +/** + * sort helper to sort array elements in descending order + * + * @param {mixed} a - an item to compare + * @param {mixed} b - an item to compare + * @returns {number} - comparison result + */ +function descending(a, b) +{ + return -1 * ascending(a, b); +} diff --git a/node_modules/asynckit/stream.js b/node_modules/asynckit/stream.js new file mode 100644 index 0000000..d43465f --- /dev/null +++ b/node_modules/asynckit/stream.js @@ -0,0 +1,21 @@ +var inherits = require('util').inherits + , Readable = require('stream').Readable + , ReadableAsyncKit = require('./lib/readable_asynckit.js') + , ReadableParallel = require('./lib/readable_parallel.js') + , ReadableSerial = require('./lib/readable_serial.js') + , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js') + ; + +// API +module.exports = +{ + parallel : ReadableParallel, + serial : ReadableSerial, + serialOrdered : ReadableSerialOrdered, +}; + +inherits(ReadableAsyncKit, Readable); + +inherits(ReadableParallel, ReadableAsyncKit); +inherits(ReadableSerial, ReadableAsyncKit); +inherits(ReadableSerialOrdered, ReadableAsyncKit); diff --git a/node_modules/auto-changelog/.markdownlintrc b/node_modules/auto-changelog/.markdownlintrc new file mode 100644 index 0000000..390db8c --- /dev/null +++ b/node_modules/auto-changelog/.markdownlintrc @@ -0,0 +1,9 @@ +{ + "default": true, + "line-length": false, + "first-header-h1": false, + "first-line-h1": false, + "no-duplicate-header": false, + "heading-increment": false, + "no-trailing-punctuation": false +} diff --git a/node_modules/auto-changelog/.travis.yml b/node_modules/auto-changelog/.travis.yml new file mode 100644 index 0000000..c17ce73 --- /dev/null +++ b/node_modules/auto-changelog/.travis.yml @@ -0,0 +1,18 @@ +language: node_js +node_js: + - node + - 10 + - 8 +cache: + yarn: true + directories: + - node_modules +script: + - npm run lint + - npm run lint-markdown + - npm run test +after_success: + - npm run coverage +env: + global: + secure: F80ocIyMwaljpsWzLXRhoXTxR7kkYE0V9rTpAzO7MI/OmQ2UiAeQkyTXdthK6tZuz1oVVrpjDtYuJ0hmvlTBm7WmVWNK0S6kYhHsHGy1sRmwilBqVSwSFEcjjKmOAJckfIHwOG8tjWLY9qemrf9KqpvPCG7DiG4Pn+YHLOZT7XlXbBiec/qCnaskwBpN5KhA+VAhupcZEQAy5AWW5h+CU7NF60a4chlX4gmWjAgeHZlYr472pNRi+kDZVztaXusTEWExJog/NZ/Oi8VTZkzX0t3uNiWmLfRyYC1S8blq/jaPRuwtJrgzZZRRHZswN01cmBl/D8HAzvgrA24k/70QpNdjFeJ4s5PW9+4GiGnky5z5F3tB8Hlv0ofNQAR3IKAnI+lXy/DfSD10ZJls4bQMEdoPdG/34E5EGliG2WmP6chuTh8vPlZtOGMesUi0TkXSoYPO5njZEV0Ketye37LHTfwO4sf6OC0tV8MsTtLjqMU+081K20ACHITwaJlpfWP1uGLJn+zUx3XsGS8z7abt9+a9cPl9p917IpDttLsdtLhvGC988uWvJQ5F6UMlayf1MYavwmz0vKldDu3eHBKJSaTDqugwvivww3TxdG7Jw/mNVYsrdWz4Hr49QuugGxiOrL5ZtEIbBV50W0sPFe4XFXGFyjN2x/8/td3ZXL8glN4= diff --git a/node_modules/auto-changelog/CHANGELOG.md b/node_modules/auto-changelog/CHANGELOG.md new file mode 100644 index 0000000..292dd98 --- /dev/null +++ b/node_modules/auto-changelog/CHANGELOG.md @@ -0,0 +1,414 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +#### [v1.16.1](https://github.com/CookPete/auto-changelog/compare/v1.16.0...v1.16.1) + +> 4 September 2019 + +- Encode < and > in commit messages [`#129`](https://github.com/CookPete/auto-changelog/issues/129) +- Update test data generation [`c2c9bd8`](https://github.com/CookPete/auto-changelog/commit/c2c9bd82ab1857009b8e4e5bcb514312fdd43975) +- Refactor release parsing [`b1ab27e`](https://github.com/CookPete/auto-changelog/commit/b1ab27e258c4b2b4f0f2bea2f0fe8d9a2f66926e) +- Add HTML characters to test data [`b4eb7d7`](https://github.com/CookPete/auto-changelog/commit/b4eb7d7bdd1187a13b89db20f56a6acde0b1b8e5) + +#### [v1.16.0](https://github.com/CookPete/auto-changelog/compare/v1.15.0...v1.16.0) + +> 31 August 2019 + +- Add --commit-url, --merge-url and --compare-url options [`#93`](https://github.com/CookPete/auto-changelog/issues/93) +- Bump packages [`84a1bda`](https://github.com/CookPete/auto-changelog/commit/84a1bdadc21926b16df39886c2f2d799a92bd64f) +- Update readme [`a04c0ff`](https://github.com/CookPete/auto-changelog/commit/a04c0ff7a894aaf55627ba6decb8f7e07aea7479) +- Lint fixes [`7d3c25a`](https://github.com/CookPete/auto-changelog/commit/7d3c25afad1f49da8bb38df915f2430514da2d53) + +#### [v1.15.0](https://github.com/CookPete/auto-changelog/compare/v1.14.1...v1.15.0) + +> 13 August 2019 + +- Add --config option [`#127`](https://github.com/CookPete/auto-changelog/issues/127) +- Infer semver versions from numeric tags [`#126`](https://github.com/CookPete/auto-changelog/issues/126) + +#### [v1.14.1](https://github.com/CookPete/auto-changelog/compare/v1.14.0...v1.14.1) + +> 8 July 2019 + +- Add regenerator-runtime dependency [`#125`](https://github.com/CookPete/auto-changelog/issues/125) + +#### [v1.14.0](https://github.com/CookPete/auto-changelog/compare/v1.13.0...v1.14.0) + +> 7 July 2019 + +- Update babel/rimraf/nyc [`#122`](https://github.com/CookPete/auto-changelog/pull/122) +- HTTPS links to external sites [`#120`](https://github.com/CookPete/auto-changelog/pull/120) +- Add support for alternate date sorting [`#113`](https://github.com/CookPete/auto-changelog/pull/113) +- fix for handlebars-setup arg [`#110`](https://github.com/CookPete/auto-changelog/pull/110) +- Add --append-git-log option [`#118`](https://github.com/CookPete/auto-changelog/pull/118) [`#117`](https://github.com/CookPete/auto-changelog/issues/117) +- Update test data [`bb3a347`](https://github.com/CookPete/auto-changelog/commit/bb3a3475bc0c5d394727cec62486df0f5dcff9e1) +- Add commit object to merge data [`2a8de35`](https://github.com/CookPete/auto-changelog/commit/2a8de35e56e7cf43056c0f1850976699957664e1) +- Fix commander argument syntax [`01739fe`](https://github.com/CookPete/auto-changelog/commit/01739fea2accc264bde29be99b53c827f44ba1e9) + +#### [v1.13.0](https://github.com/CookPete/auto-changelog/compare/v1.12.1...v1.13.0) + +> 16 April 2019 + +- Support partial semver tag sorting [`#94`](https://github.com/CookPete/auto-changelog/issues/94) +- Update --package option to accept file path [`#106`](https://github.com/CookPete/auto-changelog/issues/106) +- Tidy up getOptions [`0168216`](https://github.com/CookPete/auto-changelog/commit/0168216be9976d918ca4f64168d7c8db53cc9cb8) +- Tidy up readJson util [`36bfd9e`](https://github.com/CookPete/auto-changelog/commit/36bfd9e89f3a9f9d40aa54765141e1be70d8ff06) +- Space out error logs [`2bc35ce`](https://github.com/CookPete/auto-changelog/commit/2bc35ce4e57f68990a69f2c2846610015330a50f) + +#### [v1.12.1](https://github.com/CookPete/auto-changelog/compare/v1.12.0...v1.12.1) + +> 11 April 2019 + +- Change behaviour of ignoreCommitPattern to see tags on ignored commits [`#102`](https://github.com/CookPete/auto-changelog/pull/102) +- Bump packages [`b371147`](https://github.com/CookPete/auto-changelog/commit/b371147dea0b483663a040b69e4193944b951b51) +- Remove greenkeeper [`b0841c8`](https://github.com/CookPete/auto-changelog/commit/b0841c8a6af737ea0ca3c00a98015b10fdd0821a) + +#### [v1.12.0](https://github.com/CookPete/auto-changelog/compare/v1.11.0...v1.12.0) + +> 18 March 2019 + +- Add main entry to package.json [`#87`](https://github.com/CookPete/auto-changelog/pull/87) +- Update mocha to the latest version 🚀 [`#88`](https://github.com/CookPete/auto-changelog/pull/88) +- Add --merge-pattern option [`#86`](https://github.com/CookPete/auto-changelog/pull/86) +- yarn upgrade [`#91`](https://github.com/CookPete/auto-changelog/pull/91) +- Add --handlebars-setup option [`#96`](https://github.com/CookPete/auto-changelog/issues/96) [`#89`](https://github.com/CookPete/auto-changelog/issues/89) [`#90`](https://github.com/CookPete/auto-changelog/pull/90) +- Add --sort-commits option [`#95`](https://github.com/CookPete/auto-changelog/issues/95) [`#97`](https://github.com/CookPete/auto-changelog/pull/97) + +#### [v1.11.0](https://github.com/CookPete/auto-changelog/compare/v1.10.3...v1.11.0) + +> 14 January 2019 + +- Add --stdout option [`#83`](https://github.com/CookPete/auto-changelog/issues/83) +- Fix sortReleases for non-semver tags [`#81`](https://github.com/CookPete/auto-changelog/issues/81) +- Add backtick characters to test data [`ab73c8a`](https://github.com/CookPete/auto-changelog/commit/ab73c8a265b93992fa61999dde8962e61ef60c64) + +#### [v1.10.3](https://github.com/CookPete/auto-changelog/compare/v1.10.2...v1.10.3) + +> 4 January 2019 + +- Clarify includeBranch config array in readme [`#75`](https://github.com/CookPete/auto-changelog/issues/75) +- Remove package-lock.json from repo [`512205b`](https://github.com/CookPete/auto-changelog/commit/512205b1a028d3ded629c84d475a15fc2e44163c) +- Sort and slice commits for latest release [`7d7f377`](https://github.com/CookPete/auto-changelog/commit/7d7f377c17384b8b80c71ffb9bcd2900640255e3) +- Fix breaking commit sorting [`73c05a1`](https://github.com/CookPete/auto-changelog/commit/73c05a1f3218dccc9a7e9f46577c45fb1af986e3) + +#### [v1.10.2](https://github.com/CookPete/auto-changelog/compare/v1.10.1...v1.10.2) + +> 18 November 2018 + +- Upgrade all packages [`#59`](https://github.com/CookPete/auto-changelog/pull/59) +- Remove package-lock.json [`791a261`](https://github.com/CookPete/auto-changelog/commit/791a2617361657630e389b09e193ca57c237623d) + +#### [v1.10.1](https://github.com/CookPete/auto-changelog/compare/v1.10.0...v1.10.1) + +> 13 November 2018 + +- Use readline for log util [`#73`](https://github.com/CookPete/auto-changelog/issues/73) [`#74`](https://github.com/CookPete/auto-changelog/issues/74) + +#### [v1.10.0](https://github.com/CookPete/auto-changelog/compare/v1.9.0...v1.10.0) + +> 10 November 2018 + +- Update tests [`644f5d8`](https://github.com/CookPete/auto-changelog/commit/644f5d8a79042431c0a89f99866034ac124cce56) +- Add better progress logging [`64ebb30`](https://github.com/CookPete/auto-changelog/commit/64ebb30b8e979afa028ec2b147405b3cbf854e36) +- Add --backfill-limit option [`5240b1e`](https://github.com/CookPete/auto-changelog/commit/5240b1e5298a2a0bef405100ab03636b491306c0) + +#### [v1.9.0](https://github.com/CookPete/auto-changelog/compare/v1.8.1...v1.9.0) + +> 8 November 2018 + +- Add support for azure devops and visualstudio.com [`#72`](https://github.com/CookPete/auto-changelog/pull/72) +- Bump packages [`#56`](https://github.com/CookPete/auto-changelog/pull/56) [`#60`](https://github.com/CookPete/auto-changelog/pull/60) [`#61`](https://github.com/CookPete/auto-changelog/pull/61) +- Add --tag-pattern option [`#70`](https://github.com/CookPete/auto-changelog/pull/70) +- Add support for .auto-changelog config [`#66`](https://github.com/CookPete/auto-changelog/pull/66) +- Add --release-summary option [`#69`](https://github.com/CookPete/auto-changelog/issues/69) +- Add tests for `.auto-changelog` feature [`17b0926`](https://github.com/CookPete/auto-changelog/commit/17b09269fa5603e0be7f5ffe5ce67996f7cf4176) +- Add tests for sortReleases [`9d80b9d`](https://github.com/CookPete/auto-changelog/commit/9d80b9d8a7dfcb5f0db37dad1fa8757e3124c564) +- Fix quote style [`5c18eda`](https://github.com/CookPete/auto-changelog/commit/5c18edaebff560e3e982a8d58ee7473f24b6be24) + +#### [v1.8.1](https://github.com/CookPete/auto-changelog/compare/v1.8.0...v1.8.1) + +> 8 October 2018 + +- Fix Bitbucket compare links. [`#65`](https://github.com/CookPete/auto-changelog/pull/65) +- Update markdownlint-cli to the latest version 🚀 [`#54`](https://github.com/CookPete/auto-changelog/pull/54) +- Update markdownlint-cli to the latest version 🚀 [`#51`](https://github.com/CookPete/auto-changelog/pull/51) +- Add author to fixes and merges [`#58`](https://github.com/CookPete/auto-changelog/issues/58) +- Remove unsupported node versions from travis builds [`df63917`](https://github.com/CookPete/auto-changelog/commit/df63917391f3b30ceaa13a774b05889e659e4dd4) +- Add timeout to URL fetching test [`d635a06`](https://github.com/CookPete/auto-changelog/commit/d635a06cf9e544fd4b11a9f6eed0fbdc597d41ea) +- Add node 6.0 to travis builds [`088077e`](https://github.com/CookPete/auto-changelog/commit/088077e51fe581d41dfeb56b009845be9d9e3c65) + +#### [v1.8.0](https://github.com/CookPete/auto-changelog/compare/v1.7.2...v1.8.0) + +> 23 July 2018 + +- Add support for external templates [`#49`](https://github.com/CookPete/auto-changelog/issues/49) [`#50`](https://github.com/CookPete/auto-changelog/pull/50) +- Bump nyc [`#46`](https://github.com/CookPete/auto-changelog/pull/46) +- Add README.md to lint checks [`5aab29f`](https://github.com/CookPete/auto-changelog/commit/5aab29f18d4187fa2480cd7754eba8e579ea0534) +- Tweak readme headings [`9f08899`](https://github.com/CookPete/auto-changelog/commit/9f08899466ccc515609456192e15d60c60db411b) +- Remove git from engines [`bac0248`](https://github.com/CookPete/auto-changelog/commit/bac024828c93587ea4603865e5946382f9e88070) + +#### [v1.7.2](https://github.com/CookPete/auto-changelog/compare/v1.7.1...v1.7.2) + +> 28 June 2018 + +- Fix unreleased section sorting [`#48`](https://github.com/CookPete/auto-changelog/issues/48) +- Add markdown linting [`#47`](https://github.com/CookPete/auto-changelog/issues/47) +- Fix changelog spacing [`5e8ffe5`](https://github.com/CookPete/auto-changelog/commit/5e8ffe564b2752f4f1828d64174cc784f6168fdf) +- Use %B for supported git versions [`1b9c3d7`](https://github.com/CookPete/auto-changelog/commit/1b9c3d71732244b6a2c265dae9aae879bd5f33b2) +- Enable partial line coverage with codecov [`e0d24de`](https://github.com/CookPete/auto-changelog/commit/e0d24debb40967014aea1bcc1738bbc1d0279ba2) + +#### [v1.7.1](https://github.com/CookPete/auto-changelog/compare/v1.7.0...v1.7.1) + +> 31 May 2018 + +- Fix releases sorting when unreleased enabled [`#45`](https://github.com/CookPete/auto-changelog/pull/45) +- Use async fs utils instead of fs-extra [`#42`](https://github.com/CookPete/auto-changelog/pull/42) +- Update git log format to support earlier git versions [`#43`](https://github.com/CookPete/auto-changelog/issues/43) + +#### [v1.7.0](https://github.com/CookPete/auto-changelog/compare/v1.6.0...v1.7.0) + +> 23 May 2018 + +- Add replaceText package option [`77d73ee`](https://github.com/CookPete/auto-changelog/commit/77d73ee4a44d5d207ba0982bf1e27812739d542a) + +#### [v1.6.0](https://github.com/CookPete/auto-changelog/compare/v1.5.0...v1.6.0) + +> 17 May 2018 + +- Add --breaking-pattern option [`#41`](https://github.com/CookPete/auto-changelog/issues/41) +- Add --include-branch option [`#38`](https://github.com/CookPete/auto-changelog/issues/38) +- Fix duplicate test data commit hashes [`7f448ce`](https://github.com/CookPete/auto-changelog/commit/7f448ce7154e7da4d677aa4c96a2721499436edb) + +#### [v1.5.0](https://github.com/CookPete/auto-changelog/compare/v1.4.6...v1.5.0) + +> 16 May 2018 + +- Feat: match template helper [`#40`](https://github.com/CookPete/auto-changelog/pull/40) +- Add commit-list template helper [`#36`](https://github.com/CookPete/auto-changelog/issues/36) [`#39`](https://github.com/CookPete/auto-changelog/issues/39) +- Use UTC dates by default [`#37`](https://github.com/CookPete/auto-changelog/issues/37) +- Move helper tests to separate files [`71388c2`](https://github.com/CookPete/auto-changelog/commit/71388c2dca9d9d50df540f904de5b3c0c0fea86a) +- Remove unused imports from template tests [`5ca7c61`](https://github.com/CookPete/auto-changelog/commit/5ca7c619dd9f8ca02cdcb67469025f71ab10cc2f) + +#### [v1.4.6](https://github.com/CookPete/auto-changelog/compare/v1.4.5...v1.4.6) + +> 15 March 2018 + +- Added support for old git versions [`#35`](https://github.com/CookPete/auto-changelog/pull/35) + +#### [v1.4.5](https://github.com/CookPete/auto-changelog/compare/v1.4.4...v1.4.5) + +> 27 February 2018 + +- Correctly prefix package version [`#33`](https://github.com/CookPete/auto-changelog/issues/33) + +#### [v1.4.4](https://github.com/CookPete/auto-changelog/compare/v1.4.3...v1.4.4) + +> 22 February 2018 + +- Do not show date for unreleased section [`#31`](https://github.com/CookPete/auto-changelog/issues/31) +- Fix unreleased compare URL [`24fbc63`](https://github.com/CookPete/auto-changelog/commit/24fbc63adfad6df630d496d7cf1c488d97189dfe) + +#### [v1.4.3](https://github.com/CookPete/auto-changelog/compare/v1.4.2...v1.4.3) + +> 21 February 2018 + +- Add tag prefix to compare URLs [`#30`](https://github.com/CookPete/auto-changelog/issues/30) + +#### [v1.4.2](https://github.com/CookPete/auto-changelog/compare/v1.4.1...v1.4.2) + +> 20 February 2018 + +- Support for gitlab subgroups and self-hosted instances [`#28`](https://github.com/CookPete/auto-changelog/pull/28) +- Update standard to the latest version 🚀 [`#29`](https://github.com/CookPete/auto-changelog/pull/29) + +#### [v1.4.1](https://github.com/CookPete/auto-changelog/compare/v1.4.0...v1.4.1) + +> 30 January 2018 + +- Support commits with no message [`#27`](https://github.com/CookPete/auto-changelog/issues/27) + +#### [v1.4.0](https://github.com/CookPete/auto-changelog/compare/v1.3.0...v1.4.0) + +> 18 January 2018 + +- Update mocha to the latest version 🚀 [`#26`](https://github.com/CookPete/auto-changelog/pull/26) +- Add support for generating logs without a git remote [`#23`](https://github.com/CookPete/auto-changelog/issues/23) +- Update niceDate tests to avoid timezone issues [`#24`](https://github.com/CookPete/auto-changelog/issues/24) [`#25`](https://github.com/CookPete/auto-changelog/pull/25) +- Add --tag-prefix option [`#22`](https://github.com/CookPete/auto-changelog/issues/22) +- Change use of "origin" to "remote" [`7c9c175`](https://github.com/CookPete/auto-changelog/commit/7c9c1757257be10e3beae072941d119d195becd7) +- Add --ignore-commit-pattern option [`8cbe121`](https://github.com/CookPete/auto-changelog/commit/8cbe121e857b8d99361e65fa462d035610f741c9) +- Add merge commit to test data [`4462118`](https://github.com/CookPete/auto-changelog/commit/4462118a26b5d76b276c8e1ba938f5c7d4458572) + +#### [v1.3.0](https://github.com/CookPete/auto-changelog/compare/v1.2.2...v1.3.0) + +> 21 December 2017 + +- Update fs-extra to the latest version 🚀 [`#19`](https://github.com/CookPete/auto-changelog/pull/19) +- Add --starting-commit option [`#21`](https://github.com/CookPete/auto-changelog/issues/21) +- Add --issue-pattern option [`#18`](https://github.com/CookPete/auto-changelog/issues/18) +- Add --latest-version option [`#17`](https://github.com/CookPete/auto-changelog/issues/17) +- Override package options with command line options [`20e3962`](https://github.com/CookPete/auto-changelog/commit/20e3962175c8168ec5494d1527b16e996e113777) +- Update tests [`2a74da4`](https://github.com/CookPete/auto-changelog/commit/2a74da474c3366f740cedb1c31a9c2539a1c9261) + +#### [v1.2.2](https://github.com/CookPete/auto-changelog/compare/v1.2.1...v1.2.2) + +> 5 December 2017 + +- Fix error when using --unreleased flag [`#16`](https://github.com/CookPete/auto-changelog/issues/16) + +#### [v1.2.1](https://github.com/CookPete/auto-changelog/compare/v1.2.0...v1.2.1) + +> 4 December 2017 + +- Filter out merge commits [`#14`](https://github.com/CookPete/auto-changelog/pull/14) +- Add commit to test data to trigger sorting [`9aa7ed4`](https://github.com/CookPete/auto-changelog/commit/9aa7ed493138286134a18a018d77ac7f5a11fc43) +- Add tests [`02613a3`](https://github.com/CookPete/auto-changelog/commit/02613a36e1071fb64a9d1251e4dae6d683a5b845) +- Add commit with matching PR message to test data [`e9a43b2`](https://github.com/CookPete/auto-changelog/commit/e9a43b2bf50449fc0d84465308e6008cc1597bb3) + +#### [v1.2.0](https://github.com/CookPete/auto-changelog/compare/v1.1.0...v1.2.0) + +> 1 December 2017 + +- Add issue-url option to override issue URLs [`#13`](https://github.com/CookPete/auto-changelog/issues/13) +- Add major release to test data [`e14f753`](https://github.com/CookPete/auto-changelog/commit/e14f753fc39fb94f3a3ffc3ab9a41015a9b97f2f) +- Update readme [`aaa69d0`](https://github.com/CookPete/auto-changelog/commit/aaa69d096cbf289e5fa086bbbd04e3ec27bcb7a4) +- Slightly larger heading for major releases [`d618f01`](https://github.com/CookPete/auto-changelog/commit/d618f019abc59da903cbafaa49ac9731e815b95a) + +#### [v1.1.0](https://github.com/CookPete/auto-changelog/compare/v1.0.3...v1.1.0) + +> 9 November 2017 + +- Support modifying commit limit with --commit-limit [`#12`](https://github.com/CookPete/auto-changelog/pull/12) +- Move test origins to separate file [`f8b98b5`](https://github.com/CookPete/auto-changelog/commit/f8b98b536612a89c0f93eb6451be90d857468eac) +- Add origin tests [`f50dced`](https://github.com/CookPete/auto-changelog/commit/f50dced289d3780726b67abfba3359c6b83c6ca7) +- Add run tests [`a6ae95e`](https://github.com/CookPete/auto-changelog/commit/a6ae95ec1045dbb76540dde63cafa4fbaa0fc030) + +#### [v1.0.3](https://github.com/CookPete/auto-changelog/compare/v1.0.2...v1.0.3) + +> 7 November 2017 + +- Fix pull request URL [`3f6daaa`](https://github.com/CookPete/auto-changelog/commit/3f6daaa35b3da08bafec0ef9229cb4b09bc1c9cb) +- Bump packages [`510c798`](https://github.com/CookPete/auto-changelog/commit/510c798fe6bb688234bb8b4eb3885055a47ee2bb) +- Fix version script [`f849dac`](https://github.com/CookPete/auto-changelog/commit/f849dac557b2c24512c553d9fccb93e1455a8c2e) + +#### [v1.0.2](https://github.com/CookPete/auto-changelog/compare/v1.0.1...v1.0.2) + +> 31 October 2017 + +- Tweak package read logic [`5ca75a2`](https://github.com/CookPete/auto-changelog/commit/5ca75a2a051a496fe7899185d486dc6447a44d7a) +- Fall back to https origin protocol [`74e29b4`](https://github.com/CookPete/auto-changelog/commit/74e29b4c40a8522a8aa33b6b66e845859dbcde1d) + +#### [v1.0.1](https://github.com/CookPete/auto-changelog/compare/v1.0.0...v1.0.1) + +> 27 October 2017 + +- Filter out commits with the same message as an existing merge [`2a420f7`](https://github.com/CookPete/auto-changelog/commit/2a420f793ac3b761291cfd5499676a80953cbee7) +- Update readme [`54fc665`](https://github.com/CookPete/auto-changelog/commit/54fc6659e9283b6d6afc95486893aa56df13111c) + +### [v1.0.0](https://github.com/CookPete/auto-changelog/compare/v0.3.6...v1.0.0) + +> 27 October 2017 + +- Update dependencies to enable Greenkeeper 🌴 [`#10`](https://github.com/CookPete/auto-changelog/pull/10) +- Refactor codebase [`dab29fb`](https://github.com/CookPete/auto-changelog/commit/dab29fb3a030ffe2799075ef46c70c734d8d2b89) +- Add greenkeeper-lockfile support [`126c6fb`](https://github.com/CookPete/auto-changelog/commit/126c6fbd054c16624ab39cbb51a2eab99bc832c6) +- Tweak readme badges [`bf73f55`](https://github.com/CookPete/auto-changelog/commit/bf73f555422ef5338455182b9649badc122bdadf) + +#### [v0.3.6](https://github.com/CookPete/auto-changelog/compare/v0.3.5...v0.3.6) + +> 23 October 2017 + +- Use origin hostname instead of host [`#9`](https://github.com/CookPete/auto-changelog/issues/9) +- Correct bitbucket compare URLs [`9d34452`](https://github.com/CookPete/auto-changelog/commit/9d344527171c158e1d56fdfde5cce870c5ba84bf) + +#### [v0.3.5](https://github.com/CookPete/auto-changelog/compare/v0.3.4...v0.3.5) + +> 6 October 2017 + +- Add babel-polyfill [`#8`](https://github.com/CookPete/auto-changelog/issues/8) + +#### [v0.3.4](https://github.com/CookPete/auto-changelog/compare/v0.3.3...v0.3.4) + +> 5 October 2017 + +- Add code coverage [`786af11`](https://github.com/CookPete/auto-changelog/commit/786af11c841fe158fbb8eb3d6a0e2c0ee8b1a93a) +- Use async/await instead of promises [`dff4653`](https://github.com/CookPete/auto-changelog/commit/dff465371252ce6ab4cd05e49d4c41fd8d3bb37a) +- Remove need for array.find polyfill [`78a1cb8`](https://github.com/CookPete/auto-changelog/commit/78a1cb8ac9327ecb0efadffed037f90191bdce5a) + +#### [v0.3.3](https://github.com/CookPete/auto-changelog/compare/v0.3.2...v0.3.3) + +> 24 September 2017 + +- Bump packages [`#7`](https://github.com/CookPete/auto-changelog/issues/7) +- Use babel-preset-env [`3eb90ce`](https://github.com/CookPete/auto-changelog/commit/3eb90ce74791fa803e3013aab12d0ff3cecc403b) +- Lint fix [`67c38dd`](https://github.com/CookPete/auto-changelog/commit/67c38ddf70b7420de0a9bae061efe858e879e0b7) + +#### [v0.3.2](https://github.com/CookPete/auto-changelog/compare/v0.3.1...v0.3.2) + +> 14 September 2017 + +- Prevent duplicate commits being listed [`#3`](https://github.com/CookPete/auto-changelog/issues/3) + +#### [v0.3.1](https://github.com/CookPete/auto-changelog/compare/v0.3.0...v0.3.1) + +> 9 September 2016 + +- Improve origin URL parsing [`#2`](https://github.com/CookPete/auto-changelog/issues/2) [`#5`](https://github.com/CookPete/auto-changelog/issues/5) +- Remove semicolons [`2ff61e2`](https://github.com/CookPete/auto-changelog/commit/2ff61e2f6b415bd24cfdf1788a3a4239138e6aa2) +- More robust log separators [`adc1dcc`](https://github.com/CookPete/auto-changelog/commit/adc1dccb744335ed1b0cb52a32f23605f92bbe97) +- Improve error handling [`96b7666`](https://github.com/CookPete/auto-changelog/commit/96b7666e50126dc515bb7bf2f9a79090ad7d8806) + +#### [v0.3.0](https://github.com/CookPete/auto-changelog/compare/v0.2.2...v0.3.0) + +> 11 January 2016 + +- Add semicolons after class properties [`07b2de5`](https://github.com/CookPete/auto-changelog/commit/07b2de5131f4354565b2ba94a5fc181a1448b5c2) +- Remove unique issue filter [`11acb7e`](https://github.com/CookPete/auto-changelog/commit/11acb7e4a9f2782a95e0932917828646103bd85a) +- Add support for minimumChangeCount in templates [`612d80b`](https://github.com/CookPete/auto-changelog/commit/612d80b02cabbc2faeddd39c57bd086661932aef) + +#### [v0.2.2](https://github.com/CookPete/auto-changelog/compare/v0.2.1...v0.2.2) + +> 2 January 2016 + +- Add a commit-only release to test data [`99927a9`](https://github.com/CookPete/auto-changelog/commit/99927a9b2126e656f70964f303a477aa4a5f811b) +- Update templating logic [`12c0624`](https://github.com/CookPete/auto-changelog/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617) +- More sensible formatDate [`db92947`](https://github.com/CookPete/auto-changelog/commit/db92947e6129cc20cd7777b7ed90b2bd547918c0) + +#### [v0.2.1](https://github.com/CookPete/auto-changelog/compare/v0.2.0...v0.2.1) + +> 2 January 2016 + +- Replace toLocaleString usage with months array [`0008264`](https://github.com/CookPete/auto-changelog/commit/0008264bcabddf8d2b6b19fde7aa41b0de7a5b77) + +#### [v0.2.0](https://github.com/CookPete/auto-changelog/compare/v0.1.1...v0.2.0) + +> 2 January 2016 + +- Add support for specifying templates [`369b51e`](https://github.com/CookPete/auto-changelog/commit/369b51e9ff05bccba19cd09d9d519bca579bf972) +- Add FAQ to readme [`9351ad0`](https://github.com/CookPete/auto-changelog/commit/9351ad0b5f6e7f59e1b51b1c7ea1a3e7720dfbbc) +- Rearrange usage docs [`c6bfb0b`](https://github.com/CookPete/auto-changelog/commit/c6bfb0be0b429ce7f9697eb1097ec3e2288aff74) + +#### [v0.1.1](https://github.com/CookPete/auto-changelog/compare/v0.1.0...v0.1.1) + +> 31 December 2015 + +- Explicitly render links for PRs and issues [`0a384cd`](https://github.com/CookPete/auto-changelog/commit/0a384cdeb3e9c3641fc3f655b0d9aeff58f8ebd3) +- Fix --package bug [`7f12f81`](https://github.com/CookPete/auto-changelog/commit/7f12f81f06441af4c74508ccc673e7052dec8d18) + +#### [v0.1.0](https://github.com/CookPete/auto-changelog/compare/v0.0.1...v0.1.0) + +> 31 December 2015 + +- Add option for specifying output file [`#1`](https://github.com/CookPete/auto-changelog/issues/1) +- Add support for --package [`772fbb9`](https://github.com/CookPete/auto-changelog/commit/772fbb988f41d893bccd88417a2b5992543bc936) +- Update badges [`d17791f`](https://github.com/CookPete/auto-changelog/commit/d17791f478b7fc4a48877b5c79a1ce857223553a) +- Remove todo list from readme [`4446226`](https://github.com/CookPete/auto-changelog/commit/4446226048642ad19a7bfbc1c2f8040a6d15cbc3) + +#### v0.0.1 + +> 31 December 2015 + +- First commit [`436b409`](https://github.com/CookPete/auto-changelog/commit/436b409bb6b3f853d14e2eda6ca1d87f78d00a14) diff --git a/node_modules/auto-changelog/LICENSE.md b/node_modules/auto-changelog/LICENSE.md new file mode 100644 index 0000000..1ce8a7b --- /dev/null +++ b/node_modules/auto-changelog/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2017 Pete Cook https://cookpete.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/auto-changelog/README.md b/node_modules/auto-changelog/README.md new file mode 100644 index 0000000..d191865 --- /dev/null +++ b/node_modules/auto-changelog/README.md @@ -0,0 +1,330 @@ +# auto-changelog + +Command line tool for generating a changelog from git tags and commit history + +[![Latest npm version](https://img.shields.io/npm/v/auto-changelog.svg)](https://www.npmjs.com/package/auto-changelog) +[![Build Status](https://img.shields.io/travis/CookPete/auto-changelog/master.svg)](https://travis-ci.org/CookPete/auto-changelog) +[![Test Coverage](https://img.shields.io/codecov/c/github/cookpete/auto-changelog.svg)](https://codecov.io/gh/CookPete/auto-changelog) + +### Installation + +```bash +npm install -g auto-changelog +``` + +### Usage + +Simply run `auto-changelog` in the root folder of a git repository. `git log` is run behind the scenes in order to parse the commit history. + +```bash +Usage: auto-changelog [options] + +Options: + + -o, --output [file] # output file, default: CHANGELOG.md + -c, --config [file] # config file location, default: .auto-changelog + -t, --template [template] # specify template to use [compact, keepachangelog, json], default: compact + -r, --remote [remote] # specify git remote to use for links, default: origin + -p, --package # use version from package.json as latest release + -v, --latest-version [version] # use specified version as latest release + -u, --unreleased # include section for unreleased changes + -l, --commit-limit [count] # number of commits to display per release, default: 3 + -b, --backfill-limit [count] # number of commits to backfill empty releases with, default: 3 + --commit-url [url] # override url for commits, use {id} for commit id + --issue-url [url] # override url for issues, use {id} for issue id + --merge-url [url] # override url for merges, use {id} for merge id + --compare-url [url] # override url for compares, use {from} and {to} for tags + --issue-pattern [regex] # override regex pattern for issues in commit messages + --breaking-pattern [regex] # regex pattern for breaking change commits + --merge-pattern [regex] # add custom regex pattern for merge commits + --ignore-commit-pattern [regex] # pattern to ignore when parsing commits + --tag-pattern [regex] # override regex pattern for release tags + --tag-prefix [prefix] # prefix used in version tags, default: v + --starting-commit [hash] # starting commit to use for changelog generation + --sort-commits [property] # sort commits by property [relevance, date, date-desc], default: relevance + --include-branch [branch] # one or more branches to include commits from, comma separated + --release-summary # display tagged commit message body as release summary + --handlebars-setup [file] # handlebars setup file + --append-git-log [string] # string to append to git log command + --stdout # output changelog to stdout + -V, --version # output the version number + -h, --help # output usage information + + +# Write log to CHANGELOG.md in current directory +auto-changelog + +# Write log to HISTORY.md using keepachangelog template +auto-changelog --output HISTORY.md --template keepachangelog + +# Disable the commit limit, rendering all commits for every release +auto-changelog --commit-limit false +``` + +### Requirements + +`auto-changelog` is designed to be as flexible as possible, providing a clear changelog for any project. There are only two absolute requirements: + +- You should be using git `1.7.2` or later +- All versions should be tagged using [semver](https://semver.org) tag names – this happens by default when using [`npm version`](https://docs.npmjs.com/cli/version) + +There are some less strict requirements to improve your changelog: + +- [Close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords) +- Merge pull requests using the standard merge commit message for your platform + +### What you might do if you’re clever + +Install `auto-changelog` to dev dependencies: + +```bash +npm install auto-changelog --save-dev +# or +yarn add auto-changelog --dev +``` + +Add `auto-changelog -p && git add CHANGELOG.md` to the `version` scripts in your `package.json`: + +```json +{ + "name": "my-awesome-package", + "version": "1.0.0", + "devDependencies": { + "auto-changelog": "*" + }, + "scripts": { + "version": "auto-changelog -p && git add CHANGELOG.md" + } +} +``` + +Using `-p` or `--package` uses the `version` from `package.json` as the latest release, so that all commits between the previous release and now become part of that release. Essentially anything that would normally be parsed as `Unreleased` will now come under the `version` from `package.json` + +Now every time you run [`npm version`](https://docs.npmjs.com/cli/version), the changelog will automatically update and be part of the version commit. + +### Advanced Usage + +#### URL Overrides + +Links to commits, issues, pull requests and version diffs are automatically generated based on your remote URL. GitHub, GitLab, BitBucket and Azure DevOps are all supported. If you have an unusual remote or need to override one of the link formats, use `--commit-url`, `--issue-url` or `--merge-url` with an `{id}` token. For custom version diffs, use `--compare-url` with `{from}` and `{to}` tokens. + +```bash +# Link all issues to redmine +auto-changelog --issue-url https://www.redmine.org/issues/{id} + +# Link to custom diff page +auto-changelog --compare-url https://example.com/repo/compare/{from}...{to} +``` + +#### Configuration + +You can set any option in `package.json` under the `auto-changelog` key, using camelCase options. Note that `includeBranch` should be an array here, not a comma separated list: + +```js +{ + "name": "my-awesome-package", + "version": "1.0.0", + "scripts": { + // ... + }, + "auto-changelog": { + "output": "HISTORY.md", + "template": "keepachangelog", + "unreleased": true, + "commitLimit": false, + "includeBranch": [ + "release-v2", + "release-v3" + ] + } +} +``` + +You can also store config options in an `.auto-changelog` file in your project root: + +```js +{ + "output": "HISTORY.md", + "template": "keepachangelog", + "unreleased": true, + "commitLimit": false +} +``` + +Note that any options set in `package.json` will take precedence over any set in `.auto-changelog`. + +#### Tag prefixes + +Use `--tag-prefix [prefix]` if you prefix your version tags with a certain string: + +```bash +# When all versions are tagged like my-package/1.2.3 +auto-changelog --tag-prefix my-package/ +``` + +#### Tag patterns + +By default, `auto-changelog` looks for valid semver tags to build a list of releases. If you are using another format (or want to include all tags), use `--tag-pattern [regex]`: + +```bash +# When all versions are tagged like build-12345 +auto-changelog --tag-pattern build-\d+ + +# Include any tag as a release +auto-changelog --tag-pattern .+ +``` + +#### Breaking changes + +If you use a common pattern in your commit messages for breaking changes, use `--breaking-pattern` to highlight those commits as breaking changes in your changelog. Breaking change commits will always be listed as part of a release, regardless of any `--commit-limit` set. + +```bash +auto-changelog --breaking-pattern "BREAKING CHANGE:" +``` + +#### Custom issue patterns + +By default, `auto-changelog` will parse [GitHub-style issue fixes](https://help.github.com/articles/closing-issues-using-keywords/) in your commit messages. If you use Jira or an alternative pattern in your commits to reference issues, you can pass in a custom regular expression to `--issue-pattern` along with `--issue-url`: + +```bash +# Parse Jira-style issues in your commit messages, like PROJECT-418 +auto-changelog --issue-pattern [A-Z]+-\d+ --issue-url https://issues.apache.org/jira/browse/{id} +``` + +Or, in your `package.json`: + +```js +{ + "name": "my-awesome-package", + "auto-changelog": { + "issueUrl": "https://issues.apache.org/jira/browse/{id}", + "issuePattern": "[A-Z]+-\d+" + } +} +``` + +If you use a certain pattern before or after the issue number, like `fixes {id}`, just use a capturing group: + +```bash +# "This commit fixes ISSUE-123" will now parse ISSUE-123 as an issue fix +auto-changelog --issue-pattern "[Ff]ixes ([A-Z]+-\d+)" +``` + +#### Custom templates + +If you aren’t happy with the default templates or want to tweak something, you can point to a [handlebars](https://handlebarsjs.com) template in your local repo. Check out the [existing templates](templates) to see what is possible. + +Save `changelog-template.hbs` somewhere in your repo: + +```hbs +### Changelog +My custom changelog template. Don’t worry about indentation here; it is automatically removed from the output. + +{{#each releases}} + Every release has a {{title}} and a {{href}} you can use to link to the commit diff. + It also has an {{isoDate}} and a {{niceDate}} you might want to use. + {{#each merges}} + - A merge has a {{message}}, an {{id}} and a {{href}} to the PR. + {{/each}} + {{#each fixes}} + - Each fix has a {{commit}} with a {{commit.subject}}, an {{id}} and a {{href}} to the fixed issue. + {{/each}} + {{#each commits}} + - Commits have a {{shorthash}}, a {{subject}} and a {{href}}, amongst other things. + {{/each}} +{{/each}} +``` + +Then just use `--template` to point to your template: + +```bash +auto-changelog --template changelog-template.hbs +``` + +You can also point to an external template by passing in a URL: + +```bash +auto-changelog --template https://example.com/templates/compact.hbs +``` + +To see exactly what data is passed in to the templates, you can generate a JSON version of the changelog: + +```bash +auto-changelog --template json --output changelog-data.json +``` + +#### `commit-list` helper + +Use `{{#commit-list}}` to render a list of commits depending on certain patterns in the commit messages: + +```hbs +{{#each releases}} + ### [{{title}}]({{href}}) + + {{! List commits with `Breaking change: ` somewhere in the message }} + {{#commit-list commits heading='### Breaking Changes' message='Breaking change: '}} + - {{subject}} [`{{shorthash}}`]({{href}}) + {{/commit-list}} + + {{! List commits that add new features, but not those already listed above }} + {{#commit-list commits heading='### New Features' message='feat: ' exclude='Breaking change: '}} + - {{subject}} [`{{shorthash}}`]({{href}}) + {{/commit-list}} +{{/each}} +``` + +| Option | Description | +| --------- | ----------- | +| `heading` | A heading for the list, only renders if at least one commit matches | +| `message` | A regex pattern to match against the entire commit message | +| `subject` | A regex pattern to match against the commit subject only | +| `exclude` | A regex pattern to exclude from the list – useful for avoiding listing commits more than once | + +#### Replacing text + +To insert links or other markup to PR titles and commit messages that appear in the log, use the `replaceText` option in your `package.json`: + +```js +{ + "name": "my-awesome-package", + "auto-changelog": { + "replaceText": { + "(ABC-\\d+)": "[`$1`](https://issues.apache.org/jira/browse/$1)" + } + } +} +``` + +Here, any time a pattern like `ABC-123` appears in your log, it will be replaced with a link to the relevant issue in Jira. Each pattern is applied using `string.replace(new RegExp(key, 'g'), value)`. + +#### Handlebars setup file + +The `--handlebars-setup` options allows you to point to a file to add custom Handlebars helpers, for use in custom templates using `--template`. Paths are relative to the directory in which you run `auto-changelog`. + +```js +auto-changelog --handlebars-setup setup.js --template custom-template.hbs + +// setup.js +module.exports = function (Handlebars) { + Handlebars.registerHelper('custom', function (context, options) { + return 'custom helpers!' + }) +} + +// custom-template.hbs +Now you can use {{custom}} +``` + +### FAQ + +#### What’s a changelog? + +See [keepachangelog.com](https://keepachangelog.com). + +#### What does this do? + +The command parses your git commit history and generates a changelog based on tagged versions, merged pull requests and closed issues. See a simple example in [this very repo](CHANGELOG.md). + +#### Why do I need it? + +Because keeping a changelog can be tedious and difficult to get right. If you don’t have the patience for a hand-crafted, bespoke changelog then this makes keeping one rather easy. It also can be [automated if you’re feeling extra lazy](#what-you-might-do-if-youre-clever). diff --git a/node_modules/auto-changelog/codecov.yml b/node_modules/auto-changelog/codecov.yml new file mode 100644 index 0000000..fbbe8cc --- /dev/null +++ b/node_modules/auto-changelog/codecov.yml @@ -0,0 +1,12 @@ +comment: false +coverage: + parsers: + javascript: + enable_partials: yes + status: + project: + default: + enabled: false + patch: + default: + enabled: false diff --git a/node_modules/auto-changelog/lib/commits.js b/node_modules/auto-changelog/lib/commits.js new file mode 100644 index 0000000..f73a802 --- /dev/null +++ b/node_modules/auto-changelog/lib/commits.js @@ -0,0 +1,402 @@ +"use strict"; + +require("core-js/modules/es.symbol"); + +require("core-js/modules/es.symbol.description"); + +require("core-js/modules/es.symbol.iterator"); + +require("core-js/modules/es.array.concat"); + +require("core-js/modules/es.array.filter"); + +require("core-js/modules/es.array.find-index"); + +require("core-js/modules/es.array.for-each"); + +require("core-js/modules/es.array.index-of"); + +require("core-js/modules/es.array.is-array"); + +require("core-js/modules/es.array.iterator"); + +require("core-js/modules/es.array.map"); + +require("core-js/modules/es.array.slice"); + +require("core-js/modules/es.date.to-iso-string"); + +require("core-js/modules/es.date.to-string"); + +require("core-js/modules/es.object.define-properties"); + +require("core-js/modules/es.object.define-property"); + +require("core-js/modules/es.object.get-own-property-descriptor"); + +require("core-js/modules/es.object.get-own-property-descriptors"); + +require("core-js/modules/es.object.keys"); + +require("core-js/modules/es.object.to-string"); + +require("core-js/modules/es.parse-int"); + +require("core-js/modules/es.promise"); + +require("core-js/modules/es.regexp.constructor"); + +require("core-js/modules/es.regexp.exec"); + +require("core-js/modules/es.regexp.to-string"); + +require("core-js/modules/es.string.iterator"); + +require("core-js/modules/es.string.match"); + +require("core-js/modules/es.string.replace"); + +require("core-js/modules/es.string.split"); + +require("core-js/modules/es.string.trim"); + +require("core-js/modules/web.dom-collections.for-each"); + +require("core-js/modules/web.dom-collections.iterator"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.fetchCommits = fetchCommits; + +require("regenerator-runtime/runtime"); + +var _semver = _interopRequireDefault(require("semver")); + +var _utils = require("./utils"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } + +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } + +function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +var COMMIT_SEPARATOR = '__AUTO_CHANGELOG_COMMIT_SEPARATOR__'; +var MESSAGE_SEPARATOR = '__AUTO_CHANGELOG_MESSAGE_SEPARATOR__'; +var MATCH_COMMIT = /(.*)\n(?:\s\((.*)\))?\n(.*)\n(.*)\n(.*)\n([\S\s]+)/; +var MATCH_STATS = /(\d+) files? changed(?:, (\d+) insertions?...)?(?:, (\d+) deletions?...)?/; +var BODY_FORMAT = '%B'; +var FALLBACK_BODY_FORMAT = '%s%n%n%b'; // https://help.github.com/articles/closing-issues-via-commit-messages + +var DEFAULT_FIX_PATTERN = /(?:close[sd]?|fixe?[sd]?|resolve[sd]?)\s(?:#(\d+)|(https?:\/\/.+?\/(?:issues|pull|pull-requests|merge_requests)\/(\d+)))/gi; +var MERGE_PATTERNS = [/Merge pull request #(\d+) from .+\n\n(.+)/, // Regular GitHub merge +/^(.+) \(#(\d+)\)(?:$|\n\n)/, // Github squash merge +/Merged in .+ \(pull request #(\d+)\)\n\n(.+)/, // BitBucket merge +/Merge branch .+ into .+\n\n(.+)[\S\s]+See merge request [^!]*!(\d+)/ // GitLab merge +]; + +function fetchCommits(_x, _x2) { + return _fetchCommits.apply(this, arguments); +} + +function _fetchCommits() { + _fetchCommits = _asyncToGenerator( + /*#__PURE__*/ + regeneratorRuntime.mark(function _callee(remote, options) { + var branch, + onProgress, + command, + format, + log, + _args = arguments; + return regeneratorRuntime.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + branch = _args.length > 2 && _args[2] !== undefined ? _args[2] : null; + onProgress = _args.length > 3 ? _args[3] : undefined; + command = branch ? "git log ".concat(branch) : 'git log'; + _context.next = 5; + return getLogFormat(); + + case 5: + format = _context.sent; + _context.next = 8; + return (0, _utils.cmd)("".concat(command, " --shortstat --pretty=format:").concat(format, " ").concat(options.appendGitLog), onProgress); + + case 8: + log = _context.sent; + return _context.abrupt("return", parseCommits(log, remote, options)); + + case 10: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + return _fetchCommits.apply(this, arguments); +} + +function getLogFormat() { + return _getLogFormat.apply(this, arguments); +} + +function _getLogFormat() { + _getLogFormat = _asyncToGenerator( + /*#__PURE__*/ + regeneratorRuntime.mark(function _callee2() { + var gitVersion, bodyFormat; + return regeneratorRuntime.wrap(function _callee2$(_context2) { + while (1) { + switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return (0, _utils.getGitVersion)(); + + case 2: + gitVersion = _context2.sent; + bodyFormat = gitVersion && _semver["default"].gte(gitVersion, '1.7.2') ? BODY_FORMAT : FALLBACK_BODY_FORMAT; + return _context2.abrupt("return", "".concat(COMMIT_SEPARATOR, "%H%n%d%n%ai%n%an%n%ae%n").concat(bodyFormat).concat(MESSAGE_SEPARATOR)); + + case 5: + case "end": + return _context2.stop(); + } + } + }, _callee2); + })); + return _getLogFormat.apply(this, arguments); +} + +function parseCommits(string, remote) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var commits = string.split(COMMIT_SEPARATOR).slice(1).map(function (commit) { + return parseCommit(commit, remote, options); + }); + + if (options.startingCommit) { + var index = commits.findIndex(function (c) { + return c.hash.indexOf(options.startingCommit) === 0; + }); + + if (index === -1) { + throw new Error("Starting commit ".concat(options.startingCommit, " was not found")); + } + + return commits.slice(0, index + 1); + } + + return commits; +} + +function parseCommit(commit, remote) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + + var _commit$match = commit.match(MATCH_COMMIT), + _commit$match2 = _slicedToArray(_commit$match, 7), + hash = _commit$match2[1], + refs = _commit$match2[2], + date = _commit$match2[3], + author = _commit$match2[4], + email = _commit$match2[5], + tail = _commit$match2[6]; + + var _tail$split = tail.split(MESSAGE_SEPARATOR), + _tail$split2 = _slicedToArray(_tail$split, 2), + body = _tail$split2[0], + stats = _tail$split2[1]; + + var message = (0, _utils.encodeHTML)(body); + + var parsed = _objectSpread({ + hash: hash, + shorthash: hash.slice(0, 7), + author: author, + email: email, + date: new Date(date).toISOString(), + tag: getTag(refs, options), + subject: (0, _utils.replaceText)(getSubject(message), options), + message: message.trim(), + fixes: getFixes(message, author, remote, options), + href: remote.getCommitLink(hash), + breaking: !!options.breakingPattern && new RegExp(options.breakingPattern).test(message) + }, getStats(stats.trim())); + + return _objectSpread({}, parsed, { + merge: getMerge(parsed, message, remote, options) + }); +} + +function getTag(refs, options) { + if (!refs) return null; + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = refs.split(', ')[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var ref = _step.value; + var prefix = "tag: ".concat(options.tagPrefix); + + if (ref.indexOf(prefix) === 0) { + var tag = ref.replace(prefix, ''); + + if (options.tagPattern) { + if (new RegExp(options.tagPattern).test(tag)) { + return tag; + } + + return null; + } + + if (_semver["default"].valid(tag)) { + return tag; + } + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator["return"] != null) { + _iterator["return"](); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + + return null; +} + +function getSubject(message) { + if (!message) { + return '_No commit message_'; + } + + return message.match(/[^\n]+/)[0]; +} + +function getStats(stats) { + if (!stats) return {}; + + var _stats$match = stats.match(MATCH_STATS), + _stats$match2 = _slicedToArray(_stats$match, 4), + files = _stats$match2[1], + insertions = _stats$match2[2], + deletions = _stats$match2[3]; + + return { + files: parseInt(files || 0), + insertions: parseInt(insertions || 0), + deletions: parseInt(deletions || 0) + }; +} + +function getFixes(message, author, remote) { + var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var pattern = getFixPattern(options); + var fixes = []; + var match = pattern.exec(message); + if (!match) return null; + + while (match) { + var id = getFixID(match); + var href = (0, _utils.isLink)(match[2]) ? match[2] : remote.getIssueLink(id); + fixes.push({ + id: id, + href: href, + author: author + }); + match = pattern.exec(message); + } + + return fixes; +} + +function getFixID(match) { + // Get the last non-falsey value in the match array + for (var i = match.length; i >= 0; i--) { + if (match[i]) { + return match[i]; + } + } +} + +function getFixPattern(options) { + if (options.issuePattern) { + return new RegExp(options.issuePattern, 'g'); + } + + return DEFAULT_FIX_PATTERN; +} + +function getMergePatterns(options) { + if (options.mergePattern) { + return MERGE_PATTERNS.concat(new RegExp(options.mergePattern, 'g')); + } + + return MERGE_PATTERNS; +} + +function getMerge(commit, message, remote) { + var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var patterns = getMergePatterns(options); + var _iteratorNormalCompletion2 = true; + var _didIteratorError2 = false; + var _iteratorError2 = undefined; + + try { + for (var _iterator2 = patterns[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + var pattern = _step2.value; + var match = pattern.exec(message); + + if (match) { + var id = /^\d+$/.test(match[1]) ? match[1] : match[2]; + + var _message = /^\d+$/.test(match[1]) ? match[2] : match[1]; + + return { + id: id, + message: (0, _utils.replaceText)(_message, options), + href: remote.getMergeLink(id), + author: commit.author, + commit: commit + }; + } + } + } catch (err) { + _didIteratorError2 = true; + _iteratorError2 = err; + } finally { + try { + if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) { + _iterator2["return"](); + } + } finally { + if (_didIteratorError2) { + throw _iteratorError2; + } + } + } + + return null; +} \ No newline at end of file diff --git a/node_modules/auto-changelog/lib/index.js b/node_modules/auto-changelog/lib/index.js new file mode 100755 index 0000000..2fedcd2 --- /dev/null +++ b/node_modules/auto-changelog/lib/index.js @@ -0,0 +1,14 @@ +#!/usr/bin/env node +"use strict"; + +require("core-js/stable"); + +var _run = _interopRequireDefault(require("./run")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +(0, _run["default"])(process.argv)["catch"](function (error) { + console.log('\n'); + console.error(error); + process.exit(1); +}); \ No newline at end of file diff --git a/node_modules/auto-changelog/lib/releases.js b/node_modules/auto-changelog/lib/releases.js new file mode 100644 index 0000000..7a6d579 --- /dev/null +++ b/node_modules/auto-changelog/lib/releases.js @@ -0,0 +1,267 @@ +"use strict"; + +require("core-js/modules/es.symbol"); + +require("core-js/modules/es.symbol.description"); + +require("core-js/modules/es.symbol.iterator"); + +require("core-js/modules/es.array.concat"); + +require("core-js/modules/es.array.filter"); + +require("core-js/modules/es.array.find"); + +require("core-js/modules/es.array.find-index"); + +require("core-js/modules/es.array.for-each"); + +require("core-js/modules/es.array.from"); + +require("core-js/modules/es.array.is-array"); + +require("core-js/modules/es.array.iterator"); + +require("core-js/modules/es.array.map"); + +require("core-js/modules/es.array.reduce"); + +require("core-js/modules/es.array.slice"); + +require("core-js/modules/es.array.sort"); + +require("core-js/modules/es.date.to-iso-string"); + +require("core-js/modules/es.date.to-string"); + +require("core-js/modules/es.object.define-properties"); + +require("core-js/modules/es.object.define-property"); + +require("core-js/modules/es.object.get-own-property-descriptor"); + +require("core-js/modules/es.object.get-own-property-descriptors"); + +require("core-js/modules/es.object.keys"); + +require("core-js/modules/es.object.to-string"); + +require("core-js/modules/es.regexp.constructor"); + +require("core-js/modules/es.regexp.exec"); + +require("core-js/modules/es.regexp.to-string"); + +require("core-js/modules/es.string.iterator"); + +require("core-js/modules/es.string.match"); + +require("core-js/modules/web.dom-collections.for-each"); + +require("core-js/modules/web.dom-collections.iterator"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.parseReleases = parseReleases; +exports.sortReleases = sortReleases; + +var _semver = _interopRequireDefault(require("semver")); + +var _utils = require("./utils"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + +function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var MERGE_COMMIT_PATTERN = /^Merge (remote-tracking )?branch '.+'/; +var COMMIT_MESSAGE_PATTERN = /\n+([\S\s]+)/; + +function commitReducer(_ref, commit) { + var map = _ref.map, + version = _ref.version; + var currentVersion = commit.tag || version; + var commits = map[currentVersion] || []; + return { + map: _objectSpread({}, map, _defineProperty({}, currentVersion, [].concat(_toConsumableArray(commits), [commit]))), + version: currentVersion + }; +} + +function parseReleases(commits, remote, latestVersion, options) { + var _commits$reduce = commits.reduce(commitReducer, { + map: {}, + version: latestVersion + }), + map = _commits$reduce.map; + + return Object.keys(map).map(function (key, index, versions) { + var commits = map[key]; + var previousVersion = versions[index + 1] || null; + var versionCommit = commits.find(function (commit) { + return commit.tag; + }) || {}; + var merges = commits.filter(function (commit) { + return commit.merge; + }).map(function (commit) { + return commit.merge; + }); + var fixes = commits.filter(function (commit) { + return commit.fixes; + }).map(function (commit) { + return { + fixes: commit.fixes, + commit: commit + }; + }); + var tag = versionCommit.tag || latestVersion; + var date = versionCommit.date || new Date().toISOString(); + var filteredCommits = commits.filter(function (commit) { + return filterCommit(commit, options, merges); + }).sort(commitSorter(options)); + var emptyRelease = merges.length === 0 && fixes.length === 0; + var tagPattern = options.tagPattern, + tagPrefix = options.tagPrefix; + return { + tag: tag, + title: tag || 'Unreleased', + date: date, + isoDate: date.slice(0, 10), + niceDate: (0, _utils.niceDate)(date), + commits: sliceCommits(filteredCommits, options, emptyRelease), + merges: merges, + fixes: fixes, + summary: getSummary(versionCommit.message, options), + major: Boolean(!tagPattern && tag && previousVersion && _semver["default"].diff(tag, previousVersion) === 'major'), + href: previousVersion ? remote.getCompareLink("".concat(tagPrefix).concat(previousVersion), tag ? "".concat(tagPrefix).concat(tag) : 'HEAD') : null + }; + }).filter(function (release) { + return options.unreleased ? true : release.tag; + }); +} + +function sortReleases(a, b) { + var tags = { + a: inferSemver(a.tag), + b: inferSemver(b.tag) + }; + + if (tags.a && tags.b) { + if (_semver["default"].valid(tags.a) && _semver["default"].valid(tags.b)) { + return _semver["default"].rcompare(tags.a, tags.b); + } + + if (tags.a === tags.b) { + return 0; + } + + return tags.a < tags.b ? 1 : -1; + } + + if (tags.a) return 1; + if (tags.b) return -1; + return 0; +} + +function inferSemver(tag) { + if (/^v?\d+$/.test(tag)) { + // v1 becomes v1.0.0 + return "".concat(tag, ".0.0"); + } + + if (/^v?\d+\.\d+$/.test(tag)) { + // v1.0 becomes v1.0.0 + return "".concat(tag, ".0"); + } + + return tag; +} + +function sliceCommits(commits, _ref2, emptyRelease) { + var commitLimit = _ref2.commitLimit, + backfillLimit = _ref2.backfillLimit; + + if (commitLimit === false) { + return commits; + } + + var limit = emptyRelease ? backfillLimit : commitLimit; + var minLimit = commits.filter(function (c) { + return c.breaking; + }).length; + return commits.slice(0, Math.max(minLimit, limit)); +} + +function filterCommit(commit, _ref3, merges) { + var ignoreCommitPattern = _ref3.ignoreCommitPattern; + + if (commit.fixes || commit.merge) { + // Filter out commits that already appear in fix or merge lists + return false; + } + + if (commit.breaking) { + return true; + } + + if (ignoreCommitPattern) { + // Filter out commits that match ignoreCommitPattern + return new RegExp(ignoreCommitPattern).test(commit.subject) === false; + } + + if (_semver["default"].valid(commit.subject)) { + // Filter out version commits + return false; + } + + if (MERGE_COMMIT_PATTERN.test(commit.subject)) { + // Filter out merge commits + return false; + } + + if (merges.findIndex(function (m) { + return m.message === commit.subject; + }) !== -1) { + // Filter out commits with the same message as an existing merge + return false; + } + + return true; +} + +function getSummary(message, _ref4) { + var releaseSummary = _ref4.releaseSummary; + + if (!message || !releaseSummary) { + return null; + } + + if (COMMIT_MESSAGE_PATTERN.test(message)) { + return message.match(COMMIT_MESSAGE_PATTERN)[1]; + } + + return null; +} + +function commitSorter(_ref5) { + var sortCommits = _ref5.sortCommits; + return function (a, b) { + if (!a.breaking && b.breaking) return 1; + if (a.breaking && !b.breaking) return -1; + if (sortCommits === 'date') return new Date(a.date) - new Date(b.date); + if (sortCommits === 'date-desc') return new Date(b.date) - new Date(a.date); + return b.insertions + b.deletions - (a.insertions + a.deletions); + }; +} \ No newline at end of file diff --git a/node_modules/auto-changelog/lib/remote.js b/node_modules/auto-changelog/lib/remote.js new file mode 100644 index 0000000..26cbc5d --- /dev/null +++ b/node_modules/auto-changelog/lib/remote.js @@ -0,0 +1,213 @@ +"use strict"; + +require("core-js/modules/es.symbol"); + +require("core-js/modules/es.array.concat"); + +require("core-js/modules/es.array.filter"); + +require("core-js/modules/es.array.for-each"); + +require("core-js/modules/es.object.define-properties"); + +require("core-js/modules/es.object.define-property"); + +require("core-js/modules/es.object.get-own-property-descriptor"); + +require("core-js/modules/es.object.get-own-property-descriptors"); + +require("core-js/modules/es.object.keys"); + +require("core-js/modules/es.object.to-string"); + +require("core-js/modules/es.promise"); + +require("core-js/modules/es.regexp.exec"); + +require("core-js/modules/es.string.replace"); + +require("core-js/modules/web.dom-collections.for-each"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.fetchRemote = fetchRemote; + +require("regenerator-runtime/runtime"); + +var _parseGithubUrl = _interopRequireDefault(require("parse-github-url")); + +var _utils = require("./utils"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +function fetchRemote(_x) { + return _fetchRemote.apply(this, arguments); +} + +function _fetchRemote() { + _fetchRemote = _asyncToGenerator( + /*#__PURE__*/ + regeneratorRuntime.mark(function _callee(options) { + var remoteURL; + return regeneratorRuntime.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return (0, _utils.cmd)("git config --get remote.".concat(options.remote, ".url")); + + case 2: + remoteURL = _context.sent; + return _context.abrupt("return", getRemote(remoteURL, options)); + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + })); + return _fetchRemote.apply(this, arguments); +} + +function getRemote(remoteURL) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var overrides = getOverrides(options); + + if (!remoteURL) { + // No point warning if everything is overriddens + if (Object.keys(overrides).length !== 4) { + console.warn("Warning: Git remote ".concat(options.remote, " was not found")); + } + + return _objectSpread({ + getCommitLink: function getCommitLink() { + return null; + }, + getIssueLink: function getIssueLink() { + return null; + }, + getMergeLink: function getMergeLink() { + return null; + }, + getCompareLink: function getCompareLink() { + return null; + } + }, overrides); + } + + var remote = (0, _parseGithubUrl["default"])(remoteURL); + var protocol = remote.protocol === 'http:' ? 'http:' : 'https:'; + var hostname = remote.hostname || remote.host; + var IS_BITBUCKET = /bitbucket/.test(hostname); + var IS_GITLAB = /gitlab/.test(hostname); + var IS_GITLAB_SUBGROUP = /\.git$/.test(remote.branch); + var IS_AZURE = /dev\.azure/.test(hostname); + var IS_VISUAL_STUDIO = /visualstudio/.test(hostname); + + if (IS_BITBUCKET) { + var _url = "".concat(protocol, "//").concat(hostname, "/").concat(remote.repo); + + return _objectSpread({ + getCommitLink: function getCommitLink(id) { + return "".concat(_url, "/commits/").concat(id); + }, + getIssueLink: function getIssueLink(id) { + return "".concat(_url, "/issues/").concat(id); + }, + getMergeLink: function getMergeLink(id) { + return "".concat(_url, "/pull-requests/").concat(id); + }, + getCompareLink: function getCompareLink(from, to) { + return "".concat(_url, "/compare/").concat(to, "..").concat(from); + } + }, overrides); + } + + if (IS_GITLAB) { + var _url2 = IS_GITLAB_SUBGROUP ? "".concat(protocol, "//").concat(hostname, "/").concat(remote.repo, "/").concat(remote.branch.replace(/\.git$/, '')) : "".concat(protocol, "//").concat(hostname, "/").concat(remote.repo); + + return _objectSpread({ + getCommitLink: function getCommitLink(id) { + return "".concat(_url2, "/commit/").concat(id); + }, + getIssueLink: function getIssueLink(id) { + return "".concat(_url2, "/issues/").concat(id); + }, + getMergeLink: function getMergeLink(id) { + return "".concat(_url2, "/merge_requests/").concat(id); + }, + getCompareLink: function getCompareLink(from, to) { + return "".concat(_url2, "/compare/").concat(from, "...").concat(to); + } + }, overrides); + } + + if (IS_AZURE || IS_VISUAL_STUDIO) { + var _url3 = IS_AZURE ? "".concat(protocol, "//").concat(hostname, "/").concat(remote.path) : "".concat(protocol, "//").concat(hostname, "/").concat(remote.repo, "/").concat(remote.branch); + + var project = IS_AZURE ? "".concat(protocol, "//").concat(hostname, "/").concat(remote.repo) : "".concat(protocol, "//").concat(hostname, "/").concat(remote.owner); + return _objectSpread({ + getCommitLink: function getCommitLink(id) { + return "".concat(_url3, "/commit/").concat(id); + }, + getIssueLink: function getIssueLink(id) { + return "".concat(project, "/_workitems/edit/").concat(id); + }, + getMergeLink: function getMergeLink(id) { + return "".concat(_url3, "/pullrequest/").concat(id); + }, + getCompareLink: function getCompareLink(from, to) { + return "".concat(_url3, "/branches?baseVersion=GT").concat(to, "&targetVersion=GT").concat(from, "&_a=commits"); + } + }, overrides); + } + + var url = "".concat(protocol, "//").concat(hostname, "/").concat(remote.repo); + return _objectSpread({ + getCommitLink: function getCommitLink(id) { + return "".concat(url, "/commit/").concat(id); + }, + getIssueLink: function getIssueLink(id) { + return "".concat(url, "/issues/").concat(id); + }, + getMergeLink: function getMergeLink(id) { + return "".concat(url, "/pull/").concat(id); + }, + getCompareLink: function getCompareLink(from, to) { + return "".concat(url, "/compare/").concat(from, "...").concat(to); + } + }, overrides); +} + +function getOverrides(_ref) { + var commitUrl = _ref.commitUrl, + issueUrl = _ref.issueUrl, + mergeUrl = _ref.mergeUrl, + compareUrl = _ref.compareUrl; + var overrides = {}; + if (commitUrl) overrides.getCommitLink = function (id) { + return commitUrl.replace('{id}', id); + }; + if (issueUrl) overrides.getIssueLink = function (id) { + return issueUrl.replace('{id}', id); + }; + if (mergeUrl) overrides.getMergeLink = function (id) { + return mergeUrl.replace('{id}', id); + }; + if (compareUrl) overrides.getCompareLink = function (from, to) { + return compareUrl.replace('{from}', from).replace('{to}', to); + }; + return overrides; +} \ No newline at end of file diff --git a/node_modules/auto-changelog/lib/run.js b/node_modules/auto-changelog/lib/run.js new file mode 100644 index 0000000..6b61264 --- /dev/null +++ b/node_modules/auto-changelog/lib/run.js @@ -0,0 +1,402 @@ +"use strict"; + +require("core-js/modules/es.symbol"); + +require("core-js/modules/es.symbol.description"); + +require("core-js/modules/es.symbol.iterator"); + +require("core-js/modules/es.array.concat"); + +require("core-js/modules/es.array.filter"); + +require("core-js/modules/es.array.for-each"); + +require("core-js/modules/es.array.from"); + +require("core-js/modules/es.array.is-array"); + +require("core-js/modules/es.array.iterator"); + +require("core-js/modules/es.array.some"); + +require("core-js/modules/es.array.sort"); + +require("core-js/modules/es.date.to-string"); + +require("core-js/modules/es.object.define-properties"); + +require("core-js/modules/es.object.define-property"); + +require("core-js/modules/es.object.get-own-property-descriptor"); + +require("core-js/modules/es.object.get-own-property-descriptors"); + +require("core-js/modules/es.object.keys"); + +require("core-js/modules/es.object.to-string"); + +require("core-js/modules/es.promise"); + +require("core-js/modules/es.regexp.exec"); + +require("core-js/modules/es.regexp.to-string"); + +require("core-js/modules/es.string.iterator"); + +require("core-js/modules/es.string.split"); + +require("core-js/modules/web.dom-collections.for-each"); + +require("core-js/modules/web.dom-collections.iterator"); + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = run; + +require("regenerator-runtime/runtime"); + +var _commander = require("commander"); + +var _semver = _interopRequireDefault(require("semver")); + +var _lodash = _interopRequireDefault(require("lodash.uniqby")); + +var _package = require("../package.json"); + +var _remote = require("./remote"); + +var _commits2 = require("./commits"); + +var _releases = require("./releases"); + +var _template = require("./template"); + +var _utils = require("./utils"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + +function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +var DEFAULT_OPTIONS = { + output: 'CHANGELOG.md', + template: 'compact', + remote: 'origin', + commitLimit: 3, + backfillLimit: 3, + tagPrefix: '', + sortCommits: 'relevance', + appendGitLog: '', + config: '.auto-changelog' +}; +var PACKAGE_FILE = 'package.json'; +var PACKAGE_OPTIONS_KEY = 'auto-changelog'; + +function getOptions(_x) { + return _getOptions.apply(this, arguments); +} + +function _getOptions() { + _getOptions = _asyncToGenerator( + /*#__PURE__*/ + regeneratorRuntime.mark(function _callee(argv) { + var options, pkg, packageOptions, dotOptions; + return regeneratorRuntime.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + options = new _commander.Command().option('-o, --output ', "output file, default: ".concat(DEFAULT_OPTIONS.output)).option('-c, --config ', "config file location, default: ".concat(DEFAULT_OPTIONS.config)).option('-t, --template