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.
Files changed (49) hide show
  1. package/README.md +4 -17
  2. package/dist/index.d.ts +0 -4
  3. package/dist/index.js +1 -6
  4. package/package.json +28 -26
  5. package/yarn-error.log +38 -595
  6. package/dist/config/contants.d.ts +0 -2
  7. package/dist/config/contants.js +0 -5
  8. package/dist/config/i18n.d.ts +0 -3
  9. package/dist/config/i18n.js +0 -35
  10. package/dist/controller/AController.d.ts +0 -8
  11. package/dist/controller/AController.js +0 -29
  12. package/dist/controller/CrudController.d.ts +0 -17
  13. package/dist/controller/CrudController.js +0 -61
  14. package/dist/flow/authorization/MiddlewareCheckRolesFlow.d.ts +0 -7
  15. package/dist/flow/authorization/MiddlewareCheckRolesFlow.js +0 -48
  16. package/dist/flow/dispatcher/HttpDownloadDispatchHandlingFlow.d.ts +0 -2
  17. package/dist/flow/dispatcher/HttpDownloadDispatchHandlingFlow.js +0 -23
  18. package/dist/flow/dispatcher/HttpDownloadDispatchSuccessFlow.d.ts +0 -6
  19. package/dist/flow/dispatcher/HttpDownloadDispatchSuccessFlow.js +0 -8
  20. package/dist/flow/dispatcher/HttpJsonDispatchErrorFlow.d.ts +0 -7
  21. package/dist/flow/dispatcher/HttpJsonDispatchErrorFlow.js +0 -9
  22. package/dist/flow/dispatcher/HttpJsonDispatchHandlingFlow.d.ts +0 -2
  23. package/dist/flow/dispatcher/HttpJsonDispatchHandlingFlow.js +0 -22
  24. package/dist/flow/dispatcher/HttpJsonDispatchSuccessFlow.d.ts +0 -6
  25. package/dist/flow/dispatcher/HttpJsonDispatchSuccessFlow.js +0 -8
  26. package/dist/model/HttpError.d.ts +0 -6
  27. package/dist/model/HttpError.js +0 -11
  28. package/dist/model/TControllerOptions.d.ts +0 -7
  29. package/dist/model/TControllerOptions.js +0 -2
  30. package/dist/model/TI18n.d.ts +0 -3
  31. package/dist/model/TI18n.js +0 -2
  32. package/dist/utils/Utils.d.ts +0 -2
  33. package/dist/utils/Utils.js +0 -31
  34. package/src/config/contants.ts +0 -2
  35. package/src/config/i18n.ts +0 -33
  36. package/src/controller/AController.ts +0 -40
  37. package/src/controller/CrudController.ts +0 -57
  38. package/src/flow/authorization/MiddlewareCheckRolesFlow.ts +0 -47
  39. package/src/flow/dispatcher/HttpDownloadDispatchHandlingFlow.ts +0 -21
  40. package/src/flow/dispatcher/HttpDownloadDispatchSuccessFlow.ts +0 -9
  41. package/src/flow/dispatcher/HttpJsonDispatchErrorFlow.ts +0 -11
  42. package/src/flow/dispatcher/HttpJsonDispatchHandlingFlow.ts +0 -20
  43. package/src/flow/dispatcher/HttpJsonDispatchSuccessFlow.ts +0 -9
  44. package/src/index.ts +0 -12
  45. package/src/model/HttpError.ts +0 -12
  46. package/src/model/TControllerOptions.ts +0 -7
  47. package/src/model/TI18n.ts +0 -3
  48. package/src/utils/Utils.ts +0 -34
  49. package/tsconfig.json +0 -46
package/README.md CHANGED
@@ -1,18 +1,5 @@
1
- # c2-mongoose
1
+ # Biblioteca de HTTP
2
+ Biblioteca com configurações HTTP para APIs
2
3
 
3
- ## Guide to publish
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
@@ -1,4 +0,0 @@
1
- import { TControllerOptions } from "./model/TControllerOptions";
2
- import { TI18n } from "./model/TI18n";
3
- declare const initialize: (i18n: TI18n) => void;
4
- export { initialize, TControllerOptions };
package/dist/index.js CHANGED
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initialize = void 0;
4
- const initialize = (i18n) => {
5
- global.i18nMessages = i18n;
6
- };
7
- exports.initialize = initialize;
2
+ console.log("innit");
package/package.json CHANGED
@@ -1,41 +1,43 @@
1
1
  {
2
2
  "name": "c2-http",
3
- "version": "0.0.1",
4
- "description": "Lib to make any main request http and use as basic crud",
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
- "watch": "tsc -w --skipLibCheck",
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 --skipLibCheck",
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
- "@types/express": "^4.17.17",
32
- "@types/http-status": "^1.1.2",
33
- "dotenv": "^16.0.3",
34
- "express": "^4.18.2",
35
- "express-http-context": "^1.2.4",
36
- "http-status": "^1.6.2"
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
- "typescript": "^4.9.5"
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
  }