@effect/platform
Advanced tools
Comparing version 0.70.5 to 0.70.6
@@ -286,3 +286,3 @@ "use strict"; | ||
const encoder = new TextEncoder(); | ||
const run = handler => runRaw(data => typeof data === "string" ? handler(encoder.encode(data)) : handler(data)); | ||
const run = handler => runRaw(data => typeof data === "string" ? handler(encoder.encode(data)) : data instanceof Uint8Array ? handler(data) : handler(new Uint8Array(data))); | ||
const write = chunk => latch.whenOpen(Effect.sync(() => { | ||
@@ -289,0 +289,0 @@ const ws = currentWS; |
@@ -265,3 +265,3 @@ /** | ||
const encoder = new TextEncoder(); | ||
const run = handler => runRaw(data => typeof data === "string" ? handler(encoder.encode(data)) : handler(data)); | ||
const run = handler => runRaw(data => typeof data === "string" ? handler(encoder.encode(data)) : data instanceof Uint8Array ? handler(data) : handler(new Uint8Array(data))); | ||
const write = chunk => latch.whenOpen(Effect.sync(() => { | ||
@@ -268,0 +268,0 @@ const ws = currentWS; |
{ | ||
"name": "@effect/platform", | ||
"version": "0.70.5", | ||
"version": "0.70.6", | ||
"description": "Unified interfaces for common platform-specific services", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -495,3 +495,5 @@ /** | ||
? handler(encoder.encode(data)) | ||
: handler(data) | ||
: data instanceof Uint8Array | ||
? handler(data) | ||
: handler(new Uint8Array(data)) | ||
) | ||
@@ -498,0 +500,0 @@ |
Sorry, the diff of this file is not supported yet
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
16847043
109170