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

@patterninc/laravel_js_validator

Package Overview
Dependencies
Maintainers
9
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patterninc/laravel_js_validator - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

dist/cjs/IgnoredRules.d.ts

4

dist/cjs/__tests__/Validator_test.js

@@ -99,1 +99,5 @@ "use strict";

});
test('passes for precision since it is ignored', () => {
const results = index_1.Validator.validate('123.123', 'numeric|precision:3');
expect(results.success).toBe(true);
});

@@ -7,2 +7,3 @@ 'use strict';

const ValidationMessages_js_1 = require("./ValidationMessages.js");
const IgnoredRules_js_1 = require("./IgnoredRules.js");
class Validator {

@@ -183,2 +184,5 @@ constructor(data, rules) {

validate(name, rule) {
if (IgnoredRules_js_1.IgnoredRules.findIndex((item) => item.toLocaleLowerCase() === rule.name.toLocaleLowerCase()) > -1) {
return;
}
const validationRules = new ValidationRules_js_1.ValidationRules(this.data, this.rules);

@@ -185,0 +189,0 @@ let value = this.getValue(name);

@@ -5,2 +5,3 @@ 'use strict';

import { validationMessages as messages } from './ValidationMessages.js';
import { IgnoredRules } from './IgnoredRules.js';
export class Validator {

@@ -181,2 +182,5 @@ constructor(data, rules) {

validate(name, rule) {
if (IgnoredRules.findIndex((item) => item.toLocaleLowerCase() === rule.name.toLocaleLowerCase()) > -1) {
return;
}
const validationRules = new ValidationRules(this.data, this.rules);

@@ -183,0 +187,0 @@ let value = this.getValue(name);

4

package.json
{
"name": "@patterninc/laravel_js_validator",
"version": "1.0.10",
"description": "",
"version": "1.0.11",
"description": "Validate values against Laravel validation rules",
"scripts": {

@@ -6,0 +6,0 @@ "build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && bash ./fixup",

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