Socket
Socket
Sign inDemoInstall

fetch-sse

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.16

2

build/fetch.js

@@ -6,4 +6,4 @@ "use strict";

const utils_1 = require("./utils");
const sse = new sse_1.SSEDecoder();
async function fetchEventData(url, options = {}) {
const sse = new sse_1.SSEDecoder();
const { method, data, headers = {}, signal, onMessage, onError, onOpen, onClose } = options;

@@ -10,0 +10,0 @@ const defaultHeaders = {

{
"name": "fetch-sse",
"version": "1.0.15",
"version": "1.0.16",
"description": "An easy API for making Event Source requests, with all the features of fetch(), Supports browsers and node.",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -5,4 +5,4 @@ import { IFetchOptions } from './interface';

const sse = new SSEDecoder();
export async function fetchEventData(url: string, options: IFetchOptions = {}): Promise<void> {
const sse = new SSEDecoder();
const { method, data, headers = {}, signal, onMessage, onError, onOpen, onClose } = options;

@@ -9,0 +9,0 @@ const defaultHeaders = {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc