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

fluvial

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluvial - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1-beta.1

34

dist/response.js

@@ -108,15 +108,3 @@ import { randomUUID } from 'node:crypto';

}
if (this.httpVersion == '1.1') {
this.rawResponse.writeHead(this._status);
}
else {
this.rawResponse.stream.respond({
...this.headers,
[constants.HTTP2_HEADER_STATUS]: this._status,
});
}
if (data) {
this.rawResponse.write(Buffer.from(data));
}
this.rawResponse.end();
this._send(data);
},

@@ -151,6 +139,7 @@ sendEvent(event) {

}
let stringifiedData;
if (data) {
data = Buffer.from(JSON.stringify(data));
stringifiedData = JSON.stringify(data);
}
this.send(data);
this._send(stringifiedData);
},

@@ -172,3 +161,18 @@ async stream(sourceStream) {

},
_send(data) {
if (this.httpVersion == '1.1') {
this.rawResponse.writeHead(this._status);
}
else {
this.rawResponse.stream.respond({
...this.headers,
[constants.HTTP2_HEADER_STATUS]: this._status,
});
}
if (data) {
this.rawResponse.write(Buffer.from(data));
}
this.rawResponse.end();
},
};
//# sourceMappingURL=response.js.map
{
"name": "fluvial",
"version": "0.1.0",
"version": "0.1.1-beta.1",
"description": "Fluvial: A light http/2 server framework, similar to Express",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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