Skip to content

Commit bdab3ce

Browse files
committed
Compatibility updates for package web-dev-server 2.1.
1 parent 697364a commit bdab3ce

File tree

11 files changed

+32
-20
lines changed

11 files changed

+32
-20
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = tab
7+
tab_width = 4
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = false
11+
trim_trailing_whitespace = false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Temporary Items
5757

5858
# third party node modules
5959
node_modules
60+
package-lock.json
6061

6162
# log files
6263
*.log

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
node_modules/
21
src/
32
node_modules/
43
tests/
54
Workspace.code-workspace
5+
.editorconfig
66
*.log
77
TODO.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Example - Hello World - TypeScript
22

3-
[![Latest Stable Version](https://img.shields.io/badge/Stable-v2.0.0-brightgreen.svg?style=plastic)](https://github.com/web-dev-server/example-helloworld-typescript/releases)
3+
[![Latest Stable Version](https://img.shields.io/badge/Stable-v2.1.0-brightgreen.svg?style=plastic)](https://github.com/web-dev-server/example-helloworld-typescript/releases)
44
[![Min. TypeScript Version](https://img.shields.io/badge/TypeScript-v3.7-brightgreen.svg?style=plastic)](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html)
55
[![License](https://img.shields.io/badge/Licence-BSD-brightgreen.svg?style=plastic)](https://github.com/web-dev-server/example-helloworld-typescript/blob/master/LICENCE.md)
66

build/dynamic-content-javascript/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/dynamic-content-typescript/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface RequestInfo extends ObjectConstructor {
1717
declare class App extends WebDevServer.Application.Abstract {
1818
counter: number;
1919
constructor(httpServer: http.Server, expressApp: core.Express, sessionParser: core.RequestHandler<core.ParamsDictionary>, request: core.Request<core.ParamsDictionary, any, any>, response: core.Response<any>);
20-
handleHttpRequest(request: core.Request<core.ParamsDictionary, any, any>, response: core.Response<any>): Promise<void>;
20+
HandleHttpRequest(request: core.Request<core.ParamsDictionary, any, any>, response: core.Response<any>): Promise<void>;
2121
protected completeWholeRequestInfo(request: core.Request<core.ParamsDictionary, any, any>): Promise<RequestInfo>;
2222
}
2323
export default App;

build/dynamic-content-typescript/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-dev-server-example-helloworld-typescript",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"keywords": [
55
"hello",
66
"world",
@@ -10,7 +10,7 @@
1010
"node"
1111
],
1212
"description": "Hello world example with static and dynamic content in Typescript.",
13-
"homepage": "https://github.com/web-dev-server",
13+
"homepage": "https://github.com/web-dev-server/example-helloworld-typescript",
1414
"repository": {
1515
"type": "git",
1616
"url": "https://github.com/web-dev-server/example-helloworld-typescript.git"
@@ -29,7 +29,7 @@
2929
"test": "echo \"Error: no test specified\" && exit 1"
3030
},
3131
"dependencies": {
32-
"web-dev-server": "^2.0"
32+
"web-dev-server": "^2.1"
3333
},
3434
"devDependencies": {
3535
"tslib": "^1.10.0",

src/dynamic-content-javascript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ App.prototype = {
4545
* @param {response} response Current http response object.
4646
* @return {Promise}
4747
*/
48-
handleHttpRequest: function (request, response) {
48+
HandleHttpRequest: function (request, response) {
4949
// Called every request:
5050
console.log("Application has been requested.");
5151

0 commit comments

Comments
 (0)