@spinajs/http 2.0.490 → 2.0.494

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.
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,13 +1,13 @@
1
- html
2
- head
3
- link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
4
-
5
- title #{__("Entity too large")}
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 413 - #{__("Entity too large")}
1
+ html
2
+ head
3
+ link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
4
+
5
+ title #{__("Entity too large")}
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 413 - #{__("Entity too large")}
13
13
  div #{__(message)}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,13 +1,13 @@
1
- html
2
- head
3
- link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
4
-
5
- title #{__("Not acceptable")}
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 406 - #{__("Not acceptable content response type")}
1
+ html
2
+ head
3
+ link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
4
+
5
+ title #{__("Not acceptable")}
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 406 - #{__("Not acceptable content response type")}
13
13
  div #{__(message)}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,12 +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")
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
12
  h1 200 - #{__("All ok")}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,13 +1,13 @@
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")}
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
13
  div #{__(message)}
@@ -1,16 +1,16 @@
1
- html
2
- head
3
- link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
4
-
5
- title #{__("Validation 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 400 - #{__("Validation error")}
13
- div #{__(message)}
14
- ul
15
- each param in parameter
1
+ html
2
+ head
3
+ link(rel="icon", type="image/x-icon", href="/_static/favicon.ico")
4
+
5
+ title #{__("Validation 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 400 - #{__("Validation error")}
13
+ div #{__(message)}
14
+ ul
15
+ each param in parameter
16
16
  li #{param.instancePath} #{param.message} ( type: #{param.type} ), schemaPath: #{param.schemaPath}
