@exyconn/common 2.0.0 → 2.3.2
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 +864 -261
- package/dist/{index-BLltj-zN.d.ts → client/hooks/index.d.mts} +1 -195
- package/dist/{index-CIUdLBjA.d.mts → client/hooks/index.d.ts} +1 -195
- package/dist/client/hooks/index.js +2276 -0
- package/dist/client/hooks/index.js.map +1 -0
- package/dist/client/hooks/index.mjs +2217 -0
- package/dist/client/hooks/index.mjs.map +1 -0
- package/dist/client/index.d.mts +4 -1
- package/dist/client/index.d.ts +4 -1
- package/dist/client/index.js +2693 -19
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +2634 -21
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/web/index.d.mts +1461 -0
- package/dist/client/web/index.d.ts +1461 -0
- package/dist/client/web/index.js +2681 -0
- package/dist/client/web/index.js.map +1 -0
- package/dist/client/web/index.mjs +2618 -0
- package/dist/client/web/index.mjs.map +1 -0
- package/dist/data/brand-identity.d.mts +149 -0
- package/dist/data/brand-identity.d.ts +149 -0
- package/dist/data/brand-identity.js +235 -0
- package/dist/data/brand-identity.js.map +1 -0
- package/dist/data/brand-identity.mjs +220 -0
- package/dist/data/brand-identity.mjs.map +1 -0
- package/dist/data/countries.d.mts +61 -0
- package/dist/data/countries.d.ts +61 -0
- package/dist/data/countries.js +987 -0
- package/dist/data/countries.js.map +1 -0
- package/dist/data/countries.mjs +971 -0
- package/dist/data/countries.mjs.map +1 -0
- package/dist/data/currencies.d.mts +19 -0
- package/dist/data/currencies.d.ts +19 -0
- package/dist/data/currencies.js +162 -0
- package/dist/data/currencies.js.map +1 -0
- package/dist/data/currencies.mjs +153 -0
- package/dist/data/currencies.mjs.map +1 -0
- package/dist/data/index.d.mts +7 -0
- package/dist/data/index.d.ts +7 -0
- package/dist/data/index.js +2087 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data/index.mjs +1948 -0
- package/dist/data/index.mjs.map +1 -0
- package/dist/data/phone-codes.d.mts +15 -0
- package/dist/data/phone-codes.d.ts +15 -0
- package/dist/data/phone-codes.js +219 -0
- package/dist/data/phone-codes.js.map +1 -0
- package/dist/data/phone-codes.mjs +211 -0
- package/dist/data/phone-codes.mjs.map +1 -0
- package/dist/data/regex.d.mts +287 -0
- package/dist/data/regex.d.ts +287 -0
- package/dist/data/regex.js +306 -0
- package/dist/data/regex.js.map +1 -0
- package/dist/data/regex.mjs +208 -0
- package/dist/data/regex.mjs.map +1 -0
- package/dist/data/timezones.d.mts +16 -0
- package/dist/data/timezones.d.ts +16 -0
- package/dist/data/timezones.js +98 -0
- package/dist/data/timezones.js.map +1 -0
- package/dist/data/timezones.mjs +89 -0
- package/dist/data/timezones.mjs.map +1 -0
- package/dist/index-01hoqibP.d.ts +119 -0
- package/dist/index-D3yCCjBZ.d.mts +119 -0
- package/dist/index-D9a9oxQy.d.ts +305 -0
- package/dist/index-DKn4raO7.d.ts +222 -0
- package/dist/index-DuxL84IW.d.mts +305 -0
- package/dist/index-NS8dS0p9.d.mts +222 -0
- package/dist/index-Nqm5_lwT.d.ts +188 -0
- package/dist/index-jBi3V6e5.d.mts +188 -0
- package/dist/index.d.mts +21 -729
- package/dist/index.d.ts +21 -729
- package/dist/index.js +3470 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3457 -104
- package/dist/index.mjs.map +1 -1
- package/dist/server/configs/index.d.mts +602 -0
- package/dist/server/configs/index.d.ts +602 -0
- package/dist/server/configs/index.js +707 -0
- package/dist/server/configs/index.js.map +1 -0
- package/dist/server/configs/index.mjs +665 -0
- package/dist/server/configs/index.mjs.map +1 -0
- package/dist/server/index.d.mts +3 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.js +699 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +662 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/shared/config/index.d.mts +40 -0
- package/dist/shared/config/index.d.ts +40 -0
- package/dist/shared/config/index.js +58 -0
- package/dist/shared/config/index.js.map +1 -0
- package/dist/shared/config/index.mjs +51 -0
- package/dist/shared/config/index.mjs.map +1 -0
- package/dist/shared/constants/index.d.mts +593 -0
- package/dist/shared/constants/index.d.ts +593 -0
- package/dist/shared/constants/index.js +391 -0
- package/dist/shared/constants/index.js.map +1 -0
- package/dist/shared/constants/index.mjs +360 -0
- package/dist/shared/constants/index.mjs.map +1 -0
- package/dist/shared/index.d.mts +5 -1
- package/dist/shared/index.d.ts +5 -1
- package/dist/shared/types/index.d.mts +140 -0
- package/dist/shared/types/index.d.ts +140 -0
- package/dist/shared/types/index.js +4 -0
- package/dist/shared/types/index.js.map +1 -0
- package/dist/shared/types/index.mjs +3 -0
- package/dist/shared/types/index.mjs.map +1 -0
- package/dist/shared/utils/index.d.mts +255 -0
- package/dist/shared/utils/index.d.ts +255 -0
- package/dist/shared/utils/index.js +623 -0
- package/dist/shared/utils/index.js.map +1 -0
- package/dist/shared/utils/index.mjs +324 -0
- package/dist/shared/utils/index.mjs.map +1 -0
- package/dist/shared/validation/index.d.mts +258 -0
- package/dist/shared/validation/index.d.ts +258 -0
- package/dist/shared/validation/index.js +185 -0
- package/dist/shared/validation/index.js.map +1 -0
- package/dist/shared/validation/index.mjs +172 -0
- package/dist/shared/validation/index.mjs.map +1 -0
- package/package.json +151 -56
- package/dist/index-DEzgM15j.d.ts +0 -67
- package/dist/index-DNFVgQx8.d.ts +0 -1375
- package/dist/index-DbV04Dx8.d.mts +0 -67
- package/dist/index-DfqEP6Oe.d.mts +0 -1375
package/package.json
CHANGED
|
@@ -1,182 +1,256 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exyconn/common",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.3.2",
|
|
4
|
+
"description": "Production-ready common utilities shared across all Exyconn projects - includes server utilities, client hooks, shared types, data modules, validation helpers, and dynamic configurations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
10
12
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
+
"require": "./dist/index.js"
|
|
13
14
|
},
|
|
14
15
|
"./server": {
|
|
16
|
+
"types": "./dist/server/index.d.ts",
|
|
15
17
|
"import": "./dist/server/index.mjs",
|
|
16
|
-
"require": "./dist/server/index.js"
|
|
17
|
-
"types": "./dist/server/index.d.ts"
|
|
18
|
+
"require": "./dist/server/index.js"
|
|
18
19
|
},
|
|
19
20
|
"./server/response": {
|
|
21
|
+
"types": "./dist/server/response/index.d.ts",
|
|
20
22
|
"import": "./dist/server/response/index.mjs",
|
|
21
|
-
"require": "./dist/server/response/index.js"
|
|
22
|
-
"types": "./dist/server/response/index.d.ts"
|
|
23
|
+
"require": "./dist/server/response/index.js"
|
|
23
24
|
},
|
|
24
25
|
"./server/enums": {
|
|
26
|
+
"types": "./dist/server/enums/index.d.ts",
|
|
25
27
|
"import": "./dist/server/enums/index.mjs",
|
|
26
|
-
"require": "./dist/server/enums/index.js"
|
|
27
|
-
"types": "./dist/server/enums/index.d.ts"
|
|
28
|
+
"require": "./dist/server/enums/index.js"
|
|
28
29
|
},
|
|
29
30
|
"./server/logger": {
|
|
31
|
+
"types": "./dist/server/logger/index.d.ts",
|
|
30
32
|
"import": "./dist/server/logger/index.mjs",
|
|
31
|
-
"require": "./dist/server/logger/index.js"
|
|
32
|
-
"types": "./dist/server/logger/index.d.ts"
|
|
33
|
+
"require": "./dist/server/logger/index.js"
|
|
33
34
|
},
|
|
34
35
|
"./server/db": {
|
|
36
|
+
"types": "./dist/server/db/index.d.ts",
|
|
35
37
|
"import": "./dist/server/db/index.mjs",
|
|
36
|
-
"require": "./dist/server/db/index.js"
|
|
37
|
-
"types": "./dist/server/db/index.d.ts"
|
|
38
|
+
"require": "./dist/server/db/index.js"
|
|
38
39
|
},
|
|
39
40
|
"./server/middleware": {
|
|
41
|
+
"types": "./dist/server/middleware/index.d.ts",
|
|
40
42
|
"import": "./dist/server/middleware/index.mjs",
|
|
41
|
-
"require": "./dist/server/middleware/index.js"
|
|
42
|
-
"types": "./dist/server/middleware/index.d.ts"
|
|
43
|
+
"require": "./dist/server/middleware/index.js"
|
|
43
44
|
},
|
|
44
45
|
"./server/utils": {
|
|
46
|
+
"types": "./dist/server/utils/index.d.ts",
|
|
45
47
|
"import": "./dist/server/utils/index.mjs",
|
|
46
|
-
"require": "./dist/server/utils/index.js"
|
|
47
|
-
|
|
48
|
+
"require": "./dist/server/utils/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./server/configs": {
|
|
51
|
+
"types": "./dist/server/configs/index.d.ts",
|
|
52
|
+
"import": "./dist/server/configs/index.mjs",
|
|
53
|
+
"require": "./dist/server/configs/index.js"
|
|
48
54
|
},
|
|
49
55
|
"./client": {
|
|
56
|
+
"types": "./dist/client/index.d.ts",
|
|
50
57
|
"import": "./dist/client/index.mjs",
|
|
51
|
-
"require": "./dist/client/index.js"
|
|
52
|
-
"types": "./dist/client/index.d.ts"
|
|
58
|
+
"require": "./dist/client/index.js"
|
|
53
59
|
},
|
|
54
60
|
"./client/http": {
|
|
61
|
+
"types": "./dist/client/http/index.d.ts",
|
|
55
62
|
"import": "./dist/client/http/index.mjs",
|
|
56
|
-
"require": "./dist/client/http/index.js"
|
|
57
|
-
"types": "./dist/client/http/index.d.ts"
|
|
63
|
+
"require": "./dist/client/http/index.js"
|
|
58
64
|
},
|
|
59
65
|
"./client/logger": {
|
|
66
|
+
"types": "./dist/client/logger/index.d.ts",
|
|
60
67
|
"import": "./dist/client/logger/index.mjs",
|
|
61
|
-
"require": "./dist/client/logger/index.js"
|
|
62
|
-
"types": "./dist/client/logger/index.d.ts"
|
|
68
|
+
"require": "./dist/client/logger/index.js"
|
|
63
69
|
},
|
|
64
70
|
"./client/utils": {
|
|
71
|
+
"types": "./dist/client/utils/index.d.ts",
|
|
65
72
|
"import": "./dist/client/utils/index.mjs",
|
|
66
|
-
"require": "./dist/client/utils/index.js"
|
|
67
|
-
"types": "./dist/client/utils/index.d.ts"
|
|
73
|
+
"require": "./dist/client/utils/index.js"
|
|
68
74
|
},
|
|
69
75
|
"./client/hooks": {
|
|
76
|
+
"types": "./dist/client/hooks/index.d.ts",
|
|
70
77
|
"import": "./dist/client/hooks/index.mjs",
|
|
71
|
-
"require": "./dist/client/hooks/index.js"
|
|
72
|
-
"types": "./dist/client/hooks/index.d.ts"
|
|
78
|
+
"require": "./dist/client/hooks/index.js"
|
|
73
79
|
},
|
|
74
80
|
"./shared": {
|
|
81
|
+
"types": "./dist/shared/index.d.ts",
|
|
75
82
|
"import": "./dist/shared/index.mjs",
|
|
76
|
-
"require": "./dist/shared/index.js"
|
|
77
|
-
"types": "./dist/shared/index.d.ts"
|
|
83
|
+
"require": "./dist/shared/index.js"
|
|
78
84
|
},
|
|
79
85
|
"./shared/types": {
|
|
86
|
+
"types": "./dist/shared/types/index.d.ts",
|
|
80
87
|
"import": "./dist/shared/types/index.mjs",
|
|
81
|
-
"require": "./dist/shared/types/index.js"
|
|
82
|
-
"types": "./dist/shared/types/index.d.ts"
|
|
88
|
+
"require": "./dist/shared/types/index.js"
|
|
83
89
|
},
|
|
84
90
|
"./shared/validation": {
|
|
91
|
+
"types": "./dist/shared/validation/index.d.ts",
|
|
85
92
|
"import": "./dist/shared/validation/index.mjs",
|
|
86
|
-
"require": "./dist/shared/validation/index.js"
|
|
87
|
-
"types": "./dist/shared/validation/index.d.ts"
|
|
93
|
+
"require": "./dist/shared/validation/index.js"
|
|
88
94
|
},
|
|
89
95
|
"./shared/utils": {
|
|
96
|
+
"types": "./dist/shared/utils/index.d.ts",
|
|
90
97
|
"import": "./dist/shared/utils/index.mjs",
|
|
91
|
-
"require": "./dist/shared/utils/index.js"
|
|
92
|
-
|
|
98
|
+
"require": "./dist/shared/utils/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./shared/constants": {
|
|
101
|
+
"types": "./dist/shared/constants/index.d.ts",
|
|
102
|
+
"import": "./dist/shared/constants/index.mjs",
|
|
103
|
+
"require": "./dist/shared/constants/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./shared/config": {
|
|
106
|
+
"types": "./dist/shared/config/index.d.ts",
|
|
107
|
+
"import": "./dist/shared/config/index.mjs",
|
|
108
|
+
"require": "./dist/shared/config/index.js"
|
|
93
109
|
},
|
|
94
110
|
"./data": {
|
|
111
|
+
"types": "./dist/data/index.d.ts",
|
|
95
112
|
"import": "./dist/data/index.mjs",
|
|
96
|
-
"require": "./dist/data/index.js"
|
|
97
|
-
"types": "./dist/data/index.d.ts"
|
|
113
|
+
"require": "./dist/data/index.js"
|
|
98
114
|
},
|
|
99
115
|
"./data/countries": {
|
|
116
|
+
"types": "./dist/data/countries.d.ts",
|
|
100
117
|
"import": "./dist/data/countries.mjs",
|
|
101
|
-
"require": "./dist/data/countries.js"
|
|
102
|
-
"types": "./dist/data/countries.d.ts"
|
|
118
|
+
"require": "./dist/data/countries.js"
|
|
103
119
|
},
|
|
104
120
|
"./data/currencies": {
|
|
121
|
+
"types": "./dist/data/currencies.d.ts",
|
|
105
122
|
"import": "./dist/data/currencies.mjs",
|
|
106
|
-
"require": "./dist/data/currencies.js"
|
|
107
|
-
"types": "./dist/data/currencies.d.ts"
|
|
123
|
+
"require": "./dist/data/currencies.js"
|
|
108
124
|
},
|
|
109
125
|
"./data/phone-codes": {
|
|
126
|
+
"types": "./dist/data/phone-codes.d.ts",
|
|
110
127
|
"import": "./dist/data/phone-codes.mjs",
|
|
111
|
-
"require": "./dist/data/phone-codes.js"
|
|
112
|
-
"types": "./dist/data/phone-codes.d.ts"
|
|
128
|
+
"require": "./dist/data/phone-codes.js"
|
|
113
129
|
},
|
|
114
130
|
"./data/timezones": {
|
|
131
|
+
"types": "./dist/data/timezones.d.ts",
|
|
115
132
|
"import": "./dist/data/timezones.mjs",
|
|
116
|
-
"require": "./dist/data/timezones.js"
|
|
117
|
-
|
|
133
|
+
"require": "./dist/data/timezones.js"
|
|
134
|
+
},
|
|
135
|
+
"./data/regex": {
|
|
136
|
+
"types": "./dist/data/regex.d.ts",
|
|
137
|
+
"import": "./dist/data/regex.mjs",
|
|
138
|
+
"require": "./dist/data/regex.js"
|
|
139
|
+
},
|
|
140
|
+
"./data/brand-identity": {
|
|
141
|
+
"types": "./dist/data/brand-identity.d.ts",
|
|
142
|
+
"import": "./dist/data/brand-identity.mjs",
|
|
143
|
+
"require": "./dist/data/brand-identity.js"
|
|
118
144
|
},
|
|
119
145
|
"./data/logos": {
|
|
146
|
+
"types": "./dist/data/logos.d.ts",
|
|
120
147
|
"import": "./dist/data/logos.mjs",
|
|
121
|
-
"require": "./dist/data/logos.js"
|
|
122
|
-
|
|
148
|
+
"require": "./dist/data/logos.js"
|
|
149
|
+
},
|
|
150
|
+
"./client/web": {
|
|
151
|
+
"types": "./dist/client/web/index.d.ts",
|
|
152
|
+
"import": "./dist/client/web/index.mjs",
|
|
153
|
+
"require": "./dist/client/web/index.js"
|
|
154
|
+
},
|
|
155
|
+
"./client/web/theme": {
|
|
156
|
+
"types": "./dist/client/web/theme/index.d.ts",
|
|
157
|
+
"import": "./dist/client/web/theme/index.mjs",
|
|
158
|
+
"require": "./dist/client/web/theme/index.js"
|
|
159
|
+
},
|
|
160
|
+
"./client/web/astro": {
|
|
161
|
+
"types": "./dist/client/web/astro/index.d.ts",
|
|
162
|
+
"import": "./dist/client/web/astro/index.mjs",
|
|
163
|
+
"require": "./dist/client/web/astro/index.js"
|
|
164
|
+
},
|
|
165
|
+
"./client/web/forms": {
|
|
166
|
+
"types": "./dist/client/web/forms/index.d.ts",
|
|
167
|
+
"import": "./dist/client/web/forms/index.mjs",
|
|
168
|
+
"require": "./dist/client/web/forms/index.js"
|
|
123
169
|
}
|
|
124
170
|
},
|
|
125
171
|
"scripts": {
|
|
126
172
|
"build": "tsup",
|
|
127
173
|
"dev": "tsup --watch",
|
|
128
174
|
"lint": "eslint src/",
|
|
129
|
-
"
|
|
130
|
-
"
|
|
175
|
+
"typecheck": "tsc --noEmit",
|
|
176
|
+
"test": "vitest run",
|
|
177
|
+
"test:watch": "vitest",
|
|
178
|
+
"test:coverage": "vitest run --coverage",
|
|
179
|
+
"prepublishOnly": "npm run typecheck && npm run test && npm run build",
|
|
131
180
|
"publish:patch": "npm version patch && npm publish --access public",
|
|
132
181
|
"publish:minor": "npm version minor && npm publish --access public",
|
|
133
182
|
"publish:major": "npm version major && npm publish --access public",
|
|
134
183
|
"release": "npm run build && npm publish --access public",
|
|
135
184
|
"release:patch": "npm run build && npm version patch && npm publish --access public",
|
|
136
185
|
"release:minor": "npm run build && npm version minor && npm publish --access public",
|
|
137
|
-
"release:major": "npm run build && npm version major && npm publish --access public"
|
|
186
|
+
"release:major": "npm run build && npm version major && npm publish --access public",
|
|
187
|
+
"docs:dev": "cd docs && npm run dev",
|
|
188
|
+
"docs:build": "cd docs && npm run build",
|
|
189
|
+
"docs:start": "cd docs && npm run start",
|
|
190
|
+
"docs:install": "cd docs && npm install"
|
|
138
191
|
},
|
|
139
192
|
"keywords": [
|
|
140
193
|
"common",
|
|
141
194
|
"utils",
|
|
142
195
|
"utilities",
|
|
143
196
|
"shared",
|
|
144
|
-
"exyconn"
|
|
197
|
+
"exyconn",
|
|
198
|
+
"react-hooks",
|
|
199
|
+
"typescript",
|
|
200
|
+
"express",
|
|
201
|
+
"server",
|
|
202
|
+
"client"
|
|
145
203
|
],
|
|
146
204
|
"author": "Exyconn",
|
|
147
205
|
"license": "MIT",
|
|
148
206
|
"devDependencies": {
|
|
207
|
+
"@testing-library/react": "^14.1.0",
|
|
208
|
+
"@types/cors": "^2.8.17",
|
|
149
209
|
"@types/express": "^4.17.21",
|
|
150
210
|
"@types/jsonwebtoken": "^9.0.5",
|
|
151
211
|
"@types/node": "^20.10.0",
|
|
152
212
|
"@types/react": "^18.2.0",
|
|
213
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
153
214
|
"axios": "^1.6.0",
|
|
215
|
+
"cors": "^2.8.5",
|
|
154
216
|
"date-fns": "^3.0.0",
|
|
155
217
|
"date-fns-tz": "^3.0.0",
|
|
156
218
|
"express": "^4.18.0",
|
|
219
|
+
"express-rate-limit": "^7.1.0",
|
|
220
|
+
"formik": "^2.4.0",
|
|
221
|
+
"jsdom": "^23.0.0",
|
|
157
222
|
"jsonwebtoken": "^9.0.0",
|
|
158
223
|
"mongoose": "^8.0.0",
|
|
159
224
|
"react": "^18.2.0",
|
|
160
225
|
"tsup": "^8.0.1",
|
|
161
226
|
"typescript": "^5.3.0",
|
|
227
|
+
"vitest": "^1.0.0",
|
|
162
228
|
"winston": "^3.11.0",
|
|
163
|
-
"winston-daily-rotate-file": "^4.7.0"
|
|
229
|
+
"winston-daily-rotate-file": "^4.7.0",
|
|
230
|
+
"yup": "^1.4.0"
|
|
164
231
|
},
|
|
165
232
|
"peerDependencies": {
|
|
166
233
|
"axios": "^1.6.0",
|
|
234
|
+
"cors": "^2.8.5",
|
|
167
235
|
"date-fns": "^3.0.0",
|
|
168
236
|
"date-fns-tz": "^3.0.0",
|
|
169
237
|
"express": "^4.18.0 || ^5.0.0",
|
|
238
|
+
"express-rate-limit": "^7.0.0",
|
|
239
|
+
"formik": "^2.4.0",
|
|
170
240
|
"jsonwebtoken": "^9.0.0",
|
|
171
241
|
"mongoose": "^8.0.0",
|
|
172
242
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
173
243
|
"winston": "^3.11.0",
|
|
174
|
-
"winston-daily-rotate-file": "^4.7.0"
|
|
244
|
+
"winston-daily-rotate-file": "^4.7.0",
|
|
245
|
+
"yup": "^1.4.0"
|
|
175
246
|
},
|
|
176
247
|
"peerDependenciesMeta": {
|
|
177
248
|
"axios": {
|
|
178
249
|
"optional": true
|
|
179
250
|
},
|
|
251
|
+
"cors": {
|
|
252
|
+
"optional": true
|
|
253
|
+
},
|
|
180
254
|
"date-fns": {
|
|
181
255
|
"optional": true
|
|
182
256
|
},
|
|
@@ -186,6 +260,9 @@
|
|
|
186
260
|
"express": {
|
|
187
261
|
"optional": true
|
|
188
262
|
},
|
|
263
|
+
"express-rate-limit": {
|
|
264
|
+
"optional": true
|
|
265
|
+
},
|
|
189
266
|
"jsonwebtoken": {
|
|
190
267
|
"optional": true
|
|
191
268
|
},
|
|
@@ -200,10 +277,28 @@
|
|
|
200
277
|
},
|
|
201
278
|
"winston-daily-rotate-file": {
|
|
202
279
|
"optional": true
|
|
280
|
+
},
|
|
281
|
+
"formik": {
|
|
282
|
+
"optional": true
|
|
283
|
+
},
|
|
284
|
+
"yup": {
|
|
285
|
+
"optional": true
|
|
203
286
|
}
|
|
204
287
|
},
|
|
205
288
|
"files": [
|
|
206
289
|
"dist",
|
|
207
|
-
"README.md"
|
|
208
|
-
|
|
290
|
+
"README.md",
|
|
291
|
+
"CHANGELOG.md"
|
|
292
|
+
],
|
|
293
|
+
"engines": {
|
|
294
|
+
"node": ">=18.0.0"
|
|
295
|
+
},
|
|
296
|
+
"repository": {
|
|
297
|
+
"type": "git",
|
|
298
|
+
"url": "https://github.com/exyconn/common.git"
|
|
299
|
+
},
|
|
300
|
+
"bugs": {
|
|
301
|
+
"url": "https://github.com/exyconn/common/issues"
|
|
302
|
+
},
|
|
303
|
+
"homepage": "https://github.com/exyconn/common#readme"
|
|
209
304
|
}
|
package/dist/index-DEzgM15j.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ApiResponse, ColumnMetadata, PaginationData, badRequestResponse, conflictResponse, createdResponse, errorResponse, extractColumns, forbiddenResponse, noContentResponse, notFoundResponse, rateLimitResponse, successResponse, successResponseArr, unauthorizedResponse, validationErrorResponse } from './server/response/index.js';
|
|
2
|
-
import { StatusCode, StatusMessage, statusCode, statusMessage } from './server/enums/index.js';
|
|
3
|
-
import { LoggerConfig, createLogger, createMorganStream, logger, simpleLogger, stream } from './server/logger/index.js';
|
|
4
|
-
import { DbConnectionOptions, connectDB, disconnectDB, getConnectionStatus } from './server/db/index.js';
|
|
5
|
-
import { AuthRequest, JWTPayload, authenticateApiKey, authenticateJWT, extractOrganization, optionalAuthenticateJWT, requireOrganization } from './server/middleware/index.js';
|
|
6
|
-
import { FilterOptions, PackageCheckResult, PackageJson, PackageVersion, PaginationOptions, PaginationResult, buildFilter, buildPagination, buildPaginationMeta, checkPackageServer, formatPackageCheckResult, generateNcuCommand, omitFields, packageCheckServer, pickFields, printPackageCheckSummary, sanitizeDocument, sanitizeUser } from './server/utils/index.js';
|
|
7
|
-
|
|
8
|
-
declare const index_ApiResponse: typeof ApiResponse;
|
|
9
|
-
declare const index_AuthRequest: typeof AuthRequest;
|
|
10
|
-
declare const index_ColumnMetadata: typeof ColumnMetadata;
|
|
11
|
-
declare const index_DbConnectionOptions: typeof DbConnectionOptions;
|
|
12
|
-
declare const index_FilterOptions: typeof FilterOptions;
|
|
13
|
-
declare const index_JWTPayload: typeof JWTPayload;
|
|
14
|
-
declare const index_LoggerConfig: typeof LoggerConfig;
|
|
15
|
-
declare const index_PackageCheckResult: typeof PackageCheckResult;
|
|
16
|
-
declare const index_PackageJson: typeof PackageJson;
|
|
17
|
-
declare const index_PackageVersion: typeof PackageVersion;
|
|
18
|
-
declare const index_PaginationData: typeof PaginationData;
|
|
19
|
-
declare const index_PaginationOptions: typeof PaginationOptions;
|
|
20
|
-
declare const index_PaginationResult: typeof PaginationResult;
|
|
21
|
-
declare const index_StatusCode: typeof StatusCode;
|
|
22
|
-
declare const index_StatusMessage: typeof StatusMessage;
|
|
23
|
-
declare const index_authenticateApiKey: typeof authenticateApiKey;
|
|
24
|
-
declare const index_authenticateJWT: typeof authenticateJWT;
|
|
25
|
-
declare const index_badRequestResponse: typeof badRequestResponse;
|
|
26
|
-
declare const index_buildFilter: typeof buildFilter;
|
|
27
|
-
declare const index_buildPagination: typeof buildPagination;
|
|
28
|
-
declare const index_buildPaginationMeta: typeof buildPaginationMeta;
|
|
29
|
-
declare const index_checkPackageServer: typeof checkPackageServer;
|
|
30
|
-
declare const index_conflictResponse: typeof conflictResponse;
|
|
31
|
-
declare const index_connectDB: typeof connectDB;
|
|
32
|
-
declare const index_createLogger: typeof createLogger;
|
|
33
|
-
declare const index_createMorganStream: typeof createMorganStream;
|
|
34
|
-
declare const index_createdResponse: typeof createdResponse;
|
|
35
|
-
declare const index_disconnectDB: typeof disconnectDB;
|
|
36
|
-
declare const index_errorResponse: typeof errorResponse;
|
|
37
|
-
declare const index_extractColumns: typeof extractColumns;
|
|
38
|
-
declare const index_extractOrganization: typeof extractOrganization;
|
|
39
|
-
declare const index_forbiddenResponse: typeof forbiddenResponse;
|
|
40
|
-
declare const index_formatPackageCheckResult: typeof formatPackageCheckResult;
|
|
41
|
-
declare const index_generateNcuCommand: typeof generateNcuCommand;
|
|
42
|
-
declare const index_getConnectionStatus: typeof getConnectionStatus;
|
|
43
|
-
declare const index_logger: typeof logger;
|
|
44
|
-
declare const index_noContentResponse: typeof noContentResponse;
|
|
45
|
-
declare const index_notFoundResponse: typeof notFoundResponse;
|
|
46
|
-
declare const index_omitFields: typeof omitFields;
|
|
47
|
-
declare const index_optionalAuthenticateJWT: typeof optionalAuthenticateJWT;
|
|
48
|
-
declare const index_packageCheckServer: typeof packageCheckServer;
|
|
49
|
-
declare const index_pickFields: typeof pickFields;
|
|
50
|
-
declare const index_printPackageCheckSummary: typeof printPackageCheckSummary;
|
|
51
|
-
declare const index_rateLimitResponse: typeof rateLimitResponse;
|
|
52
|
-
declare const index_requireOrganization: typeof requireOrganization;
|
|
53
|
-
declare const index_sanitizeDocument: typeof sanitizeDocument;
|
|
54
|
-
declare const index_sanitizeUser: typeof sanitizeUser;
|
|
55
|
-
declare const index_simpleLogger: typeof simpleLogger;
|
|
56
|
-
declare const index_statusCode: typeof statusCode;
|
|
57
|
-
declare const index_statusMessage: typeof statusMessage;
|
|
58
|
-
declare const index_stream: typeof stream;
|
|
59
|
-
declare const index_successResponse: typeof successResponse;
|
|
60
|
-
declare const index_successResponseArr: typeof successResponseArr;
|
|
61
|
-
declare const index_unauthorizedResponse: typeof unauthorizedResponse;
|
|
62
|
-
declare const index_validationErrorResponse: typeof validationErrorResponse;
|
|
63
|
-
declare namespace index {
|
|
64
|
-
export { index_ApiResponse as ApiResponse, index_AuthRequest as AuthRequest, index_ColumnMetadata as ColumnMetadata, index_DbConnectionOptions as DbConnectionOptions, index_FilterOptions as FilterOptions, index_JWTPayload as JWTPayload, index_LoggerConfig as LoggerConfig, index_PackageCheckResult as PackageCheckResult, index_PackageJson as PackageJson, index_PackageVersion as PackageVersion, index_PaginationData as PaginationData, index_PaginationOptions as PaginationOptions, index_PaginationResult as PaginationResult, index_StatusCode as StatusCode, index_StatusMessage as StatusMessage, index_authenticateApiKey as authenticateApiKey, index_authenticateJWT as authenticateJWT, index_badRequestResponse as badRequestResponse, index_buildFilter as buildFilter, index_buildPagination as buildPagination, index_buildPaginationMeta as buildPaginationMeta, index_checkPackageServer as checkPackageServer, index_conflictResponse as conflictResponse, index_connectDB as connectDB, index_createLogger as createLogger, index_createMorganStream as createMorganStream, index_createdResponse as createdResponse, index_disconnectDB as disconnectDB, index_errorResponse as errorResponse, index_extractColumns as extractColumns, index_extractOrganization as extractOrganization, index_forbiddenResponse as forbiddenResponse, index_formatPackageCheckResult as formatPackageCheckResult, index_generateNcuCommand as generateNcuCommand, index_getConnectionStatus as getConnectionStatus, index_logger as logger, index_noContentResponse as noContentResponse, index_notFoundResponse as notFoundResponse, index_omitFields as omitFields, index_optionalAuthenticateJWT as optionalAuthenticateJWT, index_packageCheckServer as packageCheckServer, index_pickFields as pickFields, index_printPackageCheckSummary as printPackageCheckSummary, index_rateLimitResponse as rateLimitResponse, index_requireOrganization as requireOrganization, index_sanitizeDocument as sanitizeDocument, index_sanitizeUser as sanitizeUser, index_simpleLogger as simpleLogger, index_statusCode as statusCode, index_statusMessage as statusMessage, index_stream as stream, index_successResponse as successResponse, index_successResponseArr as successResponseArr, index_unauthorizedResponse as unauthorizedResponse, index_validationErrorResponse as validationErrorResponse };
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { index as i };
|