Move src/lib/utils.ts to src/lib/utils/functions.ts

We probably don't want a utils directory and a utils file.

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-06-12 22:15:04 +02:00
parent 20fbb39b3e
commit e05191eeed
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
6 changed files with 9 additions and 9 deletions

View file

@ -25,7 +25,7 @@ import { errors } from './errors'
import { logger } from './logger'
import { Revision, sequelize } from './models'
import { realtime } from './realtime'
import { handleTermSignals } from './utils'
import { handleTermSignals } from './utils/functions'
import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
import { tooBusy, checkURI, redirectWithoutTrailingSlashes, codiMDVersion } from './web/middleware'

View file

@ -31,7 +31,7 @@ import S from 'string'
import { config } from '../config'
import { logger } from '../logger'
import ot from '../ot'
import { processData, stripNullByte } from '../utils'
import { processData, stripNullByte } from '../utils/functions'
import { Author, Revision, User } from './index'
const md = markdownIt()

View file

@ -4,7 +4,7 @@ import Sequelize from 'sequelize'
import { BelongsTo, Column, DataType, Default, ForeignKey, Model, PrimaryKey, Table } from 'sequelize-typescript'
// core
import { logger } from '../logger'
import { processData, stripNullByte } from '../utils'
import { processData, stripNullByte } from '../utils/functions'
import { Note } from './note'
import async = require('async')
import childProcess = require('child_process')

View file

@ -13,7 +13,7 @@ import { Author, Note, Revision, User } from './models'
import { NoteAuthorship } from './models/note'
import { PhotoProfile } from './utils/PhotoProfile'
import { EditorSocketIOServer } from './ot/editor-socketio-server'
import { mapToObject } from './utils'
import { mapToObject } from './utils/functions'
export type SocketWithNoteId = Socket & { noteId: string }

View file

@ -1,8 +1,8 @@
import fs from 'fs'
import { config } from './config'
import { logger } from './logger'
import { Revision } from './models'
import { realtime } from './realtime'
import { config } from '../config'
import { logger } from '../logger'
import { Revision } from '../models'
import { realtime } from '../realtime'
/*
Converts a map from string to something into a plain JS object for transmitting via a websocket

View file

@ -3,7 +3,7 @@ import fs from 'fs'
import { Client } from 'minio'
import { config } from '../../config'
import { getImageMimeType } from '../../utils'
import { getImageMimeType } from '../../utils/functions'
import { logger } from '../../logger'
import { UploadProvider } from './index'