@mikemajesty/microservice-crud 0.0.1 → 0.0.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.
@@ -0,0 +1,440 @@
1
+ {
2
+ "name": "@mikemajesty/microservice-crud",
3
+ "version": "0.0.02",
4
+ "lockfileVersion": 2,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@mikemajesty/microservice-crud",
9
+ "version": "0.0.02",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "arg": "^5.0.1",
13
+ "cli-select": "^1.1.2",
14
+ "colorette": "^2.0.19",
15
+ "esm": "^3.2.25",
16
+ "fs": "^0.0.1-security",
17
+ "fs-extra": "^10.1.0",
18
+ "pluralize": "^8.0.0",
19
+ "prompt-sync": "^4.2.0",
20
+ "rimraf": "^3.0.2"
21
+ },
22
+ "bin": {
23
+ "microservice-crud": "bin/microservice-crud"
24
+ }
25
+ },
26
+ "node_modules/ansi-escapes": {
27
+ "version": "3.2.0",
28
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
29
+ "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==",
30
+ "license": "MIT",
31
+ "engines": {
32
+ "node": ">=4"
33
+ }
34
+ },
35
+ "node_modules/ansi-regex": {
36
+ "version": "4.1.1",
37
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz",
38
+ "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==",
39
+ "license": "MIT",
40
+ "engines": {
41
+ "node": ">=6"
42
+ }
43
+ },
44
+ "node_modules/arg": {
45
+ "version": "5.0.2",
46
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
47
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
48
+ "license": "MIT"
49
+ },
50
+ "node_modules/balanced-match": {
51
+ "version": "1.0.2",
52
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
53
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
54
+ "license": "MIT"
55
+ },
56
+ "node_modules/brace-expansion": {
57
+ "version": "1.1.11",
58
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
59
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
60
+ "license": "MIT",
61
+ "dependencies": {
62
+ "balanced-match": "^1.0.0",
63
+ "concat-map": "0.0.1"
64
+ }
65
+ },
66
+ "node_modules/cli-select": {
67
+ "version": "1.1.2",
68
+ "resolved": "https://registry.npmjs.org/cli-select/-/cli-select-1.1.2.tgz",
69
+ "integrity": "sha512-PSvWb8G0PPmBNDcz/uM2LkZN3Nn5JmhUl465tTfynQAXjKzFpmHbxStM6X/+awKp5DJuAaHMzzMPefT0suGm1w==",
70
+ "license": "MIT",
71
+ "dependencies": {
72
+ "ansi-escapes": "^3.2.0"
73
+ }
74
+ },
75
+ "node_modules/colorette": {
76
+ "version": "2.0.19",
77
+ "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz",
78
+ "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==",
79
+ "license": "MIT"
80
+ },
81
+ "node_modules/concat-map": {
82
+ "version": "0.0.1",
83
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
84
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
85
+ "license": "MIT"
86
+ },
87
+ "node_modules/esm": {
88
+ "version": "3.2.25",
89
+ "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz",
90
+ "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==",
91
+ "license": "MIT",
92
+ "engines": {
93
+ "node": ">=6"
94
+ }
95
+ },
96
+ "node_modules/fs": {
97
+ "version": "0.0.1-security",
98
+ "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
99
+ "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
100
+ },
101
+ "node_modules/fs-extra": {
102
+ "version": "10.1.0",
103
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
104
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
105
+ "license": "MIT",
106
+ "dependencies": {
107
+ "graceful-fs": "^4.2.0",
108
+ "jsonfile": "^6.0.1",
109
+ "universalify": "^2.0.0"
110
+ },
111
+ "engines": {
112
+ "node": ">=12"
113
+ }
114
+ },
115
+ "node_modules/fs.realpath": {
116
+ "version": "1.0.0",
117
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
118
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
119
+ "license": "ISC"
120
+ },
121
+ "node_modules/glob": {
122
+ "version": "7.2.3",
123
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
124
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
125
+ "license": "ISC",
126
+ "dependencies": {
127
+ "fs.realpath": "^1.0.0",
128
+ "inflight": "^1.0.4",
129
+ "inherits": "2",
130
+ "minimatch": "^3.1.1",
131
+ "once": "^1.3.0",
132
+ "path-is-absolute": "^1.0.0"
133
+ },
134
+ "engines": {
135
+ "node": "*"
136
+ },
137
+ "funding": {
138
+ "url": "https://github.com/sponsors/isaacs"
139
+ }
140
+ },
141
+ "node_modules/graceful-fs": {
142
+ "version": "4.2.11",
143
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
144
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
145
+ "license": "ISC"
146
+ },
147
+ "node_modules/inflight": {
148
+ "version": "1.0.6",
149
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
150
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
151
+ "license": "ISC",
152
+ "dependencies": {
153
+ "once": "^1.3.0",
154
+ "wrappy": "1"
155
+ }
156
+ },
157
+ "node_modules/inherits": {
158
+ "version": "2.0.4",
159
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
160
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
161
+ "license": "ISC"
162
+ },
163
+ "node_modules/jsonfile": {
164
+ "version": "6.1.0",
165
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
166
+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
167
+ "license": "MIT",
168
+ "dependencies": {
169
+ "universalify": "^2.0.0"
170
+ },
171
+ "optionalDependencies": {
172
+ "graceful-fs": "^4.1.6"
173
+ }
174
+ },
175
+ "node_modules/minimatch": {
176
+ "version": "3.1.2",
177
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
178
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
179
+ "license": "ISC",
180
+ "dependencies": {
181
+ "brace-expansion": "^1.1.7"
182
+ },
183
+ "engines": {
184
+ "node": "*"
185
+ }
186
+ },
187
+ "node_modules/once": {
188
+ "version": "1.4.0",
189
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
190
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
191
+ "license": "ISC",
192
+ "dependencies": {
193
+ "wrappy": "1"
194
+ }
195
+ },
196
+ "node_modules/path-is-absolute": {
197
+ "version": "1.0.1",
198
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
199
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
200
+ "license": "MIT",
201
+ "engines": {
202
+ "node": ">=0.10.0"
203
+ }
204
+ },
205
+ "node_modules/pluralize": {
206
+ "version": "8.0.0",
207
+ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
208
+ "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==",
209
+ "engines": {
210
+ "node": ">=4"
211
+ }
212
+ },
213
+ "node_modules/prompt-sync": {
214
+ "version": "4.2.0",
215
+ "resolved": "https://registry.npmjs.org/prompt-sync/-/prompt-sync-4.2.0.tgz",
216
+ "integrity": "sha512-BuEzzc5zptP5LsgV5MZETjDaKSWfchl5U9Luiu8SKp7iZWD5tZalOxvNcZRwv+d2phNFr8xlbxmFNcRKfJOzJw==",
217
+ "license": "MIT",
218
+ "dependencies": {
219
+ "strip-ansi": "^5.0.0"
220
+ }
221
+ },
222
+ "node_modules/rimraf": {
223
+ "version": "3.0.2",
224
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
225
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
226
+ "license": "ISC",
227
+ "dependencies": {
228
+ "glob": "^7.1.3"
229
+ },
230
+ "bin": {
231
+ "rimraf": "bin.js"
232
+ },
233
+ "funding": {
234
+ "url": "https://github.com/sponsors/isaacs"
235
+ }
236
+ },
237
+ "node_modules/strip-ansi": {
238
+ "version": "5.2.0",
239
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
240
+ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
241
+ "license": "MIT",
242
+ "dependencies": {
243
+ "ansi-regex": "^4.1.0"
244
+ },
245
+ "engines": {
246
+ "node": ">=6"
247
+ }
248
+ },
249
+ "node_modules/universalify": {
250
+ "version": "2.0.0",
251
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
252
+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
253
+ "license": "MIT",
254
+ "engines": {
255
+ "node": ">= 10.0.0"
256
+ }
257
+ },
258
+ "node_modules/wrappy": {
259
+ "version": "1.0.2",
260
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
261
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
262
+ "license": "ISC"
263
+ }
264
+ },
265
+ "dependencies": {
266
+ "ansi-escapes": {
267
+ "version": "3.2.0",
268
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
269
+ "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ=="
270
+ },
271
+ "ansi-regex": {
272
+ "version": "4.1.1",
273
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz",
274
+ "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g=="
275
+ },
276
+ "arg": {
277
+ "version": "5.0.2",
278
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
279
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="
280
+ },
281
+ "balanced-match": {
282
+ "version": "1.0.2",
283
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
284
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
285
+ },
286
+ "brace-expansion": {
287
+ "version": "1.1.11",
288
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
289
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
290
+ "requires": {
291
+ "balanced-match": "^1.0.0",
292
+ "concat-map": "0.0.1"
293
+ }
294
+ },
295
+ "cli-select": {
296
+ "version": "1.1.2",
297
+ "resolved": "https://registry.npmjs.org/cli-select/-/cli-select-1.1.2.tgz",
298
+ "integrity": "sha512-PSvWb8G0PPmBNDcz/uM2LkZN3Nn5JmhUl465tTfynQAXjKzFpmHbxStM6X/+awKp5DJuAaHMzzMPefT0suGm1w==",
299
+ "requires": {
300
+ "ansi-escapes": "^3.2.0"
301
+ }
302
+ },
303
+ "colorette": {
304
+ "version": "2.0.19",
305
+ "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz",
306
+ "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ=="
307
+ },
308
+ "concat-map": {
309
+ "version": "0.0.1",
310
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
311
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
312
+ },
313
+ "esm": {
314
+ "version": "3.2.25",
315
+ "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz",
316
+ "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA=="
317
+ },
318
+ "fs": {
319
+ "version": "0.0.1-security",
320
+ "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
321
+ "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
322
+ },
323
+ "fs-extra": {
324
+ "version": "10.1.0",
325
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
326
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
327
+ "requires": {
328
+ "graceful-fs": "^4.2.0",
329
+ "jsonfile": "^6.0.1",
330
+ "universalify": "^2.0.0"
331
+ }
332
+ },
333
+ "fs.realpath": {
334
+ "version": "1.0.0",
335
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
336
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
337
+ },
338
+ "glob": {
339
+ "version": "7.2.3",
340
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
341
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
342
+ "requires": {
343
+ "fs.realpath": "^1.0.0",
344
+ "inflight": "^1.0.4",
345
+ "inherits": "2",
346
+ "minimatch": "^3.1.1",
347
+ "once": "^1.3.0",
348
+ "path-is-absolute": "^1.0.0"
349
+ }
350
+ },
351
+ "graceful-fs": {
352
+ "version": "4.2.11",
353
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
354
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
355
+ },
356
+ "inflight": {
357
+ "version": "1.0.6",
358
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
359
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
360
+ "requires": {
361
+ "once": "^1.3.0",
362
+ "wrappy": "1"
363
+ }
364
+ },
365
+ "inherits": {
366
+ "version": "2.0.4",
367
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
368
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
369
+ },
370
+ "jsonfile": {
371
+ "version": "6.1.0",
372
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
373
+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
374
+ "requires": {
375
+ "graceful-fs": "^4.1.6",
376
+ "universalify": "^2.0.0"
377
+ }
378
+ },
379
+ "minimatch": {
380
+ "version": "3.1.2",
381
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
382
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
383
+ "requires": {
384
+ "brace-expansion": "^1.1.7"
385
+ }
386
+ },
387
+ "once": {
388
+ "version": "1.4.0",
389
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
390
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
391
+ "requires": {
392
+ "wrappy": "1"
393
+ }
394
+ },
395
+ "path-is-absolute": {
396
+ "version": "1.0.1",
397
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
398
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="
399
+ },
400
+ "pluralize": {
401
+ "version": "8.0.0",
402
+ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
403
+ "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA=="
404
+ },
405
+ "prompt-sync": {
406
+ "version": "4.2.0",
407
+ "resolved": "https://registry.npmjs.org/prompt-sync/-/prompt-sync-4.2.0.tgz",
408
+ "integrity": "sha512-BuEzzc5zptP5LsgV5MZETjDaKSWfchl5U9Luiu8SKp7iZWD5tZalOxvNcZRwv+d2phNFr8xlbxmFNcRKfJOzJw==",
409
+ "requires": {
410
+ "strip-ansi": "^5.0.0"
411
+ }
412
+ },
413
+ "rimraf": {
414
+ "version": "3.0.2",
415
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
416
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
417
+ "requires": {
418
+ "glob": "^7.1.3"
419
+ }
420
+ },
421
+ "strip-ansi": {
422
+ "version": "5.2.0",
423
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
424
+ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
425
+ "requires": {
426
+ "ansi-regex": "^4.1.0"
427
+ }
428
+ },
429
+ "universalify": {
430
+ "version": "2.0.0",
431
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
432
+ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ=="
433
+ },
434
+ "wrappy": {
435
+ "version": "1.0.2",
436
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
437
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
438
+ }
439
+ }
440
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikemajesty/microservice-crud",
3
- "version": "0.0.01",
3
+ "version": "0.0.02",
4
4
  "description": "Monorepo CLI",
