Skip to content

Commit

Permalink
Merge pull request #19 from WickedSik/hotfix/update-versions
Browse files Browse the repository at this point in the history
Remove requires, clean up imports
  • Loading branch information
WickedSik authored Jun 17, 2024
2 parents f82f0ab + 16c3817 commit 48b7da8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/common/HashCode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import md5 = require('md5')
import * as md5 from 'md5'

export default {
serialize(object: any): string {
Expand Down
2 changes: 1 addition & 1 deletion src/messaging/MessageFactory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { v1 } from 'uuid'
import he = require('he')
import * as he from 'he'
import Connection from '../socket/Connection'
import HashCode from '../common/HashCode'
import { Message } from './Message'
Expand Down
4 changes: 2 additions & 2 deletions src/socket/Client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EventEmitter } from 'events'
import url = require('url')
import * as url from 'url'
import { Message } from '../../types'
import Stack from 'common/Stack'
import Stack from '../common/Stack'
import ConnectionPool from './ConnectionPool'
import {
client as WebsocketClient,
Expand Down
8 changes: 4 additions & 4 deletions src/socket/Server.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { EventEmitter } from 'events'
import { networkInterfaces, hostname } from 'os'
import { v4 } from 'uuid'
import express = require('express')
import http = require('http')
import url = require('url')
import * as express from 'express'
import * as http from 'http'
import * as url from 'url'
import ConnectionPool from './ConnectionPool'
import Stack from 'common/Stack'
import Stack from '../common/Stack'
import { Message, Configuration, AddressBook, ServerStatistics } from '../../types'
import { default as ApiServer } from '../api/Server'
import {
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"outDir": "./lib",
"baseUrl": "src",
"sourceMap": false,
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"downlevelIteration": true,
"target": "es5",
"target": "ES5",
"typeRoots": [
"./node_modules/@types",
"./@types"
Expand Down

0 comments on commit 48b7da8

Please sign in to comment.