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

@xyo-network/payload-validator

Package Overview
Dependencies
Maintainers
0
Versions
710
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/payload-validator - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

dist/browser/index.d.ts.map

22

dist/browser/index.d.ts

@@ -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 @@ },

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