nitro-nightly 4.0.0-20251030-091344-d4418b98 → 4.0.0-20251030-121649-98b56dfe

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 (334) hide show
  1. package/dist/_build/common.mjs +763 -0
  2. package/dist/_build/rolldown.mjs +216 -0
  3. package/dist/_build/rollup.mjs +359 -0
  4. package/dist/_build/vite.build.mjs +67 -0
  5. package/dist/_build/vite.plugin.mjs +747 -0
  6. package/dist/_chunks/B-7HiF0V.mjs +1303 -0
  7. package/dist/_chunks/B3asVbT4.mjs +151 -0
  8. package/dist/_chunks/B5ooyfLk.mjs +372 -0
  9. package/dist/_chunks/DXMHy5ca.mjs +43 -0
  10. package/dist/_dev.d.mts +12 -0
  11. package/dist/_dev.mjs +675 -0
  12. package/dist/_libs/acorn.mjs +5034 -0
  13. package/dist/_libs/c12.mjs +2798 -0
  14. package/dist/_libs/chokidar.mjs +1560 -0
  15. package/dist/_libs/citty.mjs +333 -0
  16. package/dist/_libs/commondir.mjs +22 -0
  17. package/dist/_libs/compatx.mjs +46 -0
  18. package/dist/_libs/confbox.mjs +2920 -0
  19. package/dist/_libs/debug.mjs +848 -0
  20. package/dist/_libs/deepmerge.mjs +86 -0
  21. package/dist/_libs/depd.mjs +314 -0
  22. package/dist/_libs/dot-prop.mjs +138 -0
  23. package/dist/_libs/duplexer.mjs +71 -0
  24. package/dist/_libs/ee-first.mjs +68 -0
  25. package/dist/_libs/encodeurl.mjs +49 -0
  26. package/dist/_libs/escape-html.mjs +58 -0
  27. package/dist/_libs/escape-string-regexp.mjs +8 -0
  28. package/dist/_libs/estree-walker.mjs +330 -0
  29. package/dist/_libs/etag.mjs +75 -0
  30. package/dist/{_chunks/_deps → _libs}/fdir.mjs +49 -104
  31. package/dist/_libs/fresh.mjs +85 -0
  32. package/dist/_libs/function-bind.mjs +63 -0
  33. package/dist/_libs/gen-mapping.mjs +612 -0
  34. package/dist/_libs/giget.mjs +19076 -0
  35. package/dist/_libs/gzip-size.mjs +21 -0
  36. package/dist/_libs/hasown.mjs +14 -0
  37. package/dist/_libs/http-errors.mjs +436 -0
  38. package/dist/_libs/httpxy.mjs +410 -0
  39. package/dist/_libs/is-core-module.mjs +220 -0
  40. package/dist/_libs/is-module.mjs +13 -0
  41. package/dist/_libs/is-reference.mjs +32 -0
  42. package/dist/{_chunks/_deps → _libs}/js-tokens.mjs +83 -112
  43. package/dist/_libs/klona.mjs +90 -0
  44. package/dist/_libs/knitwork.mjs +124 -0
  45. package/dist/_libs/local-pkg.mjs +1686 -0
  46. package/dist/{_chunks/_deps → _libs}/magic-string.mjs +272 -629
  47. package/dist/_libs/mime-db.mjs +7642 -0
  48. package/dist/_libs/mime-types.mjs +162 -0
  49. package/dist/_libs/mime.mjs +1391 -0
  50. package/dist/_libs/node-fetch-native.mjs +173 -0
  51. package/dist/_libs/on-finished.mjs +170 -0
  52. package/dist/_libs/parseurl.mjs +103 -0
  53. package/dist/_libs/path-parse.mjs +47 -0
  54. package/dist/_libs/pathe.mjs +41 -0
  55. package/dist/_libs/picomatch.mjs +1673 -0
  56. package/dist/_libs/plugin-alias.mjs +64 -0
  57. package/dist/_libs/plugin-commonjs.mjs +1489 -0
  58. package/dist/_libs/plugin-inject.mjs +135 -0
  59. package/dist/_libs/plugin-json.mjs +36 -0
  60. package/dist/_libs/plugin-node-resolve.mjs +1553 -0
  61. package/dist/_libs/plugin-replace.mjs +104 -0
  62. package/dist/_libs/pretty-bytes.mjs +116 -0
  63. package/dist/_libs/range-parser.mjs +102 -0
  64. package/dist/_libs/remapping.mjs +117 -0
  65. package/dist/{_chunks/_deps → _libs}/rou3.mjs +7 -22
  66. package/dist/_libs/send.mjs +857 -0
  67. package/dist/_libs/serve-static.mjs +124 -0
  68. package/dist/_libs/std-env.mjs +158 -0
  69. package/dist/_libs/strip-literal.mjs +51 -0
  70. package/dist/{_chunks/_deps → _libs}/tinyglobby.mjs +32 -33
  71. package/dist/_libs/ultrahtml.mjs +138 -0
  72. package/dist/_libs/unimport.mjs +3520 -0
  73. package/dist/_libs/untyped.mjs +271 -0
  74. package/dist/_libs/unwasm.mjs +5825 -0
  75. package/dist/{_chunks/_deps/@pi0 → _libs}/vite-plugin-fullstack.mjs +28 -42
  76. package/dist/_presets.mjs +1723 -0
  77. package/dist/builder.d.mts +37 -35
  78. package/dist/builder.mjs +45 -117
  79. package/dist/cli/_chunks/build.mjs +43 -0
  80. package/dist/cli/_chunks/common.mjs +15 -0
  81. package/dist/cli/_chunks/detect-acorn.mjs +12 -0
  82. package/dist/cli/_chunks/dev.mjs +79 -0
  83. package/dist/cli/_chunks/dist.mjs +3 -0
  84. package/dist/cli/_chunks/dist2.mjs +4 -0
  85. package/dist/cli/_chunks/esm.mjs +3 -0
  86. package/dist/cli/_chunks/json5.mjs +4 -0
  87. package/dist/cli/_chunks/jsonc.mjs +4 -0
  88. package/dist/cli/_chunks/list.mjs +27 -0
  89. package/dist/cli/_chunks/multipart-parser.mjs +6 -0
  90. package/dist/cli/_chunks/prepare.mjs +19 -0
  91. package/dist/cli/_chunks/run.mjs +55 -0
  92. package/dist/cli/_chunks/task.mjs +16 -0
  93. package/dist/cli/_chunks/toml.mjs +4 -0
  94. package/dist/cli/_chunks/yaml.mjs +4 -0
  95. package/dist/cli/index.d.mts +1 -1
  96. package/dist/cli/index.mjs +19 -18
  97. package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -0
  98. package/dist/presets/_nitro/runtime/nitro-dev.mjs +42 -33
  99. package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +2 -2
  100. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +4 -8
  101. package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -0
  102. package/dist/presets/_nitro/runtime/service-worker.mjs +14 -11
  103. package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -0
  104. package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +6 -5
  105. package/dist/presets/aws-lambda/runtime/_utils.d.mts +8 -13
  106. package/dist/presets/aws-lambda/runtime/_utils.mjs +95 -81
  107. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -2
  108. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +25 -27
  109. package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +7 -7
  110. package/dist/presets/azure/runtime/_utils.mjs +43 -43
  111. package/dist/presets/azure/runtime/azure-swa.d.mts +2 -2
  112. package/dist/presets/azure/runtime/azure-swa.mjs +22 -21
  113. package/dist/presets/bun/runtime/bun.d.mts +1 -0
  114. package/dist/presets/bun/runtime/bun.mjs +18 -17
  115. package/dist/presets/cloudflare/runtime/_module-handler.d.mts +10 -7
  116. package/dist/presets/cloudflare/runtime/_module-handler.mjs +78 -87
  117. package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +6 -14
  118. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +53 -58
  119. package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -7
  120. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +12 -14
  121. package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +12 -12
  122. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +35 -39
  123. package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +2 -2
  124. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +86 -76
  125. package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -0
  126. package/dist/presets/deno/runtime/deno-deploy.mjs +12 -11
  127. package/dist/presets/deno/runtime/deno-server.d.mts +2 -1
  128. package/dist/presets/deno/runtime/deno-server.mjs +31 -39
  129. package/dist/presets/netlify/runtime/netlify-edge.d.mts +2 -1
  130. package/dist/presets/netlify/runtime/netlify-edge.mjs +14 -11
  131. package/dist/presets/netlify/runtime/netlify.mjs +11 -17
  132. package/dist/presets/node/runtime/node-cluster.mjs +49 -48
  133. package/dist/presets/node/runtime/node-middleware.d.mts +3 -2
  134. package/dist/presets/node/runtime/node-middleware.mjs +7 -6
  135. package/dist/presets/node/runtime/node-server.mjs +33 -23
  136. package/dist/presets/standard/runtime/server.d.mts +1 -3
  137. package/dist/presets/standard/runtime/server.mjs +1 -3
  138. package/dist/presets/stormkit/runtime/stormkit.d.mts +13 -13
  139. package/dist/presets/stormkit/runtime/stormkit.mjs +20 -20
  140. package/dist/presets/vercel/runtime/vercel.d.mts +3 -3
  141. package/dist/presets/vercel/runtime/vercel.mjs +15 -14
  142. package/dist/presets/winterjs/runtime/winterjs.d.mts +2 -0
  143. package/dist/presets/winterjs/runtime/winterjs.mjs +72 -68
  144. package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
  145. package/dist/runtime/index.d.mts +12 -1
  146. package/dist/runtime/index.mjs +12 -7
  147. package/dist/runtime/internal/app.mjs +175 -162
  148. package/dist/runtime/internal/cache.d.mts +10 -4
  149. package/dist/runtime/internal/cache.mjs +247 -216
  150. package/dist/runtime/internal/context.d.mts +9 -9
  151. package/dist/runtime/internal/context.mjs +17 -10
  152. package/dist/runtime/internal/database.mjs +8 -10
  153. package/dist/runtime/internal/error/dev.d.mts +5 -4
  154. package/dist/runtime/internal/error/dev.mjs +106 -105
  155. package/dist/runtime/internal/error/prod.d.mts +2 -2
  156. package/dist/runtime/internal/error/prod.mjs +48 -52
  157. package/dist/runtime/internal/error/utils.d.mts +4 -4
  158. package/dist/runtime/internal/error/utils.mjs +1 -1
  159. package/dist/runtime/internal/index.d.mts +2 -0
  160. package/dist/runtime/internal/index.mjs +2 -0
  161. package/dist/runtime/internal/lib/http-graceful-shutdown.d.mts +14 -14
  162. package/dist/runtime/internal/lib/http-graceful-shutdown.mjs +248 -209
  163. package/dist/runtime/internal/meta.d.mts +1 -1
  164. package/dist/runtime/internal/meta.mjs +1 -1
  165. package/dist/runtime/internal/plugin.d.mts +2 -2
  166. package/dist/runtime/internal/plugin.mjs +1 -1
  167. package/dist/runtime/internal/renderer.mjs +39 -31
  168. package/dist/runtime/internal/route-rules.d.mts +8 -8
  169. package/dist/runtime/internal/route-rules.mjs +53 -51
  170. package/dist/runtime/internal/routes/dev-tasks.d.mts +1 -30
  171. package/dist/runtime/internal/routes/dev-tasks.mjs +15 -17
  172. package/dist/runtime/internal/routes/openapi.d.mts +1 -0
  173. package/dist/runtime/internal/routes/openapi.mjs +81 -87
  174. package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
  175. package/dist/runtime/internal/routes/renderer-template.dev.d.mts +1 -2
  176. package/dist/runtime/internal/routes/renderer-template.dev.mjs +10 -17
  177. package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
  178. package/dist/runtime/internal/routes/scalar.d.mts +1 -0
  179. package/dist/runtime/internal/routes/scalar.mjs +22 -23
  180. package/dist/runtime/internal/routes/swagger.d.mts +1 -0
  181. package/dist/runtime/internal/routes/swagger.mjs +9 -11
  182. package/dist/runtime/internal/runtime-config.d.mts +4 -4
  183. package/dist/runtime/internal/runtime-config.mjs +40 -35
  184. package/dist/runtime/internal/shutdown.d.mts +2 -7
  185. package/dist/runtime/internal/shutdown.mjs +30 -29
  186. package/dist/runtime/internal/static.mjs +63 -74
  187. package/dist/runtime/internal/storage.mjs +2 -2
  188. package/dist/runtime/internal/task.d.mts +6 -6
  189. package/dist/runtime/internal/task.mjs +56 -59
  190. package/dist/runtime/internal/utils.d.mts +1 -1
  191. package/dist/runtime/internal/utils.mjs +4 -10
  192. package/dist/types/index.d.mts +2566 -3851
  193. package/dist/types/index.mjs +1 -1
  194. package/dist/vite.d.mts +56 -52
  195. package/dist/vite.mjs +55 -132
  196. package/package.json +10 -10
  197. package/dist/_build/build.mjs +0 -368
  198. package/dist/_build/build2.mjs +0 -556
  199. package/dist/_build/info.mjs +0 -1002
  200. package/dist/_build/prepare.mjs +0 -1511
  201. package/dist/_build/snapshot.mjs +0 -185
  202. package/dist/_build/vite.mjs +0 -959
  203. package/dist/_build/vite2.mjs +0 -149
  204. package/dist/_chunks/_deps/@jridgewell/gen-mapping.mjs +0 -189
  205. package/dist/_chunks/_deps/@jridgewell/remapping.mjs +0 -137
  206. package/dist/_chunks/_deps/@jridgewell/resolve-uri.mjs +0 -231
  207. package/dist/_chunks/_deps/@jridgewell/sourcemap-codec.mjs +0 -173
  208. package/dist/_chunks/_deps/@jridgewell/trace-mapping.mjs +0 -170
  209. package/dist/_chunks/_deps/@rollup/plugin-alias.mjs +0 -89
  210. package/dist/_chunks/_deps/@rollup/plugin-commonjs.mjs +0 -2376
  211. package/dist/_chunks/_deps/@rollup/plugin-inject.mjs +0 -212
  212. package/dist/_chunks/_deps/@rollup/plugin-json.mjs +0 -37
  213. package/dist/_chunks/_deps/@rollup/plugin-node-resolve.mjs +0 -1386
  214. package/dist/_chunks/_deps/@rollup/plugin-replace.mjs +0 -133
  215. package/dist/_chunks/_deps/@rollup/pluginutils.mjs +0 -346
  216. package/dist/_chunks/_deps/acorn.mjs +0 -6225
  217. package/dist/_chunks/_deps/c12.mjs +0 -510
  218. package/dist/_chunks/_deps/chokidar.mjs +0 -1428
  219. package/dist/_chunks/_deps/citty.mjs +0 -460
  220. package/dist/_chunks/_deps/commondir.mjs +0 -77
  221. package/dist/_chunks/_deps/compatx.mjs +0 -76
  222. package/dist/_chunks/_deps/confbox.mjs +0 -300
  223. package/dist/_chunks/_deps/debug.mjs +0 -885
  224. package/dist/_chunks/_deps/deepmerge.mjs +0 -147
  225. package/dist/_chunks/_deps/depd.mjs +0 -550
  226. package/dist/_chunks/_deps/dot-prop.mjs +0 -282
  227. package/dist/_chunks/_deps/dotenv.mjs +0 -555
  228. package/dist/_chunks/_deps/duplexer.mjs +0 -1
  229. package/dist/_chunks/_deps/ee-first.mjs +0 -104
  230. package/dist/_chunks/_deps/encodeurl.mjs +0 -69
  231. package/dist/_chunks/_deps/escape-html.mjs +0 -87
  232. package/dist/_chunks/_deps/escape-string-regexp.mjs +0 -13
  233. package/dist/_chunks/_deps/estree-walker.mjs +0 -433
  234. package/dist/_chunks/_deps/etag.mjs +0 -147
  235. package/dist/_chunks/_deps/exsolve.mjs +0 -1416
  236. package/dist/_chunks/_deps/fresh.mjs +0 -145
  237. package/dist/_chunks/_deps/function-bind.mjs +0 -106
  238. package/dist/_chunks/_deps/giget.mjs +0 -451
  239. package/dist/_chunks/_deps/gzip-size.mjs +0 -19
  240. package/dist/_chunks/_deps/hasown.mjs +0 -19
  241. package/dist/_chunks/_deps/http-errors.mjs +0 -307
  242. package/dist/_chunks/_deps/httpxy.mjs +0 -580
  243. package/dist/_chunks/_deps/inherits.mjs +0 -57
  244. package/dist/_chunks/_deps/is-core-module.mjs +0 -596
  245. package/dist/_chunks/_deps/is-module.mjs +0 -25
  246. package/dist/_chunks/_deps/is-reference.mjs +0 -31
  247. package/dist/_chunks/_deps/klona.mjs +0 -137
  248. package/dist/_chunks/_deps/knitwork.mjs +0 -172
  249. package/dist/_chunks/_deps/local-pkg.mjs +0 -163
  250. package/dist/_chunks/_deps/mime-db.mjs +0 -11685
  251. package/dist/_chunks/_deps/mime-types.mjs +0 -287
  252. package/dist/_chunks/_deps/mime.mjs +0 -1172
  253. package/dist/_chunks/_deps/mlly.mjs +0 -2413
  254. package/dist/_chunks/_deps/ms.mjs +0 -172
  255. package/dist/_chunks/_deps/node-fetch-native.mjs +0 -3
  256. package/dist/_chunks/_deps/nypm.mjs +0 -219
  257. package/dist/_chunks/_deps/on-finished.mjs +0 -246
  258. package/dist/_chunks/_deps/parseurl.mjs +0 -168
  259. package/dist/_chunks/_deps/path-parse.mjs +0 -85
  260. package/dist/_chunks/_deps/pathe.mjs +0 -251
  261. package/dist/_chunks/_deps/perfect-debounce.mjs +0 -88
  262. package/dist/_chunks/_deps/picomatch.mjs +0 -2144
  263. package/dist/_chunks/_deps/pkg-types.mjs +0 -247
  264. package/dist/_chunks/_deps/pretty-bytes.mjs +0 -180
  265. package/dist/_chunks/_deps/quansync.mjs +0 -99
  266. package/dist/_chunks/_deps/range-parser.mjs +0 -171
  267. package/dist/_chunks/_deps/rc9.mjs +0 -219
  268. package/dist/_chunks/_deps/readdirp.mjs +0 -245
  269. package/dist/_chunks/_deps/resolve.mjs +0 -1260
  270. package/dist/_chunks/_deps/send.mjs +0 -1022
  271. package/dist/_chunks/_deps/serve-static.mjs +0 -228
  272. package/dist/_chunks/_deps/setprototypeof.mjs +0 -26
  273. package/dist/_chunks/_deps/statuses.mjs +0 -457
  274. package/dist/_chunks/_deps/std-env.mjs +0 -3
  275. package/dist/_chunks/_deps/strip-literal.mjs +0 -67
  276. package/dist/_chunks/_deps/supports-color.mjs +0 -44
  277. package/dist/_chunks/_deps/tinyexec.mjs +0 -552
  278. package/dist/_chunks/_deps/toidentifier.mjs +0 -41
  279. package/dist/_chunks/_deps/ultrahtml.mjs +0 -3
  280. package/dist/_chunks/_deps/unimport.mjs +0 -2267
  281. package/dist/_chunks/_deps/unplugin-utils.mjs +0 -65
  282. package/dist/_chunks/_deps/unplugin.mjs +0 -1294
  283. package/dist/_chunks/_deps/untyped.mjs +0 -375
  284. package/dist/_chunks/_deps/unwasm.mjs +0 -6959
  285. package/dist/_chunks/_deps/webpack-virtual-modules.mjs +0 -360
  286. package/dist/_chunks/_presets/_all.mjs +0 -59
  287. package/dist/_chunks/_presets/_nitro.mjs +0 -74
  288. package/dist/_chunks/_presets/_resolve.mjs +0 -64
  289. package/dist/_chunks/_presets/_static.mjs +0 -69
  290. package/dist/_chunks/_presets/_types.mjs +0 -3
  291. package/dist/_chunks/_presets/_utils.mjs +0 -31
  292. package/dist/_chunks/_presets/alwaysdata.mjs +0 -17
  293. package/dist/_chunks/_presets/aws-amplify.mjs +0 -111
  294. package/dist/_chunks/_presets/aws-lambda.mjs +0 -23
  295. package/dist/_chunks/_presets/azure.mjs +0 -162
  296. package/dist/_chunks/_presets/bun.mjs +0 -19
  297. package/dist/_chunks/_presets/cleavr.mjs +0 -15
  298. package/dist/_chunks/_presets/cloudflare.mjs +0 -608
  299. package/dist/_chunks/_presets/deno.mjs +0 -196
  300. package/dist/_chunks/_presets/digitalocean.mjs +0 -14
  301. package/dist/_chunks/_presets/firebase.mjs +0 -47
  302. package/dist/_chunks/_presets/flightcontrol.mjs +0 -14
  303. package/dist/_chunks/_presets/genezio.mjs +0 -13
  304. package/dist/_chunks/_presets/heroku.mjs +0 -14
  305. package/dist/_chunks/_presets/iis.mjs +0 -194
  306. package/dist/_chunks/_presets/index.mjs +0 -62
  307. package/dist/_chunks/_presets/koyeb.mjs +0 -14
  308. package/dist/_chunks/_presets/netlify.mjs +0 -241
  309. package/dist/_chunks/_presets/node.mjs +0 -54
  310. package/dist/_chunks/_presets/platform.mjs +0 -14
  311. package/dist/_chunks/_presets/render.mjs +0 -14
  312. package/dist/_chunks/_presets/standard.mjs +0 -23
  313. package/dist/_chunks/_presets/stormkit.mjs +0 -18
  314. package/dist/_chunks/_presets/vercel.mjs +0 -375
  315. package/dist/_chunks/_presets/winterjs.mjs +0 -22
  316. package/dist/_chunks/_presets/zeabur.mjs +0 -69
  317. package/dist/_chunks/_presets/zerops.mjs +0 -27
  318. package/dist/_chunks/app.mjs +0 -600
  319. package/dist/_chunks/builder.mjs +0 -648
  320. package/dist/_chunks/server.mjs +0 -256
  321. package/dist/_cli/build.mjs +0 -49
  322. package/dist/_cli/common.mjs +0 -13
  323. package/dist/_cli/dev.mjs +0 -121
  324. package/dist/_cli/index.mjs +0 -16
  325. package/dist/_cli/list.mjs +0 -33
  326. package/dist/_cli/prepare.mjs +0 -23
  327. package/dist/_cli/run.mjs +0 -59
  328. package/dist/presets/cloudflare/runtime/shims/workers.dev.d.mts +0 -21
  329. package/dist/runtime/internal/empty.d.mts +0 -0
  330. package/dist/runtime/internal/vite/dev-entry.d.mts +0 -1
  331. package/dist/runtime/internal/vite/dev-worker.d.mts +0 -1
  332. package/dist/runtime/internal/vite/prod-setup.d.mts +0 -4
  333. package/dist/runtime/internal/vite/ssr-renderer.d.mts +0 -4
  334. /package/lib/{indexd.mts → index.d.mts} +0 -0
