Comparing version 1.0.2 to 1.1.0
12
index.js
@@ -0,1 +1,2 @@ | ||
// index.js | ||
import ApiResponse from "./Utility/Apiresponse.js"; | ||
@@ -102,2 +103,13 @@ import ApiError from "./Utility/ApiError.js"; | ||
const grom = new Grom(); | ||
// Export named functions by binding them to the grom instance | ||
export const grAsyncHandler = grom.grAsyncHandler.bind(grom); | ||
export const grCheck = grom.grCheck.bind(grom); | ||
export const grResponse = grom.grResponse.bind(grom); | ||
export const grValidate = grom.grValidate.bind(grom); | ||
export const grRateLimit = grom.grRateLimit.bind(grom); | ||
export const grLogger = grom.grLogger.bind(grom); | ||
// Optionally, you can also export the class itself if needed | ||
export default Grom; |
{ | ||
"name": "grom-utils", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A lightweight utility package for simplified error handling, validation, and API responses.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7997
144