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

fenextjs-validator

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fenextjs-validator - npm Package Compare versions

Comparing version 4.6.3 to 4.6.4

1

cjs/index.d.ts

@@ -454,1 +454,2 @@ import { ErrorFenextjs } from "fenextjs-error/cjs/Fenextjs";

export declare const FenextjsValidator: <T = any>(props?: FenextjsValidatorClassConstructorProps) => FenextjsValidatorClass<T>;
export declare const FV: <T = any>(props?: FenextjsValidatorClassConstructorProps) => FenextjsValidatorClass<T>;

8

cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FenextjsValidator = exports.FenextjsValidatorClass = void 0;
exports.FV = exports.FenextjsValidator = exports.FenextjsValidatorClass = void 0;
const Input_1 = require("fenextjs-error/cjs/Input");

@@ -372,3 +372,3 @@ const Fenextjs_1 = require("fenextjs-error/cjs/Fenextjs");

// Si no son de tipo objeto, lanza un ErrorInputInvalid para indicar que la validación falló.
if (typeof this.data !== "object") {
if (typeof this.data !== "object" && this.messageError?.isObject) {
this.onError(fenextjs_interface_1.ErrorCode.INPUT_INVALID, this.messageError?.isObject);

@@ -399,3 +399,4 @@ }

// Si alguna propiedad no cumple con las reglas de validación, se lanza el error devuelto por la validación.
if (r !== true) {
if (r instanceof Fenextjs_1.ErrorFenextjs) {
this.onError(r.code, r.msg ?? r?.message);
throw r;

@@ -962,2 +963,3 @@ }

exports.FenextjsValidator = FenextjsValidator;
exports.FV = exports.FenextjsValidator;
//# sourceMappingURL=index.js.map
{
"name": "fenextjs-validator",
"version": "4.6.3",
"version": "4.6.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

Sorry, the diff of this file is not supported yet

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