@@ -1,885 +0,0 @@
1
- import require$$0 from 'tty';
2
- import require$$1 from 'util';
3
- import { r as requireMs } from './ms.mjs';
4
- import { r as require$$2 } from './supports-color.mjs';
5
-
6
- var src = {exports: {}};
7
-
8
- var browser = {exports: {}};
9
-
10
- var common;
11
- var hasRequiredCommon;
12
-
13
- function requireCommon () {
14
- if (hasRequiredCommon) return common;
15
- hasRequiredCommon = 1;
16
- /**
17
- * This is the common logic for both the Node.js and web browser
18
- * implementations of `debug()`.
19
- */
20
-
21
- function setup(env) {
22
- createDebug.debug = createDebug;
23
- createDebug.default = createDebug;
24
- createDebug.coerce = coerce;
25
- createDebug.disable = disable;
26
- createDebug.enable = enable;
27
- createDebug.enabled = enabled;
28
- createDebug.humanize = requireMs();
29
- createDebug.destroy = destroy;
30
-
31
- Object.keys(env).forEach(key => {
32
- createDebug[key] = env[key];
33
- });
34
-
35
- /**
36
- * The currently active debug mode names, and names to skip.
37
- */
38
-
39
- createDebug.names = [];
40
- createDebug.skips = [];
41
-
42
- /**
43
- * Map of special "%n" handling functions, for the debug "format" argument.
44
- *
45
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
46
- */
47
- createDebug.formatters = {};
48
-
49
- /**
50
- * Selects a color for a debug namespace
51
- * @param {String} namespace The namespace string for the debug instance to be colored
52
- * @return {Number|String} An ANSI color code for the given namespace
53
- * @api private
54
- */
55
- function selectColor(namespace) {
56
- let hash = 0;
57
-
58
- for (let i = 0; i < namespace.length; i++) {
59
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
60
- hash |= 0; // Convert to 32bit integer
61
- }
62
-
63
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
64
- }
65
- createDebug.selectColor = selectColor;
66
-
67
- /**
68
- * Create a debugger with the given `namespace`.
69
- *
70
- * @param {String} namespace
71
- * @return {Function}
72
- * @api public
73
- */
74
- function createDebug(namespace) {
75
- let prevTime;
76
- let enableOverride = null;
77
- let namespacesCache;
78
- let enabledCache;
79
-
80
- function debug(...args) {
81
- // Disabled?
82
- if (!debug.enabled) {
83
- return;
84
- }
85
-
86
- const self = debug;
87
-
88
- // Set `diff` timestamp
89
- const curr = Number(new Date());
90
- const ms = curr - (prevTime || curr);
91
- self.diff = ms;
92
- self.prev = prevTime;
93
- self.curr = curr;
94
- prevTime = curr;
95
-
96
- args[0] = createDebug.coerce(args[0]);
97
-
98
- if (typeof args[0] !== 'string') {
99
- // Anything else let's inspect with %O
100
- args.unshift('%O');
101
- }
102
-
103
- // Apply any `formatters` transformations
104
- let index = 0;
105
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
106
- // If we encounter an escaped % then don't increase the array index
107
- if (match === '%%') {
108
- return '%';
109
- }
110
- index++;
111
- const formatter = createDebug.formatters[format];
112
- if (typeof formatter === 'function') {
113
- const val = args[index];
114
- match = formatter.call(self, val);
115
-
116
- // Now we need to remove `args[index]` since it's inlined in the `format`
117
- args.splice(index, 1);
118
- index--;
119
- }
120
- return match;
121
- });
122
-
123
- // Apply env-specific formatting (colors, etc.)
124
- createDebug.formatArgs.call(self, args);
125
-
126
- const logFn = self.log || createDebug.log;
127
- logFn.apply(self, args);
128
- }
129
-
130
- debug.namespace = namespace;
131
- debug.useColors = createDebug.useColors();
132
- debug.color = createDebug.selectColor(namespace);
133
- debug.extend = extend;
134
- debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
135
-
136
- Object.defineProperty(debug, 'enabled', {
137
- enumerable: true,
138
- configurable: false,
139
- get: () => {
140
- if (enableOverride !== null) {
141
- return enableOverride;
142
- }
143
- if (namespacesCache !== createDebug.namespaces) {
144
- namespacesCache = createDebug.namespaces;
145
- enabledCache = createDebug.enabled(namespace);
146
- }
147
-
148
- return enabledCache;
149
- },
150
- set: v => {
151
- enableOverride = v;
152
- }
153
- });
154
-
155
- // Env-specific initialization logic for debug instances
156
- if (typeof createDebug.init === 'function') {
157
- createDebug.init(debug);
158
- }
159
-
160
- return debug;
161
- }
162
-
163
- function extend(namespace, delimiter) {
164
- const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
165
- newDebug.log = this.log;
166
- return newDebug;
167
- }
168
-
169
- /**
170
- * Enables a debug mode by namespaces. This can include modes
171
- * separated by a colon and wildcards.
172
- *
173
- * @param {String} namespaces
174
- * @api public
175
- */
176
- function enable(namespaces) {
177
- createDebug.save(namespaces);
178
- createDebug.namespaces = namespaces;
179
-
180
- createDebug.names = [];
181
- createDebug.skips = [];
182
-
183
- const split = (typeof namespaces === 'string' ? namespaces : '')
184
- .trim()
185
- .replace(/\s+/g, ',')
186
- .split(',')
187
- .filter(Boolean);
188
-
189
- for (const ns of split) {
190
- if (ns[0] === '-') {
191
- createDebug.skips.push(ns.slice(1));
192
- } else {
193
- createDebug.names.push(ns);
194
- }
195
- }
196
- }
197
-
198
- /**
199
- * Checks if the given string matches a namespace template, honoring
200
- * asterisks as wildcards.
201
- *
202
- * @param {String} search
203
- * @param {String} template
204
- * @return {Boolean}
205
- */
206
- function matchesTemplate(search, template) {
207
- let searchIndex = 0;
208
- let templateIndex = 0;
209
- let starIndex = -1;
210
- let matchIndex = 0;
211
-
212
- while (searchIndex < search.length) {
213
- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
214
- // Match character or proceed with wildcard
215
- if (template[templateIndex] === '*') {
216
- starIndex = templateIndex;
217
- matchIndex = searchIndex;
218
- templateIndex++; // Skip the '*'
219
- } else {
220
- searchIndex++;
221
- templateIndex++;
222
- }
223
- } else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
224
- // Backtrack to the last '*' and try to match more characters
225
- templateIndex = starIndex + 1;
226
- matchIndex++;
227
- searchIndex = matchIndex;
228
- } else {
229
- return false; // No match
230
- }
231
- }
232
-
233
- // Handle trailing '*' in template
234
- while (templateIndex < template.length && template[templateIndex] === '*') {
235
- templateIndex++;
236
- }
237
-
238
- return templateIndex === template.length;
239
- }
240
-
241
- /**
242
- * Disable debug output.
243
- *
244
- * @return {String} namespaces
245
- * @api public
246
- */
247
- function disable() {
248
- const namespaces = [
249
- ...createDebug.names,
250
- ...createDebug.skips.map(namespace => '-' + namespace)
251
- ].join(',');
252
- createDebug.enable('');
253
- return namespaces;
254
- }
255
-
256
- /**
257
- * Returns true if the given mode name is enabled, false otherwise.
258
- *
259
- * @param {String} name
260
- * @return {Boolean}
261
- * @api public
262
- */
263
- function enabled(name) {
264
- for (const skip of createDebug.skips) {
265
- if (matchesTemplate(name, skip)) {
266
- return false;
267
- }
268
- }
269
-
270
- for (const ns of createDebug.names) {
271
- if (matchesTemplate(name, ns)) {
272
- return true;
273
- }
274
- }
275
-
276
- return false;
277
- }
278
-
279
- /**
280
- * Coerce `val`.
281
- *
282
- * @param {Mixed} val
283
- * @return {Mixed}
284
- * @api private
285
- */
286
- function coerce(val) {
287
- if (val instanceof Error) {
288
- return val.stack || val.message;
289
- }
290
- return val;
291
- }
292
-
293
- /**
294
- * XXX DO NOT USE. This is a temporary stub function.
295
- * XXX It WILL be removed in the next major release.
296
- */
297
- function destroy() {
298
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
299
- }
300
-
301
- createDebug.enable(createDebug.load());
302
-
303
- return createDebug;
304
- }
305
-
306
- common = setup;
307
- return common;
308
- }
309
-
310
- /* eslint-env browser */
311
-
312
- var hasRequiredBrowser;
313
-
314
- function requireBrowser () {
315
- if (hasRequiredBrowser) return browser.exports;
316
- hasRequiredBrowser = 1;
317
- (function (module, exports) {
318
- /**
319
- * This is the web browser implementation of `debug()`.
320
- */
321
-
322
- exports.formatArgs = formatArgs;
323
- exports.save = save;
324
- exports.load = load;
325
- exports.useColors = useColors;
326
- exports.storage = localstorage();
327
- exports.destroy = (() => {
328
- let warned = false;
329
-
330
- return () => {
331
- if (!warned) {
332
- warned = true;
333
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
334
- }
335
- };
336
- })();
337
-
338
- /**
339
- * Colors.
340
- */
341
-
342
- exports.colors = [
343
- '#0000CC',
344
- '#0000FF',
345
- '#0033CC',
346
- '#0033FF',
347
- '#0066CC',
348
- '#0066FF',
349
- '#0099CC',
350
- '#0099FF',
351
- '#00CC00',
352
- '#00CC33',
353
- '#00CC66',
354
- '#00CC99',
355
- '#00CCCC',
356
- '#00CCFF',
357
- '#3300CC',
358
- '#3300FF',
359
- '#3333CC',
360
- '#3333FF',
361
- '#3366CC',
362
- '#3366FF',
363
- '#3399CC',
364
- '#3399FF',
365
- '#33CC00',
366
- '#33CC33',
367
- '#33CC66',
368
- '#33CC99',
369
- '#33CCCC',
370
- '#33CCFF',
371
- '#6600CC',
372
- '#6600FF',
373
- '#6633CC',
374
- '#6633FF',
375
- '#66CC00',
376
- '#66CC33',
377
- '#9900CC',
378
- '#9900FF',
379
- '#9933CC',
380
- '#9933FF',
381
- '#99CC00',
382
- '#99CC33',
383
- '#CC0000',
384
- '#CC0033',
385
- '#CC0066',
386
- '#CC0099',
387
- '#CC00CC',
388
- '#CC00FF',
389
- '#CC3300',
390
- '#CC3333',
391
- '#CC3366',
392
- '#CC3399',
393
- '#CC33CC',
394
- '#CC33FF',
395
- '#CC6600',
396
- '#CC6633',
397
- '#CC9900',
398
- '#CC9933',
399
- '#CCCC00',
400
- '#CCCC33',
401
- '#FF0000',
402
- '#FF0033',
403
- '#FF0066',
404
- '#FF0099',
405
- '#FF00CC',
406
- '#FF00FF',
407
- '#FF3300',
408
- '#FF3333',
409
- '#FF3366',
410
- '#FF3399',
411
- '#FF33CC',
412
- '#FF33FF',
413
- '#FF6600',
414
- '#FF6633',
415
- '#FF9900',
416
- '#FF9933',
417
- '#FFCC00',
418
- '#FFCC33'
419
- ];
420
-
421
- /**
422
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
423
- * and the Firebug extension (any Firefox version) are known
424
- * to support "%c" CSS customizations.
425
- *
426
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
427
- */
428
-
429
- // eslint-disable-next-line complexity
430
- function useColors() {
431
- // NB: In an Electron preload script, document will be defined but not fully
432
- // initialized. Since we know we're in Chrome, we'll just detect this case
433
- // explicitly
434
- if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
435
- return true;
436
- }
437
-
438
- // Internet Explorer and Edge do not support colors.
439
- if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
440
- return false;
441
- }
442
-
443
- let m;
444
-
445
- // Is webkit? http://stackoverflow.com/a/16459606/376773
446
- // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
447
- // eslint-disable-next-line no-return-assign
448
- return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
449
- // Is firebug? http://stackoverflow.com/a/398120/376773
450
- (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
451
- // Is firefox >= v31?
452
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
453
- (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
454
- // Double check webkit in userAgent just in case we are in a worker
455
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
456
- }
457
-
458
- /**
459
- * Colorize log arguments if enabled.
460
- *
461
- * @api public
462
- */
463
-
464
- function formatArgs(args) {
465
- args[0] = (this.useColors ? '%c' : '') +
466
- this.namespace +
467
- (this.useColors ? ' %c' : ' ') +
468
- args[0] +
469
- (this.useColors ? '%c ' : ' ') +
470
- '+' + module.exports.humanize(this.diff);
471
-
472
- if (!this.useColors) {
473
- return;
474
- }
475
-
476
- const c = 'color: ' + this.color;
477
- args.splice(1, 0, c, 'color: inherit');
478
-
479
- // The final "%c" is somewhat tricky, because there could be other
480
- // arguments passed either before or after the %c, so we need to
481
- // figure out the correct index to insert the CSS into
482
- let index = 0;
483
- let lastC = 0;
484
- args[0].replace(/%[a-zA-Z%]/g, match => {
485
- if (match === '%%') {
486
- return;
487
- }
488
- index++;
489
- if (match === '%c') {
490
- // We only are interested in the *last* %c
491
- // (the user may have provided their own)
492
- lastC = index;
493
- }
494
- });
495
-
496
- args.splice(lastC, 0, c);
497
- }
498
-
499
- /**
500
- * Invokes `console.debug()` when available.
501
- * No-op when `console.debug` is not a "function".
502
- * If `console.debug` is not available, falls back
503
- * to `console.log`.
504
- *
505
- * @api public
506
- */
507
- exports.log = console.debug || console.log || (() => {});
508
-
509
- /**
510
- * Save `namespaces`.
511
- *
512
- * @param {String} namespaces
513
- * @api private
514
- */
515
- function save(namespaces) {
516
- try {
517
- if (namespaces) {
518
- exports.storage.setItem('debug', namespaces);
519
- } else {
520
- exports.storage.removeItem('debug');
521
- }
522
- } catch (error) {
523
- // Swallow
524
- // XXX (@Qix-) should we be logging these?
525
- }
526
- }
527
-
528
- /**
529
- * Load `namespaces`.
530
- *
531
- * @return {String} returns the previously persisted debug modes
532
- * @api private
533
- */
534
- function load() {
535
- let r;
536
- try {
537
- r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
538
- } catch (error) {
539
- // Swallow
540
- // XXX (@Qix-) should we be logging these?
541
- }
542
-
543
- // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
544
- if (!r && typeof process !== 'undefined' && 'env' in process) {
545
- r = process.env.DEBUG;
546
- }
547
-
548
- return r;
549
- }
550
-
551
- /**
552
- * Localstorage attempts to return the localstorage.
553
- *
554
- * This is necessary because safari throws
555
- * when a user disables cookies/localstorage
556
- * and you attempt to access it.
557
- *
558
- * @return {LocalStorage}
559
- * @api private
560
- */
561
-
562
- function localstorage() {
563
- try {
564
- // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
565
- // The Browser also has localStorage in the global context.
566
- return localStorage;
567
- } catch (error) {
568
- // Swallow
569
- // XXX (@Qix-) should we be logging these?
570
- }
571
- }
572
-
573
- module.exports = requireCommon()(exports);
574
-
575
- const {formatters} = module.exports;
576
-
577
- /**
578
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
579
- */
580
-
581
- formatters.j = function (v) {
582
- try {
583
- return JSON.stringify(v);
584
- } catch (error) {
585
- return '[UnexpectedJSONParseError]: ' + error.message;
586
- }
587
- };
588
- } (browser, browser.exports));
589
- return browser.exports;
590
- }
591
-
592
- var node = {exports: {}};
593
-
594
- /**
595
- * Module dependencies.
596
- */
597
-
598
- var hasRequiredNode;
599
-
600
- function requireNode () {
601
- if (hasRequiredNode) return node.exports;
602
- hasRequiredNode = 1;
603
- (function (module, exports) {
604
- const tty = require$$0;
605
- const util = require$$1;
606
-
607
- /**
608
- * This is the Node.js implementation of `debug()`.
609
- */
610
-
611
- exports.init = init;
612
- exports.log = log;
613
- exports.formatArgs = formatArgs;
614
- exports.save = save;
615
- exports.load = load;
616
- exports.useColors = useColors;
617
- exports.destroy = util.deprecate(
618
- () => {},
619
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
620
- );
621
-
622
- /**
623
- * Colors.
624
- */
625
-
626
- exports.colors = [6, 2, 3, 4, 5, 1];
627
-
628
- try {
629
- // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
630
- // eslint-disable-next-line import/no-extraneous-dependencies
631
- const supportsColor = require$$2;
632
-
633
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
634
- exports.colors = [
635
- 20,
636
- 21,
637
- 26,
638
- 27,
639
- 32,
640
- 33,
641
- 38,
642
- 39,
643
- 40,
644
- 41,
645
- 42,
646
- 43,
647
- 44,
648
- 45,
649
- 56,
650
- 57,
651
- 62,
652
- 63,
653
- 68,
654
- 69,
655
- 74,
656
- 75,
657
- 76,
658
- 77,
659
- 78,
660
- 79,
661
- 80,
662
- 81,
663
- 92,
664
- 93,
665
- 98,
666
- 99,
667
- 112,
668
- 113,
669
- 128,
670
- 129,
671
- 134,
672
- 135,
673
- 148,
674
- 149,
675
- 160,
676
- 161,
677
- 162,
678
- 163,
679
- 164,
680
- 165,
681
- 166,
682
- 167,
683
- 168,
684
- 169,
685
- 170,
686
- 171,
687
- 172,
688
- 173,
689
- 178,
690
- 179,
691
- 184,
692
- 185,
693
- 196,
694
- 197,
695
- 198,
696
- 199,
697
- 200,
698
- 201,
699
- 202,
700
- 203,
701
- 204,
702
- 205,
703
- 206,
704
- 207,
705
- 208,
706
- 209,
707
- 214,
708
- 215,
709
- 220,
710
- 221
711
- ];
712
- }
713
- } catch (error) {
714
- // Swallow - we only care if `supports-color` is available; it doesn't have to be.
715
- }
716
-
717
- /**
718
- * Build up the default `inspectOpts` object from the environment variables.
719
- *
720
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
721
- */
722
-
723
- exports.inspectOpts = Object.keys(process.env).filter(key => {
724
- return /^debug_/i.test(key);
725
- }).reduce((obj, key) => {
726
- // Camel-case
727
- const prop = key
728
- .substring(6)
729
- .toLowerCase()
730
- .replace(/_([a-z])/g, (_, k) => {
731
- return k.toUpperCase();
732
- });
733
-
734
- // Coerce string value into JS value
735
- let val = process.env[key];
736
- if (/^(yes|on|true|enabled)$/i.test(val)) {
737
- val = true;
738
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
739
- val = false;
740
- } else if (val === 'null') {
741
- val = null;
742
- } else {
743
- val = Number(val);
744
- }
745
-
746
- obj[prop] = val;
747
- return obj;
748
- }, {});
749
-
750
- /**
751
- * Is stdout a TTY? Colored output is enabled when `true`.
752
- */
753
-
754
- function useColors() {
755
- return 'colors' in exports.inspectOpts ?
756
- Boolean(exports.inspectOpts.colors) :
757
- tty.isatty(process.stderr.fd);
758
- }
759
-
760
- /**
761
- * Adds ANSI color escape codes if enabled.
762
- *
763
- * @api public
764
- */
765
-
766
- function formatArgs(args) {
767
- const {namespace: name, useColors} = this;
768
-
769
- if (useColors) {
770
- const c = this.color;
771
- const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
772
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
773
-
774
- args[0] = prefix + args[0].split('\n').join('\n' + prefix);
775
- args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
776
- } else {
777
- args[0] = getDate() + name + ' ' + args[0];
778
- }
779
- }
780
-
781
- function getDate() {
782
- if (exports.inspectOpts.hideDate) {
783
- return '';
784
- }
785
- return new Date().toISOString() + ' ';
786
- }
787
-
788
- /**
789
- * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
790
- */
791
-
792
- function log(...args) {
793
- return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
794
- }
795
-
796
- /**
797
- * Save `namespaces`.
798
- *
799
- * @param {String} namespaces
800
- * @api private
801
- */
802
- function save(namespaces) {
803
- if (namespaces) {
804
- process.env.DEBUG = namespaces;
805
- } else {
806
- // If you set a process.env field to null or undefined, it gets cast to the
807
- // string 'null' or 'undefined'. Just delete instead.
808
- delete process.env.DEBUG;
809
- }
810
- }
811
-
812
- /**
813
- * Load `namespaces`.
814
- *
815
- * @return {String} returns the previously persisted debug modes
816
- * @api private
817
- */
818
-
819
- function load() {
820
- return process.env.DEBUG;
821
- }
822
-
823
- /**
824
- * Init logic for `debug` instances.
825
- *
826
- * Create a new `inspectOpts` object in case `useColors` is set
827
- * differently for a particular `debug` instance.
828
- */
829
-
830
- function init(debug) {
831
- debug.inspectOpts = {};
832
-
833
- const keys = Object.keys(exports.inspectOpts);
834
- for (let i = 0; i < keys.length; i++) {
835
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
836
- }
837
- }
838
-
839
- module.exports = requireCommon()(exports);
840
-
841
- const {formatters} = module.exports;
842
-
843
- /**
844
- * Map %o to `util.inspect()`, all on a single line.
845
- */
846
-
847
- formatters.o = function (v) {
848
- this.inspectOpts.colors = this.useColors;
849
- return util.inspect(v, this.inspectOpts)
850
- .split('\n')
851
- .map(str => str.trim())
852
- .join(' ');
853
- };
854
-
855
- /**
856
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
857
- */
858
-
859
- formatters.O = function (v) {
860
- this.inspectOpts.colors = this.useColors;
861
- return util.inspect(v, this.inspectOpts);
862
- };
863
- } (node, node.exports));
864
- return node.exports;
865
- }
866
-
867
- /**
868
- * Detect Electron renderer / nwjs process, which is node, but we should
869
- * treat as a browser.
870
- */
871
-
872
- var hasRequiredSrc;
873
-
874
- function requireSrc () {
875
- if (hasRequiredSrc) return src.exports;
876
- hasRequiredSrc = 1;
877
- if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
878
- src.exports = requireBrowser();
879
- } else {
880
- src.exports = requireNode();
881
- }
882
- return src.exports;
883
- }
884
-
885
- export { requireSrc as r };