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

@liskhq/lisk-validator

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liskhq/lisk-validator - npm Package Compare versions

Comparing version 0.8.0-beta.0 to 0.8.0-rc.0

6

dist-node/formats.d.ts
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

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