@dolsem/class-validator
Advanced tools
Comparing version 0.10.0-rc.1 to 0.10.0-rc.1b
{ | ||
"name": "@dolsem/class-validator", | ||
"private": false, | ||
"version": "0.10.0-rc.1", | ||
"version": "0.10.0-rc.1b", | ||
"description": "Class-based validation with Typescript / ES6 / ES5 using decorators or validation schemas. Supports both node.js and browser", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -53,3 +53,3 @@ # class-validator | ||
```javascript | ||
```typescript | ||
import {validate, validateOrReject, Contains, IsInt, Length, IsEmail, IsFQDN, IsDate, Min, Max} from "class-validator"; | ||
@@ -136,3 +136,3 @@ | ||
```javascript | ||
```typescript | ||
{ | ||
@@ -151,3 +151,3 @@ target: Object; // Object that was validated. | ||
```javascript | ||
```typescript | ||
[{ | ||
@@ -174,3 +174,3 @@ target: /* post object */, | ||
```javascript | ||
```typescript | ||
validator.validate(post, { validationError: { target: false } }); | ||
@@ -187,3 +187,3 @@ ``` | ||
```javascript | ||
```typescript | ||
import {MinLength, MaxLength} from "class-validator"; | ||
@@ -211,3 +211,3 @@ | ||
```javascript | ||
```typescript | ||
import {MinLength, MaxLength} from "class-validator"; | ||
@@ -229,3 +229,3 @@ | ||
```javascript | ||
```typescript | ||
import {MinLength, MaxLength, ValidationArguments} from "class-validator"; | ||
@@ -260,3 +260,3 @@ | ||
```javascript | ||
```typescript | ||
import {MinLength, MaxLength} from "class-validator"; | ||
@@ -280,3 +280,3 @@ | ||
```javascript | ||
```typescript | ||
import {MinLength, MaxLength} from "class-validator"; | ||
@@ -300,3 +300,3 @@ | ||
```javascript | ||
```typescript | ||
import {MinLength, MaxLength} from "class-validator"; | ||
@@ -320,3 +320,3 @@ | ||
```javascript | ||
```typescript | ||
import {ValidateNested} from "class-validator"; | ||
@@ -336,3 +336,3 @@ | ||
```javascript | ||
```typescript | ||
import {ValidatePromise, Min} from "class-validator"; | ||
@@ -351,3 +351,3 @@ | ||
```javascript | ||
```typescript | ||
import {ValidateNested, ValidatePromise} from "class-validator"; | ||
@@ -368,3 +368,3 @@ | ||
```javascript | ||
```typescript | ||
import {validate} from "class-validator"; | ||
@@ -411,3 +411,3 @@ | ||
```javascript | ||
```typescript | ||
import {ValidateIf, IsNotEmpty} from "class-validator"; | ||
@@ -433,3 +433,3 @@ | ||
```javascript | ||
```typescript | ||
import {validate} from "class-validator"; | ||
@@ -443,3 +443,3 @@ // ... | ||
```javascript | ||
```typescript | ||
import {validate, Allow, Min} from "class-validator"; | ||
@@ -475,3 +475,3 @@ | ||
```javascript | ||
```typescript | ||
import {validate} from "class-validator"; | ||
@@ -514,3 +514,3 @@ // ... | ||
```javascript | ||
```typescript | ||
import {validate} from "class-validator"; | ||
@@ -530,3 +530,3 @@ // ... | ||
```javascript | ||
```typescript | ||
import {validate, Min, Length} from "class-validator"; | ||
@@ -581,3 +581,3 @@ | ||
```javascript | ||
```typescript | ||
import {ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments} from "class-validator"; | ||
@@ -614,3 +614,3 @@ | ||
```javascript | ||
```typescript | ||
import {Validate} from "class-validator"; | ||
@@ -633,3 +633,3 @@ import {CustomTextLength} from "./CustomTextLength"; | ||
```javascript | ||
```typescript | ||
import {validate} from "class-validator"; | ||
@@ -644,3 +644,3 @@ | ||
```javascript | ||
```typescript | ||
import {Validate} from "class-validator"; | ||
@@ -661,3 +661,3 @@ import {CustomTextLength} from "./CustomTextLength"; | ||
```javascript | ||
```typescript | ||
import {ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface} from "class-validator"; | ||
@@ -682,3 +682,3 @@ | ||
```javascript | ||
```typescript | ||
import {registerDecorator, ValidationOptions, ValidationArguments} from "class-validator"; | ||
@@ -710,3 +710,3 @@ | ||
```javascript | ||
```typescript | ||
import {IsLongerThan} from "./IsLongerThan"; | ||
@@ -732,3 +732,3 @@ | ||
```javascript | ||
```typescript | ||
import {registerDecorator, ValidationOptions, ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments} from "class-validator"; | ||
@@ -765,3 +765,3 @@ | ||
```javascript | ||
```typescript | ||
import {IsUserAlreadyExist} from "./IsUserAlreadyExist"; | ||
@@ -784,3 +784,3 @@ | ||
```javascript | ||
```typescript | ||
import {Container} from "typedi"; | ||
@@ -807,3 +807,3 @@ import {useContainer, Validator} from "class-validator"; | ||
```javascript | ||
```typescript | ||
import {Validator} from "class-validator"; | ||
@@ -1005,3 +1005,3 @@ | ||
```javascript | ||
```typescript | ||
import {ValidationSchema} from "class-validator"; | ||
@@ -1036,3 +1036,3 @@ export let UserValidationSchema: ValidationSchema = { // using interface here is not required, its just for type-safety | ||
```javascript | ||
```typescript | ||
import {registerSchema} from "class-validator"; | ||
@@ -1047,3 +1047,3 @@ import {UserValidationSchema} from "./UserValidationSchema"; | ||
```javascript | ||
```typescript | ||
import {validate} from "class-validator"; | ||
@@ -1050,0 +1050,0 @@ const user = { firstName: "Johny", secondName: "Cage", email: "johny@cage.com" }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76
8395
420042
2