5
5
  "main": "src/cli.js",
6
6
  "scripts": {
@@ -26,6 +26,7 @@
26
26
  "esm": "^3.2.25",
27
27
  "fs": "^0.0.1-security",
28
28
  "fs-extra": "^10.1.0",
29
+ "pluralize": "^8.0.0",
29
30
  "prompt-sync": "^4.2.0",
30
31
  "rimraf": "^3.0.2"
31
32
  }
package/src/cli.js CHANGED
@@ -1,7 +1,7 @@
1
- import fs from 'fs';
2
- import { bold, green, red } from 'colorette';
1
+ const fs = require('fs');
2
+ const { bold, green, red } = require('colorette');
3
3
  const fse = require('fs-extra');
4
- import path from 'path';
4
+ const path = require('path');
5
5
  const { exec } = require('child_process');
6
6
  const cliSelect = require('cli-select');
7
7
  const prompt = require('prompt-sync')();
@@ -297,7 +297,7 @@ export async function cli(args) {
297
297
 
298
298
 
299
299
  // fs.rmSync(src, { recursive: true });
300
-
300
+
301
301
  // console.log(bold(green('done')))
302
302
 
303
303
  // if (userInput.type === 'api') {
@@ -1,3 +1,4 @@
1
+ const pluralize = require('pluralize')
1
2
 
2
3
  function capitalizeFirstLetter(string) {
3
4
  return string.charAt(0).toUpperCase() + string.slice(1);
@@ -45,14 +46,14 @@ export class ${capitalizeFirstLetter(name)}Controller {
45
46
  private readonly ${name}GetByIDUsecase: I${capitalizeFirstLetter(name)}GetByIDAdapter
46
47
  ) {}
47
48
 
48
- @Post('/${name}')
49
+ @Post('/${pluralize(name)}')
49
50
  @ApiResponse(SwagggerResponse.create[200])
50
51
  @ApiBody(SwagggerRequest.createBody)
51
52
  async create(@Body() input: ${capitalizeFirstLetter(name)}CreateInput): ${capitalizeFirstLetter(name)}CreateOutput {
52
53
  return this.${name}CreateUsecase.execute(input);
53
54
  }
54
55
 
55
- @Put('/${name}')
56
+ @Put('/${pluralize(name)}')
56
57
  @ApiResponse(SwagggerResponse.update[200])
57
58
  @ApiResponse(SwagggerResponse.update[404])
58
59
  @ApiBody(SwagggerRequest.updateBody)
@@ -60,7 +61,7 @@ export class ${capitalizeFirstLetter(name)}Controller {
60
61
  return this.${name}UpdateUsecase.execute(input);
61
62
  }
62
63
 
63
- @Get('/${name}')
64
+ @Get('/${pluralize(name)}')
64
65
  @ApiQuery(SwagggerRequest.listQuery.pagination.limit)
65
66
  @ApiQuery(SwagggerRequest.listQuery.pagination.page)
66
67
  @ApiQuery(SwagggerRequest.listQuery.sort)
@@ -72,7 +73,7 @@ export class ${capitalizeFirstLetter(name)}Controller {
72
73
  return await this.${name}ListUsecase.execute(input);
73
74
  }
74
75
 
75
- @Get('/${name}/:id')
76
+ @Get('/${pluralize(name)}/:id')
76
77
  @ApiParam({ name: 'id', required: true })
77
78
  @ApiResponse(SwagggerResponse.getByID[200])
78
79
  @ApiResponse(SwagggerResponse.getByID[404])
@@ -1,3 +1,4 @@
1
+ const pluralize = require('pluralize')
1
2
 
2
3
  function capitalizeFirstLetter(string) {
3
4
  return string.charAt(0).toUpperCase() + string.slice(1);
@@ -45,14 +46,14 @@ export class ${capitalizeFirstLetter(name)}Controller {
45
46
  private readonly ${name}Delete: I${capitalizeFirstLetter(name)}DeleteAdapter
46
47
  ) {}
47
48
 
48
- @Post('/${name}')
49
+ @Post('/${pluralize(name)}')
49
50
  @ApiResponse(SwagggerResponse.create[200])
50
51
  @ApiBody(SwagggerRequest.createBody)
51
52
  async create(@Body() input: ${capitalizeFirstLetter(name)}CreateInput): ${capitalizeFirstLetter(name)}CreateOutput {
52
53
  return await this.${name}Create.execute(input);
53
54
  }
54
55
 
55
- @Put('/${name}')
56
+ @Put('/${pluralize(name)}')
56
57
  @ApiResponse(SwagggerResponse.update[200])
57
58
  @ApiResponse(SwagggerResponse.update[404])
58
59
  @ApiBody(SwagggerRequest.updateBody)
@@ -60,7 +61,7 @@ export class ${capitalizeFirstLetter(name)}Controller {
60
61
  return await this.${name}Update.execute(input);
61
62
  }
62
63
 
63
- @Get('/${name}/:id')
64
+ @Get('/${pluralize(name)}/:id')
64
65
  @ApiParam({ name: 'id', required: true })
65
66
  @ApiResponse(SwagggerResponse.getByID[200])
66
67
  @ApiResponse(SwagggerResponse.getByID[404])
@@ -68,7 +69,7 @@ export class ${capitalizeFirstLetter(name)}Controller {
68
69
  return await this.${name}GetByID.execute(input);
69
70
  }
70
71
 
71
- @Get('/${name}')
72
+ @Get('/${pluralize(name)}')
72
73
  @ApiQuery(SwagggerRequest.listQuery.pagination.limit)
73
74
  @ApiQuery(SwagggerRequest.listQuery.pagination.page)
74
75
  @ApiQuery(SwagggerRequest.listQuery.sort)
@@ -80,7 +81,7 @@ export class ${capitalizeFirstLetter(name)}Controller {
80
81
  return await this.${name}List.execute(input);
81
82
  }
82
83
 
83
- @Delete('/${name}/:id')
84
+ @Delete('/${pluralize(name)}/:id')
84
85
  @ApiParam({ name: 'id', required: true })
85
86
  @ApiResponse(SwagggerResponse.delete[200])
86
87
  @ApiResponse(SwagggerResponse.delete[404])
@@ -1,3 +0,0 @@
1
- #! /usr/bin/env node
2
- require = require('esm')(module /*, options */)
3
- require('../src/cli').cli(process.argv);