
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
48 lines
1.8 KiB
JavaScript
48 lines
1.8 KiB
JavaScript
'use strict';
|
|
|
|
|
|
var loader = require('./lib/loader');
|
|
var dumper = require('./lib/dumper');
|
|
|
|
|
|
function renamed(from, to) {
|
|
return function () {
|
|
throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
|
|
'Use yaml.' + to + ' instead, which is now safe by default.');
|
|
};
|
|
}
|
|
|
|
|
|
module.exports.Type = require('./lib/type');
|
|
module.exports.Schema = require('./lib/schema');
|
|
module.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe');
|
|
module.exports.JSON_SCHEMA = require('./lib/schema/json');
|
|
module.exports.CORE_SCHEMA = require('./lib/schema/core');
|
|
module.exports.DEFAULT_SCHEMA = require('./lib/schema/default');
|
|
module.exports.load = loader.load;
|
|
module.exports.loadAll = loader.loadAll;
|
|
module.exports.dump = dumper.dump;
|
|
module.exports.YAMLException = require('./lib/exception');
|
|
|
|
// Re-export all types in case user wants to create custom schema
|
|
module.exports.types = {
|
|
binary: require('./lib/type/binary'),
|
|
float: require('./lib/type/float'),
|
|
map: require('./lib/type/map'),
|
|
null: require('./lib/type/null'),
|
|
pairs: require('./lib/type/pairs'),
|
|
set: require('./lib/type/set'),
|
|
timestamp: require('./lib/type/timestamp'),
|
|
bool: require('./lib/type/bool'),
|
|
int: require('./lib/type/int'),
|
|
merge: require('./lib/type/merge'),
|
|
omap: require('./lib/type/omap'),
|
|
seq: require('./lib/type/seq'),
|
|
str: require('./lib/type/str')
|
|
};
|
|
|
|
// Removed functions from JS-YAML 3.0.x
|
|
module.exports.safeLoad = renamed('safeLoad', 'load');
|
|
module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll');
|
|
module.exports.safeDump = renamed('safeDump', 'dump');
|