eventsource-parser
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40817
13
569
46
0
11