Comparing version 0.0.4 to 0.0.5
@@ -8,9 +8,2 @@ export interface Message<T = string | Record<string, unknown>> { | ||
} | ||
export interface Message<T = string | Record<string, unknown>> { | ||
data: T; | ||
comment?: string; | ||
event?: string; | ||
id?: string; | ||
retry?: number; | ||
} | ||
export type EventOptions<T = string | Record<string, unknown>> = { | ||
@@ -17,0 +10,0 @@ beforeFn?: CustomFn<T>; |
{ | ||
"name": "ts-sse", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "utilities for Server Sent Events that adopts the HTML Spec Standard for the EventSource Web API.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -29,3 +29,3 @@ # ts-sse | ||
- have TypeScript. | ||
- A basic understanding of [Server-Sent Events "SSE"(https://html.spec.whatwg.org/multipage/server-sent-events.html)) and the [EventSource Web API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource). | ||
- A basic understanding of [Server-Sent Events "SSE"](https://html.spec.whatwg.org/multipage/server-sent-events.html) and the [EventSource Web API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource). | ||
@@ -187,3 +187,3 @@ | ||
```ts | ||
```tsx | ||
'use client' | ||
@@ -190,0 +190,0 @@ // some-component.tsx |
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
26166
370