Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Feb 25, 2020
1 parent 26a4fce commit 173d42b
Show file tree
Hide file tree
Showing 8 changed files with 3,706 additions and 2,571 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.9.1

- Updated dependencies

## 0.9.0

- Updated dependencies
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 - 2019 Florian Rappl
Copyright (c) 2018 - 2020 Florian Rappl

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6,203 changes: 3,667 additions & 2,536 deletions package-lock.json

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kras",
"version": "0.9.0",
"version": "0.9.1",
"description": "Efficient server proxying and mocking in Node.js.",
"main": "dist/server/kras.js",
"types": "dist/server/kras.d.ts",
Expand Down Expand Up @@ -35,64 +35,64 @@
"license": "MIT",
"dependencies": {
"body-parser": "^1.19.0",
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"chokidar": "^2.1.8",
"express": "^4.17.1",
"express-ws": "^4.0.0",
"request": "^2.88.0",
"request": "^2.88.2",
"send": "^0.16.2",
"uuid": "^3.3.3",
"ws": "^6.2.1",
"yargs": "^13.3.0"
"uuid": "^7.0.0",
"ws": "^7.2.1",
"yargs": "^15.1.0"
},
"devDependencies": {
"@types/body-parser": "^1.17.1",
"@types/body-parser": "^1.19.0",
"@types/chokidar": "^1.7.5",
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/express": "^4.17.1",
"@types/enzyme": "^3.10.5",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/express": "^4.17.2",
"@types/express-ws": "^3.0.0",
"@types/jest": "^24.0.21",
"@types/react": "^16.9.11",
"@types/react-dom": "^16.9.3",
"@types/jest": "^24.9.1",
"@types/react": "^16.9.22",
"@types/react-dom": "^16.9.5",
"@types/react-router": "^4.4.5",
"@types/react-router-dom": "^4.3.5",
"@types/reactstrap": "^7.1.6",
"@types/request": "^2.48.3",
"@types/request": "^2.48.4",
"@types/send": "^0.14.5",
"@types/uuid": "^3.4.5",
"@types/ws": "^6.0.3",
"@types/yargs": "^12.0.13",
"@types/uuid": "^3.4.7",
"@types/ws": "^7.2.1",
"@types/yargs": "^15.0.3",
"awesome-typescript-loader": "^5.2.1",
"babel-jest": "^24.9.0",
"bootstrap": "~4.3.1",
"cross-env": "^5.2.1",
"css-loader": "^2.1.1",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.4.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"enzyme-to-json": "^3.4.4",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.9.0",
"jest-enzyme": "^7.1.2",
"mixin-deep": "^2.0.1",
"nodemon": "^1.19.4",
"prettier": "^1.18.2",
"react": "^16.11.0",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-ace": "^6.6.0",
"react-dom": "^16.11.0",
"react-dom": "^16.12.0",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"reactstrap": "^7.1.0",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"ts-jest": "^24.3.0",
"ts-node": "^8.6.2",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"tslint-plugin-prettier": "^2.1.0",
"typescript": "^2.9.2",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.9.0"
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"
}
}
2 changes: 1 addition & 1 deletion src/server/core/webserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class WebServer extends EventEmitter implements BaseKrasServer {

stop() {
this.emit('close');
return new Promise<void>(resolve => this.server.close(resolve));
return new Promise<void>(resolve => this.server.close(() => resolve()));
}

broadcast<T>(msg: T) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/helpers/build-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface HarResponse {
redirectURL: string;
headers: HarHeaders;
content: {
encoding?: string;
encoding?: BufferEncoding;
mimeType: string;
text?: string;
};
Expand Down
2 changes: 1 addition & 1 deletion src/server/kras-server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chalk from 'chalk';
import * as chalk from 'chalk';
import { homedir } from 'os';
import { resolve } from 'path';
import { MockServerCore } from './core';
Expand Down
2 changes: 1 addition & 1 deletion src/server/types/kras-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EventEmitter } from 'events';
import { KrasInjector } from './kras-injector';
import { KrasMiddleware } from './kras-middleware';
import { KrasRecorder } from './kras-recorder';
import { LogEntry, LogLevel, Dict } from './kras-basics';
import { LogEntry, LogLevel } from './kras-basics';
import { KrasServerHandler, KrasServerConnector, KrasServerHook } from './kras-express';

export interface KrasServerMethods {
Expand Down

0 comments on commit 173d42b

Please sign in to comment.