@effect/platform
Advanced tools
Comparing version 0.65.4 to 0.65.5
@@ -119,5 +119,5 @@ "use strict"; | ||
const searchParamsParser = httpApp => Effect.withFiberRuntime(fiber => { | ||
const context = fiber.getFiberRef(FiberRef.currentContext); | ||
const context = fiber.currentContext; | ||
const request = Context.unsafeGet(context, ServerRequest.HttpServerRequest); | ||
const params = ServerRequest.searchParamsFromURL(new URL(request.url)); | ||
const params = ServerRequest.searchParamsFromURL(new URL(request.originalUrl)); | ||
return Effect.locally(httpApp, FiberRef.currentContext, Context.add(context, ServerRequest.ParsedSearchParams, params)); | ||
@@ -124,0 +124,0 @@ }); |
@@ -109,5 +109,5 @@ import * as Context from "effect/Context"; | ||
export const searchParamsParser = httpApp => Effect.withFiberRuntime(fiber => { | ||
const context = fiber.getFiberRef(FiberRef.currentContext); | ||
const context = fiber.currentContext; | ||
const request = Context.unsafeGet(context, ServerRequest.HttpServerRequest); | ||
const params = ServerRequest.searchParamsFromURL(new URL(request.url)); | ||
const params = ServerRequest.searchParamsFromURL(new URL(request.originalUrl)); | ||
return Effect.locally(httpApp, FiberRef.currentContext, Context.add(context, ServerRequest.ParsedSearchParams, params)); | ||
@@ -114,0 +114,0 @@ }); |
{ | ||
"name": "@effect/platform", | ||
"version": "0.65.4", | ||
"version": "0.65.5", | ||
"description": "Unified interfaces for common platform-specific services", | ||
@@ -17,4 +17,4 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@effect/schema": "^0.73.3", | ||
"effect": "^3.8.2" | ||
"@effect/schema": "^0.73.4", | ||
"effect": "^3.8.3" | ||
}, | ||
@@ -21,0 +21,0 @@ "publishConfig": { |
@@ -192,5 +192,5 @@ import type { HttpApp } from "@effect/platform" | ||
>((fiber) => { | ||
const context = fiber.getFiberRef(FiberRef.currentContext) | ||
const context = fiber.currentContext | ||
const request = Context.unsafeGet(context, ServerRequest.HttpServerRequest) | ||
const params = ServerRequest.searchParamsFromURL(new URL(request.url)) | ||
const params = ServerRequest.searchParamsFromURL(new URL(request.originalUrl)) | ||
return Effect.locally( | ||
@@ -197,0 +197,0 @@ httpApp, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8484540