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
5
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 2.111.3 to 3.0.0

22

dist/browser/index.d.ts

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

export * from './Validator.ts';
//# sourceMappingURL=index.d.ts.map
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 };

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

export * from './Validator.ts';
//# sourceMappingURL=index.d.ts.map
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 };

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

export * from './Validator.ts';
//# sourceMappingURL=index.d.ts.map
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 };

37

package.json

@@ -15,8 +15,8 @@ {

"@xylabs/promise": "^3.6.12",
"@xyo-network/payload-model": "^2.111.3",
"@xyo-network/schema-name-validator": "^2.111.3"
"@xyo-network/payload-model": "^3.0.0",
"@xyo-network/schema-name-validator": "^3.0.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.15.14",
"@xylabs/tsconfig": "^3.15.14",
"@xylabs/ts-scripts-yarn3": "next",
"@xylabs/tsconfig": "next",
"typescript": "^5.5.4"

@@ -27,27 +27,8 @@ },

".": {
"browser": {
"require": {
"types": "./dist/browser/index.d.cts",
"default": "./dist/browser/index.cjs"
},
"import": {
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/index.mjs"
}
},
"node": {
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
}
}
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/node/index.cjs",
"module": "dist/node/index.mjs",
"module": "dist/neutral/index.mjs",
"homepage": "https://xyo.network",

@@ -63,5 +44,5 @@ "license": "LGPL-3.0-only",

"sideEffects": false,
"types": "dist/node/index.d.ts",
"version": "2.111.3",
"types": "dist/neutral/index.d.ts",
"version": "3.0.0",
"type": "module"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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