@nextlytics/core 0.7.0 → 0.7.1

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.
@@ -83,8 +83,7 @@ function createNextlyticsMiddleware(config, dispatchEvent, updateEvent, collectT
83
83
  response2.headers.set(import_server_component_context.headerNames.active, "1");
84
84
  return response2;
85
85
  }
86
- const isReadMethod = request.method === "GET" || request.method === "HEAD";
87
- if (!isReadMethod && !reqInfo.isDocumentRequest && !config.isApiPath(pathname)) {
86
+ if (request.method !== "GET" && !reqInfo.isDocumentRequest && !config.isApiPath(pathname)) {
88
87
  const response2 = import_server.NextResponse.next();
89
88
  response2.headers.set(import_server_component_context.headerNames.active, "1");
90
89
  return response2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextlytics/core",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Analytics library for Next.js",
5
5
  "license": "MIT",
6
6
  "repository": {