apienvelope 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/LICENSE +21 -0
- package/README.md +293 -0
- package/dist/chunk-2TAKYP6Q.mjs +213 -0
- package/dist/index.d.mts +842 -0
- package/dist/index.d.ts +842 -0
- package/dist/index.js +1553 -0
- package/dist/index.mjs +1254 -0
- package/dist/predefined-FHOIIQHS.mjs +26 -0
- package/package.json +65 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BadRequestError,
|
|
3
|
+
ConflictError,
|
|
4
|
+
ForbiddenError,
|
|
5
|
+
InternalServerError,
|
|
6
|
+
NotFoundError,
|
|
7
|
+
RateLimitError,
|
|
8
|
+
ServiceUnavailableError,
|
|
9
|
+
UnauthorizedError,
|
|
10
|
+
UnprocessableEntityError,
|
|
11
|
+
ValidationError,
|
|
12
|
+
createError
|
|
13
|
+
} from "./chunk-2TAKYP6Q.mjs";
|
|
14
|
+
export {
|
|
15
|
+
BadRequestError,
|
|
16
|
+
ConflictError,
|
|
17
|
+
ForbiddenError,
|
|
18
|
+
InternalServerError,
|
|
19
|
+
NotFoundError,
|
|
20
|
+
RateLimitError,
|
|
21
|
+
ServiceUnavailableError,
|
|
22
|
+
UnauthorizedError,
|
|
23
|
+
UnprocessableEntityError,
|
|
24
|
+
ValidationError,
|
|
25
|
+
createError
|
|
26
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "apienvelope",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Production-grade npm package for standardized API response formatting in Express applications",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
20
|
+
"test": "vitest run",
|
|
21
|
+
"test:watch": "vitest",
|
|
22
|
+
"test:coverage": "vitest run --coverage",
|
|
23
|
+
"lint": "eslint src --ext .ts",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"express",
|
|
28
|
+
"api",
|
|
29
|
+
"response",
|
|
30
|
+
"formatter",
|
|
31
|
+
"middleware",
|
|
32
|
+
"typescript",
|
|
33
|
+
"error-handling",
|
|
34
|
+
"pagination",
|
|
35
|
+
"envelope",
|
|
36
|
+
"rest-api"
|
|
37
|
+
],
|
|
38
|
+
"author": "Sepehr Mohseni <https://github.com/sepehr-mohseni>",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"homepage": "https://github.com/sepehr-mohseni/apienvelope#readme",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/sepehr-mohseni/apienvelope.git"
|
|
44
|
+
},
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/sepehr-mohseni/apienvelope/issues"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"express": "^4.0.0 || ^5.0.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/express": "^4.17.21",
|
|
53
|
+
"@types/node": "^20.10.0",
|
|
54
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
55
|
+
"express": "^4.18.2",
|
|
56
|
+
"supertest": "^6.3.3",
|
|
57
|
+
"@types/supertest": "^6.0.2",
|
|
58
|
+
"tsup": "^8.0.1",
|
|
59
|
+
"typescript": "^5.3.3",
|
|
60
|
+
"vitest": "^1.1.0"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=16.0.0"
|
|
64
|
+
}
|
|
65
|
+
}
|