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

stream-chat

Package Overview
Dependencies
Maintainers
15
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-chat - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

4

dist/types/client.d.ts

@@ -800,5 +800,5 @@ /// <reference types="node" />

parent_id?: string | undefined;
pin_expires?: string | undefined;
pin_expires?: string | null | undefined;
pinned?: boolean | undefined;
pinned_at?: string | undefined;
pinned_at?: string | null | undefined;
quoted_message_id?: string | undefined;

@@ -805,0 +805,0 @@ show_in_channel?: boolean | undefined;

@@ -265,3 +265,5 @@ import { AxiosRequestConfig } from 'axios';

approved_at?: string;
channel_cid?: string;
details?: Object;
message_user_id?: string;
rejected_at?: string;

@@ -985,2 +987,4 @@ reviewed_at?: string;

og_scrape_url?: string;
original_height?: number;
original_width?: number;
pretext?: string;

@@ -1166,5 +1170,5 @@ text?: string;

parent_id?: string;
pin_expires?: string;
pin_expires?: string | null;
pinned?: boolean;
pinned_at?: string;
pinned_at?: string | null;
quoted_message_id?: string;

@@ -1171,0 +1175,0 @@ show_in_channel?: boolean;

{
"name": "stream-chat",
"version": "5.1.1",
"version": "5.1.2",
"description": "JS SDK for the Stream Chat API",

@@ -5,0 +5,0 @@ "author": "GetStream",

# Stream Chat JS
[![NPM](https://img.shields.io/npm/v/stream-chat.svg)](https://www.npmjs.com/package/stream-chat)
[![Actions Status](https://github.com/GetStream/stream-chat-js/workflows/build/badge.svg)](https://github.com/GetStream/stream-chat-js/actions)

@@ -6,0 +5,0 @@ stream-chat-js is the official JavaScript client for Stream Chat, a service for building chat applications.

@@ -170,2 +170,6 @@ import { Channel } from './channel';

for (let i = 0; i < newMessages.length; i += 1) {
const isFromShadowBannedUser = newMessages[i].shadowed;
if (isFromShadowBannedUser) {
continue;
}
const message = this.formatMessage(newMessages[i]);

@@ -172,0 +176,0 @@

@@ -371,3 +371,5 @@ import { AxiosRequestConfig } from 'axios';

approved_at?: string;
channel_cid?: string;
details?: Object; // Any JSON
message_user_id?: string;
rejected_at?: string;

@@ -1470,2 +1472,4 @@ reviewed_at?: string;

og_scrape_url?: string;
original_height?: number;
original_width?: number;
pretext?: string;

@@ -1781,5 +1785,5 @@ text?: string;

parent_id?: string;
pin_expires?: string;
pin_expires?: string | null;
pinned?: boolean;
pinned_at?: string;
pinned_at?: string | null;
quoted_message_id?: string;

@@ -1786,0 +1790,0 @@ show_in_channel?: boolean;

@@ -57,2 +57,6 @@ import FormData from 'form-data';

function isBlobWebAPI(uri: unknown): uri is Blob {
return typeof window !== 'undefined' && 'Blob' in window && uri instanceof Blob;
}
export function isOwnUser<

@@ -92,3 +96,3 @@ ChannelType extends UR = UR,

if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri)) {
if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri) || isBlobWebAPI(uri)) {
if (name) data.append('file', uri, name);

@@ -95,0 +99,0 @@ else data.append('file', uri);

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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