Socket
Socket
Sign inDemoInstall

eventsource-parser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventsource-parser - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

14

package.json
{
"name": "eventsource-parser",
"version": "0.0.3",
"version": "0.0.4",
"description": "Streaming, source-agnostic EventSource/Server-Sent Events parser",

@@ -39,7 +39,9 @@ "sideEffects": false,

"license": "MIT",
"engines": {
"node": ">=12"
},
"devDependencies": {
"@sanity/pkg-utils": "^1.8.2",
"@types/express": "^4.17.13",
"@sanity/pkg-utils": "^1.9.0",
"@types/jest": "^27.5.1",
"@types/node": "^18.7.23",
"@types/node": "^12.0.0",
"@typescript-eslint/eslint-plugin": "^5.7.0",

@@ -91,4 +93,6 @@ "@typescript-eslint/parser": "^5.7.0",

],
"preset": "ts-jest"
"preset": "ts-jest",
"slowTestThreshold": 10,
"testTimeout": 30000
}
}
# eventsource-parser
[![npm version](https://img.shields.io/npm/v/eventsource-parser.svg?style=flat-square)](http://browsenpm.org/package/eventsource-parser)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/eventsource-parser?style=flat-square)](https://bundlephobia.com/result?p=eventsource-parser)
A streaming parser for [server-sent events/eventsource](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events), without any assumptions about how the actual stream of data is retrieved. It is intended to be a building block for clients and polyfills in javascript environments such as browsers, node.js and deno.

@@ -4,0 +6,0 @@

@@ -0,1 +1,8 @@

/**
* EventSource/Server-Sent Events parser
* @see https://html.spec.whatwg.org/multipage/server-sent-events.html
*
* Based on code from the {@link https://github.com/EventSource/eventsource | EventSource module},
* which is licensed under the MIT license. And copyrighted the EventSource GitHub organisation.
*/
import type {EventSourceParseCallback, EventSourceParser} from './types.js'

@@ -2,0 +9,0 @@

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