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.
Files changed (1120) hide show
  1. package/README.md +117 -0
  2. package/package.json +5 -6
  3. package/Readme.md +0 -102
  4. package/test/node_modules/.package-lock.json +0 -1254
  5. package/test/node_modules/abbrev/LICENSE +0 -46
  6. package/test/node_modules/abbrev/README.md +0 -23
  7. package/test/node_modules/abbrev/abbrev.js +0 -61
  8. package/test/node_modules/abbrev/package.json +0 -21
  9. package/test/node_modules/accepts/HISTORY.md +0 -243
  10. package/test/node_modules/accepts/LICENSE +0 -23
  11. package/test/node_modules/accepts/README.md +0 -140
  12. package/test/node_modules/accepts/index.js +0 -238
  13. package/test/node_modules/accepts/package.json +0 -47
  14. package/test/node_modules/ansi-styles/index.d.ts +0 -345
  15. package/test/node_modules/ansi-styles/index.js +0 -163
  16. package/test/node_modules/ansi-styles/license +0 -9
  17. package/test/node_modules/ansi-styles/package.json +0 -56
  18. package/test/node_modules/ansi-styles/readme.md +0 -152
  19. package/test/node_modules/any-promise/.jshintrc +0 -4
  20. package/test/node_modules/any-promise/LICENSE +0 -19
  21. package/test/node_modules/any-promise/README.md +0 -161
  22. package/test/node_modules/any-promise/implementation.d.ts +0 -3
  23. package/test/node_modules/any-promise/implementation.js +0 -1
  24. package/test/node_modules/any-promise/index.d.ts +0 -73
  25. package/test/node_modules/any-promise/index.js +0 -1
  26. package/test/node_modules/any-promise/loader.js +0 -78
  27. package/test/node_modules/any-promise/optional.js +0 -6
  28. package/test/node_modules/any-promise/package.json +0 -45
  29. package/test/node_modules/any-promise/register/bluebird.d.ts +0 -1
  30. package/test/node_modules/any-promise/register/bluebird.js +0 -2
  31. package/test/node_modules/any-promise/register/es6-promise.d.ts +0 -1
  32. package/test/node_modules/any-promise/register/es6-promise.js +0 -2
  33. package/test/node_modules/any-promise/register/lie.d.ts +0 -1
  34. package/test/node_modules/any-promise/register/lie.js +0 -2
  35. package/test/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
  36. package/test/node_modules/any-promise/register/native-promise-only.js +0 -2
  37. package/test/node_modules/any-promise/register/pinkie.d.ts +0 -1
  38. package/test/node_modules/any-promise/register/pinkie.js +0 -2
  39. package/test/node_modules/any-promise/register/promise.d.ts +0 -1
  40. package/test/node_modules/any-promise/register/promise.js +0 -2
  41. package/test/node_modules/any-promise/register/q.d.ts +0 -1
  42. package/test/node_modules/any-promise/register/q.js +0 -2
  43. package/test/node_modules/any-promise/register/rsvp.d.ts +0 -1
  44. package/test/node_modules/any-promise/register/rsvp.js +0 -2
  45. package/test/node_modules/any-promise/register/vow.d.ts +0 -1
  46. package/test/node_modules/any-promise/register/vow.js +0 -2
  47. package/test/node_modules/any-promise/register/when.d.ts +0 -1
  48. package/test/node_modules/any-promise/register/when.js +0 -2
  49. package/test/node_modules/any-promise/register-shim.js +0 -18
  50. package/test/node_modules/any-promise/register.d.ts +0 -17
  51. package/test/node_modules/any-promise/register.js +0 -94
  52. package/test/node_modules/anymatch/LICENSE +0 -15
  53. package/test/node_modules/anymatch/README.md +0 -87
  54. package/test/node_modules/anymatch/index.d.ts +0 -20
  55. package/test/node_modules/anymatch/index.js +0 -104
  56. package/test/node_modules/anymatch/package.json +0 -48
  57. package/test/node_modules/async/CHANGELOG.md +0 -348
  58. package/test/node_modules/async/LICENSE +0 -19
  59. package/test/node_modules/async/README.md +0 -59
  60. package/test/node_modules/async/all.js +0 -119
  61. package/test/node_modules/async/allLimit.js +0 -46
  62. package/test/node_modules/async/allSeries.js +0 -45
  63. package/test/node_modules/async/any.js +0 -122
  64. package/test/node_modules/async/anyLimit.js +0 -47
  65. package/test/node_modules/async/anySeries.js +0 -46
  66. package/test/node_modules/async/apply.js +0 -55
  67. package/test/node_modules/async/applyEach.js +0 -57
  68. package/test/node_modules/async/applyEachSeries.js +0 -37
  69. package/test/node_modules/async/asyncify.js +0 -118
  70. package/test/node_modules/async/auto.js +0 -333
  71. package/test/node_modules/async/autoInject.js +0 -182
  72. package/test/node_modules/async/bower.json +0 -17
  73. package/test/node_modules/async/cargo.js +0 -63
  74. package/test/node_modules/async/cargoQueue.js +0 -71
  75. package/test/node_modules/async/compose.js +0 -55
  76. package/test/node_modules/async/concat.js +0 -115
  77. package/test/node_modules/async/concatLimit.js +0 -60
  78. package/test/node_modules/async/concatSeries.js +0 -41
  79. package/test/node_modules/async/constant.js +0 -55
  80. package/test/node_modules/async/detect.js +0 -96
  81. package/test/node_modules/async/detectLimit.js +0 -48
  82. package/test/node_modules/async/detectSeries.js +0 -47
  83. package/test/node_modules/async/dir.js +0 -43
  84. package/test/node_modules/async/dist/async.js +0 -6059
  85. package/test/node_modules/async/dist/async.min.js +0 -1
  86. package/test/node_modules/async/dist/async.mjs +0 -5947
  87. package/test/node_modules/async/doDuring.js +0 -68
  88. package/test/node_modules/async/doUntil.js +0 -46
  89. package/test/node_modules/async/doWhilst.js +0 -68
  90. package/test/node_modules/async/during.js +0 -78
  91. package/test/node_modules/async/each.js +0 -129
  92. package/test/node_modules/async/eachLimit.js +0 -50
  93. package/test/node_modules/async/eachOf.js +0 -185
  94. package/test/node_modules/async/eachOfLimit.js +0 -47
  95. package/test/node_modules/async/eachOfSeries.js +0 -39
  96. package/test/node_modules/async/eachSeries.js +0 -44
  97. package/test/node_modules/async/ensureAsync.js +0 -67
  98. package/test/node_modules/async/every.js +0 -119
  99. package/test/node_modules/async/everyLimit.js +0 -46
  100. package/test/node_modules/async/everySeries.js +0 -45
  101. package/test/node_modules/async/filter.js +0 -93
  102. package/test/node_modules/async/filterLimit.js +0 -45
  103. package/test/node_modules/async/filterSeries.js +0 -43
  104. package/test/node_modules/async/find.js +0 -96
  105. package/test/node_modules/async/findLimit.js +0 -48
  106. package/test/node_modules/async/findSeries.js +0 -47
  107. package/test/node_modules/async/flatMap.js +0 -115
  108. package/test/node_modules/async/flatMapLimit.js +0 -60
  109. package/test/node_modules/async/flatMapSeries.js +0 -41
  110. package/test/node_modules/async/foldl.js +0 -153
  111. package/test/node_modules/async/foldr.js +0 -41
  112. package/test/node_modules/async/forEach.js +0 -129
  113. package/test/node_modules/async/forEachLimit.js +0 -50
  114. package/test/node_modules/async/forEachOf.js +0 -185
  115. package/test/node_modules/async/forEachOfLimit.js +0 -47
  116. package/test/node_modules/async/forEachOfSeries.js +0 -39
  117. package/test/node_modules/async/forEachSeries.js +0 -44
  118. package/test/node_modules/async/forever.js +0 -68
  119. package/test/node_modules/async/groupBy.js +0 -108
  120. package/test/node_modules/async/groupByLimit.js +0 -71
  121. package/test/node_modules/async/groupBySeries.js +0 -36
  122. package/test/node_modules/async/index.js +0 -588
  123. package/test/node_modules/async/inject.js +0 -153
  124. package/test/node_modules/async/internal/DoublyLinkedList.js +0 -92
  125. package/test/node_modules/async/internal/Heap.js +0 -120
  126. package/test/node_modules/async/internal/applyEach.js +0 -29
  127. package/test/node_modules/async/internal/asyncEachOfLimit.js +0 -75
  128. package/test/node_modules/async/internal/awaitify.js +0 -27
  129. package/test/node_modules/async/internal/breakLoop.js +0 -10
  130. package/test/node_modules/async/internal/consoleFunc.js +0 -31
  131. package/test/node_modules/async/internal/createTester.js +0 -40
  132. package/test/node_modules/async/internal/eachOfLimit.js +0 -90
  133. package/test/node_modules/async/internal/filter.js +0 -55
  134. package/test/node_modules/async/internal/getIterator.js +0 -11
  135. package/test/node_modules/async/internal/initialParams.js +0 -14
  136. package/test/node_modules/async/internal/isArrayLike.js +0 -10
  137. package/test/node_modules/async/internal/iterator.js +0 -57
  138. package/test/node_modules/async/internal/map.js +0 -30
  139. package/test/node_modules/async/internal/once.js +0 -17
  140. package/test/node_modules/async/internal/onlyOnce.js +0 -15
  141. package/test/node_modules/async/internal/parallel.js +0 -34
  142. package/test/node_modules/async/internal/promiseCallback.js +0 -23
  143. package/test/node_modules/async/internal/queue.js +0 -294
  144. package/test/node_modules/async/internal/range.js +0 -14
  145. package/test/node_modules/async/internal/reject.js +0 -26
  146. package/test/node_modules/async/internal/setImmediate.js +0 -34
  147. package/test/node_modules/async/internal/withoutIndex.js +0 -10
  148. package/test/node_modules/async/internal/wrapAsync.js +0 -34
  149. package/test/node_modules/async/log.js +0 -41
  150. package/test/node_modules/async/map.js +0 -142
  151. package/test/node_modules/async/mapLimit.js +0 -45
  152. package/test/node_modules/async/mapSeries.js +0 -44
  153. package/test/node_modules/async/mapValues.js +0 -152
  154. package/test/node_modules/async/mapValuesLimit.js +0 -61
  155. package/test/node_modules/async/mapValuesSeries.js +0 -37
  156. package/test/node_modules/async/memoize.js +0 -91
  157. package/test/node_modules/async/nextTick.js +0 -52
  158. package/test/node_modules/async/package.json +0 -75
  159. package/test/node_modules/async/parallel.js +0 -180
  160. package/test/node_modules/async/parallelLimit.js +0 -41
  161. package/test/node_modules/async/priorityQueue.js +0 -86
  162. package/test/node_modules/async/queue.js +0 -167
  163. package/test/node_modules/async/race.js +0 -67
  164. package/test/node_modules/async/reduce.js +0 -153
  165. package/test/node_modules/async/reduceRight.js +0 -41
  166. package/test/node_modules/async/reflect.js +0 -78
  167. package/test/node_modules/async/reflectAll.js +0 -93
  168. package/test/node_modules/async/reject.js +0 -87
  169. package/test/node_modules/async/rejectLimit.js +0 -45
  170. package/test/node_modules/async/rejectSeries.js +0 -43
  171. package/test/node_modules/async/retry.js +0 -159
  172. package/test/node_modules/async/retryable.js +0 -77
  173. package/test/node_modules/async/select.js +0 -93
  174. package/test/node_modules/async/selectLimit.js +0 -45
  175. package/test/node_modules/async/selectSeries.js +0 -43
  176. package/test/node_modules/async/seq.js +0 -79
  177. package/test/node_modules/async/series.js +0 -186
  178. package/test/node_modules/async/setImmediate.js +0 -45
  179. package/test/node_modules/async/some.js +0 -122
  180. package/test/node_modules/async/someLimit.js +0 -47
  181. package/test/node_modules/async/someSeries.js +0 -46
  182. package/test/node_modules/async/sortBy.js +0 -190
  183. package/test/node_modules/async/timeout.js +0 -89
  184. package/test/node_modules/async/times.js +0 -50
  185. package/test/node_modules/async/timesLimit.js +0 -43
  186. package/test/node_modules/async/timesSeries.js +0 -32
  187. package/test/node_modules/async/transform.js +0 -173
  188. package/test/node_modules/async/tryEach.js +0 -78
  189. package/test/node_modules/async/unmemoize.js +0 -25
  190. package/test/node_modules/async/until.js +0 -61
  191. package/test/node_modules/async/waterfall.js +0 -105
  192. package/test/node_modules/async/whilst.js +0 -78
  193. package/test/node_modules/async/wrapSync.js +0 -118
  194. package/test/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  195. package/test/node_modules/balanced-match/LICENSE.md +0 -21
  196. package/test/node_modules/balanced-match/README.md +0 -97
  197. package/test/node_modules/balanced-match/index.js +0 -62
  198. package/test/node_modules/balanced-match/package.json +0 -48
  199. package/test/node_modules/binary-extensions/binary-extensions.json +0 -260
  200. package/test/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
  201. package/test/node_modules/binary-extensions/index.d.ts +0 -14
  202. package/test/node_modules/binary-extensions/index.js +0 -1
  203. package/test/node_modules/binary-extensions/license +0 -9
  204. package/test/node_modules/binary-extensions/package.json +0 -38
  205. package/test/node_modules/binary-extensions/readme.md +0 -41
  206. package/test/node_modules/bluebird/LICENSE +0 -21
  207. package/test/node_modules/bluebird/README.md +0 -57
  208. package/test/node_modules/bluebird/changelog.md +0 -1
  209. package/test/node_modules/bluebird/js/browser/bluebird.core.js +0 -3914
  210. package/test/node_modules/bluebird/js/browser/bluebird.core.min.js +0 -31
  211. package/test/node_modules/bluebird/js/browser/bluebird.js +0 -5778
  212. package/test/node_modules/bluebird/js/browser/bluebird.min.js +0 -31
  213. package/test/node_modules/bluebird/js/release/any.js +0 -21
  214. package/test/node_modules/bluebird/js/release/assert.js +0 -55
  215. package/test/node_modules/bluebird/js/release/async.js +0 -120
  216. package/test/node_modules/bluebird/js/release/bind.js +0 -67
  217. package/test/node_modules/bluebird/js/release/bluebird.js +0 -11
  218. package/test/node_modules/bluebird/js/release/call_get.js +0 -123
  219. package/test/node_modules/bluebird/js/release/cancel.js +0 -129
  220. package/test/node_modules/bluebird/js/release/catch_filter.js +0 -42
  221. package/test/node_modules/bluebird/js/release/context.js +0 -69
  222. package/test/node_modules/bluebird/js/release/debuggability.js +0 -1009
  223. package/test/node_modules/bluebird/js/release/direct_resolve.js +0 -46
  224. package/test/node_modules/bluebird/js/release/each.js +0 -30
  225. package/test/node_modules/bluebird/js/release/errors.js +0 -116
  226. package/test/node_modules/bluebird/js/release/es5.js +0 -80
  227. package/test/node_modules/bluebird/js/release/filter.js +0 -12
  228. package/test/node_modules/bluebird/js/release/finally.js +0 -146
  229. package/test/node_modules/bluebird/js/release/generators.js +0 -223
  230. package/test/node_modules/bluebird/js/release/join.js +0 -165
  231. package/test/node_modules/bluebird/js/release/map.js +0 -175
  232. package/test/node_modules/bluebird/js/release/method.js +0 -55
  233. package/test/node_modules/bluebird/js/release/nodeback.js +0 -51
  234. package/test/node_modules/bluebird/js/release/nodeify.js +0 -58
  235. package/test/node_modules/bluebird/js/release/promise.js +0 -819
  236. package/test/node_modules/bluebird/js/release/promise_array.js +0 -186
  237. package/test/node_modules/bluebird/js/release/promisify.js +0 -314
  238. package/test/node_modules/bluebird/js/release/props.js +0 -118
  239. package/test/node_modules/bluebird/js/release/queue.js +0 -73
  240. package/test/node_modules/bluebird/js/release/race.js +0 -49
  241. package/test/node_modules/bluebird/js/release/reduce.js +0 -183
  242. package/test/node_modules/bluebird/js/release/schedule.js +0 -62
  243. package/test/node_modules/bluebird/js/release/settle.js +0 -47
  244. package/test/node_modules/bluebird/js/release/some.js +0 -148
  245. package/test/node_modules/bluebird/js/release/synchronous_inspection.js +0 -103
  246. package/test/node_modules/bluebird/js/release/thenables.js +0 -86
  247. package/test/node_modules/bluebird/js/release/timers.js +0 -93
  248. package/test/node_modules/bluebird/js/release/using.js +0 -226
  249. package/test/node_modules/bluebird/js/release/util.js +0 -421
  250. package/test/node_modules/bluebird/package.json +0 -78
  251. package/test/node_modules/brace-expansion/LICENSE +0 -21
  252. package/test/node_modules/brace-expansion/README.md +0 -129
  253. package/test/node_modules/brace-expansion/index.js +0 -201
  254. package/test/node_modules/brace-expansion/package.json +0 -47
  255. package/test/node_modules/braces/CHANGELOG.md +0 -184
  256. package/test/node_modules/braces/LICENSE +0 -21
  257. package/test/node_modules/braces/README.md +0 -593
  258. package/test/node_modules/braces/index.js +0 -170
  259. package/test/node_modules/braces/lib/compile.js +0 -57
  260. package/test/node_modules/braces/lib/constants.js +0 -57
  261. package/test/node_modules/braces/lib/expand.js +0 -113
  262. package/test/node_modules/braces/lib/parse.js +0 -333
  263. package/test/node_modules/braces/lib/stringify.js +0 -32
  264. package/test/node_modules/braces/lib/utils.js +0 -112
  265. package/test/node_modules/braces/package.json +0 -77
  266. package/test/node_modules/cache-content-type/History.md +0 -15
  267. package/test/node_modules/cache-content-type/README.md +0 -17
  268. package/test/node_modules/cache-content-type/index.js +0 -15
  269. package/test/node_modules/cache-content-type/package.json +0 -42
  270. package/test/node_modules/chalk/index.d.ts +0 -415
  271. package/test/node_modules/chalk/license +0 -9
  272. package/test/node_modules/chalk/package.json +0 -68
  273. package/test/node_modules/chalk/readme.md +0 -341
  274. package/test/node_modules/chalk/source/index.js +0 -229
  275. package/test/node_modules/chalk/source/templates.js +0 -134
  276. package/test/node_modules/chalk/source/util.js +0 -39
  277. package/test/node_modules/chokidar/LICENSE +0 -21
  278. package/test/node_modules/chokidar/README.md +0 -308
  279. package/test/node_modules/chokidar/index.js +0 -973
  280. package/test/node_modules/chokidar/lib/constants.js +0 -65
  281. package/test/node_modules/chokidar/lib/fsevents-handler.js +0 -524
  282. package/test/node_modules/chokidar/lib/nodefs-handler.js +0 -654
  283. package/test/node_modules/chokidar/package.json +0 -85
  284. package/test/node_modules/chokidar/types/index.d.ts +0 -188
  285. package/test/node_modules/co/History.md +0 -172
  286. package/test/node_modules/co/LICENSE +0 -22
  287. package/test/node_modules/co/Readme.md +0 -212
  288. package/test/node_modules/co/index.js +0 -237
  289. package/test/node_modules/co/package.json +0 -34
  290. package/test/node_modules/color-convert/CHANGELOG.md +0 -54
  291. package/test/node_modules/color-convert/LICENSE +0 -21
  292. package/test/node_modules/color-convert/README.md +0 -68
  293. package/test/node_modules/color-convert/conversions.js +0 -839
  294. package/test/node_modules/color-convert/index.js +0 -81
  295. package/test/node_modules/color-convert/package.json +0 -48
  296. package/test/node_modules/color-convert/route.js +0 -97
  297. package/test/node_modules/color-name/LICENSE +0 -8
  298. package/test/node_modules/color-name/README.md +0 -11
  299. package/test/node_modules/color-name/index.js +0 -152
  300. package/test/node_modules/color-name/package.json +0 -28
  301. package/test/node_modules/commander/CHANGELOG.md +0 -419
  302. package/test/node_modules/commander/LICENSE +0 -22
  303. package/test/node_modules/commander/Readme.md +0 -428
  304. package/test/node_modules/commander/index.js +0 -1224
  305. package/test/node_modules/commander/package.json +0 -38
  306. package/test/node_modules/commander/typings/index.d.ts +0 -310
  307. package/test/node_modules/concat-map/.travis.yml +0 -4
  308. package/test/node_modules/concat-map/LICENSE +0 -18
  309. package/test/node_modules/concat-map/README.markdown +0 -62
  310. package/test/node_modules/concat-map/example/map.js +0 -6
  311. package/test/node_modules/concat-map/index.js +0 -13
  312. package/test/node_modules/concat-map/package.json +0 -43
  313. package/test/node_modules/concat-map/test/map.js +0 -39
  314. package/test/node_modules/condense-newlines/LICENSE +0 -21
  315. package/test/node_modules/condense-newlines/README.md +0 -105
  316. package/test/node_modules/condense-newlines/index.js +0 -60
  317. package/test/node_modules/condense-newlines/package.json +0 -64
  318. package/test/node_modules/config-chain/LICENCE +0 -22
  319. package/test/node_modules/config-chain/index.js +0 -282
  320. package/test/node_modules/config-chain/package.json +0 -28
  321. package/test/node_modules/config-chain/readme.markdown +0 -257
  322. package/test/node_modules/consolidate/History.md +0 -132
  323. package/test/node_modules/consolidate/Readme.md +0 -223
  324. package/test/node_modules/consolidate/index.js +0 -1
  325. package/test/node_modules/consolidate/lib/consolidate.js +0 -1792
  326. package/test/node_modules/consolidate/package.json +0 -94
  327. package/test/node_modules/content-disposition/HISTORY.md +0 -60
  328. package/test/node_modules/content-disposition/LICENSE +0 -22
  329. package/test/node_modules/content-disposition/README.md +0 -142
  330. package/test/node_modules/content-disposition/index.js +0 -458
  331. package/test/node_modules/content-disposition/package.json +0 -44
  332. package/test/node_modules/content-type/HISTORY.md +0 -24
  333. package/test/node_modules/content-type/LICENSE +0 -22
  334. package/test/node_modules/content-type/README.md +0 -92
  335. package/test/node_modules/content-type/index.js +0 -222
  336. package/test/node_modules/content-type/package.json +0 -40
  337. package/test/node_modules/cookies/HISTORY.md +0 -121
  338. package/test/node_modules/cookies/LICENSE +0 -23
  339. package/test/node_modules/cookies/README.md +0 -145
  340. package/test/node_modules/cookies/index.js +0 -224
  341. package/test/node_modules/cookies/package.json +0 -38
  342. package/test/node_modules/debug/LICENSE +0 -20
  343. package/test/node_modules/debug/README.md +0 -481
  344. package/test/node_modules/debug/package.json +0 -59
  345. package/test/node_modules/debug/src/browser.js +0 -269
  346. package/test/node_modules/debug/src/common.js +0 -274
  347. package/test/node_modules/debug/src/index.js +0 -10
  348. package/test/node_modules/debug/src/node.js +0 -263
  349. package/test/node_modules/deep-equal/.travis.yml +0 -8
  350. package/test/node_modules/deep-equal/LICENSE +0 -18
  351. package/test/node_modules/deep-equal/example/cmp.js +0 -11
  352. package/test/node_modules/deep-equal/index.js +0 -94
  353. package/test/node_modules/deep-equal/lib/is_arguments.js +0 -20
  354. package/test/node_modules/deep-equal/lib/keys.js +0 -9
  355. package/test/node_modules/deep-equal/package.json +0 -58
  356. package/test/node_modules/deep-equal/readme.markdown +0 -61
  357. package/test/node_modules/deep-equal/test/cmp.js +0 -95
  358. package/test/node_modules/delegates/History.md +0 -22
  359. package/test/node_modules/delegates/License +0 -20
  360. package/test/node_modules/delegates/Makefile +0 -8
  361. package/test/node_modules/delegates/Readme.md +0 -94
  362. package/test/node_modules/delegates/index.js +0 -121
  363. package/test/node_modules/delegates/package.json +0 -13
  364. package/test/node_modules/delegates/test/index.js +0 -94
  365. package/test/node_modules/depd/History.md +0 -103
  366. package/test/node_modules/depd/LICENSE +0 -22
  367. package/test/node_modules/depd/Readme.md +0 -280
  368. package/test/node_modules/depd/index.js +0 -538
  369. package/test/node_modules/depd/lib/browser/index.js +0 -77
  370. package/test/node_modules/depd/package.json +0 -45
  371. package/test/node_modules/destroy/LICENSE +0 -23
  372. package/test/node_modules/destroy/README.md +0 -63
  373. package/test/node_modules/destroy/index.js +0 -209
  374. package/test/node_modules/destroy/package.json +0 -48
  375. package/test/node_modules/editorconfig/CHANGELOG.md +0 -14
  376. package/test/node_modules/editorconfig/LICENSE +0 -19
  377. package/test/node_modules/editorconfig/README.md +0 -206
  378. package/test/node_modules/editorconfig/bin/editorconfig +0 -3
  379. package/test/node_modules/editorconfig/package.json +0 -59
  380. package/test/node_modules/editorconfig/src/cli.d.ts +0 -1
  381. package/test/node_modules/editorconfig/src/cli.js +0 -53
  382. package/test/node_modules/editorconfig/src/index.d.ts +0 -29
  383. package/test/node_modules/editorconfig/src/index.js +0 -261
  384. package/test/node_modules/editorconfig/src/lib/fnmatch.d.ts +0 -214
  385. package/test/node_modules/editorconfig/src/lib/fnmatch.js +0 -1047
  386. package/test/node_modules/editorconfig/src/lib/ini.d.ts +0 -14
  387. package/test/node_modules/editorconfig/src/lib/ini.js +0 -106
  388. package/test/node_modules/ee-first/LICENSE +0 -22
  389. package/test/node_modules/ee-first/README.md +0 -80
  390. package/test/node_modules/ee-first/index.js +0 -95
  391. package/test/node_modules/ee-first/package.json +0 -29
  392. package/test/node_modules/ejs/LICENSE +0 -202
  393. package/test/node_modules/ejs/README.md +0 -344
  394. package/test/node_modules/ejs/bin/cli.js +0 -212
  395. package/test/node_modules/ejs/ejs.js +0 -1720
  396. package/test/node_modules/ejs/ejs.min.js +0 -1
  397. package/test/node_modules/ejs/jakefile.js +0 -88
  398. package/test/node_modules/ejs/lib/ejs.js +0 -951
  399. package/test/node_modules/ejs/lib/utils.js +0 -225
  400. package/test/node_modules/ejs/package.json +0 -42
  401. package/test/node_modules/ejs/usage.txt +0 -24
  402. package/test/node_modules/encodeurl/HISTORY.md +0 -14
  403. package/test/node_modules/encodeurl/LICENSE +0 -22
  404. package/test/node_modules/encodeurl/README.md +0 -128
  405. package/test/node_modules/encodeurl/index.js +0 -60
  406. package/test/node_modules/encodeurl/package.json +0 -40
  407. package/test/node_modules/escape-html/LICENSE +0 -24
  408. package/test/node_modules/escape-html/Readme.md +0 -43
  409. package/test/node_modules/escape-html/index.js +0 -78
  410. package/test/node_modules/escape-html/package.json +0 -24
  411. package/test/node_modules/extend-shallow/LICENSE +0 -21
  412. package/test/node_modules/extend-shallow/README.md +0 -61
  413. package/test/node_modules/extend-shallow/index.js +0 -33
  414. package/test/node_modules/extend-shallow/package.json +0 -56
  415. package/test/node_modules/filelist/README.md +0 -84
  416. package/test/node_modules/filelist/index.d.ts +0 -110
  417. package/test/node_modules/filelist/index.js +0 -495
  418. package/test/node_modules/filelist/jakefile.js +0 -15
  419. package/test/node_modules/filelist/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  420. package/test/node_modules/filelist/node_modules/brace-expansion/LICENSE +0 -21
  421. package/test/node_modules/filelist/node_modules/brace-expansion/README.md +0 -135
  422. package/test/node_modules/filelist/node_modules/brace-expansion/index.js +0 -203
  423. package/test/node_modules/filelist/node_modules/brace-expansion/package.json +0 -46
  424. package/test/node_modules/filelist/node_modules/minimatch/LICENSE +0 -15
  425. package/test/node_modules/filelist/node_modules/minimatch/README.md +0 -259
  426. package/test/node_modules/filelist/node_modules/minimatch/lib/path.js +0 -4
  427. package/test/node_modules/filelist/node_modules/minimatch/minimatch.js +0 -906
  428. package/test/node_modules/filelist/node_modules/minimatch/package.json +0 -32
  429. package/test/node_modules/filelist/package.json +0 -28
  430. package/test/node_modules/fill-range/LICENSE +0 -21
  431. package/test/node_modules/fill-range/README.md +0 -237
  432. package/test/node_modules/fill-range/index.js +0 -249
  433. package/test/node_modules/fill-range/package.json +0 -69
  434. package/test/node_modules/fresh/HISTORY.md +0 -70
  435. package/test/node_modules/fresh/LICENSE +0 -23
  436. package/test/node_modules/fresh/README.md +0 -119
  437. package/test/node_modules/fresh/index.js +0 -137
  438. package/test/node_modules/fresh/package.json +0 -46
  439. package/test/node_modules/fs.realpath/LICENSE +0 -43
  440. package/test/node_modules/fs.realpath/README.md +0 -33
  441. package/test/node_modules/fs.realpath/index.js +0 -66
  442. package/test/node_modules/fs.realpath/old.js +0 -303
  443. package/test/node_modules/fs.realpath/package.json +0 -26
  444. package/test/node_modules/get-paths/.editorconfig +0 -9
  445. package/test/node_modules/get-paths/.gitattributes +0 -1
  446. package/test/node_modules/get-paths/.lib.eslintrc +0 -3
  447. package/test/node_modules/get-paths/.remarkignore +0 -1
  448. package/test/node_modules/get-paths/.travis.yml +0 -6
  449. package/test/node_modules/get-paths/LICENSE +0 -21
  450. package/test/node_modules/get-paths/README.md +0 -61
  451. package/test/node_modules/get-paths/index.js +0 -31
  452. package/test/node_modules/get-paths/package.json +0 -100
  453. package/test/node_modules/get-paths/test/test.js +0 -7
  454. package/test/node_modules/glob/LICENSE +0 -15
  455. package/test/node_modules/glob/README.md +0 -378
  456. package/test/node_modules/glob/common.js +0 -240
  457. package/test/node_modules/glob/glob.js +0 -790
  458. package/test/node_modules/glob/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  459. package/test/node_modules/glob/node_modules/brace-expansion/LICENSE +0 -21
  460. package/test/node_modules/glob/node_modules/brace-expansion/README.md +0 -135
  461. package/test/node_modules/glob/node_modules/brace-expansion/index.js +0 -203
  462. package/test/node_modules/glob/node_modules/brace-expansion/package.json +0 -46
  463. package/test/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
  464. package/test/node_modules/glob/node_modules/minimatch/README.md +0 -259
  465. package/test/node_modules/glob/node_modules/minimatch/lib/path.js +0 -4
  466. package/test/node_modules/glob/node_modules/minimatch/minimatch.js +0 -906
  467. package/test/node_modules/glob/node_modules/minimatch/package.json +0 -32
  468. package/test/node_modules/glob/package.json +0 -55
  469. package/test/node_modules/glob/sync.js +0 -486
  470. package/test/node_modules/glob-parent/CHANGELOG.md +0 -110
  471. package/test/node_modules/glob-parent/LICENSE +0 -15
  472. package/test/node_modules/glob-parent/README.md +0 -137
  473. package/test/node_modules/glob-parent/index.js +0 -42
  474. package/test/node_modules/glob-parent/package.json +0 -48
  475. package/test/node_modules/has-flag/index.d.ts +0 -39
  476. package/test/node_modules/has-flag/index.js +0 -8
  477. package/test/node_modules/has-flag/license +0 -9
  478. package/test/node_modules/has-flag/package.json +0 -46
  479. package/test/node_modules/has-flag/readme.md +0 -89
  480. package/test/node_modules/has-symbols/.eslintrc +0 -11
  481. package/test/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  482. package/test/node_modules/has-symbols/.nycrc +0 -9
  483. package/test/node_modules/has-symbols/CHANGELOG.md +0 -75
  484. package/test/node_modules/has-symbols/LICENSE +0 -21
  485. package/test/node_modules/has-symbols/README.md +0 -46
  486. package/test/node_modules/has-symbols/index.js +0 -13
  487. package/test/node_modules/has-symbols/package.json +0 -101
  488. package/test/node_modules/has-symbols/shams.js +0 -42
  489. package/test/node_modules/has-symbols/test/index.js +0 -22
  490. package/test/node_modules/has-symbols/test/shams/core-js.js +0 -28
  491. package/test/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
  492. package/test/node_modules/has-symbols/test/tests.js +0 -56
  493. package/test/node_modules/has-tostringtag/.eslintrc +0 -11
  494. package/test/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
  495. package/test/node_modules/has-tostringtag/CHANGELOG.md +0 -20
  496. package/test/node_modules/has-tostringtag/LICENSE +0 -21
  497. package/test/node_modules/has-tostringtag/README.md +0 -46
  498. package/test/node_modules/has-tostringtag/index.js +0 -7
  499. package/test/node_modules/has-tostringtag/package.json +0 -84
  500. package/test/node_modules/has-tostringtag/shams.js +0 -7
  501. package/test/node_modules/has-tostringtag/test/index.js +0 -21
  502. package/test/node_modules/has-tostringtag/test/shams/core-js.js +0 -28
  503. package/test/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -28
  504. package/test/node_modules/has-tostringtag/test/tests.js +0 -14
  505. package/test/node_modules/http-assert/HISTORY.md +0 -79
  506. package/test/node_modules/http-assert/LICENSE +0 -22
  507. package/test/node_modules/http-assert/README.md +0 -116
  508. package/test/node_modules/http-assert/index.js +0 -41
  509. package/test/node_modules/http-assert/package.json +0 -41
  510. package/test/node_modules/http-errors/HISTORY.md +0 -165
  511. package/test/node_modules/http-errors/LICENSE +0 -23
  512. package/test/node_modules/http-errors/README.md +0 -169
  513. package/test/node_modules/http-errors/index.js +0 -299
  514. package/test/node_modules/http-errors/node_modules/depd/History.md +0 -96
  515. package/test/node_modules/http-errors/node_modules/depd/LICENSE +0 -22
  516. package/test/node_modules/http-errors/node_modules/depd/Readme.md +0 -280
  517. package/test/node_modules/http-errors/node_modules/depd/index.js +0 -522
  518. package/test/node_modules/http-errors/node_modules/depd/lib/browser/index.js +0 -77
  519. package/test/node_modules/http-errors/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
  520. package/test/node_modules/http-errors/node_modules/depd/lib/compat/event-listener-count.js +0 -22
  521. package/test/node_modules/http-errors/node_modules/depd/lib/compat/index.js +0 -79
  522. package/test/node_modules/http-errors/node_modules/depd/package.json +0 -41
  523. package/test/node_modules/http-errors/package.json +0 -49
  524. package/test/node_modules/ignore-by-default/LICENSE +0 -14
  525. package/test/node_modules/ignore-by-default/README.md +0 -26
  526. package/test/node_modules/ignore-by-default/index.js +0 -12
  527. package/test/node_modules/ignore-by-default/package.json +0 -34
  528. package/test/node_modules/inflight/LICENSE +0 -15
  529. package/test/node_modules/inflight/README.md +0 -37
  530. package/test/node_modules/inflight/inflight.js +0 -54
  531. package/test/node_modules/inflight/package.json +0 -29
  532. package/test/node_modules/inherits/LICENSE +0 -16
  533. package/test/node_modules/inherits/README.md +0 -42
  534. package/test/node_modules/inherits/inherits.js +0 -9
  535. package/test/node_modules/inherits/inherits_browser.js +0 -27
  536. package/test/node_modules/inherits/package.json +0 -29
  537. package/test/node_modules/ini/LICENSE +0 -15
  538. package/test/node_modules/ini/README.md +0 -102
  539. package/test/node_modules/ini/ini.js +0 -206
  540. package/test/node_modules/ini/package.json +0 -33
  541. package/test/node_modules/is-binary-path/index.d.ts +0 -17
  542. package/test/node_modules/is-binary-path/index.js +0 -7
  543. package/test/node_modules/is-binary-path/license +0 -9
  544. package/test/node_modules/is-binary-path/package.json +0 -40
  545. package/test/node_modules/is-binary-path/readme.md +0 -34
  546. package/test/node_modules/is-buffer/LICENSE +0 -21
  547. package/test/node_modules/is-buffer/README.md +0 -53
  548. package/test/node_modules/is-buffer/index.js +0 -21
  549. package/test/node_modules/is-buffer/package.json +0 -51
  550. package/test/node_modules/is-buffer/test/basic.js +0 -24
  551. package/test/node_modules/is-extendable/LICENSE +0 -21
  552. package/test/node_modules/is-extendable/README.md +0 -72
  553. package/test/node_modules/is-extendable/index.js +0 -13
  554. package/test/node_modules/is-extendable/package.json +0 -51
  555. package/test/node_modules/is-extglob/LICENSE +0 -21
  556. package/test/node_modules/is-extglob/README.md +0 -107
  557. package/test/node_modules/is-extglob/index.js +0 -20
  558. package/test/node_modules/is-extglob/package.json +0 -69
  559. package/test/node_modules/is-generator-function/.eslintignore +0 -1
  560. package/test/node_modules/is-generator-function/.eslintrc +0 -9
  561. package/test/node_modules/is-generator-function/.nvmrc +0 -1
  562. package/test/node_modules/is-generator-function/.nycrc +0 -9
  563. package/test/node_modules/is-generator-function/CHANGELOG.md +0 -216
  564. package/test/node_modules/is-generator-function/LICENSE +0 -20
  565. package/test/node_modules/is-generator-function/README.md +0 -40
  566. package/test/node_modules/is-generator-function/index.js +0 -38
  567. package/test/node_modules/is-generator-function/package.json +0 -87
  568. package/test/node_modules/is-generator-function/test/corejs.js +0 -5
  569. package/test/node_modules/is-generator-function/test/index.js +0 -83
  570. package/test/node_modules/is-generator-function/test/uglified.js +0 -8
  571. package/test/node_modules/is-glob/LICENSE +0 -21
  572. package/test/node_modules/is-glob/README.md +0 -206
  573. package/test/node_modules/is-glob/index.js +0 -150
  574. package/test/node_modules/is-glob/package.json +0 -81
  575. package/test/node_modules/is-number/LICENSE +0 -21
  576. package/test/node_modules/is-number/README.md +0 -187
  577. package/test/node_modules/is-number/index.js +0 -18
  578. package/test/node_modules/is-number/package.json +0 -82
  579. package/test/node_modules/is-whitespace/LICENSE +0 -21
  580. package/test/node_modules/is-whitespace/README.md +0 -47
  581. package/test/node_modules/is-whitespace/index.js +0 -19
  582. package/test/node_modules/is-whitespace/package.json +0 -47
  583. package/test/node_modules/jake/Makefile +0 -44
  584. package/test/node_modules/jake/README.md +0 -17
  585. package/test/node_modules/jake/bin/bash_completion.sh +0 -41
  586. package/test/node_modules/jake/bin/cli.js +0 -31
  587. package/test/node_modules/jake/jakefile.js +0 -94
  588. package/test/node_modules/jake/lib/api.js +0 -409
  589. package/test/node_modules/jake/lib/jake.js +0 -330
  590. package/test/node_modules/jake/lib/loader.js +0 -173
  591. package/test/node_modules/jake/lib/namespace.js +0 -115
  592. package/test/node_modules/jake/lib/package_task.js +0 -406
  593. package/test/node_modules/jake/lib/parseargs.js +0 -134
  594. package/test/node_modules/jake/lib/program.js +0 -282
  595. package/test/node_modules/jake/lib/publish_task.js +0 -290
  596. package/test/node_modules/jake/lib/rule.js +0 -311
  597. package/test/node_modules/jake/lib/task/directory_task.js +0 -30
  598. package/test/node_modules/jake/lib/task/file_task.js +0 -124
  599. package/test/node_modules/jake/lib/task/index.js +0 -9
  600. package/test/node_modules/jake/lib/task/task.js +0 -449
  601. package/test/node_modules/jake/lib/test_task.js +0 -270
  602. package/test/node_modules/jake/lib/utils/file.js +0 -286
  603. package/test/node_modules/jake/lib/utils/index.js +0 -297
  604. package/test/node_modules/jake/lib/utils/logger.js +0 -24
  605. package/test/node_modules/jake/package.json +0 -42
  606. package/test/node_modules/jake/test/integration/concurrent.js +0 -45
  607. package/test/node_modules/jake/test/integration/file.js +0 -228
  608. package/test/node_modules/jake/test/integration/file_task.js +0 -126
  609. package/test/node_modules/jake/test/integration/helpers.js +0 -80
  610. package/test/node_modules/jake/test/integration/jakefile.js +0 -337
  611. package/test/node_modules/jake/test/integration/jakelib/concurrent.jake.js +0 -113
  612. package/test/node_modules/jake/test/integration/jakelib/publish.jake.js +0 -49
  613. package/test/node_modules/jake/test/integration/jakelib/required_module.jake.js +0 -10
  614. package/test/node_modules/jake/test/integration/jakelib/rule.jake.js +0 -222
  615. package/test/node_modules/jake/test/integration/publish_task.js +0 -27
  616. package/test/node_modules/jake/test/integration/rule.js +0 -217
  617. package/test/node_modules/jake/test/integration/selfdep.js +0 -42
  618. package/test/node_modules/jake/test/integration/task_base.js +0 -167
  619. package/test/node_modules/jake/test/unit/jakefile.js +0 -36
  620. package/test/node_modules/jake/test/unit/namespace.js +0 -77
  621. package/test/node_modules/jake/test/unit/parseargs.js +0 -169
  622. package/test/node_modules/jake/usage.txt +0 -16
  623. package/test/node_modules/js-beautify/LICENSE +0 -9
  624. package/test/node_modules/js-beautify/README.md +0 -435
  625. package/test/node_modules/js-beautify/js/bin/css-beautify.js +0 -4
  626. package/test/node_modules/js-beautify/js/bin/html-beautify.js +0 -4
  627. package/test/node_modules/js-beautify/js/bin/js-beautify.js +0 -4
  628. package/test/node_modules/js-beautify/js/index.js +0 -86
  629. package/test/node_modules/js-beautify/js/lib/beautifier.js +0 -5982
  630. package/test/node_modules/js-beautify/js/lib/beautifier.min.js +0 -2
  631. package/test/node_modules/js-beautify/js/lib/beautify-css.js +0 -1675
  632. package/test/node_modules/js-beautify/js/lib/beautify-html.js +0 -3136
  633. package/test/node_modules/js-beautify/js/lib/beautify.js +0 -4020
  634. package/test/node_modules/js-beautify/js/lib/cli.js +0 -705
  635. package/test/node_modules/js-beautify/js/lib/unpackers/javascriptobfuscator_unpacker.js +0 -132
  636. package/test/node_modules/js-beautify/js/lib/unpackers/myobfuscate_unpacker.js +0 -119
  637. package/test/node_modules/js-beautify/js/lib/unpackers/p_a_c_k_e_r_unpacker.js +0 -119
  638. package/test/node_modules/js-beautify/js/lib/unpackers/urlencode_unpacker.js +0 -104
  639. package/test/node_modules/js-beautify/js/src/cli.js +0 -705
  640. package/test/node_modules/js-beautify/js/src/core/directives.js +0 -62
  641. package/test/node_modules/js-beautify/js/src/core/inputscanner.js +0 -192
  642. package/test/node_modules/js-beautify/js/src/core/options.js +0 -193
  643. package/test/node_modules/js-beautify/js/src/core/output.js +0 -419
  644. package/test/node_modules/js-beautify/js/src/core/pattern.js +0 -94
  645. package/test/node_modules/js-beautify/js/src/core/templatablepattern.js +0 -211
  646. package/test/node_modules/js-beautify/js/src/core/token.js +0 -54
  647. package/test/node_modules/js-beautify/js/src/core/tokenizer.js +0 -140
  648. package/test/node_modules/js-beautify/js/src/core/tokenstream.js +0 -78
  649. package/test/node_modules/js-beautify/js/src/core/whitespacepattern.js +0 -105
  650. package/test/node_modules/js-beautify/js/src/css/beautifier.js +0 -529
  651. package/test/node_modules/js-beautify/js/src/css/index.js +0 -42
  652. package/test/node_modules/js-beautify/js/src/css/options.js +0 -56
  653. package/test/node_modules/js-beautify/js/src/css/tokenizer.js +0 -29
  654. package/test/node_modules/js-beautify/js/src/html/beautifier.js +0 -878
  655. package/test/node_modules/js-beautify/js/src/html/index.js +0 -42
  656. package/test/node_modules/js-beautify/js/src/html/options.js +0 -91
  657. package/test/node_modules/js-beautify/js/src/html/tokenizer.js +0 -332
  658. package/test/node_modules/js-beautify/js/src/index.js +0 -44
  659. package/test/node_modules/js-beautify/js/src/javascript/acorn.js +0 -57
  660. package/test/node_modules/js-beautify/js/src/javascript/beautifier.js +0 -1472
  661. package/test/node_modules/js-beautify/js/src/javascript/index.js +0 -42
  662. package/test/node_modules/js-beautify/js/src/javascript/options.js +0 -93
  663. package/test/node_modules/js-beautify/js/src/javascript/tokenizer.js +0 -567
  664. package/test/node_modules/js-beautify/js/src/unpackers/javascriptobfuscator_unpacker.js +0 -132
  665. package/test/node_modules/js-beautify/js/src/unpackers/myobfuscate_unpacker.js +0 -119
  666. package/test/node_modules/js-beautify/js/src/unpackers/p_a_c_k_e_r_unpacker.js +0 -119
  667. package/test/node_modules/js-beautify/js/src/unpackers/urlencode_unpacker.js +0 -104
  668. package/test/node_modules/js-beautify/package.json +0 -72
  669. package/test/node_modules/keygrip/HISTORY.md +0 -25
  670. package/test/node_modules/keygrip/LICENSE +0 -21
  671. package/test/node_modules/keygrip/README.md +0 -103
  672. package/test/node_modules/keygrip/index.js +0 -51
  673. package/test/node_modules/keygrip/package.json +0 -28
  674. package/test/node_modules/kind-of/LICENSE +0 -21
  675. package/test/node_modules/kind-of/README.md +0 -261
  676. package/test/node_modules/kind-of/index.js +0 -116
  677. package/test/node_modules/kind-of/package.json +0 -90
  678. package/test/node_modules/koa/History.md +0 -696
  679. package/test/node_modules/koa/LICENSE +0 -22
  680. package/test/node_modules/koa/Readme.md +0 -289
  681. package/test/node_modules/koa/dist/koa.mjs +0 -4
  682. package/test/node_modules/koa/lib/application.js +0 -314
  683. package/test/node_modules/koa/lib/context.js +0 -251
  684. package/test/node_modules/koa/lib/request.js +0 -726
  685. package/test/node_modules/koa/lib/response.js +0 -588
  686. package/test/node_modules/koa/package.json +0 -89
  687. package/test/node_modules/koa-compose/History.md +0 -60
  688. package/test/node_modules/koa-compose/Readme.md +0 -40
  689. package/test/node_modules/koa-compose/index.js +0 -48
  690. package/test/node_modules/koa-compose/package.json +0 -30
  691. package/test/node_modules/koa-convert/LICENSE +0 -22
  692. package/test/node_modules/koa-convert/README.md +0 -166
  693. package/test/node_modules/koa-convert/index.js +0 -105
  694. package/test/node_modules/koa-convert/package.json +0 -64
  695. package/test/node_modules/koa-send/History.md +0 -133
  696. package/test/node_modules/koa-send/LICENSE +0 -22
  697. package/test/node_modules/koa-send/README.md +0 -109
  698. package/test/node_modules/koa-send/index.js +0 -188
  699. package/test/node_modules/koa-send/package.json +0 -58
  700. package/test/node_modules/koa-views/.eslintrc +0 -14
  701. package/test/node_modules/koa-views/.gitattributes +0 -1
  702. package/test/node_modules/koa-views/.github/workflows/test.yml +0 -20
  703. package/test/node_modules/koa-views/README.md +0 -201
  704. package/test/node_modules/koa-views/history.md +0 -110
  705. package/test/node_modules/koa-views/index.d.ts +0 -62
  706. package/test/node_modules/koa-views/license +0 -22
  707. package/test/node_modules/koa-views/package.json +0 -68
  708. package/test/node_modules/koa-views/src/index.js +0 -98
  709. package/test/node_modules/koa-views/test/.eslintrc +0 -5
  710. package/test/node_modules/koa-views/test/fixtures/basic.ejs +0 -10
  711. package/test/node_modules/koa-views/test/fixtures/basic.foo +0 -1
  712. package/test/node_modules/koa-views/test/fixtures/basic.html +0 -11
  713. package/test/node_modules/koa-views/test/fixtures/basic.pug +0 -9
  714. package/test/node_modules/koa-views/test/fixtures/basic.test.html +0 -11
  715. package/test/node_modules/koa-views/test/fixtures/global-state.pug +0 -9
  716. package/test/node_modules/koa-views/test/fixtures/index.html +0 -10
  717. package/test/node_modules/koa-views/test/fixtures/nunjucks-filter.html +0 -11
  718. package/test/node_modules/koa-views/test/fixtures/state.pug +0 -9
  719. package/test/node_modules/koa-views/test/fixtures/underscore.html +0 -11
  720. package/test/node_modules/koa-views/test/fixtures/view-options-partial.hbs +0 -1
  721. package/test/node_modules/koa-views/test/fixtures/view-options.hbs +0 -4
  722. package/test/node_modules/koa-views/test/index.js +0 -431
  723. package/test/node_modules/koa-views/test-outside/fixtures/basic.ejs +0 -10
  724. package/test/node_modules/lru-cache/LICENSE +0 -15
  725. package/test/node_modules/lru-cache/README.md +0 -158
  726. package/test/node_modules/lru-cache/index.js +0 -468
  727. package/test/node_modules/lru-cache/package.json +0 -36
  728. package/test/node_modules/media-typer/HISTORY.md +0 -22
  729. package/test/node_modules/media-typer/LICENSE +0 -22
  730. package/test/node_modules/media-typer/README.md +0 -81
  731. package/test/node_modules/media-typer/index.js +0 -270
  732. package/test/node_modules/media-typer/package.json +0 -26
  733. package/test/node_modules/mime-db/HISTORY.md +0 -507
  734. package/test/node_modules/mime-db/LICENSE +0 -23
  735. package/test/node_modules/mime-db/README.md +0 -100
  736. package/test/node_modules/mime-db/db.json +0 -8519
  737. package/test/node_modules/mime-db/index.js +0 -12
  738. package/test/node_modules/mime-db/package.json +0 -60
  739. package/test/node_modules/mime-types/HISTORY.md +0 -397
  740. package/test/node_modules/mime-types/LICENSE +0 -23
  741. package/test/node_modules/mime-types/README.md +0 -113
  742. package/test/node_modules/mime-types/index.js +0 -188
  743. package/test/node_modules/mime-types/package.json +0 -44
  744. package/test/node_modules/minimatch/LICENSE +0 -15
  745. package/test/node_modules/minimatch/README.md +0 -230
  746. package/test/node_modules/minimatch/minimatch.js +0 -947
  747. package/test/node_modules/minimatch/package.json +0 -33
  748. package/test/node_modules/ms/index.js +0 -162
  749. package/test/node_modules/ms/license.md +0 -21
  750. package/test/node_modules/ms/package.json +0 -37
  751. package/test/node_modules/ms/readme.md +0 -60
  752. package/test/node_modules/mz/HISTORY.md +0 -66
  753. package/test/node_modules/mz/LICENSE +0 -22
  754. package/test/node_modules/mz/README.md +0 -106
  755. package/test/node_modules/mz/child_process.js +0 -8
  756. package/test/node_modules/mz/crypto.js +0 -9
  757. package/test/node_modules/mz/dns.js +0 -16
  758. package/test/node_modules/mz/fs.js +0 -62
  759. package/test/node_modules/mz/index.js +0 -8
  760. package/test/node_modules/mz/package.json +0 -44
  761. package/test/node_modules/mz/readline.js +0 -64
  762. package/test/node_modules/mz/zlib.js +0 -13
  763. package/test/node_modules/negotiator/HISTORY.md +0 -108
  764. package/test/node_modules/negotiator/LICENSE +0 -24
  765. package/test/node_modules/negotiator/README.md +0 -203
  766. package/test/node_modules/negotiator/index.js +0 -82
  767. package/test/node_modules/negotiator/lib/charset.js +0 -169
  768. package/test/node_modules/negotiator/lib/encoding.js +0 -184
  769. package/test/node_modules/negotiator/lib/language.js +0 -179
  770. package/test/node_modules/negotiator/lib/mediaType.js +0 -294
  771. package/test/node_modules/negotiator/package.json +0 -42
  772. package/test/node_modules/nodemon/LICENSE +0 -21
  773. package/test/node_modules/nodemon/README.md +0 -423
  774. package/test/node_modules/nodemon/bin/nodemon.js +0 -16
  775. package/test/node_modules/nodemon/bin/windows-kill.exe +0 -0
  776. package/test/node_modules/nodemon/doc/cli/authors.txt +0 -8
  777. package/test/node_modules/nodemon/doc/cli/config.txt +0 -44
  778. package/test/node_modules/nodemon/doc/cli/help.txt +0 -29
  779. package/test/node_modules/nodemon/doc/cli/logo.txt +0 -20
  780. package/test/node_modules/nodemon/doc/cli/options.txt +0 -36
  781. package/test/node_modules/nodemon/doc/cli/topics.txt +0 -8
  782. package/test/node_modules/nodemon/doc/cli/usage.txt +0 -3
  783. package/test/node_modules/nodemon/doc/cli/whoami.txt +0 -9
  784. package/test/node_modules/nodemon/lib/cli/index.js +0 -49
  785. package/test/node_modules/nodemon/lib/cli/parse.js +0 -230
  786. package/test/node_modules/nodemon/lib/config/command.js +0 -43
  787. package/test/node_modules/nodemon/lib/config/defaults.js +0 -28
  788. package/test/node_modules/nodemon/lib/config/exec.js +0 -225
  789. package/test/node_modules/nodemon/lib/config/index.js +0 -93
  790. package/test/node_modules/nodemon/lib/config/load.js +0 -256
  791. package/test/node_modules/nodemon/lib/help/index.js +0 -27
  792. package/test/node_modules/nodemon/lib/index.js +0 -1
  793. package/test/node_modules/nodemon/lib/monitor/index.js +0 -4
  794. package/test/node_modules/nodemon/lib/monitor/match.js +0 -276
  795. package/test/node_modules/nodemon/lib/monitor/run.js +0 -541
  796. package/test/node_modules/nodemon/lib/monitor/signals.js +0 -34
  797. package/test/node_modules/nodemon/lib/monitor/watch.js +0 -239
  798. package/test/node_modules/nodemon/lib/nodemon.js +0 -311
  799. package/test/node_modules/nodemon/lib/rules/add.js +0 -89
  800. package/test/node_modules/nodemon/lib/rules/index.js +0 -53
  801. package/test/node_modules/nodemon/lib/rules/parse.js +0 -43
  802. package/test/node_modules/nodemon/lib/spawn.js +0 -73
  803. package/test/node_modules/nodemon/lib/utils/bus.js +0 -44
  804. package/test/node_modules/nodemon/lib/utils/clone.js +0 -40
  805. package/test/node_modules/nodemon/lib/utils/colour.js +0 -26
  806. package/test/node_modules/nodemon/lib/utils/index.js +0 -102
  807. package/test/node_modules/nodemon/lib/utils/log.js +0 -82
  808. package/test/node_modules/nodemon/lib/utils/merge.js +0 -47
  809. package/test/node_modules/nodemon/lib/version.js +0 -100
  810. package/test/node_modules/nodemon/node_modules/debug/CHANGELOG.md +0 -395
  811. package/test/node_modules/nodemon/node_modules/debug/LICENSE +0 -19
  812. package/test/node_modules/nodemon/node_modules/debug/README.md +0 -437
  813. package/test/node_modules/nodemon/node_modules/debug/node.js +0 -1
  814. package/test/node_modules/nodemon/node_modules/debug/package.json +0 -51
  815. package/test/node_modules/nodemon/node_modules/debug/src/browser.js +0 -180
  816. package/test/node_modules/nodemon/node_modules/debug/src/common.js +0 -249
  817. package/test/node_modules/nodemon/node_modules/debug/src/index.js +0 -12
  818. package/test/node_modules/nodemon/node_modules/debug/src/node.js +0 -177
  819. package/test/node_modules/nodemon/node_modules/has-flag/index.js +0 -8
  820. package/test/node_modules/nodemon/node_modules/has-flag/license +0 -9
  821. package/test/node_modules/nodemon/node_modules/has-flag/package.json +0 -44
  822. package/test/node_modules/nodemon/node_modules/has-flag/readme.md +0 -70
  823. package/test/node_modules/nodemon/node_modules/supports-color/browser.js +0 -5
  824. package/test/node_modules/nodemon/node_modules/supports-color/index.js +0 -131
  825. package/test/node_modules/nodemon/node_modules/supports-color/license +0 -9
  826. package/test/node_modules/nodemon/node_modules/supports-color/package.json +0 -53
  827. package/test/node_modules/nodemon/node_modules/supports-color/readme.md +0 -66
  828. package/test/node_modules/nodemon/package.json +0 -74
  829. package/test/node_modules/nopt/LICENSE +0 -15
  830. package/test/node_modules/nopt/README.md +0 -213
  831. package/test/node_modules/nopt/bin/nopt.js +0 -56
  832. package/test/node_modules/nopt/lib/nopt.js +0 -515
  833. package/test/node_modules/nopt/package.json +0 -53
  834. package/test/node_modules/normalize-path/LICENSE +0 -21
  835. package/test/node_modules/normalize-path/README.md +0 -127
  836. package/test/node_modules/normalize-path/index.js +0 -35
  837. package/test/node_modules/normalize-path/package.json +0 -77
  838. package/test/node_modules/object-assign/index.js +0 -90
  839. package/test/node_modules/object-assign/license +0 -21
  840. package/test/node_modules/object-assign/package.json +0 -42
  841. package/test/node_modules/object-assign/readme.md +0 -61
  842. package/test/node_modules/on-finished/HISTORY.md +0 -98
  843. package/test/node_modules/on-finished/LICENSE +0 -23
  844. package/test/node_modules/on-finished/README.md +0 -162
  845. package/test/node_modules/on-finished/index.js +0 -234
  846. package/test/node_modules/on-finished/package.json +0 -39
  847. package/test/node_modules/once/LICENSE +0 -15
  848. package/test/node_modules/once/README.md +0 -79
  849. package/test/node_modules/once/once.js +0 -42
  850. package/test/node_modules/once/package.json +0 -33
  851. package/test/node_modules/only/History.md +0 -5
  852. package/test/node_modules/only/Makefile +0 -7
  853. package/test/node_modules/only/Readme.md +0 -58
  854. package/test/node_modules/only/index.js +0 -10
  855. package/test/node_modules/only/package.json +0 -14
  856. package/test/node_modules/parseurl/HISTORY.md +0 -58
  857. package/test/node_modules/parseurl/LICENSE +0 -24
  858. package/test/node_modules/parseurl/README.md +0 -133
  859. package/test/node_modules/parseurl/index.js +0 -158
  860. package/test/node_modules/parseurl/package.json +0 -40
  861. package/test/node_modules/path-is-absolute/index.js +0 -20
  862. package/test/node_modules/path-is-absolute/license +0 -21
  863. package/test/node_modules/path-is-absolute/package.json +0 -43
  864. package/test/node_modules/path-is-absolute/readme.md +0 -59
  865. package/test/node_modules/picomatch/CHANGELOG.md +0 -136
  866. package/test/node_modules/picomatch/LICENSE +0 -21
  867. package/test/node_modules/picomatch/README.md +0 -708
  868. package/test/node_modules/picomatch/index.js +0 -3
  869. package/test/node_modules/picomatch/lib/constants.js +0 -179
  870. package/test/node_modules/picomatch/lib/parse.js +0 -1091
  871. package/test/node_modules/picomatch/lib/picomatch.js +0 -342
  872. package/test/node_modules/picomatch/lib/scan.js +0 -391
  873. package/test/node_modules/picomatch/lib/utils.js +0 -64
  874. package/test/node_modules/picomatch/package.json +0 -81
  875. package/test/node_modules/pify/index.js +0 -68
  876. package/test/node_modules/pify/license +0 -9
  877. package/test/node_modules/pify/package.json +0 -51
  878. package/test/node_modules/pify/readme.md +0 -145
  879. package/test/node_modules/pretty/LICENSE +0 -21
  880. package/test/node_modules/pretty/README.md +0 -105
  881. package/test/node_modules/pretty/index.js +0 -45
  882. package/test/node_modules/pretty/package.json +0 -54
  883. package/test/node_modules/proto-list/LICENSE +0 -15
  884. package/test/node_modules/proto-list/README.md +0 -3
  885. package/test/node_modules/proto-list/package.json +0 -18
  886. package/test/node_modules/proto-list/proto-list.js +0 -88
  887. package/test/node_modules/proto-list/test/basic.js +0 -61
  888. package/test/node_modules/pseudomap/LICENSE +0 -15
  889. package/test/node_modules/pseudomap/README.md +0 -60
  890. package/test/node_modules/pseudomap/map.js +0 -9
  891. package/test/node_modules/pseudomap/package.json +0 -25
  892. package/test/node_modules/pseudomap/pseudomap.js +0 -113
  893. package/test/node_modules/pseudomap/test/basic.js +0 -86
  894. package/test/node_modules/pstree.remy/.travis.yml +0 -8
  895. package/test/node_modules/pstree.remy/LICENSE +0 -7
  896. package/test/node_modules/pstree.remy/README.md +0 -26
  897. package/test/node_modules/pstree.remy/lib/index.js +0 -37
  898. package/test/node_modules/pstree.remy/lib/tree.js +0 -37
  899. package/test/node_modules/pstree.remy/lib/utils.js +0 -53
  900. package/test/node_modules/pstree.remy/package.json +0 -33
  901. package/test/node_modules/pstree.remy/tests/fixtures/index.js +0 -13
  902. package/test/node_modules/pstree.remy/tests/fixtures/out1 +0 -10
  903. package/test/node_modules/pstree.remy/tests/fixtures/out2 +0 -29
  904. package/test/node_modules/pstree.remy/tests/index.test.js +0 -51
  905. package/test/node_modules/readdirp/LICENSE +0 -21
  906. package/test/node_modules/readdirp/README.md +0 -122
  907. package/test/node_modules/readdirp/index.d.ts +0 -43
  908. package/test/node_modules/readdirp/index.js +0 -287
  909. package/test/node_modules/readdirp/package.json +0 -122
  910. package/test/node_modules/resolve-path/HISTORY.md +0 -66
  911. package/test/node_modules/resolve-path/LICENSE +0 -23
  912. package/test/node_modules/resolve-path/README.md +0 -111
  913. package/test/node_modules/resolve-path/index.js +0 -88
  914. package/test/node_modules/resolve-path/node_modules/depd/History.md +0 -96
  915. package/test/node_modules/resolve-path/node_modules/depd/LICENSE +0 -22
  916. package/test/node_modules/resolve-path/node_modules/depd/Readme.md +0 -280
  917. package/test/node_modules/resolve-path/node_modules/depd/index.js +0 -522
  918. package/test/node_modules/resolve-path/node_modules/depd/lib/browser/index.js +0 -77
  919. package/test/node_modules/resolve-path/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
  920. package/test/node_modules/resolve-path/node_modules/depd/lib/compat/event-listener-count.js +0 -22
  921. package/test/node_modules/resolve-path/node_modules/depd/lib/compat/index.js +0 -79
  922. package/test/node_modules/resolve-path/node_modules/depd/package.json +0 -41
  923. package/test/node_modules/resolve-path/node_modules/http-errors/HISTORY.md +0 -132
  924. package/test/node_modules/resolve-path/node_modules/http-errors/LICENSE +0 -23
  925. package/test/node_modules/resolve-path/node_modules/http-errors/README.md +0 -135
  926. package/test/node_modules/resolve-path/node_modules/http-errors/index.js +0 -260
  927. package/test/node_modules/resolve-path/node_modules/http-errors/package.json +0 -48
  928. package/test/node_modules/resolve-path/node_modules/inherits/LICENSE +0 -16
  929. package/test/node_modules/resolve-path/node_modules/inherits/README.md +0 -42
  930. package/test/node_modules/resolve-path/node_modules/inherits/inherits.js +0 -7
  931. package/test/node_modules/resolve-path/node_modules/inherits/inherits_browser.js +0 -23
  932. package/test/node_modules/resolve-path/node_modules/inherits/package.json +0 -29
  933. package/test/node_modules/resolve-path/node_modules/setprototypeof/LICENSE +0 -13
  934. package/test/node_modules/resolve-path/node_modules/setprototypeof/README.md +0 -26
  935. package/test/node_modules/resolve-path/node_modules/setprototypeof/index.d.ts +0 -2
  936. package/test/node_modules/resolve-path/node_modules/setprototypeof/index.js +0 -15
  937. package/test/node_modules/resolve-path/node_modules/setprototypeof/package.json +0 -25
  938. package/test/node_modules/resolve-path/package.json +0 -46
  939. package/test/node_modules/safe-buffer/LICENSE +0 -21
  940. package/test/node_modules/safe-buffer/README.md +0 -584
  941. package/test/node_modules/safe-buffer/index.d.ts +0 -187
  942. package/test/node_modules/safe-buffer/index.js +0 -65
  943. package/test/node_modules/safe-buffer/package.json +0 -51
  944. package/test/node_modules/semver/CHANGELOG.md +0 -39
  945. package/test/node_modules/semver/LICENSE +0 -15
  946. package/test/node_modules/semver/README.md +0 -412
  947. package/test/node_modules/semver/bin/semver +0 -160
  948. package/test/node_modules/semver/package.json +0 -28
  949. package/test/node_modules/semver/range.bnf +0 -16
  950. package/test/node_modules/semver/semver.js +0 -1483
  951. package/test/node_modules/setprototypeof/LICENSE +0 -13
  952. package/test/node_modules/setprototypeof/README.md +0 -31
  953. package/test/node_modules/setprototypeof/index.d.ts +0 -2
  954. package/test/node_modules/setprototypeof/index.js +0 -17
  955. package/test/node_modules/setprototypeof/package.json +0 -38
  956. package/test/node_modules/setprototypeof/test/index.js +0 -24
  957. package/test/node_modules/sigmund/LICENSE +0 -15
  958. package/test/node_modules/sigmund/README.md +0 -53
  959. package/test/node_modules/sigmund/bench.js +0 -283
  960. package/test/node_modules/sigmund/package.json +0 -30
  961. package/test/node_modules/sigmund/sigmund.js +0 -39
  962. package/test/node_modules/sigmund/test/basic.js +0 -24
  963. package/test/node_modules/simple-update-notifier/LICENSE +0 -21
  964. package/test/node_modules/simple-update-notifier/README.md +0 -82
  965. package/test/node_modules/simple-update-notifier/build/index.d.ts +0 -13
  966. package/test/node_modules/simple-update-notifier/build/index.js +0 -217
  967. package/test/node_modules/simple-update-notifier/node_modules/semver/CHANGELOG.md +0 -74
  968. package/test/node_modules/simple-update-notifier/node_modules/semver/LICENSE +0 -15
  969. package/test/node_modules/simple-update-notifier/node_modules/semver/README.md +0 -499
  970. package/test/node_modules/simple-update-notifier/node_modules/semver/bin/semver.js +0 -173
  971. package/test/node_modules/simple-update-notifier/node_modules/semver/classes/comparator.js +0 -139
  972. package/test/node_modules/simple-update-notifier/node_modules/semver/classes/index.js +0 -5
  973. package/test/node_modules/simple-update-notifier/node_modules/semver/classes/range.js +0 -448
  974. package/test/node_modules/simple-update-notifier/node_modules/semver/classes/semver.js +0 -290
  975. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/clean.js +0 -6
  976. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/cmp.js +0 -48
  977. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/coerce.js +0 -51
  978. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/compare-build.js +0 -7
  979. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/compare-loose.js +0 -3
  980. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/compare.js +0 -5
  981. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/diff.js +0 -25
  982. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/eq.js +0 -3
  983. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/gt.js +0 -3
  984. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/gte.js +0 -3
  985. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/inc.js +0 -15
  986. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/lt.js +0 -3
  987. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/lte.js +0 -3
  988. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/major.js +0 -3
  989. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/minor.js +0 -3
  990. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/neq.js +0 -3
  991. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/parse.js +0 -37
  992. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/patch.js +0 -3
  993. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/prerelease.js +0 -6
  994. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/rcompare.js +0 -3
  995. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/rsort.js +0 -3
  996. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/satisfies.js +0 -10
  997. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/sort.js +0 -3
  998. package/test/node_modules/simple-update-notifier/node_modules/semver/functions/valid.js +0 -6
  999. package/test/node_modules/simple-update-notifier/node_modules/semver/index.js +0 -64
  1000. package/test/node_modules/simple-update-notifier/node_modules/semver/internal/constants.js +0 -17
  1001. package/test/node_modules/simple-update-notifier/node_modules/semver/internal/debug.js +0 -9
  1002. package/test/node_modules/simple-update-notifier/node_modules/semver/internal/identifiers.js +0 -23
  1003. package/test/node_modules/simple-update-notifier/node_modules/semver/internal/re.js +0 -179
  1004. package/test/node_modules/simple-update-notifier/node_modules/semver/package.json +0 -34
  1005. package/test/node_modules/simple-update-notifier/node_modules/semver/range.bnf +0 -16
  1006. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/gtr.js +0 -4
  1007. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/intersects.js +0 -7
  1008. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/ltr.js +0 -4
  1009. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/max-satisfying.js +0 -25
  1010. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/min-satisfying.js +0 -24
  1011. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/min-version.js +0 -57
  1012. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/outside.js +0 -80
  1013. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/to-comparators.js +0 -8
  1014. package/test/node_modules/simple-update-notifier/node_modules/semver/ranges/valid.js +0 -11
  1015. package/test/node_modules/simple-update-notifier/package.json +0 -97
  1016. package/test/node_modules/simple-update-notifier/src/borderedText.ts +0 -12
  1017. package/test/node_modules/simple-update-notifier/src/cache.spec.ts +0 -17
  1018. package/test/node_modules/simple-update-notifier/src/cache.ts +0 -44
  1019. package/test/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +0 -35
  1020. package/test/node_modules/simple-update-notifier/src/getDistVersion.ts +0 -29
  1021. package/test/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +0 -82
  1022. package/test/node_modules/simple-update-notifier/src/hasNewVersion.ts +0 -40
  1023. package/test/node_modules/simple-update-notifier/src/index.spec.ts +0 -27
  1024. package/test/node_modules/simple-update-notifier/src/index.ts +0 -34
  1025. package/test/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +0 -12
  1026. package/test/node_modules/simple-update-notifier/src/types.ts +0 -8
  1027. package/test/node_modules/statuses/HISTORY.md +0 -65
  1028. package/test/node_modules/statuses/LICENSE +0 -23
  1029. package/test/node_modules/statuses/README.md +0 -127
  1030. package/test/node_modules/statuses/codes.json +0 -66
  1031. package/test/node_modules/statuses/index.js +0 -113
  1032. package/test/node_modules/statuses/package.json +0 -48
  1033. package/test/node_modules/supports-color/browser.js +0 -5
  1034. package/test/node_modules/supports-color/index.js +0 -135
  1035. package/test/node_modules/supports-color/license +0 -9
  1036. package/test/node_modules/supports-color/package.json +0 -53
  1037. package/test/node_modules/supports-color/readme.md +0 -76
  1038. package/test/node_modules/thenify/History.md +0 -11
  1039. package/test/node_modules/thenify/LICENSE +0 -22
  1040. package/test/node_modules/thenify/README.md +0 -120
  1041. package/test/node_modules/thenify/index.js +0 -77
  1042. package/test/node_modules/thenify/package.json +0 -31
  1043. package/test/node_modules/thenify-all/History.md +0 -11
  1044. package/test/node_modules/thenify-all/LICENSE +0 -22
  1045. package/test/node_modules/thenify-all/README.md +0 -66
  1046. package/test/node_modules/thenify-all/index.js +0 -73
  1047. package/test/node_modules/thenify-all/package.json +0 -34
  1048. package/test/node_modules/to-regex-range/LICENSE +0 -21
  1049. package/test/node_modules/to-regex-range/README.md +0 -305
  1050. package/test/node_modules/to-regex-range/index.js +0 -288
  1051. package/test/node_modules/to-regex-range/package.json +0 -88
  1052. package/test/node_modules/toidentifier/HISTORY.md +0 -9
  1053. package/test/node_modules/toidentifier/LICENSE +0 -21
  1054. package/test/node_modules/toidentifier/README.md +0 -61
  1055. package/test/node_modules/toidentifier/index.js +0 -32
  1056. package/test/node_modules/toidentifier/package.json +0 -38
  1057. package/test/node_modules/touch/LICENSE +0 -15
  1058. package/test/node_modules/touch/README.md +0 -52
  1059. package/test/node_modules/touch/bin/nodetouch.js +0 -112
  1060. package/test/node_modules/touch/index.js +0 -224
  1061. package/test/node_modules/touch/node_modules/nopt/LICENSE +0 -23
  1062. package/test/node_modules/touch/node_modules/nopt/README.md +0 -208
  1063. package/test/node_modules/touch/node_modules/nopt/bin/nopt.js +0 -44
  1064. package/test/node_modules/touch/node_modules/nopt/examples/my-program.js +0 -30
  1065. package/test/node_modules/touch/node_modules/nopt/lib/nopt.js +0 -552
  1066. package/test/node_modules/touch/node_modules/nopt/package.json +0 -12
  1067. package/test/node_modules/touch/package.json +0 -28
  1068. package/test/node_modules/tsscmp/.travis.yml +0 -18
  1069. package/test/node_modules/tsscmp/LICENSE +0 -21
  1070. package/test/node_modules/tsscmp/README.md +0 -48
  1071. package/test/node_modules/tsscmp/appveyor.yml +0 -29
  1072. package/test/node_modules/tsscmp/lib/index.js +0 -38
  1073. package/test/node_modules/tsscmp/package.json +0 -29
  1074. package/test/node_modules/tsscmp/test/benchmark/index.js +0 -30
  1075. package/test/node_modules/tsscmp/test/unit/index.js +0 -69
  1076. package/test/node_modules/type-is/HISTORY.md +0 -259
  1077. package/test/node_modules/type-is/LICENSE +0 -23
  1078. package/test/node_modules/type-is/README.md +0 -170
  1079. package/test/node_modules/type-is/index.js +0 -266
  1080. package/test/node_modules/type-is/package.json +0 -45
  1081. package/test/node_modules/undefsafe/.github/workflows/release.yml +0 -25
  1082. package/test/node_modules/undefsafe/.jscsrc +0 -13
  1083. package/test/node_modules/undefsafe/.jshintrc +0 -16
  1084. package/test/node_modules/undefsafe/.travis.yml +0 -18
  1085. package/test/node_modules/undefsafe/LICENSE +0 -22
  1086. package/test/node_modules/undefsafe/README.md +0 -63
  1087. package/test/node_modules/undefsafe/example.js +0 -14
  1088. package/test/node_modules/undefsafe/lib/undefsafe.js +0 -125
  1089. package/test/node_modules/undefsafe/package.json +0 -34
  1090. package/test/node_modules/vary/HISTORY.md +0 -39
  1091. package/test/node_modules/vary/LICENSE +0 -22
  1092. package/test/node_modules/vary/README.md +0 -101
  1093. package/test/node_modules/vary/index.js +0 -149
  1094. package/test/node_modules/vary/package.json +0 -43
  1095. package/test/node_modules/wrappy/LICENSE +0 -15
  1096. package/test/node_modules/wrappy/README.md +0 -36
  1097. package/test/node_modules/wrappy/package.json +0 -29
  1098. package/test/node_modules/wrappy/wrappy.js +0 -33
  1099. package/test/node_modules/yallist/LICENSE +0 -15
  1100. package/test/node_modules/yallist/README.md +0 -204
  1101. package/test/node_modules/yallist/iterator.js +0 -7
  1102. package/test/node_modules/yallist/package.json +0 -29
  1103. package/test/node_modules/yallist/yallist.js +0 -370
  1104. package/test/node_modules/ylru/History.md +0 -42
  1105. package/test/node_modules/ylru/LICENSE +0 -23
  1106. package/test/node_modules/ylru/README.md +0 -99
  1107. package/test/node_modules/ylru/index.d.ts +0 -18
  1108. package/test/node_modules/ylru/index.js +0 -106
  1109. package/test/node_modules/ylru/package.json +0 -52
  1110. package/test/package-lock.json +0 -2212
  1111. package/test/package.json +0 -17
  1112. package/test/public/api +0 -1
  1113. package/test/public/cartella nuova/ewewew.html +0 -12
  1114. package/test/public/cartella nuova/prova.ejs +0 -12
  1115. package/test/public/index.ejs +0 -12
  1116. package/test/public/index.html +0 -12
  1117. package/test/public/proma_template.ejs +0 -16
  1118. package/test/public/un altro file.html +0 -12
  1119. package/test/public/un_file.html +0 -12
  1120. package/test/test.js +0 -63
