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

getstream

Package Overview
Dependencies
Maintainers
14
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getstream - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

9

lib/client.js

@@ -261,5 +261,7 @@ "use strict";

this.handlers = {};
this.browser = typeof this.options.browser !== 'undefined' ? this.options.browser : typeof window !== 'undefined';
this.node = !this.browser;
this.node = typeof window === 'undefined'; // use for real browser vs node behavior
// use for browser warnings
this.browser = typeof this.options.browser !== 'undefined' ? this.options.browser : !this.node;
if (this.node) {

@@ -280,4 +282,3 @@ var keepAlive = this.options.keepAlive === undefined ? true : this.options.keepAlive;

this.request = axios.default.create(_objectSpread({
timeout: this.options.timeout || 10 * 1000,
// 10 seconds
timeout: this.options.timeout || 10000,
withCredentials: false

@@ -284,0 +285,0 @@ }, this.nodeOptions || {}));

@@ -14,3 +14,3 @@ {

"license": "BSD-3-Clause",
"version": "8.0.1",
"version": "8.0.2",
"scripts": {

@@ -17,0 +17,0 @@ "changelog": "standard-version --release-as $VERSION --skip.tag --skip.commit --tag-prefix=v",

# Official JavaScript SDK for [Stream Feeds](https://getstream.io/activity-feeds/)
[![build](https://github.com/GetStream/stream-js/workflows/build/badge.svg)](https://github.com/GetStream/stream-js/actions)
[![build](https://github.com/GetStream/stream-js/workflows/build/badge.svg)](https://github.com/GetStream/stream-js/actions)
[![NPM](https://nodei.co/npm/getstream.png)](https://nodei.co/npm/getstream/)

@@ -28,2 +28,4 @@

> 💡 Note: this is a library for the **Feeds** product. The Chat SDKs can be found [here](https://getstream.io/chat/docs/).
## ⚙️ Installation

@@ -52,3 +54,3 @@

```html
<script src="https://cdn.jsdelivr.net/npm/getstream@5.0.0/dist/js_min/getstream.js"></script>
<script src="https://cdn.jsdelivr.net/npm/getstream@8.0.0/dist/js_min/getstream.js"></script>
```

@@ -55,0 +57,0 @@

@@ -251,4 +251,5 @@ /// <reference path="../types/modules.d.ts" />

this.handlers = {};
this.browser = typeof this.options.browser !== 'undefined' ? this.options.browser : typeof window !== 'undefined';
this.node = !this.browser;
this.node = typeof window === 'undefined'; // use for real browser vs node behavior
// use for browser warnings
this.browser = typeof this.options.browser !== 'undefined' ? this.options.browser : !this.node;

@@ -264,3 +265,3 @@ if (this.node) {

this.request = axios.default.create({
timeout: this.options.timeout || 10 * 1000, // 10 seconds
timeout: this.options.timeout || 10000,
withCredentials: false, // making sure cookies are not sent

@@ -267,0 +268,0 @@ ...(this.nodeOptions || {}),

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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