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

@555platform/555parser.ts

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@555platform/555parser.ts - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

3

dist/CMF/ChatMessageTypes.d.ts

@@ -27,3 +27,4 @@ export declare enum ChatMessageTypes {

UpdateLastConsumedMessageIndex = "update_last_consumeed_message_index",
StartTyping = "start_typing"
StartTyping = "start_typing",
RemoveUser = "remove_user"
}

@@ -30,0 +31,0 @@ export declare enum ChatServerEventTypes {

@@ -32,2 +32,3 @@ "use strict";

RequestTypes["StartTyping"] = "start_typing";
RequestTypes["RemoveUser"] = "remove_user";
})(RequestTypes = exports.RequestTypes || (exports.RequestTypes = {}));

@@ -34,0 +35,0 @@ var ChatServerEventTypes;

@@ -17,3 +17,3 @@ import { Message } from './Message';

export declare const buildFromClientChatMessage: (params: FromClientMessageParams) => FromChatClientMessage;
export declare const buildFromClientMediaMessage: (params: FromChatClientMessage) => void;
export declare const buildFromClientMediaMessage: (params: FromClientMessageParams) => FromChatClientMessage;
export declare const buildFromClientTypingMessage: (params: FromChatClientMessage) => void;

@@ -20,0 +20,0 @@ export declare const buildFromClientUpdateMessage: (params: FromChatClientMessage) => void;

@@ -36,3 +36,13 @@ "use strict";

};
exports.buildFromClientMediaMessage = function (params) { };
exports.buildFromClientMediaMessage = function (params) {
return ramda_1.applySpec({
chatMessageType: onlyValue(ChatMessageTypes_1.ChatMessageTypes.MediaMessage),
messageId: onlyValue(v4_1.default()),
author: ramda_1.prop('author'),
file: ramda_1.prop('file'),
body: ramda_1.prop('body'),
roomId: ramda_1.prop('roomId'),
mentions: onlyValue('')
})(params);
};
exports.buildFromClientTypingMessage = function (params) { };

@@ -39,0 +49,0 @@ exports.buildFromClientUpdateMessage = function (params) { };

@@ -52,1 +52,5 @@ export declare type CreateRoomOptions = {

};
export declare type RemoveUserOptions = {
roomId: string;
userId: string;
};
{
"name": "@555platform/555parser.ts",
"version": "1.0.7",
"version": "1.0.8",
"description": "555 Platform Message Parser",

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

@@ -28,3 +28,4 @@ export enum ChatMessageTypes {

UpdateLastConsumedMessageIndex = 'update_last_consumeed_message_index',
StartTyping = 'start_typing'
StartTyping = 'start_typing',
RemoveUser = 'remove_user'
}

@@ -31,0 +32,0 @@

@@ -65,5 +65,12 @@ import { applySpec, prop, propOr, compose, curry } from 'ramda';

export const buildFromClientMediaMessage = (
params: FromChatClientMessage
) => {};
export const buildFromClientMediaMessage = (params: FromClientMessageParams) =>
applySpec<FromChatClientMessage>({
chatMessageType: onlyValue(ChatMessageTypes.MediaMessage),
messageId: onlyValue(uuid()),
author: prop('author'),
file: prop('file'),
body: prop('body'),
roomId: prop('roomId'),
mentions: onlyValue('')
})(params);

@@ -70,0 +77,0 @@ export const buildFromClientTypingMessage = (

@@ -62,1 +62,6 @@ export type CreateRoomOptions = {

};
export type RemoveUserOptions = {
roomId: string;
userId: string;
};
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