@@ -1,1792 +0,0 @@
1
- 'use strict';
2
- /*
3
- * Engines which do not support caching of their file contents
4
- * should use the `read()` function defined in consolidate.js
5
- * On top of this, when an engine compiles to a `Function`,
6
- * these functions should either be cached within consolidate.js
7
- * or the engine itself via `options.cache`. This will allow
8
- * users and frameworks to pass `options.cache = true` for
9
- * `NODE_ENV=production`, however edit the file(s) without
10
- * re-loading the application in development.
11
- */
12
-
13
- /**
14
- * Module dependencies.
15
- */
16
-
17
- var fs = require('fs');
18
- var path = require('path');
19
- var Promise = require('bluebird');
20
-
21
- var join = path.join;
22
- var resolve = path.resolve;
23
- var extname = path.extname;
24
- var dirname = path.dirname;
25
- var isAbsolute = path.isAbsolute;
26
-
27
- var readCache = {};
28
-
29
- /**
30
- * Require cache.
31
- */
32
-
33
- var cacheStore = {};
34
-
35
- /**
36
- * Require cache.
37
- */
38
-
39
- var requires = {};
40
-
41
- /**
42
- * Clear the cache.
43
- *
44
- * @api public
45
- */
46
-
47
- exports.clearCache = function() {
48
- readCache = {};
49
- cacheStore = {};
50
- };
51
-
52
- /**
53
- * Conditionally cache `compiled` template based
54
- * on the `options` filename and `.cache` boolean.
55
- *
56
- * @param {Object} options
57
- * @param {Function} compiled
58
- * @return {Function}
59
- * @api private
60
- */
61
-
62
- function cache(options, compiled) {
63
- // cachable
64
- if (compiled && options.filename && options.cache) {
65
- delete readCache[options.filename];
66
- cacheStore[options.filename] = compiled;
67
- return compiled;
68
- }
69
-
70
- // check cache
71
- if (options.filename && options.cache) {
72
- return cacheStore[options.filename];
73
- }
74
-
75
- return compiled;
76
- }
77
-
78
- /**
79
- * Read `path` with `options` with
80
- * callback `(err, str)`. When `options.cache`
81
- * is true the template string will be cached.
82
- *
83
- * @param {String} options
84
- * @param {Function} cb
85
- * @api private
86
- */
87
-
88
- function read(path, options, cb) {
89
- var str = readCache[path];
90
- var cached = options.cache && str && typeof str === 'string';
91
-
92
- // cached (only if cached is a string and not a compiled template function)
93
- if (cached) return cb(null, str);
94
-
95
- // read
96
- fs.readFile(path, 'utf8', function(err, str) {
97
- if (err) return cb(err);
98
- // remove extraneous utf8 BOM marker
99
- str = str.replace(/^\uFEFF/, '');
100
- if (options.cache) readCache[path] = str;
101
- cb(null, str);
102
- });
103
- }
104
-
105
- /**
106
- * Read `path` with `options` with
107
- * callback `(err, str)`. When `options.cache`
108
- * is true the partial string will be cached.
109
- *
110
- * @param {String} options
111
- * @param {Function} fn
112
- * @api private
113
- */
114
-
115
- function readPartials(path, options, cb) {
116
- if (!options.partials) return cb();
117
- var keys = Object.keys(options.partials);
118
- var partials = {};
119
-
120
- function next(index) {
121
- if (index === keys.length) return cb(null, partials);
122
- var key = keys[index];
123
- var partialPath = options.partials[key];
124
-
125
- if (partialPath === undefined || partialPath === null || partialPath === false) {
126
- return next(++index);
127
- }
128
-
129
- var file;
130
- if (isAbsolute(partialPath)) {
131
- if (extname(partialPath) !== '') {
132
- file = partialPath;
133
- } else {
134
- file = join(partialPath + extname(path));
135
- }
136
- } else {
137
- file = join(dirname(path), partialPath + extname(path));
138
- }
139
-
140
- read(file, options, function(err, str) {
141
- if (err) return cb(err);
142
- partials[key] = str;
143
- next(++index);
144
- });
145
- }
146
-
147
- next(0);
148
- }
149
-
150
- /**
151
- * promisify
152
- */
153
- function promisify(cb, fn) {
154
- return new Promise(function(resolve, reject) {
155
- cb = cb || function(err, html) {
156
- if (err) {
157
- return reject(err);
158
- }
159
- resolve(html);
160
- };
161
- fn(cb);
162
- });
163
- }
164
-
165
- /**
166
- * fromStringRenderer
167
- */
168
-
169
- function fromStringRenderer(name) {
170
- return function(path, options, cb) {
171
- options.filename = path;
172
-
173
- return promisify(cb, function(cb) {
174
- readPartials(path, options, function(err, partials) {
175
- var extend = (requires.extend || (requires.extend = require('util')._extend));
176
- var opts = extend({}, options);
177
- opts.partials = partials;
178
- if (err) return cb(err);
179
- if (cache(opts)) {
180
- exports[name].render('', opts, cb);
181
- } else {
182
- read(path, opts, function(err, str) {
183
- if (err) return cb(err);
184
- exports[name].render(str, opts, cb);
185
- });
186
- }
187
- });
188
- });
189
- };
190
- }
191
-
192
- /**
193
- * velocity support.
194
- */
195
-
196
- exports.velocityjs = fromStringRenderer('velocityjs');
197
-
198
- /**
199
- * velocity string support.
200
- */
201
-
202
- exports.velocityjs.render = function(str, options, cb) {
203
- return promisify(cb, function(cb) {
204
- var engine = requires.velocityjs || (requires.velocityjs = require('velocityjs'));
205
- try {
206
- options.locals = options;
207
- cb(null, engine.render(str, options).trimLeft());
208
- } catch (err) {
209
- cb(err);
210
- }
211
- });
212
- };
213
-
214
- /**
215
- * Liquid support.
216
- */
217
-
218
- exports.liquid = fromStringRenderer('liquid');
219
-
220
- /**
221
- * Liquid string support.
222
- */
223
-
224
- /**
225
- * Note that in order to get filters and custom tags we've had to push
226
- * all user-defined locals down into @locals. However, just to make things
227
- * backwards-compatible, any property of `options` that is left after
228
- * processing and removing `locals`, `meta`, `filters`, `customTags` and
229
- * `includeDir` will also become a local.
230
- */
231
-
232
- function _renderTinyliquid(engine, str, options, cb) {
233
- var context = engine.newContext();
234
- var k;
235
-
236
- /**
237
- * Note that there's a bug in the library that doesn't allow us to pass
238
- * the locals to newContext(), hence looping through the keys:
239
- */
240
-
241
- if (options.locals) {
242
- for (k in options.locals) {
243
- context.setLocals(k, options.locals[k]);
244
- }
245
- delete options.locals;
246
- }
247
-
248
- if (options.meta) {
249
- context.setLocals('page', options.meta);
250
- delete options.meta;
251
- }
252
-
253
- /**
254
- * Add any defined filters:
255
- */
256
-
257
- if (options.filters) {
258
- for (k in options.filters) {
259
- context.setFilter(k, options.filters[k]);
260
- }
261
- delete options.filters;
262
- }
263
-
264
- /**
265
- * Set up a callback for the include directory:
266
- */
267
-
268
- var includeDir = options.includeDir || process.cwd();
269
-
270
- context.onInclude(function(name, callback) {
271
- var extname = path.extname(name) ? '' : '.liquid';
272
- var filename = path.resolve(includeDir, name + extname);
273
-
274
- fs.readFile(filename, {encoding: 'utf8'}, function(err, data) {
275
- if (err) return callback(err);
276
- callback(null, engine.parse(data));
277
- });
278
- });
279
- delete options.includeDir;
280
-
281
- /**
282
- * The custom tag functions need to have their results pushed back
283
- * through the parser, so set up a shim before calling the provided
284
- * callback:
285
- */
286
-
287
- var compileOptions = {
288
- customTags: {}
289
- };
290
-
291
- if (options.customTags) {
292
- var tagFunctions = options.customTags;
293
-
294
- for (k in options.customTags) {
295
- /*Tell jshint there's no problem with having this function in the loop */
296
- /*jshint -W083 */
297
- compileOptions.customTags[k] = function(context, name, body) {
298
- var tpl = tagFunctions[name](body.trim());
299
- context.astStack.push(engine.parse(tpl));
300
- };
301
- /*jshint +W083 */
302
- }
303
- delete options.customTags;
304
- }
305
-
306
- /**
307
- * Now anything left in `options` becomes a local:
308
- */
309
-
310
- for (k in options) {
311
- context.setLocals(k, options[k]);
312
- }
313
-
314
- /**
315
- * Finally, execute the template:
316
- */
317
-
318
- var tmpl = cache(context) || cache(context, engine.compile(str, compileOptions));
319
- tmpl(context, cb);
320
- }
321
-
322
- exports.liquid.render = function(str, options, cb) {
323
- return promisify(cb, function(cb) {
324
- var engine = requires.liquid;
325
- var Liquid;
326
-
327
- try {
328
- // set up tinyliquid engine
329
- engine = requires.liquid = require('tinyliquid');
330
-
331
- // use tinyliquid engine
332
- _renderTinyliquid(engine, str, options, cb);
333
-
334
- return;
335
-
336
- } catch (err) {
337
-
338
- // set up liquid-node engine
339
- try {
340
- Liquid = requires.liquid = require('liquid-node');
341
- engine = new Liquid.Engine();
342
- } catch (err) {
343
- throw err;
344
- }
345
-
346
- }
347
-
348
- // use liquid-node engine
349
- try {
350
- var locals = options.locals || {};
351
-
352
- if (options.meta) {
353
- locals.pages = options.meta;
354
- delete options.meta;
355
- }
356
-
357
- /**
358
- * Add any defined filters:
359
- */
360
-
361
- if (options.filters) {
362
- engine.registerFilters(options.filters);
363
- delete options.filters;
364
- }
365
-
366
- /**
367
- * Set up a callback for the include directory:
368
- */
369
-
370
- var includeDir = options.includeDir || process.cwd();
371
- engine.fileSystem = new Liquid.LocalFileSystem(includeDir, 'liquid');
372
- delete options.includeDir;
373
-
374
- /**
375
- * The custom tag functions need to have their results pushed back
376
- * through the parser, so set up a shim before calling the provided
377
- * callback:
378
- */
379
-
380
- if (options.customTags) {
381
- var tagFunctions = options.customTags;
382
-
383
- for (k in options.customTags) {
384
- engine.registerTag(k, tagFunctions[k]);
385
- }
386
- delete options.customTags;
387
- }
388
-
389
- /**
390
- * Now anything left in `options` becomes a local:
391
- */
392
-
393
- for (var k in options) {
394
- locals[k] = options[k];
395
- }
396
-
397
- /**
398
- * Finally, execute the template:
399
- */
400
-
401
- return engine
402
- .parseAndRender(str, locals)
403
- .nodeify(function(err, result) {
404
- if (err) {
405
- throw new Error(err);
406
- } else {
407
- return cb(null, result);
408
- }
409
- });
410
-
411
- } catch (err) {
412
- cb(err);
413
- }
414
- });
415
- };
416
-
417
- /**
418
- * Jade support.
419
- */
420
-
421
- exports.jade = function(path, options, cb) {
422
- return promisify(cb, function(cb) {
423
- var engine = requires.jade;
424
- if (!engine) {
425
- try {
426
- engine = requires.jade = require('jade');
427
- } catch (err) {
428
- try {
429
- engine = requires.jade = require('then-jade');
430
- } catch (otherError) {
431
- throw err;
432
- }
433
- }
434
- }
435
-
436
- try {
437
- var tmpl = cache(options) || cache(options, engine.compileFile(path, options));
438
- cb(null, tmpl(options));
439
- } catch (err) {
440
- cb(err);
441
- }
442
- });
443
- };
444
-
445
- /**
446
- * Jade string support.
447
- */
448
-
449
- exports.jade.render = function(str, options, cb) {
450
- return promisify(cb, function(cb) {
451
- var engine = requires.jade;
452
- if (!engine) {
453
- try {
454
- engine = requires.jade = require('jade');
455
- } catch (err) {
456
- try {
457
- engine = requires.jade = require('then-jade');
458
- } catch (otherError) {
459
- throw err;
460
- }
461
- }
462
- }
463
-
464
- try {
465
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
466
- cb(null, tmpl(options));
467
- } catch (err) {
468
- cb(err);
469
- }
470
- });
471
- };
472
-
473
- /**
474
- * Dust support.
475
- */
476
-
477
- exports.dust = fromStringRenderer('dust');
478
-
479
- /**
480
- * Dust string support.
481
- */
482
-
483
- exports.dust.render = function(str, options, cb) {
484
- return promisify(cb, function(cb) {
485
- var engine = requires.dust;
486
- if (!engine) {
487
- try {
488
- engine = requires.dust = require('dust');
489
- } catch (err) {
490
- try {
491
- engine = requires.dust = require('dustjs-helpers');
492
- } catch (err) {
493
- engine = requires.dust = require('dustjs-linkedin');
494
- }
495
- }
496
- }
497
-
498
- var ext = 'dust';
499
- var views = '.';
500
-
501
- if (options) {
502
- if (options.ext) ext = options.ext;
503
- if (options.views) views = options.views;
504
- if (options.settings && options.settings.views) views = options.settings.views;
505
- }
506
- if (!options || (options && !options.cache)) engine.cache = {};
507
-
508
- engine.onLoad = function(path, callback) {
509
- if (extname(path) === '') path += '.' + ext;
510
- if (path[0] !== '/') path = views + '/' + path;
511
- read(path, options, callback);
512
- };
513
-
514
- try {
515
- var templateName;
516
- if (options.filename) {
517
- templateName = options.filename.replace(new RegExp('^' + views + '/'), '').replace(new RegExp('\\.' + ext), '');
518
- }
519
-
520
- var tmpl = cache(options) || cache(options, engine.compileFn(str, templateName));
521
- tmpl(options, cb);
522
- } catch (err) {
523
- cb(err);
524
- }
525
- });
526
- };
527
-
528
- /**
529
- * Swig support.
530
- */
531
-
532
- exports.swig = fromStringRenderer('swig');
533
-
534
- /**
535
- * Swig string support.
536
- */
537
-
538
- exports.swig.render = function(str, options, cb) {
539
- return promisify(cb, function(cb) {
540
- var engine = requires.swig;
541
- if (!engine) {
542
- try {
543
- engine = requires.swig = require('swig');
544
- } catch (err) {
545
- try {
546
- engine = requires.swig = require('swig-templates');
547
- } catch (otherError) {
548
- throw err;
549
- }
550
- }
551
- }
552
-
553
- try {
554
- if (options.cache === true) options.cache = 'memory';
555
- engine.setDefaults({ cache: options.cache });
556
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
557
- cb(null, tmpl(options));
558
- } catch (err) {
559
- cb(err);
560
- }
561
- });
562
- };
563
-
564
- /**
565
- * Razor support.
566
- */
567
-
568
- exports.razor = function(path, options, cb) {
569
- return promisify(cb, function(cb) {
570
- var engine = requires.razor;
571
- if (!engine) {
572
- try {
573
- engine = requires.razor = require('razor-tmpl');
574
-
575
- } catch (err) {
576
-
577
- throw err;
578
-
579
- }
580
- }
581
- try {
582
-
583
- var tmpl = cache(options) || cache(options, (locals) => {
584
- console.log('Rendering razor file', path);
585
- return engine.renderFileSync(path, locals);
586
- });
587
- cb(null, tmpl(options));
588
- } catch (err) {
589
- cb(err);
590
- }
591
- });
592
- };
593
-
594
- /**
595
- * razor string support.
596
- */
597
-
598
- exports.razor.render = function(str, options, cb) {
599
- return promisify(cb, function(cb) {
600
-
601
- try {
602
- var engine = requires.razor = require('razor-tmpl');
603
- } catch (err) {
604
- throw err;
605
- }
606
-
607
- try {
608
- var tf = engine.compile(str);
609
- var tmpl = cache(options) || cache(options, tf);
610
- cb(null, tmpl(options));
611
- } catch (err) {
612
- cb(err);
613
- }
614
- });
615
- };
616
-
617
- /**
618
- * Atpl support.
619
- */
620
-
621
- exports.atpl = fromStringRenderer('atpl');
622
-
623
- /**
624
- * Atpl string support.
625
- */
626
-
627
- exports.atpl.render = function(str, options, cb) {
628
- return promisify(cb, function(cb) {
629
- var engine = requires.atpl || (requires.atpl = require('atpl'));
630
- try {
631
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
632
- cb(null, tmpl(options));
633
- } catch (err) {
634
- cb(err);
635
- }
636
- });
637
- };
638
-
639
- /**
640
- * Liquor support,
641
- */
642
-
643
- exports.liquor = fromStringRenderer('liquor');
644
-
645
- /**
646
- * Liquor string support.
647
- */
648
-
649
- exports.liquor.render = function(str, options, cb) {
650
- return promisify(cb, function(cb) {
651
- var engine = requires.liquor || (requires.liquor = require('liquor'));
652
- try {
653
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
654
- cb(null, tmpl(options));
655
- } catch (err) {
656
- cb(err);
657
- }
658
- });
659
- };
660
-
661
- /**
662
- * Twig support.
663
- */
664
-
665
- exports.twig = fromStringRenderer('twig');
666
-
667
- /**
668
- * Twig string support.
669
- */
670
-
671
- exports.twig.render = function(str, options, cb) {
672
- return promisify(cb, function(cb) {
673
- var engine = requires.twig || (requires.twig = require('twig').twig);
674
- var templateData = {
675
- data: str,
676
- allowInlineIncludes: options.allowInlineIncludes,
677
- namespaces: options.namespaces,
678
- path: options.path
679
- };
680
- try {
681
- var tmpl = cache(templateData) || cache(templateData, engine(templateData));
682
- cb(null, tmpl.render(options));
683
- } catch (err) {
684
- cb(err);
685
- }
686
- });
687
- };
688
-
689
- /**
690
- * EJS support.
691
- */
692
-
693
- exports.ejs = fromStringRenderer('ejs');
694
-
695
- /**
696
- * EJS string support.
697
- */
698
-
699
- exports.ejs.render = function(str, options, cb) {
700
- return promisify(cb, function(cb) {
701
- var engine = requires.ejs || (requires.ejs = require('ejs'));
702
- try {
703
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
704
- cb(null, tmpl(options));
705
- } catch (err) {
706
- cb(err);
707
- }
708
- });
709
- };
710
-
711
- /**
712
- * Eco support.
713
- */
714
-
715
- exports.eco = fromStringRenderer('eco');
716
-
717
- /**
718
- * Eco string support.
719
- */
720
-
721
- exports.eco.render = function(str, options, cb) {
722
- return promisify(cb, function(cb) {
723
- var engine = requires.eco || (requires.eco = require('eco'));
724
- try {
725
- cb(null, engine.render(str, options));
726
- } catch (err) {
727
- cb(err);
728
- }
729
- });
730
- };
731
-
732
- /**
733
- * Jazz support.
734
- */
735
-
736
- exports.jazz = fromStringRenderer('jazz');
737
-
738
- /**
739
- * Jazz string support.
740
- */
741
-
742
- exports.jazz.render = function(str, options, cb) {
743
- return promisify(cb, function(cb) {
744
- var engine = requires.jazz || (requires.jazz = require('jazz'));
745
- try {
746
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
747
- tmpl.eval(options, function(str) {
748
- cb(null, str);
749
- });
750
- } catch (err) {
751
- cb(err);
752
- }
753
- });
754
- };
755
-
756
- /**
757
- * JQTPL support.
758
- */
759
-
760
- exports.jqtpl = fromStringRenderer('jqtpl');
761
-
762
- /**
763
- * JQTPL string support.
764
- */
765
-
766
- exports.jqtpl.render = function(str, options, cb) {
767
- return promisify(cb, function(cb) {
768
- var engine = requires.jqtpl || (requires.jqtpl = require('jqtpl'));
769
- try {
770
- engine.template(str, str);
771
- cb(null, engine.tmpl(str, options));
772
- } catch (err) {
773
- cb(err);
774
- }
775
- });
776
- };
777
-
778
- /**
779
- * Haml support.
780
- */
781
-
782
- exports.haml = fromStringRenderer('haml');
783
-
784
- /**
785
- * Haml string support.
786
- */
787
-
788
- exports.haml.render = function(str, options, cb) {
789
- return promisify(cb, function(cb) {
790
- var engine = requires.haml || (requires.haml = require('hamljs'));
791
- try {
792
- options.locals = options;
793
- cb(null, engine.render(str, options).trimLeft());
794
- } catch (err) {
795
- cb(err);
796
- }
797
- });
798
- };
799
-
800
- /**
801
- * Hamlet support.
802
- */
803
-
804
- exports.hamlet = fromStringRenderer('hamlet');
805
-
806
- /**
807
- * Hamlet string support.
808
- */
809
-
810
- exports.hamlet.render = function(str, options, cb) {
811
- return promisify(cb, function(cb) {
812
- var engine = requires.hamlet || (requires.hamlet = require('hamlet'));
813
- try {
814
- options.locals = options;
815
- cb(null, engine.render(str, options).trimLeft());
816
- } catch (err) {
817
- cb(err);
818
- }
819
- });
820
- };
821
-
822
- /**
823
- * Whiskers support.
824
- */
825
-
826
- exports.whiskers = function(path, options, cb) {
827
- return promisify(cb, function(cb) {
828
- var engine = requires.whiskers || (requires.whiskers = require('whiskers'));
829
- engine.__express(path, options, cb);
830
- });
831
- };
832
-
833
- /**
834
- * Whiskers string support.
835
- */
836
-
837
- exports.whiskers.render = function(str, options, cb) {
838
- return promisify(cb, function(cb) {
839
- var engine = requires.whiskers || (requires.whiskers = require('whiskers'));
840
- try {
841
- cb(null, engine.render(str, options));
842
- } catch (err) {
843
- cb(err);
844
- }
845
- });
846
- };
847
-
848
- /**
849
- * Coffee-HAML support.
850
- */
851
-
852
- exports['haml-coffee'] = fromStringRenderer('haml-coffee');
853
-
854
- /**
855
- * Coffee-HAML string support.
856
- */
857
-
858
- exports['haml-coffee'].render = function(str, options, cb) {
859
- return promisify(cb, function(cb) {
860
- var engine = requires['haml-coffee'] || (requires['haml-coffee'] = require('haml-coffee'));
861
- try {
862
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
863
- cb(null, tmpl(options));
864
- } catch (err) {
865
- cb(err);
866
- }
867
- });
868
- };
869
-
870
- /**
871
- * Hogan support.
872
- */
873
-
874
- exports.hogan = fromStringRenderer('hogan');
875
-
876
- /**
877
- * Hogan string support.
878
- */
879
-
880
- exports.hogan.render = function(str, options, cb) {
881
- return promisify(cb, function(cb) {
882
- var engine = requires.hogan || (requires.hogan = require('hogan.js'));
883
- try {
884
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
885
- cb(null, tmpl.render(options, options.partials));
886
- } catch (err) {
887
- cb(err);
888
- }
889
- });
890
- };
891
-
892
- /**
893
- * templayed.js support.
894
- */
895
-
896
- exports.templayed = fromStringRenderer('templayed');
897
-
898
- /**
899
- * templayed.js string support.
900
- */
901
-
902
- exports.templayed.render = function(str, options, cb) {
903
- return promisify(cb, function(cb) {
904
- var engine = requires.templayed || (requires.templayed = require('templayed'));
905
- try {
906
- var tmpl = cache(options) || cache(options, engine(str));
907
- cb(null, tmpl(options));
908
- } catch (err) {
909
- cb(err);
910
- }
911
- });
912
- };
913
-
914
- /**
915
- * Handlebars support.
916
- */
917
-
918
- exports.handlebars = fromStringRenderer('handlebars');
919
-
920
- /**
921
- * Handlebars string support.
922
- */
923
-
924
- exports.handlebars.render = function(str, options, cb) {
925
- return promisify(cb, function(cb) {
926
- var engine = requires.handlebars || (requires.handlebars = require('handlebars'));
927
- try {
928
- for (var partial in options.partials) {
929
- engine.registerPartial(partial, options.partials[partial]);
930
- }
931
- for (var helper in options.helpers) {
932
- engine.registerHelper(helper, options.helpers[helper]);
933
- }
934
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
935
- cb(null, tmpl(options));
936
- } catch (err) {
937
- cb(err);
938
- }
939
- });
940
- };
941
-
942
- /**
943
- * Underscore support.
944
- */
945
-
946
- exports.underscore = fromStringRenderer('underscore');
947
-
948
- /**
949
- * Underscore string support.
950
- */
951
-
952
- exports.underscore.render = function(str, options, cb) {
953
- return promisify(cb, function(cb) {
954
- var engine = requires.underscore || (requires.underscore = require('underscore'));
955
- try {
956
- const partials = {};
957
- for (var partial in options.partials) {
958
- partials[partial] = engine.template(options.partials[partial]);
959
- }
960
- options.partials = partials;
961
- var tmpl = cache(options) || cache(options, engine.template(str, null, options));
962
- cb(null, tmpl(options).replace(/\n$/, ''));
963
- } catch (err) {
964
- cb(err);
965
- }
966
- });
967
- };
968
-
969
- /**
970
- * Lodash support.
971
- */
972
-
973
- exports.lodash = fromStringRenderer('lodash');
974
-
975
- /**
976
- * Lodash string support.
977
- */
978
-
979
- exports.lodash.render = function(str, options, cb) {
980
- return promisify(cb, function(cb) {
981
- var engine = requires.lodash || (requires.lodash = require('lodash'));
982
- try {
983
- var tmpl = cache(options) || cache(options, engine.template(str, options));
984
- cb(null, tmpl(options).replace(/\n$/, ''));
985
- } catch (err) {
986
- cb(err);
987
- }
988
- });
989
- };
990
-
991
- /**
992
- * Pug support. (formerly Jade)
993
- */
994
-
995
- exports.pug = function(path, options, cb) {
996
- return promisify(cb, function(cb) {
997
- var engine = requires.pug;
998
- if (!engine) {
999
- try {
1000
- engine = requires.pug = require('pug');
1001
- } catch (err) {
1002
- try {
1003
- engine = requires.pug = require('then-pug');
1004
- } catch (otherError) {
1005
- throw err;
1006
- }
1007
- }
1008
- }
1009
-
1010
- try {
1011
- var tmpl = cache(options) || cache(options, engine.compileFile(path, options));
1012
- cb(null, tmpl(options));
1013
- } catch (err) {
1014
- cb(err);
1015
- }
1016
- });
1017
- };
1018
-
1019
- /**
1020
- * Pug string support.
1021
- */
1022
-
1023
- exports.pug.render = function(str, options, cb) {
1024
- return promisify(cb, function(cb) {
1025
- var engine = requires.pug;
1026
- if (!engine) {
1027
- try {
1028
- engine = requires.pug = require('pug');
1029
- } catch (err) {
1030
- try {
1031
- engine = requires.pug = require('then-pug');
1032
- } catch (otherError) {
1033
- throw err;
1034
- }
1035
- }
1036
- }
1037
-
1038
- try {
1039
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
1040
- cb(null, tmpl(options));
1041
- } catch (err) {
1042
- cb(err);
1043
- }
1044
- });
1045
- };
1046
-
1047
- /**
1048
- * QEJS support.
1049
- */
1050
-
1051
- exports.qejs = fromStringRenderer('qejs');
1052
-
1053
- /**
1054
- * QEJS string support.
1055
- */
1056
-
1057
- exports.qejs.render = function(str, options, cb) {
1058
- return promisify(cb, function(cb) {
1059
- try {
1060
- var engine = requires.qejs || (requires.qejs = require('qejs'));
1061
- engine.render(str, options).then(function(result) {
1062
- cb(null, result);
1063
- }, function(err) {
1064
- cb(err);
1065
- }).done();
1066
- } catch (err) {
1067
- cb(err);
1068
- }
1069
- });
1070
- };
1071
-
1072
- /**
1073
- * Walrus support.
1074
- */
1075
-
1076
- exports.walrus = fromStringRenderer('walrus');
1077
-
1078
- /**
1079
- * Walrus string support.
1080
- */
1081
-
1082
- exports.walrus.render = function(str, options, cb) {
1083
- return promisify(cb, function(cb) {
1084
- var engine = requires.walrus || (requires.walrus = require('walrus'));
1085
- try {
1086
- var tmpl = cache(options) || cache(options, engine.parse(str));
1087
- cb(null, tmpl.compile(options));
1088
- } catch (err) {
1089
- cb(err);
1090
- }
1091
- });
1092
- };
1093
-
1094
- /**
1095
- * Mustache support.
1096
- */
1097
-
1098
- exports.mustache = fromStringRenderer('mustache');
1099
-
1100
- /**
1101
- * Mustache string support.
1102
- */
1103
-
1104
- exports.mustache.render = function(str, options, cb) {
1105
- return promisify(cb, function(cb) {
1106
- var engine = requires.mustache || (requires.mustache = require('mustache'));
1107
- try {
1108
- cb(null, engine.render(str, options, options.partials));
1109
- } catch (err) {
1110
- cb(err);
1111
- }
1112
- });
1113
- };
1114
-
1115
- /**
1116
- * Just support.
1117
- */
1118
-
1119
- exports.just = function(path, options, cb) {
1120
- return promisify(cb, function(cb) {
1121
- var engine = requires.just;
1122
- if (!engine) {
1123
- var JUST = require('just');
1124
- engine = requires.just = new JUST();
1125
- }
1126
- engine.configure({ useCache: options.cache });
1127
- engine.render(path, options, cb);
1128
- });
1129
- };
1130
-
1131
- /**
1132
- * Just string support.
1133
- */
1134
-
1135
- exports.just.render = function(str, options, cb) {
1136
- return promisify(cb, function(cb) {
1137
- var JUST = require('just');
1138
- var engine = new JUST({ root: { page: str }});
1139
- engine.render('page', options, cb);
1140
- });
1141
- };
1142
-
1143
- /**
1144
- * ECT support.
1145
- */
1146
-
1147
- exports.ect = function(path, options, cb) {
1148
- return promisify(cb, function(cb) {
1149
- var engine = requires.ect;
1150
- if (!engine) {
1151
- var ECT = require('ect');
1152
- engine = requires.ect = new ECT(options);
1153
- }
1154
- engine.configure({ cache: options.cache });
1155
- engine.render(path, options, cb);
1156
- });
1157
- };
1158
-
1159
- /**
1160
- * ECT string support.
1161
- */
1162
-
1163
- exports.ect.render = function(str, options, cb) {
1164
- return promisify(cb, function(cb) {
1165
- var ECT = require('ect');
1166
- var engine = new ECT({ root: { page: str }});
1167
- engine.render('page', options, cb);
1168
- });
1169
- };
1170
-
1171
- /**
1172
- * mote support.
1173
- */
1174
-
1175
- exports.mote = fromStringRenderer('mote');
1176
-
1177
- /**
1178
- * mote string support.
1179
- */
1180
-
1181
- exports.mote.render = function(str, options, cb) {
1182
- return promisify(cb, function(cb) {
1183
- var engine = requires.mote || (requires.mote = require('mote'));
1184
- try {
1185
- var tmpl = cache(options) || cache(options, engine.compile(str));
1186
- cb(null, tmpl(options));
1187
- } catch (err) {
1188
- cb(err);
1189
- }
1190
- });
1191
- };
1192
-
1193
- /**
1194
- * Toffee support.
1195
- */
1196
-
1197
- exports.toffee = function(path, options, cb) {
1198
- return promisify(cb, function(cb) {
1199
- var toffee = requires.toffee || (requires.toffee = require('toffee'));
1200
- toffee.__consolidate_engine_render(path, options, cb);
1201
- });
1202
- };
1203
-
1204
- /**
1205
- * Toffee string support.
1206
- */
1207
-
1208
- exports.toffee.render = function(str, options, cb) {
1209
- return promisify(cb, function(cb) {
1210
- var engine = requires.toffee || (requires.toffee = require('toffee'));
1211
- try {
1212
- engine.str_render(str, options, cb);
1213
- } catch (err) {
1214
- cb(err);
1215
- }
1216
- });
1217
- };
1218
-
1219
- /**
1220
- * doT support.
1221
- */
1222
-
1223
- exports.dot = fromStringRenderer('dot');
1224
-
1225
- /**
1226
- * doT string support.
1227
- */
1228
-
1229
- exports.dot.render = function(str, options, cb) {
1230
- return promisify(cb, function(cb) {
1231
- var engine = requires.dot || (requires.dot = require('dot'));
1232
- var extend = (requires.extend || (requires.extend = require('util')._extend));
1233
- try {
1234
- var settings = {};
1235
- settings = extend(settings, engine.templateSettings);
1236
- settings = extend(settings, options ? options.dot : {});
1237
- var tmpl = cache(options) || cache(options, engine.template(str, settings, options));
1238
- cb(null, tmpl(options));
1239
- } catch (err) {
1240
- cb(err);
1241
- }
1242
- });
1243
- };
1244
-
1245
- /**
1246
- * bracket support.
1247
- */
1248
-
1249
- exports.bracket = fromStringRenderer('bracket');
1250
-
1251
- /**
1252
- * bracket string support.
1253
- */
1254
-
1255
- exports.bracket.render = function(str, options, cb) {
1256
- return promisify(cb, function(cb) {
1257
- var engine = requires.bracket || (requires.bracket = require('bracket-template'));
1258
- try {
1259
- var tmpl = cache(options) || cache(options, engine.default.compile(str, options));
1260
- cb(null, tmpl(options));
1261
- } catch (err) {
1262
- cb(err);
1263
- }
1264
- });
1265
- };
1266
-
1267
- /**
1268
- * Ractive support.
1269
- */
1270
-
1271
- exports.ractive = fromStringRenderer('ractive');
1272
-
1273
- /**
1274
- * Ractive string support.
1275
- */
1276
-
1277
- exports.ractive.render = function(str, options, cb) {
1278
- return promisify(cb, function(cb) {
1279
- var Engine = requires.ractive || (requires.ractive = require('ractive'));
1280
-
1281
- var template = cache(options) || cache(options, Engine.parse(str));
1282
- options.template = template;
1283
-
1284
- if (options.data === null || options.data === undefined) {
1285
- var extend = (requires.extend || (requires.extend = require('util')._extend));
1286
-
1287
- // Shallow clone the options object
1288
- options.data = extend({}, options);
1289
-
1290
- // Remove consolidate-specific properties from the clone
1291
- var i;
1292
- var length;
1293
- var properties = ['template', 'filename', 'cache', 'partials'];
1294
- for (i = 0, length = properties.length; i < length; i++) {
1295
- var property = properties[i];
1296
- delete options.data[property];
1297
- }
1298
- }
1299
-
1300
- try {
1301
- cb(null, new Engine(options).toHTML());
1302
- } catch (err) {
1303
- cb(err);
1304
- }
1305
- });
1306
- };
1307
-
1308
- /**
1309
- * Nunjucks support.
1310
- */
1311
-
1312
- exports.nunjucks = fromStringRenderer('nunjucks');
1313
-
1314
- /**
1315
- * Nunjucks string support.
1316
- */
1317
-
1318
- exports.nunjucks.render = function(str, options, cb) {
1319
- return promisify(cb, function(cb) {
1320
-
1321
- try {
1322
-
1323
- var engine = options.nunjucksEnv || requires.nunjucks || (requires.nunjucks = require('nunjucks'));
1324
-
1325
- var env = engine;
1326
-
1327
- // deprecated fallback support for express
1328
- // <https://github.com/tj/consolidate.js/pull/152>
1329
- // <https://github.com/tj/consolidate.js/pull/224>
1330
- if (options.settings && options.settings.views) {
1331
- env = engine.configure(options.settings.views);
1332
- } else if (options.nunjucks && options.nunjucks.configure) {
1333
- env = engine.configure.apply(engine, options.nunjucks.configure);
1334
- }
1335
-
1336
- //
1337
- // because `renderString` does not initiate loaders
1338
- // we must manually create a loader for it based off
1339
- // either `options.settings.views` or `options.nunjucks` or `options.nunjucks.root`
1340
- //
1341
- // <https://github.com/mozilla/nunjucks/issues/730>
1342
- // <https://github.com/crocodilejs/node-email-templates/issues/182>
1343
- //
1344
-
1345
- // so instead we simply check if we passed a custom loader
1346
- // otherwise we create a simple file based loader
1347
- if (options.loader) {
1348
- env = new engine.Environment(options.loader);
1349
- } else if (options.settings && options.settings.views) {
1350
- env = new engine.Environment(
1351
- new engine.FileSystemLoader(options.settings.views)
1352
- );
1353
- } else if (options.nunjucks && options.nunjucks.loader) {
1354
- if (typeof options.nunjucks.loader === 'string') {
1355
- env = new engine.Environment(new engine.FileSystemLoader(options.nunjucks.loader));
1356
- } else {
1357
- env = new engine.Environment(
1358
- new engine.FileSystemLoader(
1359
- options.nunjucks.loader[0],
1360
- options.nunjucks.loader[1]
1361
- )
1362
- );
1363
- }
1364
- }
1365
-
1366
- env.renderString(str, options, cb);
1367
- } catch (err) {
1368
- throw cb(err);
1369
- }
1370
- });
1371
- };
1372
-
1373
- /**
1374
- * HTMLing support.
1375
- */
1376
-
1377
- exports.htmling = fromStringRenderer('htmling');
1378
-
1379
- /**
1380
- * HTMLing string support.
1381
- */
1382
-
1383
- exports.htmling.render = function(str, options, cb) {
1384
- return promisify(cb, function(cb) {
1385
- var engine = requires.htmling || (requires.htmling = require('htmling'));
1386
- try {
1387
- var tmpl = cache(options) || cache(options, engine.string(str));
1388
- cb(null, tmpl.render(options));
1389
- } catch (err) {
1390
- cb(err);
1391
- }
1392
- });
1393
- };
1394
-
1395
- /**
1396
- * Rendering function
1397
- */
1398
- function requireReact(module, filename) {
1399
- var babel = requires.babel || (requires.babel = require('babel-core'));
1400
-
1401
- var compiled = babel.transformFileSync(filename, { presets: [ 'react' ] }).code;
1402
-
1403
- return module._compile(compiled, filename);
1404
- }
1405
-
1406
- exports.requireReact = requireReact;
1407
-
1408
- /**
1409
- * Converting a string into a node module.
1410
- */
1411
- function requireReactString(src, filename) {
1412
- var babel = requires.babel || (requires.babel = require('babel-core'));
1413
-
1414
- if (!filename) filename = '';
1415
- var m = new module.constructor();
1416
- filename = filename || '';
1417
-
1418
- // Compile Using React
1419
- var compiled = babel.transform(src, { presets: [ 'react' ] }).code;
1420
-
1421
- // Compile as a module
1422
- m.paths = module.paths;
1423
- m._compile(compiled, filename);
1424
-
1425
- return m.exports;
1426
- }
1427
-
1428
- /**
1429
- * A naive helper to replace {{tags}} with options.tags content
1430
- */
1431
- function reactBaseTmpl(data, options) {
1432
-
1433
- var exp;
1434
- var regex;
1435
-
1436
- // Iterates through the keys in file object
1437
- // and interpolate / replace {{key}} with it's value
1438
- for (var k in options) {
1439
- if (options.hasOwnProperty(k)) {
1440
- exp = '{{' + k + '}}';
1441
- regex = new RegExp(exp, 'g');
1442
- if (data.match(regex)) {
1443
- data = data.replace(regex, options[k]);
1444
- }
1445
- }
1446
- }
1447
-
1448
- return data;
1449
- }
1450
-
1451
- /**
1452
- * Plates Support.
1453
- */
1454
-
1455
- exports.plates = fromStringRenderer('plates');
1456
-
1457
- /**
1458
- * Plates string support.
1459
- */
1460
-
1461
- exports.plates.render = function(str, options, cb) {
1462
- return promisify(cb, function(cb) {
1463
- var engine = requires.plates || (requires.plates = require('plates'));
1464
- var map = options.map || undefined;
1465
- try {
1466
- var tmpl = engine.bind(str, options, map);
1467
- cb(null, tmpl);
1468
- } catch (err) {
1469
- cb(err);
1470
- }
1471
- });
1472
- };
1473
-
1474
- /**
1475
- * The main render parser for React bsaed templates
1476
- */
1477
- function reactRenderer(type) {
1478
-
1479
- if (require.extensions) {
1480
-
1481
- // Ensure JSX is transformed on require
1482
- if (!require.extensions['.jsx']) {
1483
- require.extensions['.jsx'] = requireReact;
1484
- }
1485
-
1486
- // Supporting .react extension as well as test cases
1487
- // Using .react extension is not recommended.
1488
- if (!require.extensions['.react']) {
1489
- require.extensions['.react'] = requireReact;
1490
- }
1491
-
1492
- }
1493
-
1494
- // Return rendering fx
1495
- return function(str, options, cb) {
1496
- return promisify(cb, function(cb) {
1497
- // React Import
1498
- var ReactDOM = requires.ReactDOM || (requires.ReactDOM = require('react-dom/server'));
1499
- var react = requires.react || (requires.react = require('react'));
1500
-
1501
- // Assign HTML Base
1502
- var base = options.base;
1503
- delete options.base;
1504
-
1505
- var enableCache = options.cache;
1506
- delete options.cache;
1507
-
1508
- var isNonStatic = options.isNonStatic;
1509
- delete options.isNonStatic;
1510
-
1511
- // Start Conversion
1512
- try {
1513
-
1514
- var Code;
1515
- var Factory;
1516
-
1517
- var baseStr;
1518
- var content;
1519
- var parsed;
1520
-
1521
- if (!cache(options)) {
1522
- // Parsing
1523
- if (type === 'path') {
1524
- var path = resolve(str);
1525
- delete require.cache[path];
1526
- Code = require(path);
1527
- } else {
1528
- Code = requireReactString(str);
1529
- }
1530
- Factory = cache(options, react.createFactory(Code));
1531
-
1532
- } else {
1533
- Factory = cache(options);
1534
- }
1535
-
1536
- parsed = new Factory(options);
1537
- content = (isNonStatic) ? ReactDOM.renderToString(parsed) : ReactDOM.renderToStaticMarkup(parsed);
1538
-
1539
- if (base) {
1540
- baseStr = readCache[str] || fs.readFileSync(resolve(base), 'utf8');
1541
-
1542
- if (enableCache) {
1543
- readCache[str] = baseStr;
1544
- }
1545
-
1546
- options.content = content;
1547
- content = reactBaseTmpl(baseStr, options);
1548
- }
1549
-
1550
- cb(null, content);
1551
-
1552
- } catch (err) {
1553
- cb(err);
1554
- }
1555
- });
1556
- };
1557
- }
1558
-
1559
- /**
1560
- * React JS Support
1561
- */
1562
- exports.react = reactRenderer('path');
1563
-
1564
- /**
1565
- * React JS string support.
1566
- */
1567
- exports.react.render = reactRenderer('string');
1568
-
1569
- /**
1570
- * ARC-templates support.
1571
- */
1572
-
1573
- exports['arc-templates'] = fromStringRenderer('arc-templates');
1574
-
1575
- /**
1576
- * ARC-templates string support.
1577
- */
1578
-
1579
- exports['arc-templates'].render = function(str, options, cb) {
1580
- var readFileWithOptions = Promise.promisify(read);
1581
- var consolidateFileSystem = {};
1582
- consolidateFileSystem.readFile = function(path) {
1583
- return readFileWithOptions(path, options);
1584
- };
1585
-
1586
- return promisify(cb, function(cb) {
1587
- try {
1588
- var engine = requires['arc-templates'];
1589
- if (!engine) {
1590
- var Engine = require('arc-templates/dist/es5');
1591
- engine = requires['arc-templates'] = new Engine({ filesystem: consolidateFileSystem });
1592
- }
1593
-
1594
- var compiler = cache(options) || cache(options, engine.compileString(str, options.filename));
1595
- compiler.then(function(func) { return func(options); })
1596
- .then(function(result) { cb(null, result.content); })
1597
- .catch(cb);
1598
- } catch (err) {
1599
- cb(err);
1600
- }
1601
- });
1602
- };
1603
-
1604
- /**
1605
- * Vash support
1606
- */
1607
- exports.vash = fromStringRenderer('vash');
1608
-
1609
- /**
1610
- * Vash string support
1611
- */
1612
- exports.vash.render = function(str, options, cb) {
1613
- return promisify(cb, function(cb) {
1614
- var engine = requires.vash || (requires.vash = require('vash'));
1615
-
1616
- try {
1617
- // helper system : https://github.com/kirbysayshi/vash#helper-system
1618
- if (options.helpers) {
1619
- for (var key in options.helpers) {
1620
- if (!options.helpers.hasOwnProperty(key) || typeof options.helpers[key] !== 'function') {
1621
- continue;
1622
- }
1623
- engine.helpers[key] = options.helpers[key];
1624
- }
1625
- }
1626
-
1627
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
1628
- tmpl(options, function sealLayout(err, ctx) {
1629
- if (err) cb(err);
1630
- ctx.finishLayout();
1631
- cb(null, ctx.toString().replace(/\n$/, ''));
1632
- });
1633
- } catch (err) {
1634
- cb(err);
1635
- }
1636
- });
1637
- };
1638
-
1639
- /**
1640
- * Slm support.
1641
- */
1642
-
1643
- exports.slm = fromStringRenderer('slm');
1644
-
1645
- /**
1646
- * Slm string support.
1647
- */
1648
-
1649
- exports.slm.render = function(str, options, cb) {
1650
- return promisify(cb, function(cb) {
1651
- var engine = requires.slm || (requires.slm = require('slm'));
1652
-
1653
- try {
1654
- var tmpl = cache(options) || cache(options, engine.compile(str, options));
1655
- cb(null, tmpl(options));
1656
- } catch (err) {
1657
- cb(err);
1658
- }
1659
- });
1660
- };
1661
-
1662
- /**
1663
- * Marko support.
1664
- */
1665
-
1666
- exports.marko = function(path, options, cb) {
1667
- return promisify(cb, function(cb) {
1668
- var engine = requires.marko || (requires.marko = require('marko'));
1669
- options.writeToDisk = !!options.cache;
1670
-
1671
- try {
1672
- var tmpl = cache(options) || cache(options, engine.load(path, options));
1673
- tmpl.renderToString(options, cb);
1674
- } catch (err) {
1675
- cb(err);
1676
- }
1677
- });
1678
- };
1679
-
1680
- /**
1681
- * Marko string support.
1682
- */
1683
-
1684
- exports.marko.render = function(str, options, cb) {
1685
- return promisify(cb, function(cb) {
1686
- var engine = requires.marko || (requires.marko = require('marko'));
1687
- options.writeToDisk = !!options.cache;
1688
- options.filename = options.filename || 'string.marko';
1689
-
1690
- try {
1691
- var tmpl = cache(options) || cache(options, engine.load(options.filename, str, options));
1692
- tmpl.renderToString(options, cb);
1693
- } catch (err) {
1694
- cb(err);
1695
- }
1696
- });
1697
- };
1698
-
1699
- /**
1700
- * Teacup support.
1701
- */
1702
- exports.teacup = function(path, options, cb) {
1703
- return promisify(cb, function(cb) {
1704
- var engine = requires.teacup || (requires.teacup = require('teacup/lib/express'));
1705
- require.extensions['.teacup'] = require.extensions['.coffee'];
1706
- if (path[0] !== '/') {
1707
- path = join(process.cwd(), path);
1708
- }
1709
- if (!options.cache) {
1710
- var callback = cb;
1711
- cb = function() {
1712
- delete require.cache[path];
1713
- callback.apply(this, arguments);
1714
- };
1715
- }
1716
- engine.renderFile(path, options, cb);
1717
- });
1718
- };
1719
-
1720
- /**
1721
- * Teacup string support.
1722
- */
1723
- exports.teacup.render = function(str, options, cb) {
1724
- var coffee = require('coffee-script');
1725
- var vm = require('vm');
1726
- var sandbox = {
1727
- module: {exports: {}},
1728
- require: require
1729
- };
1730
- return promisify(cb, function(cb) {
1731
- vm.runInNewContext(coffee.compile(str), sandbox);
1732
- var tmpl = sandbox.module.exports;
1733
- cb(null, tmpl(options));
1734
- });
1735
- };
1736
-
1737
- /**
1738
- * Squirrelly support.
1739
- */
1740
-
1741
- exports.squirrelly = fromStringRenderer('squirrelly');
1742
-
1743
- /**
1744
- * Squirrelly string support.
1745
- */
1746
-
1747
- exports.squirrelly.render = function(str, options, cb) {
1748
- return promisify(cb, function(cb) {
1749
- var engine = requires.squirrelly || (requires.squirrelly = require('squirrelly'));
1750
- try {
1751
- for (var partial in options.partials) {
1752
- engine.definePartial(partial, options.partials[partial]);
1753
- }
1754
- for (var helper in options.helpers) {
1755
- engine.defineHelper(helper, options.helpers[helper]);
1756
- }
1757
- var tmpl = cache(options) || cache(options, engine.Compile(str, options));
1758
- cb(null, tmpl(options, engine));
1759
- } catch (err) {
1760
- cb(err);
1761
- }
1762
- });
1763
- };
1764
- /**
1765
- * Twing support.
1766
- */
1767
-
1768
- exports.twing = fromStringRenderer('twing');
1769
-
1770
- /**
1771
- * Twing string support.
1772
- */
1773
-
1774
- exports.twing.render = function(str, options, cb) {
1775
- return promisify(cb, function(cb) {
1776
- var engine = requires.twing || (requires.twing = require('twing'));
1777
- try {
1778
- new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).then((twingTemplate) => {
1779
- twingTemplate.render(options).then((rendTmpl) => {
1780
- var tmpl = cache(options) || cache(options, rendTmpl);
1781
- cb(null, tmpl);
1782
- });
1783
- });
1784
- } catch (err) {
1785
- cb(err);
1786
- }
1787
- });
1788
- };
1789
- /**
1790
- * expose the instance of the engine
1791
- */
1792
- exports.requires = requires;