Socket
Socket
Sign inDemoInstall

hypercore-errors

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-errors - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

index.js

@@ -87,2 +87,6 @@ module.exports = class HypercoreError extends Error {

static OPLOG_HEADER_OVERFLOW (msg = 'Oplog header exceeds page size') {
return new HypercoreError(msg, 'OPLOG_HEADER_OVERFLOW', HypercoreError.OPLOG_HEADER_OVERFLOW)
}
static INVALID_OPLOG_VERSION (msg = 'Invalid header version') {

@@ -89,0 +93,0 @@ return new HypercoreError(msg, 'INVALID_OPLOG_VERSION', HypercoreError.INVALID_OPLOG_VERSION)

5

package.json
{
"name": "hypercore-errors",
"version": "1.0.0",
"version": "1.1.0",
"description": "Hypercore errors",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {

@@ -7,0 +10,0 @@ "test": "standard && brittle test.js"

@@ -37,2 +37,3 @@ # hypercore-errors

- OPLOG_CORRUPT
- OPLOG_HEADER_OVERFLOW
- INVALID_OPLOG_VERSION

@@ -39,0 +40,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