Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@honojs/validator

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honojs/validator - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

dist/index.js

@@ -121,3 +121,3 @@ "use strict";

const data = (0, jsonpath_plus_1.JSONPath)({ path: key, json });
const value = `${data[0]}`; // Force converting to string
const value = data[0]; // Do not stringify
const message = (name) => `Invalid Value: the JSON body "${key}" is invalid - ${name}`;

@@ -124,0 +124,0 @@ validate(field[key], value, message);

{
"name": "@honojs/validator",
"version": "0.1.1",
"version": "0.1.2",
"description": "Validator Middleware for Hono",

@@ -5,0 +5,0 @@ "main": "dist/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