@spinajs/http 2.0.90 → 2.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/config/http.js +4 -4
- package/lib/cjs/config/http.js.map +1 -1
- package/lib/cjs/responses.d.ts.map +1 -1
- package/lib/cjs/responses.js +3 -3
- package/lib/cjs/responses.js.map +1 -1
- package/lib/cjs/server.d.ts.map +1 -1
- package/lib/cjs/server.js +24 -27
- package/lib/cjs/server.js.map +1 -1
- package/lib/mjs/config/http.js +4 -4
- package/lib/mjs/config/http.js.map +1 -1
- package/lib/mjs/responses.d.ts.map +1 -1
- package/lib/mjs/responses.js +3 -3
- package/lib/mjs/responses.js.map +1 -1
- package/lib/mjs/server.d.ts.map +1 -1
- package/lib/mjs/server.js +26 -6
- package/lib/mjs/server.js.map +1 -1
- package/lib/{cjs/static → static}/favicon.ico +0 -0
- package/lib/{cjs/static → static}/style.css +0 -0
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/{cjs/views → views}/responses/badRequest.pug +2 -2
- package/lib/{cjs/views → views}/responses/conflict.pug +2 -2
- package/lib/{mjs/views → views}/responses/forbidden.pug +2 -2
- package/lib/{mjs/views → views}/responses/noContent.pug +2 -2
- package/lib/{cjs/views → views}/responses/not-allowed.pug +2 -2
- package/lib/{mjs/views → views}/responses/notFound.pug +2 -2
- package/lib/views/responses/ok.pug +12 -0
- package/lib/{cjs/views → views}/responses/serverError.pug +2 -2
- package/lib/{cjs/views → views}/responses/unauthorized.pug +2 -2
- package/package.json +10 -10
- package/lib/cjs/locales/en.json +0 -10
- package/lib/cjs/locales/pl.json +0 -10
- package/lib/cjs/views/responses/forbidden.pug +0 -13
- package/lib/cjs/views/responses/noContent.pug +0 -13
- package/lib/cjs/views/responses/notFound.pug +0 -13
- package/lib/cjs/views/responses/ok.pug +0 -12
- package/lib/mjs/locales/en.json +0 -10
- package/lib/mjs/locales/pl.json +0 -10
- package/lib/mjs/static/favicon.ico +0 -0
- package/lib/mjs/static/style.css +0 -15
- package/lib/mjs/views/responses/badRequest.pug +0 -13
- package/lib/mjs/views/responses/conflict.pug +0 -13
- package/lib/mjs/views/responses/not-allowed.pug +0 -13
- package/lib/mjs/views/responses/ok.pug +0 -12
- package/lib/mjs/views/responses/serverError.pug +0 -13
- package/lib/mjs/views/responses/unauthorized.pug +0 -13
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
html
|
|
2
2
|
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
|
|
4
4
|
|
|
5
5
|
title #{__("Forbidden")}
|
|
6
6
|
|
|
7
|
-
link(href="/
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
8
|
body
|
|
9
9
|
div(class="container")
|
|
10
10
|
div(class="item")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
html
|
|
2
2
|
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
|
|
4
4
|
|
|
5
5
|
title #{__("No content")}
|
|
6
6
|
|
|
7
|
-
link(href="/
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
8
|
body
|
|
9
9
|
div(class="container")
|
|
10
10
|
div(class="item")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
html
|
|
2
2
|
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
|
|
4
4
|
|
|
5
5
|
title #{__("Not allowed")}
|
|
6
6
|
|
|
7
|
-
link(href="/
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
8
|
body
|
|
9
9
|
div(class="container")
|
|
10
10
|
div(class="item")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
html
|
|
2
2
|
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
|
|
4
4
|
|
|
5
5
|
title #{__("Not found")}
|
|
6
6
|
|
|
7
|
-
link(href="/
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
8
|
body
|
|
9
9
|
div(class="container")
|
|
10
10
|
div(class="item")
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
html
|
|
2
|
+
head
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.png")
|
|
4
|
+
|
|
5
|
+
title #{__("All ok")}
|
|
6
|
+
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
|
+
body
|
|
9
|
+
div(class="container")
|
|
10
|
+
div(class="item")
|
|
11
|
+
div(class="entry")
|
|
12
|
+
h1 200 - #{__("All ok")}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
html
|
|
2
2
|
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
|
|
4
4
|
|
|
5
5
|
title #{__("Server error")}
|
|
6
6
|
|
|
7
|
-
link(href="/
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
8
|
body
|
|
9
9
|
div(class="container")
|
|
10
10
|
div(class="item")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
html
|
|
2
2
|
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/
|
|
3
|
+
link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
|
|
4
4
|
|
|
5
5
|
title #{__("Unauthorized")}
|
|
6
6
|
|
|
7
|
-
link(href="/
|
|
7
|
+
link(href="/_static/style.css",rel="stylesheet")
|
|
8
8
|
body
|
|
9
9
|
div(class="container")
|
|
10
10
|
div(class="item")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinajs/http",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.91",
|
|
4
4
|
"description": "framework HTTP module base on express.js",
|
|
5
5
|
|
|
6
6
|
"main": "lib/cjs/index.js",
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"cpx": "1.5.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@spinajs/configuration": "^2.0.
|
|
66
|
-
"@spinajs/di": "^2.0.
|
|
67
|
-
"@spinajs/exceptions": "^2.0.
|
|
68
|
-
"@spinajs/fs": "^2.0.
|
|
69
|
-
"@spinajs/log": "^2.0.
|
|
70
|
-
"@spinajs/reflection": "^2.0.
|
|
71
|
-
"@spinajs/templates": "^2.0.
|
|
72
|
-
"@spinajs/validation": "^2.0.
|
|
73
|
-
"@spinajs/templates-pug": "^2.0.
|
|
65
|
+
"@spinajs/configuration": "^2.0.91",
|
|
66
|
+
"@spinajs/di": "^2.0.91",
|
|
67
|
+
"@spinajs/exceptions": "^2.0.91",
|
|
68
|
+
"@spinajs/fs": "^2.0.91",
|
|
69
|
+
"@spinajs/log": "^2.0.91",
|
|
70
|
+
"@spinajs/reflection": "^2.0.91",
|
|
71
|
+
"@spinajs/templates": "^2.0.91",
|
|
72
|
+
"@spinajs/validation": "^2.0.91",
|
|
73
|
+
"@spinajs/templates-pug": "^2.0.91",
|
|
74
74
|
"compression": "^1.7.4",
|
|
75
75
|
"cookie-parser": "^1.4.6",
|
|
76
76
|
"cookie-signature": "^1.2.0",
|
package/lib/cjs/locales/en.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Not found": "Resource not found",
|
|
3
|
-
"Server error": "Critital server error",
|
|
4
|
-
"Forbidden" : "Access forbidden",
|
|
5
|
-
"Route not found": "Route not found",
|
|
6
|
-
"Unauthorized": "Access denied",
|
|
7
|
-
"No content" : "No content",
|
|
8
|
-
"Bad request" : "Bad request",
|
|
9
|
-
"You do not have access to this resource." : "You do not have access to this resource"
|
|
10
|
-
}
|
package/lib/cjs/locales/pl.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Not found": "Nie znaleziono zasobu",
|
|
3
|
-
"Server error": "Błąd serwera",
|
|
4
|
-
"Forbidden" : "Zabroniony dostęp",
|
|
5
|
-
"Route not found": "Ścieżka nie odnaleziona",
|
|
6
|
-
"Unauthorized": "Brak uprawnień",
|
|
7
|
-
"No content" : "Brak zawartości",
|
|
8
|
-
"Bad request" : "Złe żądanie",
|
|
9
|
-
"You do not have access to this resource." : "Nie posiadasz uprawnień do tego zasobu."
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Forbidden")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 403 - #{__("Forbidden")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("No content")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 204 - #{__("No content")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Not found")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 404 - #{__("Not found")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.png")
|
|
4
|
-
|
|
5
|
-
title #{__("All ok")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 200 - #{__("All ok")}
|
package/lib/mjs/locales/en.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Not found": "Resource not found",
|
|
3
|
-
"Server error": "Critital server error",
|
|
4
|
-
"Forbidden" : "Access forbidden",
|
|
5
|
-
"Route not found": "Route not found",
|
|
6
|
-
"Unauthorized": "Access denied",
|
|
7
|
-
"No content" : "No content",
|
|
8
|
-
"Bad request" : "Bad request",
|
|
9
|
-
"You do not have access to this resource." : "You do not have access to this resource"
|
|
10
|
-
}
|
package/lib/mjs/locales/pl.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Not found": "Nie znaleziono zasobu",
|
|
3
|
-
"Server error": "Błąd serwera",
|
|
4
|
-
"Forbidden" : "Zabroniony dostęp",
|
|
5
|
-
"Route not found": "Ścieżka nie odnaleziona",
|
|
6
|
-
"Unauthorized": "Brak uprawnień",
|
|
7
|
-
"No content" : "Brak zawartości",
|
|
8
|
-
"Bad request" : "Złe żądanie",
|
|
9
|
-
"You do not have access to this resource." : "Nie posiadasz uprawnień do tego zasobu."
|
|
10
|
-
}
|
|
Binary file
|
package/lib/mjs/static/style.css
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Bad request")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 400 - #{__("Bad request")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Conflict")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 409 - #{__("Conflict")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Not allowed")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 405 - #{__("Not allowed")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.png")
|
|
4
|
-
|
|
5
|
-
title #{__("All ok")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 200 - #{__("All ok")}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Server error")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 500 - #{__("Server error")}
|
|
13
|
-
div #{__(message)}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
html
|
|
2
|
-
head
|
|
3
|
-
link(rel="icon", type="image/x-icon", href="/static/favicon.ico")
|
|
4
|
-
|
|
5
|
-
title #{__("Unauthorized")}
|
|
6
|
-
|
|
7
|
-
link(href="/static/style.css",rel="stylesheet")
|
|
8
|
-
body
|
|
9
|
-
div(class="container")
|
|
10
|
-
div(class="item")
|
|
11
|
-
div(class="entry")
|
|
12
|
-
h1 401 - #{__("Unauthorized")}
|
|
13
|
-
div #{__(message)}
|