c2-http 0.0.1 → 1.0.0
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 +4 -17
- package/dist/index.d.ts +0 -4
- package/dist/index.js +1 -6
- package/package.json +28 -26
- package/yarn-error.log +38 -595
- package/dist/config/contants.d.ts +0 -2
- package/dist/config/contants.js +0 -5
- package/dist/config/i18n.d.ts +0 -3
- package/dist/config/i18n.js +0 -35
- package/dist/controller/AController.d.ts +0 -8
- package/dist/controller/AController.js +0 -29
- package/dist/controller/CrudController.d.ts +0 -17
- package/dist/controller/CrudController.js +0 -61
- package/dist/flow/authorization/MiddlewareCheckRolesFlow.d.ts +0 -7
- package/dist/flow/authorization/MiddlewareCheckRolesFlow.js +0 -48
- package/dist/flow/dispatcher/HttpDownloadDispatchHandlingFlow.d.ts +0 -2
- package/dist/flow/dispatcher/HttpDownloadDispatchHandlingFlow.js +0 -23
- package/dist/flow/dispatcher/HttpDownloadDispatchSuccessFlow.d.ts +0 -6
- package/dist/flow/dispatcher/HttpDownloadDispatchSuccessFlow.js +0 -8
- package/dist/flow/dispatcher/HttpJsonDispatchErrorFlow.d.ts +0 -7
- package/dist/flow/dispatcher/HttpJsonDispatchErrorFlow.js +0 -9
- package/dist/flow/dispatcher/HttpJsonDispatchHandlingFlow.d.ts +0 -2
- package/dist/flow/dispatcher/HttpJsonDispatchHandlingFlow.js +0 -22
- package/dist/flow/dispatcher/HttpJsonDispatchSuccessFlow.d.ts +0 -6
- package/dist/flow/dispatcher/HttpJsonDispatchSuccessFlow.js +0 -8
- package/dist/model/HttpError.d.ts +0 -6
- package/dist/model/HttpError.js +0 -11
- package/dist/model/TControllerOptions.d.ts +0 -7
- package/dist/model/TControllerOptions.js +0 -2
- package/dist/model/TI18n.d.ts +0 -3
- package/dist/model/TI18n.js +0 -2
- package/dist/utils/Utils.d.ts +0 -2
- package/dist/utils/Utils.js +0 -31
- package/src/config/contants.ts +0 -2
- package/src/config/i18n.ts +0 -33
- package/src/controller/AController.ts +0 -40
- package/src/controller/CrudController.ts +0 -57
- package/src/flow/authorization/MiddlewareCheckRolesFlow.ts +0 -47
- package/src/flow/dispatcher/HttpDownloadDispatchHandlingFlow.ts +0 -21
- package/src/flow/dispatcher/HttpDownloadDispatchSuccessFlow.ts +0 -9
- package/src/flow/dispatcher/HttpJsonDispatchErrorFlow.ts +0 -11
- package/src/flow/dispatcher/HttpJsonDispatchHandlingFlow.ts +0 -20
- package/src/flow/dispatcher/HttpJsonDispatchSuccessFlow.ts +0 -9
- package/src/index.ts +0 -12
- package/src/model/HttpError.ts +0 -12
- package/src/model/TControllerOptions.ts +0 -7
- package/src/model/TI18n.ts +0 -3
- package/src/utils/Utils.ts +0 -34
- package/tsconfig.json +0 -46
package/README.md
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Biblioteca de HTTP
|
|
2
|
+
Biblioteca com configurações HTTP para APIs
|
|
2
3
|
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
Commit all changes with:
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
git add .
|
|
9
|
-
git commit -m 'your changes details'
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
Running one of below, according with your changes:
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
npm run publish-patch --force -m "Message to tag publish" // to a new patch
|
|
16
|
-
npm run publish-minor --force -m "Message to tag publish" // to a new minor
|
|
17
|
-
npm run publish-major --force -m "Message to tag publish" // to a new major
|
|
18
|
-
```
|
|
4
|
+
## Pré-requisitos
|
|
5
|
+
Utilizar o express na API
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Biblioteca Typescript para API NodeJS",
|
|
5
|
+
"repository": "https://cabralsilva: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@github.com/cabralsilva/c2-http.git",
|
|
6
|
+
"author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
5
8
|
"main": "dist/index.js",
|
|
6
9
|
"types": "dist/index.d.ts",
|
|
7
10
|
"scripts": {
|
|
8
|
-
"
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
+
"lint": "eslint ./src/*",
|
|
13
|
+
"lint:fix": "eslint ./src/* --fix",
|
|
9
14
|
"build": "tsc --skipLibCheck",
|
|
10
|
-
"preversion": "tsc
|
|
15
|
+
"preversion": "tsc --skipLibCheck",
|
|
11
16
|
"postversion": "git push && git push --tags && npm publish",
|
|
12
|
-
"publish-patch": "npm version patch",
|
|
17
|
+
"publish-patch": "npm version patch --force",
|
|
13
18
|
"publish-minor": "npm version minor",
|
|
14
19
|
"publish-major": "npm version major"
|
|
15
20
|
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://gitlab.com/cabral_consultoria/c2-http.git"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"http",
|
|
22
|
-
"crud"
|
|
23
|
-
],
|
|
24
|
-
"author": "Cabral Consultoria e Assessoria em Software",
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://gitlab.com/cabral_consultoria/c2-http/issues"
|
|
28
|
-
},
|
|
29
|
-
"homepage": "https://gitlab.com/cabral_consultoria/c2-http#readme",
|
|
30
21
|
"dependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
22
|
+
"@ant-design/icons": "^5.3.7",
|
|
23
|
+
"@stomp/stompjs": "^7.0.0",
|
|
24
|
+
"@types/axios": "^0.14.0",
|
|
25
|
+
"@types/moment": "^2.13.0",
|
|
26
|
+
"@types/node": "^20.14.2",
|
|
27
|
+
"antd": "^5.18.0",
|
|
28
|
+
"axios": "^1.7.2",
|
|
29
|
+
"http-status": "^1.7.4",
|
|
30
|
+
"moment": "^2.30.1",
|
|
31
|
+
"qs": "^6.12.1",
|
|
32
|
+
"react": "^18.2.0",
|
|
33
|
+
"react-dom": "^18.2.0",
|
|
34
|
+
"react-router-dom": "^6.23.1"
|
|
37
35
|
},
|
|
38
36
|
"devDependencies": {
|
|
39
|
-
"
|
|
37
|
+
"@types/qs": "^6.9.15",
|
|
38
|
+
"@types/react": "^18.2.66",
|
|
39
|
+
"@types/react-dom": "^18.2.22",
|
|
40
|
+
"sass": "^1.77.4",
|
|
41
|
+
"typescript": "^5.2.2"
|
|
40
42
|
}
|
|
41
43
|
}
|