koa-classic-server 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -0
- package/package.json +5 -6
- package/Readme.md +0 -102
- package/test/node_modules/.package-lock.json +0 -1254
- package/test/node_modules/abbrev/LICENSE +0 -46
- package/test/node_modules/abbrev/README.md +0 -23
- package/test/node_modules/abbrev/abbrev.js +0 -61
- package/test/node_modules/abbrev/package.json +0 -21
- package/test/node_modules/accepts/HISTORY.md +0 -243
- package/test/node_modules/accepts/LICENSE +0 -23
- package/test/node_modules/accepts/README.md +0 -140
- package/test/node_modules/accepts/index.js +0 -238
- package/test/node_modules/accepts/package.json +0 -47
- package/test/node_modules/ansi-styles/index.d.ts +0 -345
- package/test/node_modules/ansi-styles/index.js +0 -163
- package/test/node_modules/ansi-styles/license +0 -9
- package/test/node_modules/ansi-styles/package.json +0 -56
- package/test/node_modules/ansi-styles/readme.md +0 -152
- package/test/node_modules/any-promise/.jshintrc +0 -4
- package/test/node_modules/any-promise/LICENSE +0 -19
- package/test/node_modules/any-promise/README.md +0 -161
- package/test/node_modules/any-promise/implementation.d.ts +0 -3
- package/test/node_modules/any-promise/implementation.js +0 -1
- package/test/node_modules/any-promise/index.d.ts +0 -73
- package/test/node_modules/any-promise/index.js +0 -1
- package/test/node_modules/any-promise/loader.js +0 -78
- package/test/node_modules/any-promise/optional.js +0 -6
- package/test/node_modules/any-promise/package.json +0 -45
- package/test/node_modules/any-promise/register/bluebird.d.ts +0 -1
- package/test/node_modules/any-promise/register/bluebird.js +0 -2
- package/test/node_modules/any-promise/register/es6-promise.d.ts +0 -1
- package/test/node_modules/any-promise/register/es6-promise.js +0 -2
- package/test/node_modules/any-promise/register/lie.d.ts +0 -1
- package/test/node_modules/any-promise/register/lie.js +0 -2
- package/test/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
- package/test/node_modules/any-promise/register/native-promise-only.js +0 -2
- package/test/node_modules/any-promise/register/pinkie.d.ts +0 -1
- package/test/node_modules/any-promise/register/pinkie.js +0 -2
- package/test/node_modules/any-promise/register/promise.d.ts +0 -1
- package/test/node_modules/any-promise/register/promise.js +0 -2
- package/test/node_modules/any-promise/register/q.d.ts +0 -1
- package/test/node_modules/any-promise/register/q.js +0 -2
- package/test/node_modules/any-promise/register/rsvp.d.ts +0 -1
- package/test/node_modules/any-promise/register/rsvp.js +0 -2
- package/test/node_modules/any-promise/register/vow.d.ts +0 -1
- package/test/node_modules/any-promise/register/vow.js +0 -2
- package/test/node_modules/any-promise/register/when.d.ts +0 -1
- package/test/node_modules/any-promise/register/when.js +0 -2
- package/test/node_modules/any-promise/register-shim.js +0 -18
- package/test/node_modules/any-promise/register.d.ts +0 -17
- package/test/node_modules/any-promise/register.js +0 -94
- package/test/node_modules/anymatch/LICENSE +0 -15
- package/test/node_modules/anymatch/README.md +0 -87
- package/test/node_modules/anymatch/index.d.ts +0 -20
- package/test/node_modules/anymatch/index.js +0 -104
- package/test/node_modules/anymatch/package.json +0 -48
- package/test/node_modules/async/CHANGELOG.md +0 -348
- package/test/node_modules/async/LICENSE +0 -19
- package/test/node_modules/async/README.md +0 -59
- package/test/node_modules/async/all.js +0 -119
- package/test/node_modules/async/allLimit.js +0 -46
- package/test/node_modules/async/allSeries.js +0 -45
- package/test/node_modules/async/any.js +0 -122
- package/test/node_modules/async/anyLimit.js +0 -47
- package/test/node_modules/async/anySeries.js +0 -46
- package/test/node_modules/async/apply.js +0 -55
- package/test/node_modules/async/applyEach.js +0 -57
- package/test/node_modules/async/applyEachSeries.js +0 -37
- package/test/node_modules/async/asyncify.js +0 -118
- package/test/node_modules/async/auto.js +0 -333
- package/test/node_modules/async/autoInject.js +0 -182
- package/test/node_modules/async/bower.json +0 -17
- package/test/node_modules/async/cargo.js +0 -63
- package/test/node_modules/async/cargoQueue.js +0 -71
- package/test/node_modules/async/compose.js +0 -55
- package/test/node_modules/async/concat.js +0 -115
- package/test/node_modules/async/concatLimit.js +0 -60
- package/test/node_modules/async/concatSeries.js +0 -41
- package/test/node_modules/async/constant.js +0 -55
- package/test/node_modules/async/detect.js +0 -96
- package/test/node_modules/async/detectLimit.js +0 -48
- package/test/node_modules/async/detectSeries.js +0 -47
- package/test/node_modules/async/dir.js +0 -43
- package/test/node_modules/async/dist/async.js +0 -6059
- package/test/node_modules/async/dist/async.min.js +0 -1
- package/test/node_modules/async/dist/async.mjs +0 -5947
- package/test/node_modules/async/doDuring.js +0 -68
- package/test/node_modules/async/doUntil.js +0 -46
- package/test/node_modules/async/doWhilst.js +0 -68
- package/test/node_modules/async/during.js +0 -78
- package/test/node_modules/async/each.js +0 -129
- package/test/node_modules/async/eachLimit.js +0 -50
- package/test/node_modules/async/eachOf.js +0 -185
- package/test/node_modules/async/eachOfLimit.js +0 -47
- package/test/node_modules/async/eachOfSeries.js +0 -39
- package/test/node_modules/async/eachSeries.js +0 -44
- package/test/node_modules/async/ensureAsync.js +0 -67
- package/test/node_modules/async/every.js +0 -119
- package/test/node_modules/async/everyLimit.js +0 -46
- package/test/node_modules/async/everySeries.js +0 -45
- package/test/node_modules/async/filter.js +0 -93
- package/test/node_modules/async/filterLimit.js +0 -45
- package/test/node_modules/async/filterSeries.js +0 -43
- package/test/node_modules/async/find.js +0 -96
- package/test/node_modules/async/findLimit.js +0 -48
- package/test/node_modules/async/findSeries.js +0 -47
- package/test/node_modules/async/flatMap.js +0 -115
- package/test/node_modules/async/flatMapLimit.js +0 -60
- package/test/node_modules/async/flatMapSeries.js +0 -41
- package/test/node_modules/async/foldl.js +0 -153
- package/test/node_modules/async/foldr.js +0 -41
- package/test/node_modules/async/forEach.js +0 -129
- package/test/node_modules/async/forEachLimit.js +0 -50
- package/test/node_modules/async/forEachOf.js +0 -185
- package/test/node_modules/async/forEachOfLimit.js +0 -47
- package/test/node_modules/async/forEachOfSeries.js +0 -39
- package/test/node_modules/async/forEachSeries.js +0 -44
- package/test/node_modules/async/forever.js +0 -68
- package/test/node_modules/async/groupBy.js +0 -108
- package/test/node_modules/async/groupByLimit.js +0 -71
- package/test/node_modules/async/groupBySeries.js +0 -36
- package/test/node_modules/async/index.js +0 -588
- package/test/node_modules/async/inject.js +0 -153
- package/test/node_modules/async/internal/DoublyLinkedList.js +0 -92
- package/test/node_modules/async/internal/Heap.js +0 -120
- package/test/node_modules/async/internal/applyEach.js +0 -29
- package/test/node_modules/async/internal/asyncEachOfLimit.js +0 -75
- package/test/node_modules/async/internal/awaitify.js +0 -27
- package/test/node_modules/async/internal/breakLoop.js +0 -10
- package/test/node_modules/async/internal/consoleFunc.js +0 -31
- package/test/node_modules/async/internal/createTester.js +0 -40
- package/test/node_modules/async/internal/eachOfLimit.js +0 -90
- package/test/node_modules/async/internal/filter.js +0 -55
- package/test/node_modules/async/internal/getIterator.js +0 -11
- package/test/node_modules/async/internal/initialParams.js +0 -14
- package/test/node_modules/async/internal/isArrayLike.js +0 -10
- package/test/node_modules/async/internal/iterator.js +0 -57
- package/test/node_modules/async/internal/map.js +0 -30
- package/test/node_modules/async/internal/once.js +0 -17
- package/test/node_modules/async/internal/onlyOnce.js +0 -15
- package/test/node_modules/async/internal/parallel.js +0 -34
- package/test/node_modules/async/internal/promiseCallback.js +0 -23
- package/test/node_modules/async/internal/queue.js +0 -294
- package/test/node_modules/async/internal/range.js +0 -14
- package/test/node_modules/async/internal/reject.js +0 -26
- package/test/node_modules/async/internal/setImmediate.js +0 -34
- package/test/node_modules/async/internal/withoutIndex.js +0 -10
- package/test/node_modules/async/internal/wrapAsync.js +0 -34
- package/test/node_modules/async/log.js +0 -41
- package/test/node_modules/async/map.js +0 -142
- package/test/node_modules/async/mapLimit.js +0 -45
- package/test/node_modules/async/mapSeries.js +0 -44
- package/test/node_modules/async/mapValues.js +0 -152
- package/test/node_modules/async/mapValuesLimit.js +0 -61
- package/test/node_modules/async/mapValuesSeries.js +0 -37
- package/test/node_modules/async/memoize.js +0 -91
- package/test/node_modules/async/nextTick.js +0 -52
- package/test/node_modules/async/package.json +0 -75
- package/test/node_modules/async/parallel.js +0 -180
- package/test/node_modules/async/parallelLimit.js +0 -41
- package/test/node_modules/async/priorityQueue.js +0 -86
- package/test/node_modules/async/queue.js +0 -167
- package/test/node_modules/async/race.js +0 -67
- package/test/node_modules/async/reduce.js +0 -153
- package/test/node_modules/async/reduceRight.js +0 -41
- package/test/node_modules/async/reflect.js +0 -78
- package/test/node_modules/async/reflectAll.js +0 -93
- package/test/node_modules/async/reject.js +0 -87
- package/test/node_modules/async/rejectLimit.js +0 -45
- package/test/node_modules/async/rejectSeries.js +0 -43
- package/test/node_modules/async/retry.js +0 -159
- package/test/node_modules/async/retryable.js +0 -77
- package/test/node_modules/async/select.js +0 -93
- package/test/node_modules/async/selectLimit.js +0 -45
- package/test/node_modules/async/selectSeries.js +0 -43
- package/test/node_modules/async/seq.js +0 -79
- package/test/node_modules/async/series.js +0 -186
- package/test/node_modules/async/setImmediate.js +0 -45
- package/test/node_modules/async/some.js +0 -122
- package/test/node_modules/async/someLimit.js +0 -47
- package/test/node_modules/async/someSeries.js +0 -46
- package/test/node_modules/async/sortBy.js +0 -190
- package/test/node_modules/async/timeout.js +0 -89
- package/test/node_modules/async/times.js +0 -50
- package/test/node_modules/async/timesLimit.js +0 -43
- package/test/node_modules/async/timesSeries.js +0 -32
- package/test/node_modules/async/transform.js +0 -173
- package/test/node_modules/async/tryEach.js +0 -78
- package/test/node_modules/async/unmemoize.js +0 -25
- package/test/node_modules/async/until.js +0 -61
- package/test/node_modules/async/waterfall.js +0 -105
- package/test/node_modules/async/whilst.js +0 -78
- package/test/node_modules/async/wrapSync.js +0 -118
- package/test/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/test/node_modules/balanced-match/LICENSE.md +0 -21
- package/test/node_modules/balanced-match/README.md +0 -97
- package/test/node_modules/balanced-match/index.js +0 -62
- package/test/node_modules/balanced-match/package.json +0 -48
- package/test/node_modules/binary-extensions/binary-extensions.json +0 -260
- package/test/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
- package/test/node_modules/binary-extensions/index.d.ts +0 -14
- package/test/node_modules/binary-extensions/index.js +0 -1
- package/test/node_modules/binary-extensions/license +0 -9
- package/test/node_modules/binary-extensions/package.json +0 -38
- package/test/node_modules/binary-extensions/readme.md +0 -41
- package/test/node_modules/bluebird/LICENSE +0 -21
- package/test/node_modules/bluebird/README.md +0 -57
- package/test/node_modules/bluebird/changelog.md +0 -1
- package/test/node_modules/bluebird/js/browser/bluebird.core.js +0 -3914
- package/test/node_modules/bluebird/js/browser/bluebird.core.min.js +0 -31
- package/test/node_modules/bluebird/js/browser/bluebird.js +0 -5778
- package/test/node_modules/bluebird/js/browser/bluebird.min.js +0 -31
- package/test/node_modules/bluebird/js/release/any.js +0 -21
- package/test/node_modules/bluebird/js/release/assert.js +0 -55
- package/test/node_modules/bluebird/js/release/async.js +0 -120
- package/test/node_modules/bluebird/js/release/bind.js +0 -67
- package/test/node_modules/bluebird/js/release/bluebird.js +0 -11
- package/test/node_modules/bluebird/js/release/call_get.js +0 -123
- package/test/node_modules/bluebird/js/release/cancel.js +0 -129
- package/test/node_modules/bluebird/js/release/catch_filter.js +0 -42
- package/test/node_modules/bluebird/js/release/context.js +0 -69
- package/test/node_modules/bluebird/js/release/debuggability.js +0 -1009
- package/test/node_modules/bluebird/js/release/direct_resolve.js +0 -46
- package/test/node_modules/bluebird/js/release/each.js +0 -30
- package/test/node_modules/bluebird/js/release/errors.js +0 -116
- package/test/node_modules/bluebird/js/release/es5.js +0 -80
- package/test/node_modules/bluebird/js/release/filter.js +0 -12
- package/test/node_modules/bluebird/js/release/finally.js +0 -146
- package/test/node_modules/bluebird/js/release/generators.js +0 -223
- package/test/node_modules/bluebird/js/release/join.js +0 -165
- package/test/node_modules/bluebird/js/release/map.js +0 -175
- package/test/node_modules/bluebird/js/release/method.js +0 -55
- package/test/node_modules/bluebird/js/release/nodeback.js +0 -51
- package/test/node_modules/bluebird/js/release/nodeify.js +0 -58
- package/test/node_modules/bluebird/js/release/promise.js +0 -819
- package/test/node_modules/bluebird/js/release/promise_array.js +0 -186
- package/test/node_modules/bluebird/js/release/promisify.js +0 -314
- package/test/node_modules/bluebird/js/release/props.js +0 -118
- package/test/node_modules/bluebird/js/release/queue.js +0 -73
- package/test/node_modules/bluebird/js/release/race.js +0 -49
- package/test/node_modules/bluebird/js/release/reduce.js +0 -183
- package/test/node_modules/bluebird/js/release/schedule.js +0 -62
- package/test/node_modules/bluebird/js/release/settle.js +0 -47
- package/test/node_modules/bluebird/js/release/some.js +0 -148
- package/test/node_modules/bluebird/js/release/synchronous_inspection.js +0 -103
- package/test/node_modules/bluebird/js/release/thenables.js +0 -86
- package/test/node_modules/bluebird/js/release/timers.js +0 -93
- package/test/node_modules/bluebird/js/release/using.js +0 -226
- package/test/node_modules/bluebird/js/release/util.js +0 -421
- package/test/node_modules/bluebird/package.json +0 -78
- package/test/node_modules/brace-expansion/LICENSE +0 -21
- package/test/node_modules/brace-expansion/README.md +0 -129
- package/test/node_modules/brace-expansion/index.js +0 -201
- package/test/node_modules/brace-expansion/package.json +0 -47
- package/test/node_modules/braces/CHANGELOG.md +0 -184
- package/test/node_modules/braces/LICENSE +0 -21
- package/test/node_modules/braces/README.md +0 -593
- package/test/node_modules/braces/index.js +0 -170
- package/test/node_modules/braces/lib/compile.js +0 -57
- package/test/node_modules/braces/lib/constants.js +0 -57
- package/test/node_modules/braces/lib/expand.js +0 -113
- package/test/node_modules/braces/lib/parse.js +0 -333
- package/test/node_modules/braces/lib/stringify.js +0 -32
- package/test/node_modules/braces/lib/utils.js +0 -112
- package/test/node_modules/braces/package.json +0 -77
- package/test/node_modules/cache-content-type/History.md +0 -15
- package/test/node_modules/cache-content-type/README.md +0 -17
- package/test/node_modules/cache-content-type/index.js +0 -15
- package/test/node_modules/cache-content-type/package.json +0 -42
- package/test/node_modules/chalk/index.d.ts +0 -415
- package/test/node_modules/chalk/license +0 -9
- package/test/node_modules/chalk/package.json +0 -68
- package/test/node_modules/chalk/readme.md +0 -341
- package/test/node_modules/chalk/source/index.js +0 -229
- package/test/node_modules/chalk/source/templates.js +0 -134
- package/test/node_modules/chalk/source/util.js +0 -39
- package/test/node_modules/chokidar/LICENSE +0 -21
- package/test/node_modules/chokidar/README.md +0 -308
- package/test/node_modules/chokidar/index.js +0 -973
- package/test/node_modules/chokidar/lib/constants.js +0 -65
- package/test/node_modules/chokidar/lib/fsevents-handler.js +0 -524
- package/test/node_modules/chokidar/lib/nodefs-handler.js +0 -654
- package/test/node_modules/chokidar/package.json +0 -85
- package/test/node_modules/chokidar/types/index.d.ts +0 -188
- package/test/node_modules/co/History.md +0 -172
- package/test/node_modules/co/LICENSE +0 -22
- package/test/node_modules/co/Readme.md +0 -212
- package/test/node_modules/co/index.js +0 -237
- package/test/node_modules/co/package.json +0 -34
- package/test/node_modules/color-convert/CHANGELOG.md +0 -54
- package/test/node_modules/color-convert/LICENSE +0 -21
- package/test/node_modules/color-convert/README.md +0 -68
- package/test/node_modules/color-convert/conversions.js +0 -839
- package/test/node_modules/color-convert/index.js +0 -81
- package/test/node_modules/color-convert/package.json +0 -48
- package/test/node_modules/color-convert/route.js +0 -97
- package/test/node_modules/color-name/LICENSE +0 -8
- package/test/node_modules/color-name/README.md +0 -11
- package/test/node_modules/color-name/index.js +0 -152
- package/test/node_modules/color-name/package.json +0 -28
- package/test/node_modules/commander/CHANGELOG.md +0 -419
- package/test/node_modules/commander/LICENSE +0 -22
- package/test/node_modules/commander/Readme.md +0 -428
- package/test/node_modules/commander/index.js +0 -1224
- package/test/node_modules/commander/package.json +0 -38
- package/test/node_modules/commander/typings/index.d.ts +0 -310
- package/test/node_modules/concat-map/.travis.yml +0 -4
- package/test/node_modules/concat-map/LICENSE +0 -18
- package/test/node_modules/concat-map/README.markdown +0 -62
- package/test/node_modules/concat-map/example/map.js +0 -6
- package/test/node_modules/concat-map/index.js +0 -13
- package/test/node_modules/concat-map/package.json +0 -43
- package/test/node_modules/concat-map/test/map.js +0 -39
- package/test/node_modules/condense-newlines/LICENSE +0 -21
- package/test/node_modules/condense-newlines/README.md +0 -105
- package/test/node_modules/condense-newlines/index.js +0 -60
- package/test/node_modules/condense-newlines/package.json +0 -64
- package/test/node_modules/config-chain/LICENCE +0 -22
- package/test/node_modules/config-chain/index.js +0 -282
- package/test/node_modules/config-chain/package.json +0 -28
- package/test/node_modules/config-chain/readme.markdown +0 -257
- package/test/node_modules/consolidate/History.md +0 -132
- package/test/node_modules/consolidate/Readme.md +0 -223
- package/test/node_modules/consolidate/index.js +0 -1
- package/test/node_modules/consolidate/lib/consolidate.js +0 -1792
- package/test/node_modules/consolidate/package.json +0 -94
- package/test/node_modules/content-disposition/HISTORY.md +0 -60
- package/test/node_modules/content-disposition/LICENSE +0 -22
- package/test/node_modules/content-disposition/README.md +0 -142
- package/test/node_modules/content-disposition/index.js +0 -458
- package/test/node_modules/content-disposition/package.json +0 -44
- package/test/node_modules/content-type/HISTORY.md +0 -24
- package/test/node_modules/content-type/LICENSE +0 -22
- package/test/node_modules/content-type/README.md +0 -92
- package/test/node_modules/content-type/index.js +0 -222
- package/test/node_modules/content-type/package.json +0 -40
- package/test/node_modules/cookies/HISTORY.md +0 -121
- package/test/node_modules/cookies/LICENSE +0 -23
- package/test/node_modules/cookies/README.md +0 -145
- package/test/node_modules/cookies/index.js +0 -224
- package/test/node_modules/cookies/package.json +0 -38
- package/test/node_modules/debug/LICENSE +0 -20
- package/test/node_modules/debug/README.md +0 -481
- package/test/node_modules/debug/package.json +0 -59
- package/test/node_modules/debug/src/browser.js +0 -269
- package/test/node_modules/debug/src/common.js +0 -274
- package/test/node_modules/debug/src/index.js +0 -10
- package/test/node_modules/debug/src/node.js +0 -263
- package/test/node_modules/deep-equal/.travis.yml +0 -8
- package/test/node_modules/deep-equal/LICENSE +0 -18
- package/test/node_modules/deep-equal/example/cmp.js +0 -11
- package/test/node_modules/deep-equal/index.js +0 -94
- package/test/node_modules/deep-equal/lib/is_arguments.js +0 -20
- package/test/node_modules/deep-equal/lib/keys.js +0 -9
- package/test/node_modules/deep-equal/package.json +0 -58
- package/test/node_modules/deep-equal/readme.markdown +0 -61
- package/test/node_modules/deep-equal/test/cmp.js +0 -95
- package/test/node_modules/delegates/History.md +0 -22
- package/test/node_modules/delegates/License +0 -20
- package/test/node_modules/delegates/Makefile +0 -8
- package/test/node_modules/delegates/Readme.md +0 -94
- package/test/node_modules/delegates/index.js +0 -121
- package/test/node_modules/delegates/package.json +0 -13
- package/test/node_modules/delegates/test/index.js +0 -94
- package/test/node_modules/depd/History.md +0 -103
- package/test/node_modules/depd/LICENSE +0 -22
- package/test/node_modules/depd/Readme.md +0 -280
- package/test/node_modules/depd/index.js +0 -538
- package/test/node_modules/depd/lib/browser/index.js +0 -77
- package/test/node_modules/depd/package.json +0 -45
- package/test/node_modules/destroy/LICENSE +0 -23
- package/test/node_modules/destroy/README.md +0 -63
- package/test/node_modules/destroy/index.js +0 -209
- package/test/node_modules/destroy/package.json +0 -48
- package/test/node_modules/editorconfig/CHANGELOG.md +0 -14
- package/test/node_modules/editorconfig/LICENSE +0 -19
- package/test/node_modules/editorconfig/README.md +0 -206
- package/test/node_modules/editorconfig/bin/editorconfig +0 -3
- package/test/node_modules/editorconfig/package.json +0 -59
- package/test/node_modules/editorconfig/src/cli.d.ts +0 -1
- package/test/node_modules/editorconfig/src/cli.js +0 -53
- package/test/node_modules/editorconfig/src/index.d.ts +0 -29
- package/test/node_modules/editorconfig/src/index.js +0 -261
- package/test/node_modules/editorconfig/src/lib/fnmatch.d.ts +0 -214
- package/test/node_modules/editorconfig/src/lib/fnmatch.js +0 -1047
- package/test/node_modules/editorconfig/src/lib/ini.d.ts +0 -14
- package/test/node_modules/editorconfig/src/lib/ini.js +0 -106
- package/test/node_modules/ee-first/LICENSE +0 -22
- package/test/node_modules/ee-first/README.md +0 -80
- package/test/node_modules/ee-first/index.js +0 -95
- package/test/node_modules/ee-first/package.json +0 -29
- package/test/node_modules/ejs/LICENSE +0 -202
- package/test/node_modules/ejs/README.md +0 -344
- package/test/node_modules/ejs/bin/cli.js +0 -212
- package/test/node_modules/ejs/ejs.js +0 -1720
- package/test/node_modules/ejs/ejs.min.js +0 -1
- package/test/node_modules/ejs/jakefile.js +0 -88
- package/test/node_modules/ejs/lib/ejs.js +0 -951
- package/test/node_modules/ejs/lib/utils.js +0 -225
- package/test/node_modules/ejs/package.json +0 -42
- package/test/node_modules/ejs/usage.txt +0 -24
- package/test/node_modules/encodeurl/HISTORY.md +0 -14
- package/test/node_modules/encodeurl/LICENSE +0 -22
- package/test/node_modules/encodeurl/README.md +0 -128
- package/test/node_modules/encodeurl/index.js +0 -60
- package/test/node_modules/encodeurl/package.json +0 -40
- package/test/node_modules/escape-html/LICENSE +0 -24
- package/test/node_modules/escape-html/Readme.md +0 -43
- package/test/node_modules/escape-html/index.js +0 -78
- package/test/node_modules/escape-html/package.json +0 -24
- package/test/node_modules/extend-shallow/LICENSE +0 -21
- package/test/node_modules/extend-shallow/README.md +0 -61
- package/test/node_modules/extend-shallow/index.js +0 -33
- package/test/node_modules/extend-shallow/package.json +0 -56
- package/test/node_modules/filelist/README.md +0 -84
- package/test/node_modules/filelist/index.d.ts +0 -110
- package/test/node_modules/filelist/index.js +0 -495
- package/test/node_modules/filelist/jakefile.js +0 -15
- package/test/node_modules/filelist/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/test/node_modules/filelist/node_modules/brace-expansion/LICENSE +0 -21
- package/test/node_modules/filelist/node_modules/brace-expansion/README.md +0 -135
- package/test/node_modules/filelist/node_modules/brace-expansion/index.js +0 -203
- package/test/node_modules/filelist/node_modules/brace-expansion/package.json +0 -46
- package/test/node_modules/filelist/node_modules/minimatch/LICENSE +0 -15
- package/test/node_modules/filelist/node_modules/minimatch/README.md +0 -259
- package/test/node_modules/filelist/node_modules/minimatch/lib/path.js +0 -4
- package/test/node_modules/filelist/node_modules/minimatch/minimatch.js +0 -906
- package/test/node_modules/filelist/node_modules/minimatch/package.json +0 -32
- package/test/node_modules/filelist/package.json +0 -28
- package/test/node_modules/fill-range/LICENSE +0 -21
- package/test/node_modules/fill-range/README.md +0 -237
- package/test/node_modules/fill-range/index.js +0 -249
- package/test/node_modules/fill-range/package.json +0 -69
- package/test/node_modules/fresh/HISTORY.md +0 -70
- package/test/node_modules/fresh/LICENSE +0 -23
- package/test/node_modules/fresh/README.md +0 -119
- package/test/node_modules/fresh/index.js +0 -137
- package/test/node_modules/fresh/package.json +0 -46
- package/test/node_modules/fs.realpath/LICENSE +0 -43
- package/test/node_modules/fs.realpath/README.md +0 -33
- package/test/node_modules/fs.realpath/index.js +0 -66
- package/test/node_modules/fs.realpath/old.js +0 -303
- package/test/node_modules/fs.realpath/package.json +0 -26
- package/test/node_modules/get-paths/.editorconfig +0 -9
- package/test/node_modules/get-paths/.gitattributes +0 -1
- package/test/node_modules/get-paths/.lib.eslintrc +0 -3
- package/test/node_modules/get-paths/.remarkignore +0 -1
- package/test/node_modules/get-paths/.travis.yml +0 -6
- package/test/node_modules/get-paths/LICENSE +0 -21
- package/test/node_modules/get-paths/README.md +0 -61
- package/test/node_modules/get-paths/index.js +0 -31
- package/test/node_modules/get-paths/package.json +0 -100
- package/test/node_modules/get-paths/test/test.js +0 -7
- package/test/node_modules/glob/LICENSE +0 -15
- package/test/node_modules/glob/README.md +0 -378
- package/test/node_modules/glob/common.js +0 -240
- package/test/node_modules/glob/glob.js +0 -790
- package/test/node_modules/glob/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/test/node_modules/glob/node_modules/brace-expansion/LICENSE +0 -21
- package/test/node_modules/glob/node_modules/brace-expansion/README.md +0 -135
- package/test/node_modules/glob/node_modules/brace-expansion/index.js +0 -203
- package/test/node_modules/glob/node_modules/brace-expansion/package.json +0 -46
- package/test/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- package/test/node_modules/glob/node_modules/minimatch/README.md +0 -259
- package/test/node_modules/glob/node_modules/minimatch/lib/path.js +0 -4
- package/test/node_modules/glob/node_modules/minimatch/minimatch.js +0 -906
- package/test/node_modules/glob/node_modules/minimatch/package.json +0 -32
- package/test/node_modules/glob/package.json +0 -55
- package/test/node_modules/glob/sync.js +0 -486
- package/test/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/test/node_modules/glob-parent/LICENSE +0 -15
- package/test/node_modules/glob-parent/README.md +0 -137
- package/test/node_modules/glob-parent/index.js +0 -42
- package/test/node_modules/glob-parent/package.json +0 -48
- package/test/node_modules/has-flag/index.d.ts +0 -39
- package/test/node_modules/has-flag/index.js +0 -8
- package/test/node_modules/has-flag/license +0 -9
- package/test/node_modules/has-flag/package.json +0 -46
- package/test/node_modules/has-flag/readme.md +0 -89
- package/test/node_modules/has-symbols/.eslintrc +0 -11
- package/test/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/test/node_modules/has-symbols/.nycrc +0 -9
- package/test/node_modules/has-symbols/CHANGELOG.md +0 -75
- package/test/node_modules/has-symbols/LICENSE +0 -21
- package/test/node_modules/has-symbols/README.md +0 -46
- package/test/node_modules/has-symbols/index.js +0 -13
- package/test/node_modules/has-symbols/package.json +0 -101
- package/test/node_modules/has-symbols/shams.js +0 -42
- package/test/node_modules/has-symbols/test/index.js +0 -22
- package/test/node_modules/has-symbols/test/shams/core-js.js +0 -28
- package/test/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
- package/test/node_modules/has-symbols/test/tests.js +0 -56
- package/test/node_modules/has-tostringtag/.eslintrc +0 -11
- package/test/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/test/node_modules/has-tostringtag/CHANGELOG.md +0 -20
- package/test/node_modules/has-tostringtag/LICENSE +0 -21
- package/test/node_modules/has-tostringtag/README.md +0 -46
- package/test/node_modules/has-tostringtag/index.js +0 -7
- package/test/node_modules/has-tostringtag/package.json +0 -84
- package/test/node_modules/has-tostringtag/shams.js +0 -7
- package/test/node_modules/has-tostringtag/test/index.js +0 -21
- package/test/node_modules/has-tostringtag/test/shams/core-js.js +0 -28
- package/test/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -28
- package/test/node_modules/has-tostringtag/test/tests.js +0 -14
- package/test/node_modules/http-assert/HISTORY.md +0 -79
- package/test/node_modules/http-assert/LICENSE +0 -22
- package/test/node_modules/http-assert/README.md +0 -116
- package/test/node_modules/http-assert/index.js +0 -41
- package/test/node_modules/http-assert/package.json +0 -41
- package/test/node_modules/http-errors/HISTORY.md +0 -165
- package/test/node_modules/http-errors/LICENSE +0 -23
- package/test/node_modules/http-errors/README.md +0 -169
- package/test/node_modules/http-errors/index.js +0 -299
- package/test/node_modules/http-errors/node_modules/depd/History.md +0 -96
- package/test/node_modules/http-errors/node_modules/depd/LICENSE +0 -22
- package/test/node_modules/http-errors/node_modules/depd/Readme.md +0 -280
- package/test/node_modules/http-errors/node_modules/depd/index.js +0 -522
- package/test/node_modules/http-errors/node_modules/depd/lib/browser/index.js +0 -77
- package/test/node_modules/http-errors/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
- package/test/node_modules/http-errors/node_modules/depd/lib/compat/event-listener-count.js +0 -22
- package/test/node_modules/http-errors/node_modules/depd/lib/compat/index.js +0 -79
- package/test/node_modules/http-errors/node_modules/depd/package.json +0 -41
- package/test/node_modules/http-errors/package.json +0 -49
- package/test/node_modules/ignore-by-default/LICENSE +0 -14
- package/test/node_modules/ignore-by-default/README.md +0 -26
- package/test/node_modules/ignore-by-default/index.js +0 -12
- package/test/node_modules/ignore-by-default/package.json +0 -34
- package/test/node_modules/inflight/LICENSE +0 -15
- package/test/node_modules/inflight/README.md +0 -37
- package/test/node_modules/inflight/inflight.js +0 -54
- package/test/node_modules/inflight/package.json +0 -29
- package/test/node_modules/inherits/LICENSE +0 -16
- package/test/node_modules/inherits/README.md +0 -42
- package/test/node_modules/inherits/inherits.js +0 -9
- package/test/node_modules/inherits/inherits_browser.js +0 -27
- package/test/node_modules/inherits/package.json +0 -29
- package/test/node_modules/ini/LICENSE +0 -15
- package/test/node_modules/ini/README.md +0 -102
- package/test/node_modules/ini/ini.js +0 -206
- package/test/node_modules/ini/package.json +0 -33
- package/test/node_modules/is-binary-path/index.d.ts +0 -17
- package/test/node_modules/is-binary-path/index.js +0 -7
- package/test/node_modules/is-binary-path/license +0 -9
- package/test/node_modules/is-binary-path/package.json +0 -40
- package/test/node_modules/is-binary-path/readme.md +0 -34
- package/test/node_modules/is-buffer/LICENSE +0 -21
- package/test/node_modules/is-buffer/README.md +0 -53
- package/test/node_modules/is-buffer/index.js +0 -21
- package/test/node_modules/is-buffer/package.json +0 -51
- package/test/node_modules/is-buffer/test/basic.js +0 -24
- package/test/node_modules/is-extendable/LICENSE +0 -21
- package/test/node_modules/is-extendable/README.md +0 -72
- package/test/node_modules/is-extendable/index.js +0 -13
- package/test/node_modules/is-extendable/package.json +0 -51
- package/test/node_modules/is-extglob/LICENSE +0 -21
- package/test/node_modules/is-extglob/README.md +0 -107
- package/test/node_modules/is-extglob/index.js +0 -20
- package/test/node_modules/is-extglob/package.json +0 -69
- package/test/node_modules/is-generator-function/.eslintignore +0 -1
- package/test/node_modules/is-generator-function/.eslintrc +0 -9
- package/test/node_modules/is-generator-function/.nvmrc +0 -1
- package/test/node_modules/is-generator-function/.nycrc +0 -9
- package/test/node_modules/is-generator-function/CHANGELOG.md +0 -216
- package/test/node_modules/is-generator-function/LICENSE +0 -20
- package/test/node_modules/is-generator-function/README.md +0 -40
- package/test/node_modules/is-generator-function/index.js +0 -38
- package/test/node_modules/is-generator-function/package.json +0 -87
- package/test/node_modules/is-generator-function/test/corejs.js +0 -5
- package/test/node_modules/is-generator-function/test/index.js +0 -83
- package/test/node_modules/is-generator-function/test/uglified.js +0 -8
- package/test/node_modules/is-glob/LICENSE +0 -21
- package/test/node_modules/is-glob/README.md +0 -206
- package/test/node_modules/is-glob/index.js +0 -150
- package/test/node_modules/is-glob/package.json +0 -81
- package/test/node_modules/is-number/LICENSE +0 -21
- package/test/node_modules/is-number/README.md +0 -187
- package/test/node_modules/is-number/index.js +0 -18
- package/test/node_modules/is-number/package.json +0 -82
- package/test/node_modules/is-whitespace/LICENSE +0 -21
- package/test/node_modules/is-whitespace/README.md +0 -47
- package/test/node_modules/is-whitespace/index.js +0 -19
- package/test/node_modules/is-whitespace/package.json +0 -47
- package/test/node_modules/jake/Makefile +0 -44
- package/test/node_modules/jake/README.md +0 -17
- package/test/node_modules/jake/bin/bash_completion.sh +0 -41
- package/test/node_modules/jake/bin/cli.js +0 -31
- package/test/node_modules/jake/jakefile.js +0 -94
- package/test/node_modules/jake/lib/api.js +0 -409
- package/test/node_modules/jake/lib/jake.js +0 -330
- package/test/node_modules/jake/lib/loader.js +0 -173
- package/test/node_modules/jake/lib/namespace.js +0 -115
- package/test/node_modules/jake/lib/package_task.js +0 -406
- package/test/node_modules/jake/lib/parseargs.js +0 -134
- package/test/node_modules/jake/lib/program.js +0 -282
- package/test/node_modules/jake/lib/publish_task.js +0 -290
- package/test/node_modules/jake/lib/rule.js +0 -311
- package/test/node_modules/jake/lib/task/directory_task.js +0 -30
- package/test/node_modules/jake/lib/task/file_task.js +0 -124
- package/test/node_modules/jake/lib/task/index.js +0 -9
- package/test/node_modules/jake/lib/task/task.js +0 -449
- package/test/node_modules/jake/lib/test_task.js +0 -270
- package/test/node_modules/jake/lib/utils/file.js +0 -286
- package/test/node_modules/jake/lib/utils/index.js +0 -297
- package/test/node_modules/jake/lib/utils/logger.js +0 -24
- package/test/node_modules/jake/package.json +0 -42
- package/test/node_modules/jake/test/integration/concurrent.js +0 -45
- package/test/node_modules/jake/test/integration/file.js +0 -228
- package/test/node_modules/jake/test/integration/file_task.js +0 -126
- package/test/node_modules/jake/test/integration/helpers.js +0 -80
- package/test/node_modules/jake/test/integration/jakefile.js +0 -337
- package/test/node_modules/jake/test/integration/jakelib/concurrent.jake.js +0 -113
- package/test/node_modules/jake/test/integration/jakelib/publish.jake.js +0 -49
- package/test/node_modules/jake/test/integration/jakelib/required_module.jake.js +0 -10
- package/test/node_modules/jake/test/integration/jakelib/rule.jake.js +0 -222
- package/test/node_modules/jake/test/integration/publish_task.js +0 -27
- package/test/node_modules/jake/test/integration/rule.js +0 -217
- package/test/node_modules/jake/test/integration/selfdep.js +0 -42
- package/test/node_modules/jake/test/integration/task_base.js +0 -167
- package/test/node_modules/jake/test/unit/jakefile.js +0 -36
- package/test/node_modules/jake/test/unit/namespace.js +0 -77
- package/test/node_modules/jake/test/unit/parseargs.js +0 -169
- package/test/node_modules/jake/usage.txt +0 -16
- package/test/node_modules/js-beautify/LICENSE +0 -9
- package/test/node_modules/js-beautify/README.md +0 -435
- package/test/node_modules/js-beautify/js/bin/css-beautify.js +0 -4
- package/test/node_modules/js-beautify/js/bin/html-beautify.js +0 -4
- package/test/node_modules/js-beautify/js/bin/js-beautify.js +0 -4
- package/test/node_modules/js-beautify/js/index.js +0 -86
- package/test/node_modules/js-beautify/js/lib/beautifier.js +0 -5982
- package/test/node_modules/js-beautify/js/lib/beautifier.min.js +0 -2
- package/test/node_modules/js-beautify/js/lib/beautify-css.js +0 -1675
- package/test/node_modules/js-beautify/js/lib/beautify-html.js +0 -3136
- package/test/node_modules/js-beautify/js/lib/beautify.js +0 -4020
- package/test/node_modules/js-beautify/js/lib/cli.js +0 -705
- package/test/node_modules/js-beautify/js/lib/unpackers/javascriptobfuscator_unpacker.js +0 -132
- package/test/node_modules/js-beautify/js/lib/unpackers/myobfuscate_unpacker.js +0 -119
- package/test/node_modules/js-beautify/js/lib/unpackers/p_a_c_k_e_r_unpacker.js +0 -119
- package/test/node_modules/js-beautify/js/lib/unpackers/urlencode_unpacker.js +0 -104
- package/test/node_modules/js-beautify/js/src/cli.js +0 -705
- package/test/node_modules/js-beautify/js/src/core/directives.js +0 -62
- package/test/node_modules/js-beautify/js/src/core/inputscanner.js +0 -192
- package/test/node_modules/js-beautify/js/src/core/options.js +0 -193
- package/test/node_modules/js-beautify/js/src/core/output.js +0 -419
- package/test/node_modules/js-beautify/js/src/core/pattern.js +0 -94
- package/test/node_modules/js-beautify/js/src/core/templatablepattern.js +0 -211
- package/test/node_modules/js-beautify/js/src/core/token.js +0 -54
- package/test/node_modules/js-beautify/js/src/core/tokenizer.js +0 -140
- package/test/node_modules/js-beautify/js/src/core/tokenstream.js +0 -78
- package/test/node_modules/js-beautify/js/src/core/whitespacepattern.js +0 -105
- package/test/node_modules/js-beautify/js/src/css/beautifier.js +0 -529
- package/test/node_modules/js-beautify/js/src/css/index.js +0 -42
- package/test/node_modules/js-beautify/js/src/css/options.js +0 -56
- package/test/node_modules/js-beautify/js/src/css/tokenizer.js +0 -29
- package/test/node_modules/js-beautify/js/src/html/beautifier.js +0 -878
- package/test/node_modules/js-beautify/js/src/html/index.js +0 -42
- package/test/node_modules/js-beautify/js/src/html/options.js +0 -91
- package/test/node_modules/js-beautify/js/src/html/tokenizer.js +0 -332
- package/test/node_modules/js-beautify/js/src/index.js +0 -44
- package/test/node_modules/js-beautify/js/src/javascript/acorn.js +0 -57
- package/test/node_modules/js-beautify/js/src/javascript/beautifier.js +0 -1472
- package/test/node_modules/js-beautify/js/src/javascript/index.js +0 -42
- package/test/node_modules/js-beautify/js/src/javascript/options.js +0 -93
- package/test/node_modules/js-beautify/js/src/javascript/tokenizer.js +0 -567
- package/test/node_modules/js-beautify/js/src/unpackers/javascriptobfuscator_unpacker.js +0 -132
- package/test/node_modules/js-beautify/js/src/unpackers/myobfuscate_unpacker.js +0 -119
- package/test/node_modules/js-beautify/js/src/unpackers/p_a_c_k_e_r_unpacker.js +0 -119
- package/test/node_modules/js-beautify/js/src/unpackers/urlencode_unpacker.js +0 -104
- package/test/node_modules/js-beautify/package.json +0 -72
- package/test/node_modules/keygrip/HISTORY.md +0 -25
- package/test/node_modules/keygrip/LICENSE +0 -21
- package/test/node_modules/keygrip/README.md +0 -103
- package/test/node_modules/keygrip/index.js +0 -51
- package/test/node_modules/keygrip/package.json +0 -28
- package/test/node_modules/kind-of/LICENSE +0 -21
- package/test/node_modules/kind-of/README.md +0 -261
- package/test/node_modules/kind-of/index.js +0 -116
- package/test/node_modules/kind-of/package.json +0 -90
- package/test/node_modules/koa/History.md +0 -696
- package/test/node_modules/koa/LICENSE +0 -22
- package/test/node_modules/koa/Readme.md +0 -289
- package/test/node_modules/koa/dist/koa.mjs +0 -4
- package/test/node_modules/koa/lib/application.js +0 -314
- package/test/node_modules/koa/lib/context.js +0 -251
- package/test/node_modules/koa/lib/request.js +0 -726
- package/test/node_modules/koa/lib/response.js +0 -588
- package/test/node_modules/koa/package.json +0 -89
- package/test/node_modules/koa-compose/History.md +0 -60
- package/test/node_modules/koa-compose/Readme.md +0 -40
- package/test/node_modules/koa-compose/index.js +0 -48
- package/test/node_modules/koa-compose/package.json +0 -30
- package/test/node_modules/koa-convert/LICENSE +0 -22
- package/test/node_modules/koa-convert/README.md +0 -166
- package/test/node_modules/koa-convert/index.js +0 -105
- package/test/node_modules/koa-convert/package.json +0 -64
- package/test/node_modules/koa-send/History.md +0 -133
- package/test/node_modules/koa-send/LICENSE +0 -22
- package/test/node_modules/koa-send/README.md +0 -109
- package/test/node_modules/koa-send/index.js +0 -188
- package/test/node_modules/koa-send/package.json +0 -58
- package/test/node_modules/koa-views/.eslintrc +0 -14
- package/test/node_modules/koa-views/.gitattributes +0 -1
- package/test/node_modules/koa-views/.github/workflows/test.yml +0 -20
- package/test/node_modules/koa-views/README.md +0 -201
- package/test/node_modules/koa-views/history.md +0 -110
- package/test/node_modules/koa-views/index.d.ts +0 -62
- package/test/node_modules/koa-views/license +0 -22
- package/test/node_modules/koa-views/package.json +0 -68
- package/test/node_modules/koa-views/src/index.js +0 -98
- package/test/node_modules/koa-views/test/.eslintrc +0 -5
- package/test/node_modules/koa-views/test/fixtures/basic.ejs +0 -10
- package/test/node_modules/koa-views/test/fixtures/basic.foo +0 -1
- package/test/node_modules/koa-views/test/fixtures/basic.html +0 -11
- package/test/node_modules/koa-views/test/fixtures/basic.pug +0 -9
- package/test/node_modules/koa-views/test/fixtures/basic.test.html +0 -11
- package/test/node_modules/koa-views/test/fixtures/global-state.pug +0 -9
- package/test/node_modules/koa-views/test/fixtures/index.html +0 -10
- package/test/node_modules/koa-views/test/fixtures/nunjucks-filter.html +0 -11
- package/test/node_modules/koa-views/test/fixtures/state.pug +0 -9
- package/test/node_modules/koa-views/test/fixtures/underscore.html +0 -11
- package/test/node_modules/koa-views/test/fixtures/view-options-partial.hbs +0 -1
- package/test/node_modules/koa-views/test/fixtures/view-options.hbs +0 -4
- package/test/node_modules/koa-views/test/index.js +0 -431
- package/test/node_modules/koa-views/test-outside/fixtures/basic.ejs +0 -10
- package/test/node_modules/lru-cache/LICENSE +0 -15
- package/test/node_modules/lru-cache/README.md +0 -158
- package/test/node_modules/lru-cache/index.js +0 -468
- package/test/node_modules/lru-cache/package.json +0 -36
- package/test/node_modules/media-typer/HISTORY.md +0 -22
- package/test/node_modules/media-typer/LICENSE +0 -22
- package/test/node_modules/media-typer/README.md +0 -81
- package/test/node_modules/media-typer/index.js +0 -270
- package/test/node_modules/media-typer/package.json +0 -26
- package/test/node_modules/mime-db/HISTORY.md +0 -507
- package/test/node_modules/mime-db/LICENSE +0 -23
- package/test/node_modules/mime-db/README.md +0 -100
- package/test/node_modules/mime-db/db.json +0 -8519
- package/test/node_modules/mime-db/index.js +0 -12
- package/test/node_modules/mime-db/package.json +0 -60
- package/test/node_modules/mime-types/HISTORY.md +0 -397
- package/test/node_modules/mime-types/LICENSE +0 -23
- package/test/node_modules/mime-types/README.md +0 -113
- package/test/node_modules/mime-types/index.js +0 -188
- package/test/node_modules/mime-types/package.json +0 -44
- package/test/node_modules/minimatch/LICENSE +0 -15
- package/test/node_modules/minimatch/README.md +0 -230
- package/test/node_modules/minimatch/minimatch.js +0 -947
- package/test/node_modules/minimatch/package.json +0 -33
- package/test/node_modules/ms/index.js +0 -162
- package/test/node_modules/ms/license.md +0 -21
- package/test/node_modules/ms/package.json +0 -37
- package/test/node_modules/ms/readme.md +0 -60
- package/test/node_modules/mz/HISTORY.md +0 -66
- package/test/node_modules/mz/LICENSE +0 -22
- package/test/node_modules/mz/README.md +0 -106
- package/test/node_modules/mz/child_process.js +0 -8
- package/test/node_modules/mz/crypto.js +0 -9
- package/test/node_modules/mz/dns.js +0 -16
- package/test/node_modules/mz/fs.js +0 -62
- package/test/node_modules/mz/index.js +0 -8
- package/test/node_modules/mz/package.json +0 -44
- package/test/node_modules/mz/readline.js +0 -64
- package/test/node_modules/mz/zlib.js +0 -13
- package/test/node_modules/negotiator/HISTORY.md +0 -108
- package/test/node_modules/negotiator/LICENSE +0 -24
- package/test/node_modules/negotiator/README.md +0 -203
- package/test/node_modules/negotiator/index.js +0 -82
- package/test/node_modules/negotiator/lib/charset.js +0 -169
- package/test/node_modules/negotiator/lib/encoding.js +0 -184
- package/test/node_modules/negotiator/lib/language.js +0 -179
- package/test/node_modules/negotiator/lib/mediaType.js +0 -294
- package/test/node_modules/negotiator/package.json +0 -42
- package/test/node_modules/nodemon/LICENSE +0 -21
- package/test/node_modules/nodemon/README.md +0 -423
- package/test/node_modules/nodemon/bin/nodemon.js +0 -16
- package/test/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/test/node_modules/nodemon/doc/cli/authors.txt +0 -8
- package/test/node_modules/nodemon/doc/cli/config.txt +0 -44
- package/test/node_modules/nodemon/doc/cli/help.txt +0 -29
- package/test/node_modules/nodemon/doc/cli/logo.txt +0 -20
- package/test/node_modules/nodemon/doc/cli/options.txt +0 -36
- package/test/node_modules/nodemon/doc/cli/topics.txt +0 -8
- package/test/node_modules/nodemon/doc/cli/usage.txt +0 -3
- package/test/node_modules/nodemon/doc/cli/whoami.txt +0 -9
- package/test/node_modules/nodemon/lib/cli/index.js +0 -49
- package/test/node_modules/nodemon/lib/cli/parse.js +0 -230
- package/test/node_modules/nodemon/lib/config/command.js +0 -43
- package/test/node_modules/nodemon/lib/config/defaults.js +0 -28
- package/test/node_modules/nodemon/lib/config/exec.js +0 -225
- package/test/node_modules/nodemon/lib/config/index.js +0 -93
- package/test/node_modules/nodemon/lib/config/load.js +0 -256
- package/test/node_modules/nodemon/lib/help/index.js +0 -27
- package/test/node_modules/nodemon/lib/index.js +0 -1
- package/test/node_modules/nodemon/lib/monitor/index.js +0 -4
- package/test/node_modules/nodemon/lib/monitor/match.js +0 -276
- package/test/node_modules/nodemon/lib/monitor/run.js +0 -541
- package/test/node_modules/nodemon/lib/monitor/signals.js +0 -34
- package/test/node_modules/nodemon/lib/monitor/watch.js +0 -239
- package/test/node_modules/nodemon/lib/nodemon.js +0 -311
- package/test/node_modules/nodemon/lib/rules/add.js +0 -89
- package/test/node_modules/nodemon/lib/rules/index.js +0 -53
- package/test/node_modules/nodemon/lib/rules/parse.js +0 -43
- package/test/node_modules/nodemon/lib/spawn.js +0 -73
- package/test/node_modules/nodemon/lib/utils/bus.js +0 -44
- package/test/node_modules/nodemon/lib/utils/clone.js +0 -40
- package/test/node_modules/nodemon/lib/utils/colour.js +0 -26
- package/test/node_modules/nodemon/lib/utils/index.js +0 -102
- package/test/node_modules/nodemon/lib/utils/log.js +0 -82
- package/test/node_modules/nodemon/lib/utils/merge.js +0 -47
- package/test/node_modules/nodemon/lib/version.js +0 -100
- package/test/node_modules/nodemon/node_modules/debug/CHANGELOG.md +0 -395
- package/test/node_modules/nodemon/node_modules/debug/LICENSE +0 -19
- package/test/node_modules/nodemon/node_modules/debug/README.md +0 -437
- package/test/node_modules/nodemon/node_modules/debug/node.js +0 -1
- package/test/node_modules/nodemon/node_modules/debug/package.json +0 -51
- package/test/node_modules/nodemon/node_modules/debug/src/browser.js +0 -180
- package/test/node_modules/nodemon/node_modules/debug/src/common.js +0 -249
- package/test/node_modules/nodemon/node_modules/debug/src/index.js +0 -12
- package/test/node_modules/nodemon/node_modules/debug/src/node.js +0 -177
- package/test/node_modules/nodemon/node_modules/has-flag/index.js +0 -8
- package/test/node_modules/nodemon/node_modules/has-flag/license +0 -9
- package/test/node_modules/nodemon/node_modules/has-flag/package.json +0 -44
- package/test/node_modules/nodemon/node_modules/has-flag/readme.md +0 -70
- package/test/node_modules/nodemon/node_modules/supports-color/browser.js +0 -5
- package/test/node_modules/nodemon/node_modules/supports-color/index.js +0 -131
- package/test/node_modules/nodemon/node_modules/supports-color/license +0 -9
- package/test/node_modules/nodemon/node_modules/supports-color/package.json +0 -53
- package/test/node_modules/nodemon/node_modules/supports-color/readme.md +0 -66
- package/test/node_modules/nodemon/package.json +0 -74
- package/test/node_modules/nopt/LICENSE +0 -15
- package/test/node_modules/nopt/README.md +0 -213
- package/test/node_modules/nopt/bin/nopt.js +0 -56
- package/test/node_modules/nopt/lib/nopt.js +0 -515
- package/test/node_modules/nopt/package.json +0 -53
- package/test/node_modules/normalize-path/LICENSE +0 -21
- package/test/node_modules/normalize-path/README.md +0 -127
- package/test/node_modules/normalize-path/index.js +0 -35
- package/test/node_modules/normalize-path/package.json +0 -77
- package/test/node_modules/object-assign/index.js +0 -90
- package/test/node_modules/object-assign/license +0 -21
- package/test/node_modules/object-assign/package.json +0 -42
- package/test/node_modules/object-assign/readme.md +0 -61
- package/test/node_modules/on-finished/HISTORY.md +0 -98
- package/test/node_modules/on-finished/LICENSE +0 -23
- package/test/node_modules/on-finished/README.md +0 -162
- package/test/node_modules/on-finished/index.js +0 -234
- package/test/node_modules/on-finished/package.json +0 -39
- package/test/node_modules/once/LICENSE +0 -15
- package/test/node_modules/once/README.md +0 -79
- package/test/node_modules/once/once.js +0 -42
- package/test/node_modules/once/package.json +0 -33
- package/test/node_modules/only/History.md +0 -5
- package/test/node_modules/only/Makefile +0 -7
- package/test/node_modules/only/Readme.md +0 -58
- package/test/node_modules/only/index.js +0 -10
- package/test/node_modules/only/package.json +0 -14
- package/test/node_modules/parseurl/HISTORY.md +0 -58
- package/test/node_modules/parseurl/LICENSE +0 -24
- package/test/node_modules/parseurl/README.md +0 -133
- package/test/node_modules/parseurl/index.js +0 -158
- package/test/node_modules/parseurl/package.json +0 -40
- package/test/node_modules/path-is-absolute/index.js +0 -20
- package/test/node_modules/path-is-absolute/license +0 -21
- package/test/node_modules/path-is-absolute/package.json +0 -43
- package/test/node_modules/path-is-absolute/readme.md +0 -59
- package/test/node_modules/picomatch/CHANGELOG.md +0 -136
- package/test/node_modules/picomatch/LICENSE +0 -21
- package/test/node_modules/picomatch/README.md +0 -708
- package/test/node_modules/picomatch/index.js +0 -3
- package/test/node_modules/picomatch/lib/constants.js +0 -179
- package/test/node_modules/picomatch/lib/parse.js +0 -1091
- package/test/node_modules/picomatch/lib/picomatch.js +0 -342
- package/test/node_modules/picomatch/lib/scan.js +0 -391
- package/test/node_modules/picomatch/lib/utils.js +0 -64
- package/test/node_modules/picomatch/package.json +0 -81
- package/test/node_modules/pify/index.js +0 -68
- package/test/node_modules/pify/license +0 -9
- package/test/node_modules/pify/package.json +0 -51
- package/test/node_modules/pify/readme.md +0 -145
- package/test/node_modules/pretty/LICENSE +0 -21
- package/test/node_modules/pretty/README.md +0 -105
- package/test/node_modules/pretty/index.js +0 -45
- package/test/node_modules/pretty/package.json +0 -54
- package/test/node_modules/proto-list/LICENSE +0 -15
- package/test/node_modules/proto-list/README.md +0 -3
- package/test/node_modules/proto-list/package.json +0 -18
- package/test/node_modules/proto-list/proto-list.js +0 -88
- package/test/node_modules/proto-list/test/basic.js +0 -61
- package/test/node_modules/pseudomap/LICENSE +0 -15
- package/test/node_modules/pseudomap/README.md +0 -60
- package/test/node_modules/pseudomap/map.js +0 -9
- package/test/node_modules/pseudomap/package.json +0 -25
- package/test/node_modules/pseudomap/pseudomap.js +0 -113
- package/test/node_modules/pseudomap/test/basic.js +0 -86
- package/test/node_modules/pstree.remy/.travis.yml +0 -8
- package/test/node_modules/pstree.remy/LICENSE +0 -7
- package/test/node_modules/pstree.remy/README.md +0 -26
- package/test/node_modules/pstree.remy/lib/index.js +0 -37
- package/test/node_modules/pstree.remy/lib/tree.js +0 -37
- package/test/node_modules/pstree.remy/lib/utils.js +0 -53
- package/test/node_modules/pstree.remy/package.json +0 -33
- package/test/node_modules/pstree.remy/tests/fixtures/index.js +0 -13
- package/test/node_modules/pstree.remy/tests/fixtures/out1 +0 -10
- package/test/node_modules/pstree.remy/tests/fixtures/out2 +0 -29
- package/test/node_modules/pstree.remy/tests/index.test.js +0 -51
- package/test/node_modules/readdirp/LICENSE +0 -21
- package/test/node_modules/readdirp/README.md +0 -122
- package/test/node_modules/readdirp/index.d.ts +0 -43
- package/test/node_modules/readdirp/index.js +0 -287
- package/test/node_modules/readdirp/package.json +0 -122
- package/test/node_modules/resolve-path/HISTORY.md +0 -66
- package/test/node_modules/resolve-path/LICENSE +0 -23
- package/test/node_modules/resolve-path/README.md +0 -111
- package/test/node_modules/resolve-path/index.js +0 -88
- package/test/node_modules/resolve-path/node_modules/depd/History.md +0 -96
- package/test/node_modules/resolve-path/node_modules/depd/LICENSE +0 -22
- package/test/node_modules/resolve-path/node_modules/depd/Readme.md +0 -280
- package/test/node_modules/resolve-path/node_modules/depd/index.js +0 -522
- package/test/node_modules/resolve-path/node_modules/depd/lib/browser/index.js +0 -77
- package/test/node_modules/resolve-path/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
- package/test/node_modules/resolve-path/node_modules/depd/lib/compat/event-listener-count.js +0 -22
- package/test/node_modules/resolve-path/node_modules/depd/lib/compat/index.js +0 -79
- package/test/node_modules/resolve-path/node_modules/depd/package.json +0 -41
- package/test/node_modules/resolve-path/node_modules/http-errors/HISTORY.md +0 -132
- package/test/node_modules/resolve-path/node_modules/http-errors/LICENSE +0 -23
- package/test/node_modules/resolve-path/node_modules/http-errors/README.md +0 -135
- package/test/node_modules/resolve-path/node_modules/http-errors/index.js +0 -260
- package/test/node_modules/resolve-path/node_modules/http-errors/package.json +0 -48
- package/test/node_modules/resolve-path/node_modules/inherits/LICENSE +0 -16
- package/test/node_modules/resolve-path/node_modules/inherits/README.md +0 -42
- package/test/node_modules/resolve-path/node_modules/inherits/inherits.js +0 -7
- package/test/node_modules/resolve-path/node_modules/inherits/inherits_browser.js +0 -23
- package/test/node_modules/resolve-path/node_modules/inherits/package.json +0 -29
- package/test/node_modules/resolve-path/node_modules/setprototypeof/LICENSE +0 -13
- package/test/node_modules/resolve-path/node_modules/setprototypeof/README.md +0 -26
- package/test/node_modules/resolve-path/node_modules/setprototypeof/index.d.ts +0 -2
- package/test/node_modules/resolve-path/node_modules/setprototypeof/index.js +0 -15
- package/test/node_modules/resolve-path/node_modules/setprototypeof/package.json +0 -25
- package/test/node_modules/resolve-path/package.json +0 -46
- package/test/node_modules/safe-buffer/LICENSE +0 -21
- package/test/node_modules/safe-buffer/README.md +0 -584
- package/test/node_modules/safe-buffer/index.d.ts +0 -187
- package/test/node_modules/safe-buffer/index.js +0 -65
- package/test/node_modules/safe-buffer/package.json +0 -51
- package/test/node_modules/semver/CHANGELOG.md +0 -39
- package/test/node_modules/semver/LICENSE +0 -15
- package/test/node_modules/semver/README.md +0 -412
- package/test/node_modules/semver/bin/semver +0 -160
- package/test/node_modules/semver/package.json +0 -28
- package/test/node_modules/semver/range.bnf +0 -16
- package/test/node_modules/semver/semver.js +0 -1483
- package/test/node_modules/setprototypeof/LICENSE +0 -13
- package/test/node_modules/setprototypeof/README.md +0 -31
- package/test/node_modules/setprototypeof/index.d.ts +0 -2
- package/test/node_modules/setprototypeof/index.js +0 -17
- package/test/node_modules/setprototypeof/package.json +0 -38
- package/test/node_modules/setprototypeof/test/index.js +0 -24
- package/test/node_modules/sigmund/LICENSE +0 -15
- package/test/node_modules/sigmund/README.md +0 -53
- package/test/node_modules/sigmund/bench.js +0 -283
- package/test/node_modules/sigmund/package.json +0 -30
- package/test/node_modules/sigmund/sigmund.js +0 -39
- package/test/node_modules/sigmund/test/basic.js +0 -24
- package/test/node_modules/simple-update-notifier/LICENSE +0 -21
- package/test/node_modules/simple-update-notifier/README.md +0 -82
- package/test/node_modules/simple-update-notifier/build/index.d.ts +0 -13
- package/test/node_modules/simple-update-notifier/build/index.js +0 -217
- package/test/node_modules/simple-update-notifier/node_modules/semver/CHANGELOG.md +0 -74
- package/test/node_modules/simple-update-notifier/node_modules/semver/LICENSE +0 -15
- package/test/node_modules/simple-update-notifier/node_modules/semver/README.md +0 -499
- package/test/node_modules/simple-update-notifier/node_modules/semver/bin/semver.js +0 -173
- package/test/node_modules/simple-update-notifier/node_modules/semver/classes/comparator.js +0 -139
- package/test/node_modules/simple-update-notifier/node_modules/semver/classes/index.js +0 -5
- package/test/node_modules/simple-update-notifier/node_modules/semver/classes/range.js +0 -448
- package/test/node_modules/simple-update-notifier/node_modules/semver/classes/semver.js +0 -290
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/clean.js +0 -6
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/cmp.js +0 -48
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/coerce.js +0 -51
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/compare-build.js +0 -7
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/compare-loose.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/compare.js +0 -5
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/diff.js +0 -25
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/eq.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/gt.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/gte.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/inc.js +0 -15
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/lt.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/lte.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/major.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/minor.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/neq.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/parse.js +0 -37
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/patch.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/prerelease.js +0 -6
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/rcompare.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/rsort.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/satisfies.js +0 -10
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/sort.js +0 -3
- package/test/node_modules/simple-update-notifier/node_modules/semver/functions/valid.js +0 -6
- package/test/node_modules/simple-update-notifier/node_modules/semver/index.js +0 -64
- package/test/node_modules/simple-update-notifier/node_modules/semver/internal/constants.js +0 -17
- package/test/node_modules/simple-update-notifier/node_modules/semver/internal/debug.js +0 -9
- package/test/node_modules/simple-update-notifier/node_modules/semver/internal/identifiers.js +0 -23
- package/test/node_modules/simple-update-notifier/node_modules/semver/internal/re.js +0 -179
- package/test/node_modules/simple-update-notifier/node_modules/semver/package.json +0 -34
- package/test/node_modules/simple-update-notifier/node_modules/semver/range.bnf +0 -16
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/gtr.js +0 -4
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/intersects.js +0 -7
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/ltr.js +0 -4
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/min-version.js +0 -57
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/outside.js +0 -80
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/to-comparators.js +0 -8
- package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/valid.js +0 -11
- package/test/node_modules/simple-update-notifier/package.json +0 -97
- package/test/node_modules/simple-update-notifier/src/borderedText.ts +0 -12
- package/test/node_modules/simple-update-notifier/src/cache.spec.ts +0 -17
- package/test/node_modules/simple-update-notifier/src/cache.ts +0 -44
- package/test/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +0 -35
- package/test/node_modules/simple-update-notifier/src/getDistVersion.ts +0 -29
- package/test/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +0 -82
- package/test/node_modules/simple-update-notifier/src/hasNewVersion.ts +0 -40
- package/test/node_modules/simple-update-notifier/src/index.spec.ts +0 -27
- package/test/node_modules/simple-update-notifier/src/index.ts +0 -34
- package/test/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +0 -12
- package/test/node_modules/simple-update-notifier/src/types.ts +0 -8
- package/test/node_modules/statuses/HISTORY.md +0 -65
- package/test/node_modules/statuses/LICENSE +0 -23
- package/test/node_modules/statuses/README.md +0 -127
- package/test/node_modules/statuses/codes.json +0 -66
- package/test/node_modules/statuses/index.js +0 -113
- package/test/node_modules/statuses/package.json +0 -48
- package/test/node_modules/supports-color/browser.js +0 -5
- package/test/node_modules/supports-color/index.js +0 -135
- package/test/node_modules/supports-color/license +0 -9
- package/test/node_modules/supports-color/package.json +0 -53
- package/test/node_modules/supports-color/readme.md +0 -76
- package/test/node_modules/thenify/History.md +0 -11
- package/test/node_modules/thenify/LICENSE +0 -22
- package/test/node_modules/thenify/README.md +0 -120
- package/test/node_modules/thenify/index.js +0 -77
- package/test/node_modules/thenify/package.json +0 -31
- package/test/node_modules/thenify-all/History.md +0 -11
- package/test/node_modules/thenify-all/LICENSE +0 -22
- package/test/node_modules/thenify-all/README.md +0 -66
- package/test/node_modules/thenify-all/index.js +0 -73
- package/test/node_modules/thenify-all/package.json +0 -34
- package/test/node_modules/to-regex-range/LICENSE +0 -21
- package/test/node_modules/to-regex-range/README.md +0 -305
- package/test/node_modules/to-regex-range/index.js +0 -288
- package/test/node_modules/to-regex-range/package.json +0 -88
- package/test/node_modules/toidentifier/HISTORY.md +0 -9
- package/test/node_modules/toidentifier/LICENSE +0 -21
- package/test/node_modules/toidentifier/README.md +0 -61
- package/test/node_modules/toidentifier/index.js +0 -32
- package/test/node_modules/toidentifier/package.json +0 -38
- package/test/node_modules/touch/LICENSE +0 -15
- package/test/node_modules/touch/README.md +0 -52
- package/test/node_modules/touch/bin/nodetouch.js +0 -112
- package/test/node_modules/touch/index.js +0 -224
- package/test/node_modules/touch/node_modules/nopt/LICENSE +0 -23
- package/test/node_modules/touch/node_modules/nopt/README.md +0 -208
- package/test/node_modules/touch/node_modules/nopt/bin/nopt.js +0 -44
- package/test/node_modules/touch/node_modules/nopt/examples/my-program.js +0 -30
- package/test/node_modules/touch/node_modules/nopt/lib/nopt.js +0 -552
- package/test/node_modules/touch/node_modules/nopt/package.json +0 -12
- package/test/node_modules/touch/package.json +0 -28
- package/test/node_modules/tsscmp/.travis.yml +0 -18
- package/test/node_modules/tsscmp/LICENSE +0 -21
- package/test/node_modules/tsscmp/README.md +0 -48
- package/test/node_modules/tsscmp/appveyor.yml +0 -29
- package/test/node_modules/tsscmp/lib/index.js +0 -38
- package/test/node_modules/tsscmp/package.json +0 -29
- package/test/node_modules/tsscmp/test/benchmark/index.js +0 -30
- package/test/node_modules/tsscmp/test/unit/index.js +0 -69
- package/test/node_modules/type-is/HISTORY.md +0 -259
- package/test/node_modules/type-is/LICENSE +0 -23
- package/test/node_modules/type-is/README.md +0 -170
- package/test/node_modules/type-is/index.js +0 -266
- package/test/node_modules/type-is/package.json +0 -45
- package/test/node_modules/undefsafe/.github/workflows/release.yml +0 -25
- package/test/node_modules/undefsafe/.jscsrc +0 -13
- package/test/node_modules/undefsafe/.jshintrc +0 -16
- package/test/node_modules/undefsafe/.travis.yml +0 -18
- package/test/node_modules/undefsafe/LICENSE +0 -22
- package/test/node_modules/undefsafe/README.md +0 -63
- package/test/node_modules/undefsafe/example.js +0 -14
- package/test/node_modules/undefsafe/lib/undefsafe.js +0 -125
- package/test/node_modules/undefsafe/package.json +0 -34
- package/test/node_modules/vary/HISTORY.md +0 -39
- package/test/node_modules/vary/LICENSE +0 -22
- package/test/node_modules/vary/README.md +0 -101
- package/test/node_modules/vary/index.js +0 -149
- package/test/node_modules/vary/package.json +0 -43
- package/test/node_modules/wrappy/LICENSE +0 -15
- package/test/node_modules/wrappy/README.md +0 -36
- package/test/node_modules/wrappy/package.json +0 -29
- package/test/node_modules/wrappy/wrappy.js +0 -33
- package/test/node_modules/yallist/LICENSE +0 -15
- package/test/node_modules/yallist/README.md +0 -204
- package/test/node_modules/yallist/iterator.js +0 -7
- package/test/node_modules/yallist/package.json +0 -29
- package/test/node_modules/yallist/yallist.js +0 -370
- package/test/node_modules/ylru/History.md +0 -42
- package/test/node_modules/ylru/LICENSE +0 -23
- package/test/node_modules/ylru/README.md +0 -99
- package/test/node_modules/ylru/index.d.ts +0 -18
- package/test/node_modules/ylru/index.js +0 -106
- package/test/node_modules/ylru/package.json +0 -52
- package/test/package-lock.json +0 -2212
- package/test/package.json +0 -17
- package/test/public/api +0 -1
- package/test/public/cartella nuova/ewewew.html +0 -12
- package/test/public/cartella nuova/prova.ejs +0 -12
- package/test/public/index.ejs +0 -12
- package/test/public/index.html +0 -12
- package/test/public/proma_template.ejs +0 -16
- package/test/public/un altro file.html +0 -12
- package/test/public/un_file.html +0 -12
- package/test/test.js +0 -63
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Koa contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
'Software'), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
<img src="/docs/logo.png" alt="Koa middleware framework for nodejs"/>
|
|
2
|
-
|
|
3
|
-
[![gitter][gitter-image]][gitter-url]
|
|
4
|
-
[![NPM version][npm-image]][npm-url]
|
|
5
|
-
[![build status][travis-image]][travis-url]
|
|
6
|
-
[![Test coverage][coveralls-image]][coveralls-url]
|
|
7
|
-
[![OpenCollective Backers][backers-image]](#backers)
|
|
8
|
-
[![OpenCollective Sponsors][sponsors-image]](#sponsors)
|
|
9
|
-
[![PR's Welcome][pr-welcoming-image]][pr-welcoming-url]
|
|
10
|
-
|
|
11
|
-
Expressive HTTP middleware framework for node.js to make web applications and APIs more enjoyable to write. Koa's middleware stack flows in a stack-like manner, allowing you to perform actions downstream then filter and manipulate the response upstream.
|
|
12
|
-
|
|
13
|
-
Only methods that are common to nearly all HTTP servers are integrated directly into Koa's small ~570 SLOC codebase. This
|
|
14
|
-
includes things like content negotiation, normalization of node inconsistencies, redirection, and a few others.
|
|
15
|
-
|
|
16
|
-
Koa is not bundled with any middleware.
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
Koa requires __node v7.6.0__ or higher for ES2015 and async function support.
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
$ npm install koa
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Hello Koa
|
|
27
|
-
|
|
28
|
-
```js
|
|
29
|
-
const Koa = require('koa');
|
|
30
|
-
const app = new Koa();
|
|
31
|
-
|
|
32
|
-
// response
|
|
33
|
-
app.use(ctx => {
|
|
34
|
-
ctx.body = 'Hello Koa';
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
app.listen(3000);
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Getting started
|
|
41
|
-
|
|
42
|
-
- [Kick-Off-Koa](https://github.com/koajs/kick-off-koa) - An intro to Koa via a set of self-guided workshops.
|
|
43
|
-
- [Workshop](https://github.com/koajs/workshop) - A workshop to learn the basics of Koa, Express' spiritual successor.
|
|
44
|
-
- [Introduction Screencast](https://knowthen.com/episode-3-koajs-quickstart-guide/) - An introduction to installing and getting started with Koa
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## Middleware
|
|
48
|
-
|
|
49
|
-
Koa is a middleware framework that can take two different kinds of functions as middleware:
|
|
50
|
-
|
|
51
|
-
* async function
|
|
52
|
-
* common function
|
|
53
|
-
|
|
54
|
-
Here is an example of logger middleware with each of the different functions:
|
|
55
|
-
|
|
56
|
-
### ___async___ functions (node v7.6+)
|
|
57
|
-
|
|
58
|
-
```js
|
|
59
|
-
app.use(async (ctx, next) => {
|
|
60
|
-
const start = Date.now();
|
|
61
|
-
await next();
|
|
62
|
-
const ms = Date.now() - start;
|
|
63
|
-
console.log(`${ctx.method} ${ctx.url} - ${ms}ms`);
|
|
64
|
-
});
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Common function
|
|
68
|
-
|
|
69
|
-
```js
|
|
70
|
-
// Middleware normally takes two parameters (ctx, next), ctx is the context for one request,
|
|
71
|
-
// next is a function that is invoked to execute the downstream middleware. It returns a Promise with a then function for running code after completion.
|
|
72
|
-
|
|
73
|
-
app.use((ctx, next) => {
|
|
74
|
-
const start = Date.now();
|
|
75
|
-
return next().then(() => {
|
|
76
|
-
const ms = Date.now() - start;
|
|
77
|
-
console.log(`${ctx.method} ${ctx.url} - ${ms}ms`);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Koa v1.x Middleware Signature
|
|
83
|
-
|
|
84
|
-
The middleware signature changed between v1.x and v2.x. The older signature is deprecated.
|
|
85
|
-
|
|
86
|
-
**Old signature middleware support will be removed in v3**
|
|
87
|
-
|
|
88
|
-
Please see the [Migration Guide](docs/migration.md) for more information on upgrading from v1.x and
|
|
89
|
-
using v1.x middleware with v2.x.
|
|
90
|
-
|
|
91
|
-
## Context, Request and Response
|
|
92
|
-
|
|
93
|
-
Each middleware receives a Koa `Context` object that encapsulates an incoming
|
|
94
|
-
http message and the corresponding response to that message. `ctx` is often used
|
|
95
|
-
as the parameter name for the context object.
|
|
96
|
-
|
|
97
|
-
```js
|
|
98
|
-
app.use(async (ctx, next) => { await next(); });
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Koa provides a `Request` object as the `request` property of the `Context`.
|
|
102
|
-
Koa's `Request` object provides helpful methods for working with
|
|
103
|
-
http requests which delegate to an [IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
|
104
|
-
from the node `http` module.
|
|
105
|
-
|
|
106
|
-
Here is an example of checking that a requesting client supports xml.
|
|
107
|
-
|
|
108
|
-
```js
|
|
109
|
-
app.use(async (ctx, next) => {
|
|
110
|
-
ctx.assert(ctx.request.accepts('xml'), 406);
|
|
111
|
-
// equivalent to:
|
|
112
|
-
// if (!ctx.request.accepts('xml')) ctx.throw(406);
|
|
113
|
-
await next();
|
|
114
|
-
});
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Koa provides a `Response` object as the `response` property of the `Context`.
|
|
118
|
-
Koa's `Response` object provides helpful methods for working with
|
|
119
|
-
http responses which delegate to a [ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse)
|
|
120
|
-
.
|
|
121
|
-
|
|
122
|
-
Koa's pattern of delegating to Node's request and response objects rather than extending them
|
|
123
|
-
provides a cleaner interface and reduces conflicts between different middleware and with Node
|
|
124
|
-
itself as well as providing better support for stream handling. The `IncomingMessage` can still be
|
|
125
|
-
directly accessed as the `req` property on the `Context` and `ServerResponse` can be directly
|
|
126
|
-
accessed as the `res` property on the `Context`.
|
|
127
|
-
|
|
128
|
-
Here is an example using Koa's `Response` object to stream a file as the response body.
|
|
129
|
-
|
|
130
|
-
```js
|
|
131
|
-
app.use(async (ctx, next) => {
|
|
132
|
-
await next();
|
|
133
|
-
ctx.response.type = 'xml';
|
|
134
|
-
ctx.response.body = fs.createReadStream('really_large.xml');
|
|
135
|
-
});
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
The `Context` object also provides shortcuts for methods on its `request` and `response`. In the prior
|
|
139
|
-
examples, `ctx.type` can be used instead of `ctx.response.type` and `ctx.accepts` can be used
|
|
140
|
-
instead of `ctx.request.accepts`.
|
|
141
|
-
|
|
142
|
-
For more information on `Request`, `Response` and `Context`, see the [Request API Reference](docs/api/request.md),
|
|
143
|
-
[Response API Reference](docs/api/response.md) and [Context API Reference](docs/api/context.md).
|
|
144
|
-
|
|
145
|
-
## Koa Application
|
|
146
|
-
|
|
147
|
-
The object created when executing `new Koa()` is known as the Koa application object.
|
|
148
|
-
|
|
149
|
-
The application object is Koa's interface with node's http server and handles the registration
|
|
150
|
-
of middleware, dispatching to the middleware from http, default error handling, as well as
|
|
151
|
-
configuration of the context, request and response objects.
|
|
152
|
-
|
|
153
|
-
Learn more about the application object in the [Application API Reference](docs/api/index.md).
|
|
154
|
-
|
|
155
|
-
## Documentation
|
|
156
|
-
|
|
157
|
-
- [Usage Guide](docs/guide.md)
|
|
158
|
-
- [Error Handling](docs/error-handling.md)
|
|
159
|
-
- [Koa for Express Users](docs/koa-vs-express.md)
|
|
160
|
-
- [FAQ](docs/faq.md)
|
|
161
|
-
- [API documentation](docs/api/index.md)
|
|
162
|
-
|
|
163
|
-
## Troubleshooting
|
|
164
|
-
|
|
165
|
-
Check the [Troubleshooting Guide](docs/troubleshooting.md) or [Debugging Koa](docs/guide.md#debugging-koa) in
|
|
166
|
-
the general Koa guide.
|
|
167
|
-
|
|
168
|
-
## Running tests
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
$ npm test
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## Reporting vulnerabilities
|
|
175
|
-
|
|
176
|
-
To report a security vulnerability, please do not open an issue, as this notifies attackers of the vulnerability. Instead, please email [dead_horse](mailto:heyiyu.deadhorse@gmail.com), [jonathanong](mailto:me@jongleberry.com), and [niftylettuce](mailto:niftylettuce@gmail.com) to disclose.
|
|
177
|
-
|
|
178
|
-
## Authors
|
|
179
|
-
|
|
180
|
-
See [AUTHORS](AUTHORS).
|
|
181
|
-
|
|
182
|
-
## Community
|
|
183
|
-
|
|
184
|
-
- [Badgeboard](https://koajs.github.io/badgeboard) and list of official modules
|
|
185
|
-
- [Examples](https://github.com/koajs/examples)
|
|
186
|
-
- [Middleware](https://github.com/koajs/koa/wiki) list
|
|
187
|
-
- [Wiki](https://github.com/koajs/koa/wiki)
|
|
188
|
-
- [Reddit Community](https://www.reddit.com/r/koajs)
|
|
189
|
-
- [Mailing list](https://groups.google.com/forum/#!forum/koajs)
|
|
190
|
-
- [中文文档 v1.x](https://github.com/guo-yu/koa-guide)
|
|
191
|
-
- [中文文档 v2.x](https://github.com/demopark/koa-docs-Zh-CN)
|
|
192
|
-
- __[#koajs]__ on freenode
|
|
193
|
-
|
|
194
|
-
## Job Board
|
|
195
|
-
|
|
196
|
-
Looking for a career upgrade?
|
|
197
|
-
|
|
198
|
-
<a href="https://astro.netlify.com/automattic"><img src="https://astro.netlify.com/static/automattic.png"></a>
|
|
199
|
-
<a href="https://astro.netlify.com/segment"><img src="https://astro.netlify.com/static/segment.png"></a>
|
|
200
|
-
<a href="https://astro.netlify.com/auth0"><img src="https://astro.netlify.com/static/auth0.png"/></a>
|
|
201
|
-
|
|
202
|
-
## Backers
|
|
203
|
-
|
|
204
|
-
Support us with a monthly donation and help us continue our activities.
|
|
205
|
-
|
|
206
|
-
<a href="https://opencollective.com/koajs/backer/0/website" target="_blank"><img src="https://opencollective.com/koajs/backer/0/avatar.svg"></a>
|
|
207
|
-
<a href="https://opencollective.com/koajs/backer/1/website" target="_blank"><img src="https://opencollective.com/koajs/backer/1/avatar.svg"></a>
|
|
208
|
-
<a href="https://opencollective.com/koajs/backer/2/website" target="_blank"><img src="https://opencollective.com/koajs/backer/2/avatar.svg"></a>
|
|
209
|
-
<a href="https://opencollective.com/koajs/backer/3/website" target="_blank"><img src="https://opencollective.com/koajs/backer/3/avatar.svg"></a>
|
|
210
|
-
<a href="https://opencollective.com/koajs/backer/4/website" target="_blank"><img src="https://opencollective.com/koajs/backer/4/avatar.svg"></a>
|
|
211
|
-
<a href="https://opencollective.com/koajs/backer/5/website" target="_blank"><img src="https://opencollective.com/koajs/backer/5/avatar.svg"></a>
|
|
212
|
-
<a href="https://opencollective.com/koajs/backer/6/website" target="_blank"><img src="https://opencollective.com/koajs/backer/6/avatar.svg"></a>
|
|
213
|
-
<a href="https://opencollective.com/koajs/backer/7/website" target="_blank"><img src="https://opencollective.com/koajs/backer/7/avatar.svg"></a>
|
|
214
|
-
<a href="https://opencollective.com/koajs/backer/8/website" target="_blank"><img src="https://opencollective.com/koajs/backer/8/avatar.svg"></a>
|
|
215
|
-
<a href="https://opencollective.com/koajs/backer/9/website" target="_blank"><img src="https://opencollective.com/koajs/backer/9/avatar.svg"></a>
|
|
216
|
-
<a href="https://opencollective.com/koajs/backer/10/website" target="_blank"><img src="https://opencollective.com/koajs/backer/10/avatar.svg"></a>
|
|
217
|
-
<a href="https://opencollective.com/koajs/backer/11/website" target="_blank"><img src="https://opencollective.com/koajs/backer/11/avatar.svg"></a>
|
|
218
|
-
<a href="https://opencollective.com/koajs/backer/12/website" target="_blank"><img src="https://opencollective.com/koajs/backer/12/avatar.svg"></a>
|
|
219
|
-
<a href="https://opencollective.com/koajs/backer/13/website" target="_blank"><img src="https://opencollective.com/koajs/backer/13/avatar.svg"></a>
|
|
220
|
-
<a href="https://opencollective.com/koajs/backer/14/website" target="_blank"><img src="https://opencollective.com/koajs/backer/14/avatar.svg"></a>
|
|
221
|
-
<a href="https://opencollective.com/koajs/backer/15/website" target="_blank"><img src="https://opencollective.com/koajs/backer/15/avatar.svg"></a>
|
|
222
|
-
<a href="https://opencollective.com/koajs/backer/16/website" target="_blank"><img src="https://opencollective.com/koajs/backer/16/avatar.svg"></a>
|
|
223
|
-
<a href="https://opencollective.com/koajs/backer/17/website" target="_blank"><img src="https://opencollective.com/koajs/backer/17/avatar.svg"></a>
|
|
224
|
-
<a href="https://opencollective.com/koajs/backer/18/website" target="_blank"><img src="https://opencollective.com/koajs/backer/18/avatar.svg"></a>
|
|
225
|
-
<a href="https://opencollective.com/koajs/backer/19/website" target="_blank"><img src="https://opencollective.com/koajs/backer/19/avatar.svg"></a>
|
|
226
|
-
<a href="https://opencollective.com/koajs/backer/20/website" target="_blank"><img src="https://opencollective.com/koajs/backer/20/avatar.svg"></a>
|
|
227
|
-
<a href="https://opencollective.com/koajs/backer/21/website" target="_blank"><img src="https://opencollective.com/koajs/backer/21/avatar.svg"></a>
|
|
228
|
-
<a href="https://opencollective.com/koajs/backer/22/website" target="_blank"><img src="https://opencollective.com/koajs/backer/22/avatar.svg"></a>
|
|
229
|
-
<a href="https://opencollective.com/koajs/backer/23/website" target="_blank"><img src="https://opencollective.com/koajs/backer/23/avatar.svg"></a>
|
|
230
|
-
<a href="https://opencollective.com/koajs/backer/24/website" target="_blank"><img src="https://opencollective.com/koajs/backer/24/avatar.svg"></a>
|
|
231
|
-
<a href="https://opencollective.com/koajs/backer/25/website" target="_blank"><img src="https://opencollective.com/koajs/backer/25/avatar.svg"></a>
|
|
232
|
-
<a href="https://opencollective.com/koajs/backer/26/website" target="_blank"><img src="https://opencollective.com/koajs/backer/26/avatar.svg"></a>
|
|
233
|
-
<a href="https://opencollective.com/koajs/backer/27/website" target="_blank"><img src="https://opencollective.com/koajs/backer/27/avatar.svg"></a>
|
|
234
|
-
<a href="https://opencollective.com/koajs/backer/28/website" target="_blank"><img src="https://opencollective.com/koajs/backer/28/avatar.svg"></a>
|
|
235
|
-
<a href="https://opencollective.com/koajs/backer/29/website" target="_blank"><img src="https://opencollective.com/koajs/backer/29/avatar.svg"></a>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
## Sponsors
|
|
239
|
-
|
|
240
|
-
Become a sponsor and get your logo on our README on Github with a link to your site.
|
|
241
|
-
|
|
242
|
-
<a href="https://opencollective.com/koajs/sponsor/0/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/0/avatar.svg"></a>
|
|
243
|
-
<a href="https://opencollective.com/koajs/sponsor/1/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/1/avatar.svg"></a>
|
|
244
|
-
<a href="https://opencollective.com/koajs/sponsor/2/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/2/avatar.svg"></a>
|
|
245
|
-
<a href="https://opencollective.com/koajs/sponsor/3/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/3/avatar.svg"></a>
|
|
246
|
-
<a href="https://opencollective.com/koajs/sponsor/4/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/4/avatar.svg"></a>
|
|
247
|
-
<a href="https://opencollective.com/koajs/sponsor/5/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/5/avatar.svg"></a>
|
|
248
|
-
<a href="https://opencollective.com/koajs/sponsor/6/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/6/avatar.svg"></a>
|
|
249
|
-
<a href="https://opencollective.com/koajs/sponsor/7/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/7/avatar.svg"></a>
|
|
250
|
-
<a href="https://opencollective.com/koajs/sponsor/8/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/8/avatar.svg"></a>
|
|
251
|
-
<a href="https://opencollective.com/koajs/sponsor/9/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/9/avatar.svg"></a>
|
|
252
|
-
<a href="https://opencollective.com/koajs/sponsor/10/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/10/avatar.svg"></a>
|
|
253
|
-
<a href="https://opencollective.com/koajs/sponsor/11/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/11/avatar.svg"></a>
|
|
254
|
-
<a href="https://opencollective.com/koajs/sponsor/12/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/12/avatar.svg"></a>
|
|
255
|
-
<a href="https://opencollective.com/koajs/sponsor/13/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/13/avatar.svg"></a>
|
|
256
|
-
<a href="https://opencollective.com/koajs/sponsor/14/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/14/avatar.svg"></a>
|
|
257
|
-
<a href="https://opencollective.com/koajs/sponsor/15/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/15/avatar.svg"></a>
|
|
258
|
-
<a href="https://opencollective.com/koajs/sponsor/16/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/16/avatar.svg"></a>
|
|
259
|
-
<a href="https://opencollective.com/koajs/sponsor/17/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/17/avatar.svg"></a>
|
|
260
|
-
<a href="https://opencollective.com/koajs/sponsor/18/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/18/avatar.svg"></a>
|
|
261
|
-
<a href="https://opencollective.com/koajs/sponsor/19/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/19/avatar.svg"></a>
|
|
262
|
-
<a href="https://opencollective.com/koajs/sponsor/20/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/20/avatar.svg"></a>
|
|
263
|
-
<a href="https://opencollective.com/koajs/sponsor/21/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/21/avatar.svg"></a>
|
|
264
|
-
<a href="https://opencollective.com/koajs/sponsor/22/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/22/avatar.svg"></a>
|
|
265
|
-
<a href="https://opencollective.com/koajs/sponsor/23/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/23/avatar.svg"></a>
|
|
266
|
-
<a href="https://opencollective.com/koajs/sponsor/24/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/24/avatar.svg"></a>
|
|
267
|
-
<a href="https://opencollective.com/koajs/sponsor/25/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/25/avatar.svg"></a>
|
|
268
|
-
<a href="https://opencollective.com/koajs/sponsor/26/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/26/avatar.svg"></a>
|
|
269
|
-
<a href="https://opencollective.com/koajs/sponsor/27/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/27/avatar.svg"></a>
|
|
270
|
-
<a href="https://opencollective.com/koajs/sponsor/28/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/28/avatar.svg"></a>
|
|
271
|
-
<a href="https://opencollective.com/koajs/sponsor/29/website" target="_blank"><img src="https://opencollective.com/koajs/sponsor/29/avatar.svg"></a>
|
|
272
|
-
|
|
273
|
-
# License
|
|
274
|
-
|
|
275
|
-
[MIT](https://github.com/koajs/koa/blob/master/LICENSE)
|
|
276
|
-
|
|
277
|
-
[npm-image]: https://img.shields.io/npm/v/koa.svg?style=flat-square
|
|
278
|
-
[npm-url]: https://www.npmjs.com/package/koa
|
|
279
|
-
[travis-image]: https://img.shields.io/travis/koajs/koa/master.svg?style=flat-square
|
|
280
|
-
[travis-url]: https://travis-ci.org/koajs/koa
|
|
281
|
-
[coveralls-image]: https://img.shields.io/codecov/c/github/koajs/koa.svg?style=flat-square
|
|
282
|
-
[coveralls-url]: https://codecov.io/github/koajs/koa?branch=master
|
|
283
|
-
[backers-image]: https://opencollective.com/koajs/backers/badge.svg?style=flat-square
|
|
284
|
-
[sponsors-image]: https://opencollective.com/koajs/sponsors/badge.svg?style=flat-square
|
|
285
|
-
[gitter-image]: https://img.shields.io/gitter/room/koajs/koa.svg?style=flat-square
|
|
286
|
-
[gitter-url]: https://gitter.im/koajs/koa?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
|
287
|
-
[#koajs]: https://webchat.freenode.net/?channels=#koajs
|
|
288
|
-
[pr-welcoming-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
|
|
289
|
-
[pr-welcoming-url]: https://github.com/koajs/koa/pull/new
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Module dependencies.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const isGeneratorFunction = require('is-generator-function');
|
|
9
|
-
const debug = require('debug')('koa:application');
|
|
10
|
-
const onFinished = require('on-finished');
|
|
11
|
-
const assert = require('assert');
|
|
12
|
-
const response = require('./response');
|
|
13
|
-
const compose = require('koa-compose');
|
|
14
|
-
const context = require('./context');
|
|
15
|
-
const request = require('./request');
|
|
16
|
-
const statuses = require('statuses');
|
|
17
|
-
const Emitter = require('events');
|
|
18
|
-
const util = require('util');
|
|
19
|
-
const Stream = require('stream');
|
|
20
|
-
const http = require('http');
|
|
21
|
-
const only = require('only');
|
|
22
|
-
const convert = require('koa-convert');
|
|
23
|
-
const deprecate = require('depd')('koa');
|
|
24
|
-
const { HttpError } = require('http-errors');
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Expose `Application` class.
|
|
28
|
-
* Inherits from `Emitter.prototype`.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
module.exports = class Application extends Emitter {
|
|
32
|
-
/**
|
|
33
|
-
* Initialize a new `Application`.
|
|
34
|
-
*
|
|
35
|
-
* @api public
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @param {object} [options] Application options
|
|
41
|
-
* @param {string} [options.env='development'] Environment
|
|
42
|
-
* @param {string[]} [options.keys] Signed cookie keys
|
|
43
|
-
* @param {boolean} [options.proxy] Trust proxy headers
|
|
44
|
-
* @param {number} [options.subdomainOffset] Subdomain offset
|
|
45
|
-
* @param {string} [options.proxyIpHeader] Proxy IP header, defaults to X-Forwarded-For
|
|
46
|
-
* @param {number} [options.maxIpsCount] Max IPs read from proxy IP header, default to 0 (means infinity)
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
constructor(options) {
|
|
51
|
-
super();
|
|
52
|
-
options = options || {};
|
|
53
|
-
this.proxy = options.proxy || false;
|
|
54
|
-
this.subdomainOffset = options.subdomainOffset || 2;
|
|
55
|
-
this.proxyIpHeader = options.proxyIpHeader || 'X-Forwarded-For';
|
|
56
|
-
this.maxIpsCount = options.maxIpsCount || 0;
|
|
57
|
-
this.env = options.env || process.env.NODE_ENV || 'development';
|
|
58
|
-
if (options.keys) this.keys = options.keys;
|
|
59
|
-
this.middleware = [];
|
|
60
|
-
this.context = Object.create(context);
|
|
61
|
-
this.request = Object.create(request);
|
|
62
|
-
this.response = Object.create(response);
|
|
63
|
-
// util.inspect.custom support for node 6+
|
|
64
|
-
/* istanbul ignore else */
|
|
65
|
-
if (util.inspect.custom) {
|
|
66
|
-
this[util.inspect.custom] = this.inspect;
|
|
67
|
-
}
|
|
68
|
-
if (options.asyncLocalStorage) {
|
|
69
|
-
const { AsyncLocalStorage } = require('async_hooks');
|
|
70
|
-
assert(AsyncLocalStorage, 'Requires node 12.17.0 or higher to enable asyncLocalStorage');
|
|
71
|
-
this.ctxStorage = new AsyncLocalStorage();
|
|
72
|
-
this.use(this.createAsyncCtxStorageMiddleware());
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Shorthand for:
|
|
78
|
-
*
|
|
79
|
-
* http.createServer(app.callback()).listen(...)
|
|
80
|
-
*
|
|
81
|
-
* @param {Mixed} ...
|
|
82
|
-
* @return {Server}
|
|
83
|
-
* @api public
|
|
84
|
-
*/
|
|
85
|
-
|
|
86
|
-
listen(...args) {
|
|
87
|
-
debug('listen');
|
|
88
|
-
const server = http.createServer(this.callback());
|
|
89
|
-
return server.listen(...args);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Return JSON representation.
|
|
94
|
-
* We only bother showing settings.
|
|
95
|
-
*
|
|
96
|
-
* @return {Object}
|
|
97
|
-
* @api public
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
toJSON() {
|
|
101
|
-
return only(this, [
|
|
102
|
-
'subdomainOffset',
|
|
103
|
-
'proxy',
|
|
104
|
-
'env'
|
|
105
|
-
]);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Inspect implementation.
|
|
110
|
-
*
|
|
111
|
-
* @return {Object}
|
|
112
|
-
* @api public
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
inspect() {
|
|
116
|
-
return this.toJSON();
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Use the given middleware `fn`.
|
|
121
|
-
*
|
|
122
|
-
* Old-style middleware will be converted.
|
|
123
|
-
*
|
|
124
|
-
* @param {Function} fn
|
|
125
|
-
* @return {Application} self
|
|
126
|
-
* @api public
|
|
127
|
-
*/
|
|
128
|
-
|
|
129
|
-
use(fn) {
|
|
130
|
-
if (typeof fn !== 'function') throw new TypeError('middleware must be a function!');
|
|
131
|
-
if (isGeneratorFunction(fn)) {
|
|
132
|
-
deprecate('Support for generators will be removed in v3. ' +
|
|
133
|
-
'See the documentation for examples of how to convert old middleware ' +
|
|
134
|
-
'https://github.com/koajs/koa/blob/master/docs/migration.md');
|
|
135
|
-
fn = convert(fn);
|
|
136
|
-
}
|
|
137
|
-
debug('use %s', fn._name || fn.name || '-');
|
|
138
|
-
this.middleware.push(fn);
|
|
139
|
-
return this;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Return a request handler callback
|
|
144
|
-
* for node's native http server.
|
|
145
|
-
*
|
|
146
|
-
* @return {Function}
|
|
147
|
-
* @api public
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
callback() {
|
|
151
|
-
const fn = compose(this.middleware);
|
|
152
|
-
|
|
153
|
-
if (!this.listenerCount('error')) this.on('error', this.onerror);
|
|
154
|
-
|
|
155
|
-
const handleRequest = (req, res) => {
|
|
156
|
-
const ctx = this.createContext(req, res);
|
|
157
|
-
return this.handleRequest(ctx, fn);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
return handleRequest;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* return currnect contenxt from async local storage
|
|
165
|
-
*/
|
|
166
|
-
get currentContext() {
|
|
167
|
-
if (this.ctxStorage) return this.ctxStorage.getStore();
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Handle request in callback.
|
|
172
|
-
*
|
|
173
|
-
* @api private
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
|
-
handleRequest(ctx, fnMiddleware) {
|
|
177
|
-
const res = ctx.res;
|
|
178
|
-
res.statusCode = 404;
|
|
179
|
-
const onerror = err => ctx.onerror(err);
|
|
180
|
-
const handleResponse = () => respond(ctx);
|
|
181
|
-
onFinished(res, onerror);
|
|
182
|
-
return fnMiddleware(ctx).then(handleResponse).catch(onerror);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Initialize a new context.
|
|
187
|
-
*
|
|
188
|
-
* @api private
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
createContext(req, res) {
|
|
192
|
-
const context = Object.create(this.context);
|
|
193
|
-
const request = context.request = Object.create(this.request);
|
|
194
|
-
const response = context.response = Object.create(this.response);
|
|
195
|
-
context.app = request.app = response.app = this;
|
|
196
|
-
context.req = request.req = response.req = req;
|
|
197
|
-
context.res = request.res = response.res = res;
|
|
198
|
-
request.ctx = response.ctx = context;
|
|
199
|
-
request.response = response;
|
|
200
|
-
response.request = request;
|
|
201
|
-
context.originalUrl = request.originalUrl = req.url;
|
|
202
|
-
context.state = {};
|
|
203
|
-
return context;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Default error handler.
|
|
208
|
-
*
|
|
209
|
-
* @param {Error} err
|
|
210
|
-
* @api private
|
|
211
|
-
*/
|
|
212
|
-
|
|
213
|
-
onerror(err) {
|
|
214
|
-
// When dealing with cross-globals a normal `instanceof` check doesn't work properly.
|
|
215
|
-
// See https://github.com/koajs/koa/issues/1466
|
|
216
|
-
// We can probably remove it once jest fixes https://github.com/facebook/jest/issues/2549.
|
|
217
|
-
const isNativeError =
|
|
218
|
-
Object.prototype.toString.call(err) === '[object Error]' ||
|
|
219
|
-
err instanceof Error;
|
|
220
|
-
if (!isNativeError) throw new TypeError(util.format('non-error thrown: %j', err));
|
|
221
|
-
|
|
222
|
-
if (404 === err.status || err.expose) return;
|
|
223
|
-
if (this.silent) return;
|
|
224
|
-
|
|
225
|
-
const msg = err.stack || err.toString();
|
|
226
|
-
console.error(`\n${msg.replace(/^/gm, ' ')}\n`);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Help TS users comply to CommonJS, ESM, bundler mismatch.
|
|
231
|
-
* @see https://github.com/koajs/koa/issues/1513
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
static get default() {
|
|
235
|
-
return Application;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
createAsyncCtxStorageMiddleware() {
|
|
239
|
-
const app = this;
|
|
240
|
-
return async function asyncCtxStorage(ctx, next) {
|
|
241
|
-
await app.ctxStorage.run(ctx, async() => {
|
|
242
|
-
return await next();
|
|
243
|
-
});
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Response helper.
|
|
250
|
-
*/
|
|
251
|
-
|
|
252
|
-
function respond(ctx) {
|
|
253
|
-
// allow bypassing koa
|
|
254
|
-
if (false === ctx.respond) return;
|
|
255
|
-
|
|
256
|
-
if (!ctx.writable) return;
|
|
257
|
-
|
|
258
|
-
const res = ctx.res;
|
|
259
|
-
let body = ctx.body;
|
|
260
|
-
const code = ctx.status;
|
|
261
|
-
|
|
262
|
-
// ignore body
|
|
263
|
-
if (statuses.empty[code]) {
|
|
264
|
-
// strip headers
|
|
265
|
-
ctx.body = null;
|
|
266
|
-
return res.end();
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if ('HEAD' === ctx.method) {
|
|
270
|
-
if (!res.headersSent && !ctx.response.has('Content-Length')) {
|
|
271
|
-
const { length } = ctx.response;
|
|
272
|
-
if (Number.isInteger(length)) ctx.length = length;
|
|
273
|
-
}
|
|
274
|
-
return res.end();
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// status body
|
|
278
|
-
if (null == body) {
|
|
279
|
-
if (ctx.response._explicitNullBody) {
|
|
280
|
-
ctx.response.remove('Content-Type');
|
|
281
|
-
ctx.response.remove('Transfer-Encoding');
|
|
282
|
-
return res.end();
|
|
283
|
-
}
|
|
284
|
-
if (ctx.req.httpVersionMajor >= 2) {
|
|
285
|
-
body = String(code);
|
|
286
|
-
} else {
|
|
287
|
-
body = ctx.message || String(code);
|
|
288
|
-
}
|
|
289
|
-
if (!res.headersSent) {
|
|
290
|
-
ctx.type = 'text';
|
|
291
|
-
ctx.length = Buffer.byteLength(body);
|
|
292
|
-
}
|
|
293
|
-
return res.end(body);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// responses
|
|
297
|
-
if (Buffer.isBuffer(body)) return res.end(body);
|
|
298
|
-
if ('string' === typeof body) return res.end(body);
|
|
299
|
-
if (body instanceof Stream) return body.pipe(res);
|
|
300
|
-
|
|
301
|
-
// body: json
|
|
302
|
-
body = JSON.stringify(body);
|
|
303
|
-
if (!res.headersSent) {
|
|
304
|
-
ctx.length = Buffer.byteLength(body);
|
|
305
|
-
}
|
|
306
|
-
res.end(body);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Make HttpError available to consumers of the library so that consumers don't
|
|
311
|
-
* have a direct dependency upon `http-errors`
|
|
312
|
-
*/
|
|
313
|
-
|
|
314
|
-
module.exports.HttpError = HttpError;
|