error-message-utils 1.1.3 → 1.1.4

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.
@@ -0,0 +1,35 @@
1
+ # defaults
2
+ **/.git
3
+ **/.svn
4
+ **/.hg
5
+ **/node_modules
6
+
7
+ # build and dist Output
8
+ dist
9
+ build
10
+ .out
11
+ .next
12
+
13
+ # logs
14
+ npm-debug.log
15
+ yarn-debug.log
16
+ yarn-error.log
17
+ pnpm-debug.log
18
+
19
+ # environment files
20
+ .env
21
+ .env.local
22
+ .env.*.local
23
+
24
+ # lockfiles (if using a monorepo or specific package manager setup)
25
+ package-lock.json
26
+ yarn.lock
27
+ pnpm-lock.yaml
28
+
29
+ # miscellaneous
30
+ coverage/
31
+ .DS_Store
32
+ *.min.js
33
+ public/
34
+ tmp/
35
+ *.md
package/.prettierrc ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": true,
4
+ "tabWidth": 2,
5
+ "useTabs": false,
6
+ "trailingComma": "all",
7
+ "printWidth": 100,
8
+ "bracketSpacing": true,
9
+ "arrowParens": "always",
10
+ "endOfLine": "lf",
11
+ "singleAttributePerLine": true
12
+ }
package/README.md CHANGED
@@ -12,7 +12,7 @@ The `error-message-utils` package simplifies error management in your web applic
12
12
 
13
13
  Install the package:
14
14
  ```bash
15
- npm install -S error-message-utils
15
+ npm i -S error-message-utils
16
16
  ```
17
17
 
18
18
  ### Examples
@@ -165,28 +165,3 @@ npm run test:unit
165
165
  ## License
166
166
 
167
167
  [MIT](https://choosealicense.com/licenses/mit/)
168
-
169
-
170
-
171
-
172
-
173
- <br/>
174
-
175
- ## Deployment
176
-
177
- Install dependencies:
178
- ```bash
179
- npm install
180
- ```
181
-
182
-
183
- Build the library:
184
- ```bash
185
- npm start
186
- ```
187
-
188
-
189
- Publish to `npm`:
190
- ```bash
191
- npm publish
192
- ```
@@ -30,4 +30,4 @@ type IDecodedError = {
30
30
  message: string;
31
31
  code: IErrorCode;
32
32
  };
33
- export type { IErrorCodeWrapper, IErrorCode, IUnwrappedErrorCode, IDecodedError, };
33
+ export type { IErrorCodeWrapper, IErrorCode, IUnwrappedErrorCode, IDecodedError };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "error-message-utils",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "The error-message-utils package simplifies error management in your web applications and RESTful APIs. It ensures consistent and scalable handling of error messages, saving you time and effort. Moreover, it gives you the ability to assign custom error codes so all possible cases can be handled accordingly.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "scripts": {
9
- "start": "ts-lib-builder --tsconfig=tsconfig.build.json",
9
+ "build": "ts-lib-builder --tsconfig=tsconfig.build.json",
10
10
  "test": "echo \"Error: tests are executed with npm run test:(integration|unit)\" && exit 1",
11
11
  "test:integration": "jest --config=jest.test-integration.config.json --no-cache",
12
12
  "test:unit": "jest --config=jest.test-unit.config.json --no-cache"
@@ -37,14 +37,16 @@
37
37
  },
38
38
  "homepage": "https://github.com/jesusgraterol/error-message-utils#readme",
39
39
  "devDependencies": {
40
- "@types/jest": "^29.5.14",
41
- "@types/node": "^20.17.9",
42
- "@typescript-eslint/eslint-plugin": "^7.18.0",
43
- "@typescript-eslint/parser": "^7.18.0",
44
- "eslint-config-airbnb-typescript": "^18.0.0",
45
- "jest": "^29.7.0",
46
- "ts-jest": "^29.2.5",
47
- "ts-lib-builder": "^1.0.5",
48
- "typescript": "^5.7.2"
40
+ "@types/jest": "29.5.14",
41
+ "@types/node": "20.17.9",
42
+ "@typescript-eslint/eslint-plugin": "7.18.0",
43
+ "@typescript-eslint/parser": "7.18.0",
44
+ "eslint-config-airbnb-typescript": "18.0.0",
45
+ "eslint-config-prettier": "10.1.5",
46
+ "jest": "29.7.0",
47
+ "prettier": "3.6.2",
48
+ "ts-jest": "29.2.5",
49
+ "ts-lib-builder": "1.0.7",
50
+ "typescript": "5.7.2"
49
51
  }
50
52
  }