Socket
Socket
Sign inDemoInstall

@syncot/error

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncot/error - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

lib/error.d.ts

@@ -104,1 +104,6 @@ export interface ErrorDetails {

export declare function isDuplicateIdError(error: any): error is DuplicateIdError;
export interface InvalidStreamError extends Error {
name: 'SyncOtError InvalidStream';
}
export declare function createInvalidStreamError(message?: string): InvalidStreamError;
export declare function isInvalidStreamError(error: any): error is InvalidStreamError;

@@ -189,1 +189,10 @@ import { strict as assert } from 'assert';

}
export function createInvalidStreamError(message) {
return createError({
message,
name: 'SyncOtError InvalidStream',
});
}
export function isInvalidStreamError(error) {
return error instanceof Error && error.name === 'SyncOtError InvalidStream';
}

4

package.json
{
"name": "@syncot/error",
"version": "0.0.3",
"version": "0.0.4",
"description": "Helpers for managing errors.",

@@ -30,3 +30,3 @@ "keywords": [

},
"gitHead": "bd4d64ce07f354f6123f71b6f6ba0796bc5b198b"
"gitHead": "2b86fbb78a4b4b2f16fe3ed00ca08851bcc74e5c"
}
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