minimalistic-server 0.0.57 → 0.0.59

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 (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1565,7 +1565,7 @@ export class Response {
1565
1565
  }
1566
1566
 
1567
1567
  setCookies(cookies) {
1568
- this.#cookies = cookies;
1568
+ this.#cookies = { ...cookies };
1569
1569
  }
1570
1570
 
1571
1571
  addCookies(cookies) {
@@ -1713,7 +1713,7 @@ export class FileResponse extends Response {
1713
1713
 
1714
1714
  async getCode(headers = null) {
1715
1715
  if (this.#proxiedResponse) {
1716
- return await this.#proxiedResponse.code(headers);
1716
+ return await this.#proxiedResponse.getCode(headers);
1717
1717
  }
1718
1718
 
1719
1719
  const requestedFragment = await this.#getFragmentRequest(headers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimalistic-server",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "engines" : {
5
5
  "npm" : ">=8.6.0",
6
6
  "node" : ">=22.0.0"