@adonisjs/http-server 7.6.0 → 7.7.0

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.
@@ -602,7 +602,7 @@ function parseRange(range, value) {
602
602
  }
603
603
 
604
604
  // src/debug.ts
605
- import { debuglog } from "node:util";
605
+ import { debuglog } from "util";
606
606
  var debug_default = debuglog("adonisjs:http");
607
607
 
608
608
  // src/router/route.ts
@@ -983,14 +983,14 @@ var CookieClient = class {
983
983
  import fresh from "fresh";
984
984
  import typeIs from "type-is";
985
985
  import accepts from "accepts";
986
- import { isIP } from "node:net";
986
+ import { isIP } from "net";
987
987
  import is2 from "@sindresorhus/is";
988
988
  import proxyaddr from "proxy-addr";
989
989
  import { safeEqual } from "@poppinss/utils";
990
990
  import Macroable5 from "@poppinss/macroable";
991
991
  import lodash from "@poppinss/utils/lodash";
992
992
  import { createId } from "@paralleldrive/cuid2";
993
- import { parse } from "node:url";
993
+ import { parse } from "url";
994
994
 
995
995
  // src/cookies/parser.ts
996
996
  import cookie from "cookie";
@@ -1207,7 +1207,14 @@ var Request = class extends Macroable5 {
1207
1207
  throw new Error('Cannot re-set initial body. Use "request.updateBody" instead');
1208
1208
  }
1209
1209
  this.updateBody(body);
1210
- this.#originalRequestData = Object.freeze(lodash.cloneDeep(this.#requestData));
1210
+ this.#originalRequestData = Object.freeze(
1211
+ lodash.cloneDeepWith(this.#requestData, (value) => {
1212
+ if (is2.primitive(value) || Array.isArray(value) || is2.plainObject(value)) {
1213
+ return void 0;
1214
+ }
1215
+ return null;
1216
+ })
1217
+ );
1211
1218
  }
1212
1219
  /**
1213
1220
  * Update the request body with new data object. The `all` property
@@ -1896,7 +1903,7 @@ var Request = class extends Macroable5 {
1896
1903
  };
1897
1904
 
1898
1905
  // src/redirect.ts
1899
- import { parse as parse2 } from "node:url";
1906
+ import { parse as parse2 } from "url";
1900
1907
  import encodeUrl from "encodeurl";
1901
1908
  var Redirect = class {
1902
1909
  /**
@@ -2121,18 +2128,18 @@ var ResponseStatus = {
2121
2128
  };
2122
2129
 
2123
2130
  // src/response.ts
2124
- import { Buffer as Buffer2 } from "node:buffer";
2131
+ import { Buffer as Buffer2 } from "buffer";
2125
2132
  import etag from "etag";
2126
2133
  import vary from "vary";
2127
2134
  import fresh2 from "fresh";
2128
2135
  import mime from "mime-types";
2129
2136
  import destroy from "destroy";
2130
- import { extname } from "node:path";
2137
+ import { extname } from "path";
2131
2138
  import onFinished from "on-finished";
2132
2139
  import json from "@poppinss/utils/json";
2133
2140
  import Macroable6 from "@poppinss/macroable";
2134
- import { createReadStream } from "node:fs";
2135
- import { stat } from "node:fs/promises";
2141
+ import { createReadStream } from "fs";
2142
+ import { stat } from "fs/promises";
2136
2143
  import { RuntimeException as RuntimeException3 } from "@poppinss/utils";
2137
2144
  import contentDisposition from "content-disposition";
2138
2145
 
@@ -4054,12 +4061,12 @@ var Router = class extends LookupStore {
4054
4061
  };
4055
4062
 
4056
4063
  // src/http_context/main.ts
4057
- import { inspect } from "node:util";
4064
+ import { inspect } from "util";
4058
4065
  import Macroable9 from "@poppinss/macroable";
4059
4066
  import { RuntimeException as RuntimeException7 } from "@poppinss/utils";
4060
4067
 
4061
4068
  // src/http_context/local_storage.ts
4062
- import { AsyncLocalStorage } from "node:async_hooks";
4069
+ import { AsyncLocalStorage } from "async_hooks";
4063
4070
  var asyncLocalStorage = {
4064
4071
  /**
4065
4072
  * Check if the async local storage for the HTTP
@@ -4571,4 +4578,4 @@ export {
4571
4578
  Server,
4572
4579
  defineConfig
4573
4580
  };
4574
- //# sourceMappingURL=chunk-7AGINHO3.js.map
4581
+ //# sourceMappingURL=chunk-6FSCILWX.js.map