@liskhq/lisk-validator
Advanced tools
Comparing version 0.8.0-beta.0 to 0.8.0-rc.0
export declare const hex: (data: unknown) => boolean; | ||
export declare const bytes: (data: unknown) => boolean; | ||
export declare const uint64: { | ||
type: string; | ||
validate: (value: number) => boolean; | ||
}; | ||
export declare const int64: (data: string) => boolean; | ||
export declare const uint64: (data: string) => boolean; | ||
export declare const uint32: { | ||
@@ -8,0 +6,0 @@ type: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.lisk32 = exports.oddInteger = exports.ipOrFQDN = exports.ip = exports.encryptedPassphrase = exports.path = exports.networkVersion = exports.version = exports.camelCase = exports.uint32 = exports.uint64 = exports.bytes = exports.hex = void 0; | ||
exports.lisk32 = exports.oddInteger = exports.ipOrFQDN = exports.ip = exports.encryptedPassphrase = exports.path = exports.networkVersion = exports.version = exports.camelCase = exports.uint32 = exports.uint64 = exports.int64 = exports.bytes = exports.hex = void 0; | ||
const lisk_cryptography_1 = require("@liskhq/lisk-cryptography"); | ||
@@ -9,6 +9,6 @@ const validation_1 = require("./validation"); | ||
exports.bytes = validation_1.isBytes; | ||
exports.uint64 = { | ||
type: 'number', | ||
validate: (value) => Number.isInteger(value) && value >= 0 && value <= constants_1.MAX_UINT64, | ||
}; | ||
const int64 = (data) => (0, validation_1.isNumberString)(data) && (0, validation_1.isSInt64)(BigInt(data)); | ||
exports.int64 = int64; | ||
const uint64 = (data) => (0, validation_1.isNumberString)(data) && (0, validation_1.isUInt64)(BigInt(data)); | ||
exports.uint64 = uint64; | ||
exports.uint32 = { | ||
@@ -15,0 +15,0 @@ type: 'number', |
{ | ||
"name": "@liskhq/lisk-validator", | ||
"version": "0.8.0-beta.0", | ||
"version": "0.8.0-rc.0", | ||
"description": "Validation library according to the Lisk protocol", | ||
@@ -39,3 +39,3 @@ "author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>", | ||
"dependencies": { | ||
"@liskhq/lisk-cryptography": "^4.1.0-beta.0", | ||
"@liskhq/lisk-cryptography": "^4.0.0-rc.0", | ||
"ajv": "8.1.0", | ||
@@ -42,0 +42,0 @@ "ajv-formats": "2.1.1", |
Sorry, the diff of this file is not supported yet
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
46705
677