stream-chat
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -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
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
4180299
46500
166