New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grom-utils

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grom-utils - npm Package Compare versions

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;

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc