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

socket.io-parser

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-parser - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

8

build/cjs/index.js

@@ -94,3 +94,3 @@ "use strict";

*/
class Decoder extends component_emitter_1.default {
class Decoder extends component_emitter_1.Emitter {
constructor() {

@@ -114,3 +114,3 @@ super();

if (packet.attachments === 0) {
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -120,3 +120,3 @@ }

// non-binary full packet
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -134,3 +134,3 @@ }

this.reconstructor = null;
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -137,0 +137,0 @@ }

@@ -1,2 +0,2 @@

import Emitter from "@socket.io/component-emitter";
import { Emitter } from "@socket.io/component-emitter";
/**

@@ -46,2 +46,5 @@ * Protocol version.

}
interface DecoderReservedEvents {
decoded: (packet: Packet) => void;
}
/**

@@ -52,3 +55,3 @@ * A socket.io Decoder instance

*/
export declare class Decoder extends Emitter {
export declare class Decoder extends Emitter<{}, {}, DecoderReservedEvents> {
private reconstructor;

@@ -75,1 +78,2 @@ constructor();

}
export {};

@@ -1,2 +0,2 @@

import Emitter from "@socket.io/component-emitter";
import { Emitter } from "@socket.io/component-emitter";
import { deconstructPacket, reconstructPacket } from "./binary.js";

@@ -109,3 +109,3 @@ import { isBinary, hasBinary } from "./is-binary.js";

if (packet.attachments === 0) {
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -115,3 +115,3 @@ }

// non-binary full packet
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -129,3 +129,3 @@ }

this.reconstructor = null;
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -132,0 +132,0 @@ }

@@ -1,2 +0,2 @@

import Emitter from "@socket.io/component-emitter";
import { Emitter } from "@socket.io/component-emitter";
/**

@@ -46,2 +46,5 @@ * Protocol version.

}
interface DecoderReservedEvents {
decoded: (packet: Packet) => void;
}
/**

@@ -52,3 +55,3 @@ * A socket.io Decoder instance

*/
export declare class Decoder extends Emitter {
export declare class Decoder extends Emitter<{}, {}, DecoderReservedEvents> {
private reconstructor;

@@ -75,1 +78,2 @@ constructor();

}
export {};

@@ -1,2 +0,2 @@

import Emitter from "@socket.io/component-emitter";
import { Emitter } from "@socket.io/component-emitter";
import { deconstructPacket, reconstructPacket } from "./binary.js";

@@ -105,3 +105,3 @@ import { isBinary, hasBinary } from "./is-binary.js";

if (packet.attachments === 0) {
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -111,3 +111,3 @@ }

// non-binary full packet
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -125,3 +125,3 @@ }

this.reconstructor = null;
super.emit("decoded", packet);
super.emitReserved("decoded", packet);
}

@@ -128,0 +128,0 @@ }

@@ -0,1 +1,4 @@

## [4.1.1](https://github.com/socketio/socket.io-parser/compare/4.1.0...4.1.1) (2021-10-14)
# [4.1.0](https://github.com/socketio/socket.io-parser/compare/4.0.4...4.1.0) (2021-10-11)

@@ -2,0 +5,0 @@

{
"name": "socket.io-parser",
"version": "4.1.0",
"version": "4.1.1",
"description": "socket.io protocol parser",

@@ -23,3 +23,3 @@ "repository": {

"dependencies": {
"@socket.io/component-emitter": "~2.0.0",
"@socket.io/component-emitter": "~3.0.0",
"debug": "~4.3.1"

@@ -26,0 +26,0 @@ },

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