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

@icapps/chat-astrum

Package Overview
Dependencies
Maintainers
5
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icapps/chat-astrum - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

build/models/conversation.model.d.ts

@@ -13,4 +13,6 @@ import { Document, Schema, Model } from 'mongoose';

export interface IConversationCreate extends IConversationBaseOperation {
roomId: string;
}
export interface IDBConversation extends Document {
roomId: string;
participants: IParticipants;

@@ -17,0 +19,0 @@ type: IConversationType;

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

exports.ConversationSchema = new mongoose_1.Schema({
roomId: String,
participants: {

@@ -8,0 +9,0 @@ departmentId: String,

3

build/services/conversation.service.js

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

Object.defineProperty(exports, "__esModule", { value: true });
const uuid = require("uuid");
const socket = require("../lib/socket");

@@ -26,3 +27,3 @@ const conversationRepository = require("../repositories/conversation.repository");

const type = utils_1.getConversationType(participants);
const conversation = yield conversationRepository.createConversation({ participants, type });
const conversation = yield conversationRepository.createConversation({ participants, type, roomId: uuid.v4() });
socket.addNamespace(holdingId);

@@ -29,0 +30,0 @@ return conversation;

{
"name": "@icapps/chat-astrum",
"version": "1.1.0",
"version": "1.1.1",
"description": "Chat module ESS",

@@ -27,2 +27,3 @@ "main": "build/index.js",

"socket.io": "~2.2.0",
"uuid": "~3.3.2",
"winston": "~3.2.1"

@@ -32,3 +33,2 @@ },

"@types/faker": "^4.1.5",
"@types/socket.io": "~2.1.2",
"@types/jest": "^24.0.13",

@@ -40,2 +40,4 @@ "@types/joi": "^14.3.3",

"@types/rimraf": "^2.0.2",
"@types/socket.io": "~2.1.2",
"@types/uuid": "~3.4.4",
"@types/winston": "~2.4.4",

@@ -47,6 +49,6 @@ "faker": "^4.1.0",

"node-mocks-http": "^1.7.5",
"np": "^5.0.2",
"pre-commit": "^1.2.2",
"rimraf": "^2.6.2",
"ts-jest": "^24.0.2",
"np": "^5.0.2",
"ts-node-dev": "^1.0.0-pre.39",

@@ -53,0 +55,0 @@ "tslint": "^5.15.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