@xyo-network/payload-validator
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -1,20 +0,2 @@ | ||
import { ValidatorBase, Validator } from '@xylabs/object'; | ||
import { Promisable } from '@xylabs/promise'; | ||
import { Payload } from '@xyo-network/payload-model'; | ||
type AllValidator = { | ||
all(): Error[]; | ||
}; | ||
type AllValidatorFactory = (schema: string) => AllValidator; | ||
declare class PayloadValidator<T extends Payload = Payload> extends ValidatorBase<T> implements Validator<T> { | ||
protected static schemaNameValidatorFactory: AllValidatorFactory; | ||
protected payload: Payload; | ||
private _schemaValidator?; | ||
constructor(payload: T); | ||
get schemaValidator(): AllValidator; | ||
static setSchemaNameValidatorFactory(factory: AllValidatorFactory): void; | ||
schemaName(): Error[]; | ||
validate(): Promisable<Error[]>; | ||
} | ||
export { type AllValidator, type AllValidatorFactory, PayloadValidator }; | ||
export * from './Validator.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,20 +0,2 @@ | ||
import { ValidatorBase, Validator } from '@xylabs/object'; | ||
import { Promisable } from '@xylabs/promise'; | ||
import { Payload } from '@xyo-network/payload-model'; | ||
type AllValidator = { | ||
all(): Error[]; | ||
}; | ||
type AllValidatorFactory = (schema: string) => AllValidator; | ||
declare class PayloadValidator<T extends Payload = Payload> extends ValidatorBase<T> implements Validator<T> { | ||
protected static schemaNameValidatorFactory: AllValidatorFactory; | ||
protected payload: Payload; | ||
private _schemaValidator?; | ||
constructor(payload: T); | ||
get schemaValidator(): AllValidator; | ||
static setSchemaNameValidatorFactory(factory: AllValidatorFactory): void; | ||
schemaName(): Error[]; | ||
validate(): Promisable<Error[]>; | ||
} | ||
export { type AllValidator, type AllValidatorFactory, PayloadValidator }; | ||
export * from './Validator.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,20 +0,2 @@ | ||
import { ValidatorBase, Validator } from '@xylabs/object'; | ||
import { Promisable } from '@xylabs/promise'; | ||
import { Payload } from '@xyo-network/payload-model'; | ||
type AllValidator = { | ||
all(): Error[]; | ||
}; | ||
type AllValidatorFactory = (schema: string) => AllValidator; | ||
declare class PayloadValidator<T extends Payload = Payload> extends ValidatorBase<T> implements Validator<T> { | ||
protected static schemaNameValidatorFactory: AllValidatorFactory; | ||
protected payload: Payload; | ||
private _schemaValidator?; | ||
constructor(payload: T); | ||
get schemaValidator(): AllValidator; | ||
static setSchemaNameValidatorFactory(factory: AllValidatorFactory): void; | ||
schemaName(): Error[]; | ||
validate(): Promisable<Error[]>; | ||
} | ||
export { type AllValidator, type AllValidatorFactory, PayloadValidator }; | ||
export * from './Validator.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@xyo-network/payload-validator", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -32,10 +32,10 @@ "homepage": "https://xyo.network", | ||
"dependencies": { | ||
"@xylabs/object": "^4.0.2", | ||
"@xylabs/promise": "^4.0.2", | ||
"@xyo-network/payload-model": "^3.0.7", | ||
"@xyo-network/schema-name-validator": "^3.0.7" | ||
"@xylabs/object": "^4.0.3", | ||
"@xylabs/promise": "^4.0.3", | ||
"@xyo-network/payload-model": "^3.0.8", | ||
"@xyo-network/schema-name-validator": "^3.0.8" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0", | ||
"@xylabs/tsconfig": "^4.0.0", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.7", | ||
"@xylabs/tsconfig": "^4.0.7", | ||
"typescript": "^5.5.4" | ||
@@ -42,0 +42,0 @@ }, |
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
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
28157
24
225