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

botframework-streaming

Package Overview
Dependencies
Maintainers
3
Versions
510
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botframework-streaming - npm Package Compare versions

Comparing version 4.23.0 to 4.23.1

4

_ts3.4/lib/interfaces/INodeBuffer.d.ts

@@ -8,4 +8,4 @@ /**

*/
export type ValidBuffer = string | Uint8Array | INodeBuffer;
export type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
export declare type ValidBuffer = string | Uint8Array | INodeBuffer;
export declare type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
/**

@@ -12,0 +12,0 @@ * Represents a Buffer from the `net` module in Node.js.

@@ -9,3 +9,3 @@ /**

import { TransportDisconnectedEvent } from './transportDisconnectedEvent';
export type TransportDisconnectedEventHandler = (sender: any, e: TransportDisconnectedEvent) => void;
export declare type TransportDisconnectedEventHandler = (sender: any, e: TransportDisconnectedEvent) => void;
//# sourceMappingURL=transportDisconnectedEventHandler.d.ts.map

@@ -9,3 +9,3 @@ /**

import { INodeServer, INodeSocket } from '../interfaces';
type ConnectionListener = (socket: INodeSocket) => void;
declare type ConnectionListener = (socket: INodeSocket) => void;
/**

@@ -12,0 +12,0 @@ * Create a Node 'net' server

@@ -8,4 +8,4 @@ /**

*/
export type ValidBuffer = string | Uint8Array | INodeBuffer;
export type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
export declare type ValidBuffer = string | Uint8Array | INodeBuffer;
export declare type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'latin1' | 'binary' | 'hex';
/**

@@ -12,0 +12,0 @@ * Represents a Buffer from the `net` module in Node.js.

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

const incoming = (0, net_1.connect)(incomingPipeName);
// TODO: Fix INodeSocket type. Related issue https://github.com/microsoft/botbuilder-js/issues/4684.
this._sender.connect(new namedPipeTransport_1.NamedPipeTransport(outgoing));

@@ -58,0 +59,0 @@ this._receiver.connect(new namedPipeTransport_1.NamedPipeTransport(incoming));

@@ -9,3 +9,3 @@ /**

import { TransportDisconnectedEvent } from './transportDisconnectedEvent';
export type TransportDisconnectedEventHandler = (sender: any, e: TransportDisconnectedEvent) => void;
export declare type TransportDisconnectedEventHandler = (sender: any, e: TransportDisconnectedEvent) => void;
//# sourceMappingURL=transportDisconnectedEventHandler.d.ts.map

@@ -9,3 +9,3 @@ /**

import { INodeServer, INodeSocket } from '../interfaces';
type ConnectionListener = (socket: INodeSocket) => void;
declare type ConnectionListener = (socket: INodeSocket) => void;
/**

@@ -12,0 +12,0 @@ * Create a Node 'net' server

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

try {
// TODO: Fix INodeSocket type. Related issue https://github.com/microsoft/botbuilder-js/issues/4684.
this.wsServer.handleUpgrade(req, socket, head, (websocket) => {

@@ -55,0 +56,0 @@ this.wsSocket = websocket;

@@ -5,3 +5,3 @@ {

"description": "Streaming library for the Microsoft Bot Framework",
"version": "4.23.0",
"version": "4.23.1",
"license": "MIT",

@@ -34,9 +34,9 @@ "keywords": [

"dependencies": {
"@types/node": "^10.17.27",
"@types/node": "18.19.47",
"@types/ws": "^6.0.3",
"uuid": "^8.3.2",
"uuid": "^10.0.0",
"ws": "^7.5.10"
},
"devDependencies": {
"chai": "^4.2.0"
"chai": "^4.5.0"
},

@@ -43,0 +43,0 @@ "scripts": {

@@ -34,3 +34,3 @@ /**

private readonly _byteOrderMark = 0xfeff;
private readonly _utf: string = 'utf8';
private readonly _utf: BufferEncoding = 'utf8';

@@ -37,0 +37,0 @@ /**

@@ -64,4 +64,5 @@ /**

const incoming = connect(incomingPipeName);
this._sender.connect(new NamedPipeTransport(outgoing));
this._receiver.connect(new NamedPipeTransport(incoming));
// TODO: Fix INodeSocket type. Related issue https://github.com/microsoft/botbuilder-js/issues/4684.
this._sender.connect(new NamedPipeTransport(outgoing as any));
this._receiver.connect(new NamedPipeTransport(incoming as any));
}

@@ -68,0 +69,0 @@

@@ -43,11 +43,7 @@ /**

try {
this.wsServer.handleUpgrade(
req as IncomingMessage,
socket as INodeSocket,
head as INodeBuffer,
(websocket) => {
this.wsSocket = websocket;
resolve();
}
);
// TODO: Fix INodeSocket type. Related issue https://github.com/microsoft/botbuilder-js/issues/4684.
this.wsServer.handleUpgrade(req as IncomingMessage, socket as any, head as any, (websocket) => {
this.wsSocket = websocket;
resolve();
});
} catch (err) {

@@ -54,0 +50,0 @@ reject(err);

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

Sorry, the diff of this file is too big to display

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

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

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