package/package.json CHANGED
@@ -1,97 +1,99 @@
1
- {
2
- "name": "@spinajs/http",
3
- "version": "2.0.490",
4
- "description": "framework HTTP module base on express.js",
5
- "main": "lib/cjs/index.js",
6
- "module": "lib/mjs/index.js",
7
- "exports": {
8
- ".": {
9
- "types": "./lib/mjs/index.d.ts",
10
- "import": "./lib/mjs/index.js",
11
- "require": "./lib/cjs/index.js"
12
- }
13
- },
14
- "type": "module",
15
- "private": false,
16
- "publishConfig": { "access": "public" },
17
- "engines": {
18
- "node": ">=16.11"
19
- },
20
- "scripts": {
21
- "watch": "tsc -b tsconfig.mjs.json -w",
22
- "build": "npm run clean && npm run compile && npm run copy",
23
- "compile": "tsc -b tsconfig.mjs.json",
24
- "compile:cjs": "tsc -b tsconfig.cjs.json",
25
- "copy": "cpx \"src/views/**/*.{pug,js}\" lib/views/ && cpx \"src/static/**/*\" lib/static/",
26
- "rimraf": "./node_modules/rimraf/bin.js",
27
- "clean": "rimraf lib/ && rimraf tsconfig.tsbuildinfo",
28
- "test": "ts-mocha -p tsconfig.json test/**/*.test.ts",
29
- "coverage": "nyc npm run test",
30
- "build-docs": "rimraf docs && typedoc --options typedoc.json src/",
31
- "format": "prettier --write \"src/**/*.ts\"",
32
- "lint": "eslint -c .eslintrc.cjs --ext .ts src --fix",
33
- "preversion": "npm run lint",
34
- "version": "npm run format && git add -A src"
35
- },
36
- "files": [
37
- "lib/**/*"
38
- ],
39
- "repository": {
40
- "type": "git",
41
- "url": "git+https://github.com/spinajs/main.git"
42
- },
43
- "keywords": [
44
- "spinajs",
45
- "http"
46
- ],
47
- "author": "SpinaJS <spinajs@coderush.pl> (https://github.com/spinajs/main)",
48
- "license": "MIT",
49
- "bugs": {
50
- "url": "https://github.com/spinajs/main/issues"
51
- },
52
- "homepage": "https://github.com/spinajs/main#readme",
53
- "devDependencies": {
54
- "@types/compression": "^1.7.2",
55
- "@types/cookie-parser": "^1.4.3",
56
- "@types/cookie-signature": "^1.1.0",
57
- "@types/cors": "^2.8.13",
58
- "@types/express": "^5.0.1",
59
- "@types/formidable": "^3.4.6",
60
- "@types/luxon": "^3.6.1",
61
- "@types/node": "^22.14.1",
62
- "@types/pug": "^2.0.6",
63
- "@types/qs": "^6.15.1",
64
- "@types/uuid": "^9.0.0",
65
- "cpx": "1.5.0"
66
- },
67
- "dependencies": {
68
- "@spinajs/configuration": "^2.0.490",
69
- "@spinajs/di": "^2.0.490",
70
- "@spinajs/exceptions": "^2.0.490",
71
- "@spinajs/fs": "^2.0.490",
72
- "@spinajs/log": "^2.0.490",
73
- "@spinajs/reflection": "^2.0.490",
74
- "@spinajs/templates": "^2.0.490",
75
- "@spinajs/templates-pug": "^2.0.490",
76
- "@spinajs/util": "^2.0.490",
77
- "@spinajs/validation": "^2.0.490",
78
- "compression": "^1.7.4",
79
- "cookie-parser": "^1.4.6",
80
- "cookie-signature": "^1.2.0",
81
- "cors": "^2.8.5",
82
- "csv": "^6.2.5",
83
- "express": "^5.1.0",
84
- "fast-xml-parser": "^4.5.7",
85
- "formidable": "^3.5.4",
86
- "glob": "^8.1.0",
87
- "helmet": "^6.0.1",
88
- "lodash": "^4.17.21",
89
- "luxon": "^3.6.1",
90
- "mime": "^4.1.0",
91
- "qs": "^6.15.3",
92
- "randomstring": "^1.2.3",
93
- "typescript": "^5.0.0",
94
- "uuid": "^9.0.0"
95
- },
96
- "gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee"
97
- }
1
+ {
2
+ "name": "@spinajs/http",
3
+ "version": "2.0.494",
4
+ "description": "framework HTTP module base on express.js",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/mjs/index.js",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./lib/mjs/index.d.ts",
10
+ "import": "./lib/mjs/index.js",
11
+ "require": "./lib/cjs/index.js"
12
+ }
13
+ },
14
+ "type": "module",
15
+ "private": false,
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "engines": {
20
+ "node": ">=16.11"
21
+ },
22
+ "scripts": {
23
+ "watch": "tsc -b tsconfig.mjs.json -w",
24
+ "build": "npm run clean && npm run compile && npm run copy",
25
+ "compile": "tsc -b tsconfig.mjs.json",
26
+ "compile:cjs": "tsc -b tsconfig.cjs.json",
27
+ "copy": "cpx \"src/views/**/*.{pug,js}\" lib/views/ && cpx \"src/static/**/*\" lib/static/",
28
+ "rimraf": "./node_modules/rimraf/bin.js",
29
+ "clean": "rimraf lib/ && rimraf tsconfig.tsbuildinfo",
30
+ "test": "ts-mocha -p tsconfig.json test/**/*.test.ts",
31
+ "coverage": "nyc npm run test",
32
+ "build-docs": "rimraf docs && typedoc --options typedoc.json src/",
33
+ "format": "prettier --write \"src/**/*.ts\"",
34
+ "lint": "eslint -c .eslintrc.cjs --ext .ts src --fix",
35
+ "preversion": "npm run lint",
36
+ "version": "npm run format && git add -A src"
37
+ },
38
+ "files": [
39
+ "lib/**/*"
40
+ ],
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/spinajs/main.git"
44
+ },
45
+ "keywords": [
46
+ "spinajs",
47
+ "http"
48
+ ],
49
+ "author": "SpinaJS <spinajs@coderush.pl> (https://github.com/spinajs/main)",
50
+ "license": "MIT",
51
+ "bugs": {
52
+ "url": "https://github.com/spinajs/main/issues"
53
+ },
54
+ "homepage": "https://github.com/spinajs/main#readme",
55
+ "devDependencies": {
56
+ "@types/compression": "^1.7.2",
57
+ "@types/cookie-parser": "^1.4.3",
58
+ "@types/cookie-signature": "^1.1.0",
59
+ "@types/cors": "^2.8.13",
60
+ "@types/express": "^5.0.1",
61
+ "@types/formidable": "^3.4.6",
62
+ "@types/luxon": "^3.6.1",
63
+ "@types/node": "^22.14.1",
64
+ "@types/pug": "^2.0.6",
65
+ "@types/qs": "^6.15.1",
66
+ "@types/uuid": "^9.0.0",
67
+ "cpx": "1.5.0"
68
+ },
69
+ "dependencies": {
70
+ "@spinajs/configuration": "2.0.494",
71
+ "@spinajs/di": "2.0.494",
72
+ "@spinajs/exceptions": "2.0.494",
73
+ "@spinajs/fs": "2.0.494",
74
+ "@spinajs/log": "2.0.494",
75
+ "@spinajs/reflection": "2.0.494",
76
+ "@spinajs/templates": "2.0.494",
77
+ "@spinajs/templates-pug": "2.0.494",
78
+ "@spinajs/util": "2.0.494",
79
+ "@spinajs/validation": "2.0.494",
80
+ "compression": "^1.7.4",
81
+ "cookie-parser": "^1.4.6",
82
+ "cookie-signature": "^1.2.0",
83
+ "cors": "^2.8.5",
84
+ "csv": "^6.2.5",
85
+ "express": "^5.1.0",
86
+ "fast-xml-parser": "^4.5.7",
87
+ "formidable": "^3.5.4",
88
+ "glob": "^8.1.0",
89
+ "helmet": "^6.0.1",
90
+ "lodash": "^4.17.21",
91
+ "luxon": "^3.6.1",
92
+ "mime": "^4.1.0",
93
+ "qs": "^6.15.3",
94
+ "randomstring": "^1.2.3",
95
+ "typescript": "^5.0.0",
96
+ "uuid": "^9.0.0"
97
+ },
98
+ "gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee"
99
+ }