@codenokami/node-api-master 1.4.1 → 1.4.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/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -240,10 +240,6 @@ const apiResponse = {
|
|
|
240
240
|
},
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
declare namespace response {
|
|
244
|
-
export { apiResponse as default };
|
|
245
|
-
}
|
|
246
|
-
|
|
247
243
|
/**
|
|
248
244
|
* Password ကို Hash လုပ်ရန်
|
|
249
245
|
*/
|
|
@@ -433,4 +429,4 @@ declare namespace index {
|
|
|
433
429
|
export { index_getIO as getIO, index_initSocket as initSocket };
|
|
434
430
|
}
|
|
435
431
|
|
|
436
|
-
export { AppError, STATUS_CODES, admin,
|
|
432
|
+
export { AppError, STATUS_CODES, admin, apiResponse, auth, catchAsync, comparePassword, connectDB, errorMiddleware, generateToken, generateUUID, hashPassword, schemas, index as socket, validate };
|
package/dist/index.d.ts
CHANGED
|
@@ -240,10 +240,6 @@ const apiResponse = {
|
|
|
240
240
|
},
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
declare namespace response {
|
|
244
|
-
export { apiResponse as default };
|
|
245
|
-
}
|
|
246
|
-
|
|
247
243
|
/**
|
|
248
244
|
* Password ကို Hash လုပ်ရန်
|
|
249
245
|
*/
|
|
@@ -433,4 +429,4 @@ declare namespace index {
|
|
|
433
429
|
export { index_getIO as getIO, index_initSocket as initSocket };
|
|
434
430
|
}
|
|
435
431
|
|
|
436
|
-
export { AppError, STATUS_CODES, admin,
|
|
432
|
+
export { AppError, STATUS_CODES, admin, apiResponse, auth, catchAsync, comparePassword, connectDB, errorMiddleware, generateToken, generateUUID, hashPassword, schemas, index as socket, validate };
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
Joi: () => import_joi3.default,
|
|
34
34
|
STATUS_CODES: () => constants_default,
|
|
35
35
|
admin: () => admin,
|
|
36
|
-
apiResponse: () =>
|
|
36
|
+
apiResponse: () => response_default,
|
|
37
37
|
auth: () => auth,
|
|
38
38
|
catchAsync: () => catchAsync_default,
|
|
39
39
|
comparePassword: () => comparePassword,
|
|
@@ -224,10 +224,6 @@ var errorMiddleware = (err, req, res, next) => {
|
|
|
224
224
|
var errorMiddleware_default = errorMiddleware;
|
|
225
225
|
|
|
226
226
|
// src/utils/response.js
|
|
227
|
-
var response_exports = {};
|
|
228
|
-
__export(response_exports, {
|
|
229
|
-
default: () => response_default
|
|
230
|
-
});
|
|
231
227
|
var apiResponse = {
|
|
232
228
|
// အောင်မြင်တဲ့ response ပေးပို့ရန်
|
|
233
229
|
success: (res, data, message = "Success", statusCode = constants_default.OK) => {
|
package/dist/index.mjs
CHANGED
|
@@ -182,10 +182,6 @@ var errorMiddleware = (err, req, res, next) => {
|
|
|
182
182
|
var errorMiddleware_default = errorMiddleware;
|
|
183
183
|
|
|
184
184
|
// src/utils/response.js
|
|
185
|
-
var response_exports = {};
|
|
186
|
-
__export(response_exports, {
|
|
187
|
-
default: () => response_default
|
|
188
|
-
});
|
|
189
185
|
var apiResponse = {
|
|
190
186
|
// အောင်မြင်တဲ့ response ပေးပို့ရန်
|
|
191
187
|
success: (res, data, message = "Success", statusCode = constants_default.OK) => {
|
|
@@ -357,7 +353,7 @@ export {
|
|
|
357
353
|
Joi3 as Joi,
|
|
358
354
|
constants_default as STATUS_CODES,
|
|
359
355
|
admin,
|
|
360
|
-
|
|
356
|
+
response_default as apiResponse,
|
|
361
357
|
auth,
|
|
362
358
|
catchAsync_default as catchAsync,
|
|
363
359
|
comparePassword,
|
package/package.json
CHANGED