bootpress 5.0.0 → 5.0.1
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/README.md +1 -2
- package/package.json +34 -33
- package/helpers/tester.ts +0 -12
package/README.md
CHANGED
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
#### Basic usage:
|
|
9
9
|
```ts
|
|
10
10
|
import express from "express";
|
|
11
|
-
import bodyparser from "body-parser";
|
|
12
11
|
import { HttpError, PassParams, RestService } from "bootpress";
|
|
13
12
|
import { asInteger, getOrThrow } from "bootpress/helpers";
|
|
14
13
|
|
|
15
14
|
const app = express();
|
|
16
|
-
app.use(
|
|
15
|
+
app.use(express.json());
|
|
17
16
|
|
|
18
17
|
const UserServiceImpl = {
|
|
19
18
|
users: [1, 2, 3, 4],
|
package/package.json
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bootpress",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"description": "REST service methods for express",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {},
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/ufukbakan/bootpress.git"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"bootpress",
|
|
13
|
-
"express",
|
|
14
|
-
"rest",
|
|
15
|
-
"service",
|
|
16
|
-
"methods",
|
|
17
|
-
"spring",
|
|
18
|
-
"boot",
|
|
19
|
-
"like"
|
|
20
|
-
],
|
|
21
|
-
"author": "Ufuk Bakan",
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"bugs": {
|
|
24
|
-
"url": "https://github.com/ufukbakan/bootpress/issues"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://github.com/ufukbakan/bootpress#readme",
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "bootpress",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"description": "REST service methods for express",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {},
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ufukbakan/bootpress.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"bootpress",
|
|
13
|
+
"express",
|
|
14
|
+
"rest",
|
|
15
|
+
"service",
|
|
16
|
+
"methods",
|
|
17
|
+
"spring",
|
|
18
|
+
"boot",
|
|
19
|
+
"like"
|
|
20
|
+
],
|
|
21
|
+
"author": "Ufuk Bakan",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/ufukbakan/bootpress/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/ufukbakan/bootpress#readme",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"express": "^4.18.2"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/body-parser": "^1.19.2",
|
|
32
|
+
"@types/express": "^4.17.17"
|
|
33
|
+
}
|
|
34
|
+
}
|