nyte 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/helpers.js CHANGED
@@ -375,7 +375,7 @@ async function initNativeServer(hwebApp, options, port, hostname) {
375
375
  const originalEnd = res.end.bind(res);
376
376
  let hasEnded = false;
377
377
  res.end = function (...args) {
378
- if (!hasEnded && nyteConfig.accessLogging && !url.includes("nyte/")) {
378
+ if (!hasEnded && nyteConfig.accessLogging) {
379
379
  hasEnded = true;
380
380
  const duration = Date.now() - requestStartTime;
381
381
  const statusCode = res.statusCode || 200;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nyte",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Nyte.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "itsmuzin",
package/src/helpers.ts CHANGED
@@ -410,7 +410,7 @@ async function initNativeServer(hwebApp: HWebApp, options: NyteOptions, port: nu
410
410
  let hasEnded = false;
411
411
 
412
412
  res.end = function(this: ServerResponse, ...args: any[]): any {
413
- if (!hasEnded && nyteConfig.accessLogging && !url.includes("nyte/")) {
413
+ if (!hasEnded && nyteConfig.accessLogging) {
414
414
  hasEnded = true;
415
415
  const duration = Date.now() - requestStartTime;
416
416
  const statusCode = res.statusCode || 200;