Socket
Socket
Sign inDemoInstall

yamux-js

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

4

changelog.md
# CHANGELOG
## 0.1.1
- Add support for receive window update (https://github.com/th-ch/yamux-js/pull/10)
## 0.1.0

@@ -4,0 +8,0 @@

@@ -110,2 +110,3 @@ "use strict";

stream.push(fullPacket, encoding);
stream.updateRecvWindow(fullPacket.length);
}

@@ -112,0 +113,0 @@ closeStream(streamID) {

@@ -20,2 +20,3 @@ /// <reference types="node" />

sendWindowUpdate(): void;
updateRecvWindow(receivedSize: number): void;
private sendClose;

@@ -22,0 +23,0 @@ close(): void;

@@ -87,2 +87,6 @@ "use strict";

}
updateRecvWindow(receivedSize) {
this.recvWindow -= receivedSize;
this.sendWindowUpdate();
}
// sendClose is used to send a FIN

@@ -89,0 +93,0 @@ sendClose() {

6

package.json
{
"name": "yamux-js",
"version": "0.1.0",
"version": "0.1.1",
"main": "lib/index",

@@ -12,6 +12,6 @@ "license": "MIT",

"@types/chai": "^4.2.14",
"@types/mocha": "^8.0.3",
"@types/mocha": "^9.1.0",
"@types/node": "^14.11.8",
"chai": "^4.2.0",
"mocha": "^8.2.0",
"mocha": "^9.2.2",
"prettier": "^2.1.2",

@@ -18,0 +18,0 @@ "ts-node": "^9.0.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc