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

fetch-observable

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

fetch-observable - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

package.json
{
"name": "fetch-observable",
"description": "Observable-based Fetch API",
"version": "1.0.1",
"version": "1.0.2",
"license": "BSD-3-Clause",

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

],
"main": "dist/lib/fetch-observable.js",
"main": "dist/lib/fetchobservable.js",
"scripts": {

@@ -19,0 +19,0 @@ "build": "concurrent --kill-others 'npm run build-full' 'npm run build-min'",

@@ -24,5 +24,6 @@ # fetchObservable()

const liveFeed = fetchObservable(
"http://example.org/live-feed.json",
"http://example.org/live-feed.json", // <-- URL or array of URLs.
{
refreshDelay: (iteration) => iteration * 1000 // <-- Callback or just integer ms.
refreshDelay: (iteration) => iteration * 1000, // <-- Callback or just integer ms.
method: "POST" // <-- Basic Fetch API options.
}

@@ -29,0 +30,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