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

@hmcts/cmc-validators

Package Overview
Dependencies
Maintainers
18
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hmcts/cmc-validators - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dist/main/atLeastOneFieldIsPopulated.d.ts

2

dist/atLeastOneFieldIsPopulated.d.ts

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class AtLeastOneFieldIsPopulatedConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let AtLeastOneFieldIsPopulatedConstraint = class AtLeastOneFieldIsPopulatedConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class ExtraFormFieldsArePopulatedConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let ExtraFormFieldsArePopulatedConstraint = class ExtraFormFieldsArePopulatedConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class FractionsConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
const validator = require("validator");

@@ -12,0 +12,0 @@ let FractionsConstraint = class FractionsConstraint {

@@ -1,2 +0,2 @@

import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from '@hmcts/class-validator';
export declare class IsBooleanTrueConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args?: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsBooleanTrueConstraint = class IsBooleanTrueConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from '@hmcts/class-validator';
export declare class IsEmailConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
const validator = require("validator");

@@ -12,0 +12,0 @@ let IsEmailConstraint = class IsEmailConstraint {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class IsFeeAccountConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
const validator = require("validator");

@@ -12,0 +12,0 @@ let IsFeeAccountConstraint = class IsFeeAccountConstraint {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class IsLessThanConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsLessThanConstraint = class IsLessThanConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class IsLessThanOrEqualToConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsLessThanOrEqualToConstraint = class IsLessThanOrEqualToConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class IsLessThanOrEqualToSumOfConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsLessThanOrEqualToSumOfConstraint = class IsLessThanOrEqualToSumOfConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from '@hmcts/class-validator';
export declare class IsMobilePhoneNumberConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsMobilePhoneNumberConstraint = class IsMobilePhoneNumberConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class IsNotBlankConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value?: any, args?: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsNotBlankConstraint = class IsNotBlankConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from '@hmcts/class-validator';
export declare class IsPhoneNumberConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
import { LocalDate } from './interface/date';

@@ -3,0 +3,0 @@ export declare class IsValidLocalDateConstraint implements ValidatorConstraintInterface {

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
const EXPECTED_YEAR_LENGTH = 4;

@@ -12,0 +12,0 @@ let IsValidLocalDateConstraint = class IsValidLocalDateConstraint {

@@ -1,2 +0,2 @@

import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from '@hmcts/class-validator';
export declare class IsValidPostcodeConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args?: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
const validator = require("validator");

@@ -12,0 +12,0 @@ let IsValidPostcodeConstraint = class IsValidPostcodeConstraint {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class MaxLengthValidatorConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let MaxLengthValidatorConstraint = class MaxLengthValidatorConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from 'class-validator';
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from '@hmcts/class-validator';
export declare class MinTotalConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let MinTotalConstraint = class MinTotalConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

@@ -1,2 +0,2 @@

import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
import { ValidationOptions, ValidatorConstraintInterface, ValidationArguments } from '@hmcts/class-validator';
export declare class MinConstraint implements ValidatorConstraintInterface {

@@ -3,0 +3,0 @@ validate(value: any, args: ValidationArguments): boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
const class_validator_1 = require("class-validator");
const class_validator_1 = require("@hmcts/class-validator");
let MinConstraint = class MinConstraint {

@@ -12,0 +12,0 @@ validate(value, args) {

{
"name": "@hmcts/cmc-validators",
"version": "0.2.0",
"version": "0.2.1",
"author": "HMCTS",

@@ -27,7 +27,7 @@ "license": "MIT",

"dependencies": {
"class-validator": "^0.9.1"
"@hmcts/class-validator": "^0.9.1-b"
},
"devDependencies": {
"@types/mocha": "*",
"@types/chai": "^4.1.5",
"@types/chai": "^4.1.6",
"@types/chai-as-promised": "^7.1.0",

@@ -34,0 +34,0 @@ "@types/chai-spies": "^1.0.0",

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