Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect/platform

Package Overview
Dependencies
Maintainers
3
Versions
399
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/platform - npm Package Compare versions

Comparing version 0.30.1 to 0.30.2

8

dist/cjs/internal/http/formData.js

@@ -143,10 +143,8 @@ "use strict";

const take = Channel.suspend(() => {
if (finished) {
return Channel.unit;
} else if (chunks.length === 0) {
return Channel.zipRight(pump, take);
if (chunks.length === 0) {
return finished ? Channel.unit : Channel.zipRight(pump, take);
}
const chunk = Chunk.unsafeFromArray(chunks);
chunks = [];
return Channel.zipRight(Channel.write(chunk), Channel.zipRight(pump, take));
return finished ? Channel.write(chunk) : Channel.zipRight(Channel.write(chunk), Channel.zipRight(pump, take));
});

@@ -153,0 +151,0 @@ partsBuffer.push(new FileImpl(info, take));

@@ -106,10 +106,8 @@ import * as Schema from "@effect/schema/Schema";

const take = Channel.suspend(() => {
if (finished) {
return Channel.unit;
} else if (chunks.length === 0) {
return Channel.zipRight(pump, take);
if (chunks.length === 0) {
return finished ? Channel.unit : Channel.zipRight(pump, take);
}
const chunk = Chunk.unsafeFromArray(chunks);
chunks = [];
return Channel.zipRight(Channel.write(chunk), Channel.zipRight(pump, take));
return finished ? Channel.write(chunk) : Channel.zipRight(Channel.write(chunk), Channel.zipRight(pump, take));
});

@@ -116,0 +114,0 @@ partsBuffer.push(new FileImpl(info, take));

{
"name": "@effect/platform",
"version": "0.30.1",
"version": "0.30.2",
"description": "Unified interfaces for common platform-specific services",

@@ -14,3 +14,3 @@ "license": "MIT",

"find-my-way": "^7.7.0",
"multipasta": "^0.1.15",
"multipasta": "^0.1.17",
"path-browserify": "^1.0.1"

@@ -17,0 +17,0 @@ },

@@ -238,10 +238,8 @@ import type * as ParseResult from "@effect/schema/ParseResult"

.suspend(() => {
if (finished) {
return Channel.unit
} else if (chunks.length === 0) {
return Channel.zipRight(pump, take)
if (chunks.length === 0) {
return finished ? Channel.unit : Channel.zipRight(pump, take)
}
const chunk = Chunk.unsafeFromArray(chunks)
chunks = []
return Channel.zipRight(
return finished ? Channel.write(chunk) : Channel.zipRight(
Channel.write(chunk),

@@ -248,0 +246,0 @@ Channel.zipRight(pump, take)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc