@xyo-network/payload-wrapper
Advanced tools
Comparing version 3.9.19 to 3.9.20
import type { Payload } from '@xyo-network/payload-model'; | ||
import type { JSONSchemaType } from 'ajv'; | ||
export declare const HexRegEx: (bytes?: number) => string; | ||
export declare const HashRegEx: string; | ||
export declare const AddressRegEx: string; | ||
export declare const payloadJsonSchema: JSONSchemaType<Payload>; | ||
//# sourceMappingURL=SchemaType.d.ts.map |
import type { Payload } from '@xyo-network/payload-model'; | ||
import type { JSONSchemaType } from 'ajv'; | ||
export declare const HexRegEx: (bytes?: number) => string; | ||
export declare const HashRegEx: string; | ||
export declare const AddressRegEx: string; | ||
export declare const payloadJsonSchema: JSONSchemaType<Payload>; | ||
//# sourceMappingURL=SchemaType.d.ts.map |
import type { Payload } from '@xyo-network/payload-model'; | ||
import type { JSONSchemaType } from 'ajv'; | ||
export declare const HexRegEx: (bytes?: number) => string; | ||
export declare const HashRegEx: string; | ||
export declare const AddressRegEx: string; | ||
export declare const payloadJsonSchema: JSONSchemaType<Payload>; | ||
//# sourceMappingURL=SchemaType.d.ts.map |
{ | ||
"name": "@xyo-network/payload-wrapper", | ||
"version": "3.9.19", | ||
"version": "3.9.20", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -35,5 +35,5 @@ "homepage": "https://xyo.network", | ||
"@xylabs/promise": "^4.5.1", | ||
"@xyo-network/payload-builder": "^3.9.19", | ||
"@xyo-network/payload-model": "^3.9.19", | ||
"@xyo-network/payload-validator": "^3.9.19", | ||
"@xyo-network/payload-builder": "^3.9.20", | ||
"@xyo-network/payload-model": "^3.9.20", | ||
"@xyo-network/payload-validator": "^3.9.20", | ||
"ajv": "^8.17.1" | ||
@@ -40,0 +40,0 @@ }, |
@@ -5,3 +5,8 @@ import type { Payload } from '@xyo-network/payload-model' | ||
export const HexRegEx = (bytes?: number) => bytes ? `^[a-f0-9]{${bytes * 2}}$` : '^[a-f0-9]+$' | ||
export const HashRegEx = HexRegEx(32) | ||
export const AddressRegEx = HexRegEx(32) | ||
export const payloadJsonSchema: JSONSchemaType<Payload> = { | ||
$id: 'https://schemas.xyo.network/2.0/payload', | ||
additionalProperties: true, | ||
@@ -11,3 +16,3 @@ properties: { | ||
type: 'array', | ||
items: { type: 'string' }, | ||
items: { type: 'string', pattern: HashRegEx }, | ||
nullable: true, | ||
@@ -14,0 +19,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
82291
777