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

@nodeswork/utils

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodeswork/utils - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

1

dist/error.d.ts

@@ -71,3 +71,4 @@ export interface ErrorCaster {

export declare const HTTP_RESPONSE_CASTER: ErrorCaster;
export declare const JSON_CASTER: ErrorCaster;
export declare class ValidationError extends NodesworkError {
}

@@ -182,2 +182,11 @@ "use strict";

};
exports.JSON_CASTER = {
filter: (error, options) => {
return error && error.name === 'NodesworkError' &&
!(error instanceof NodesworkError);
},
cast: (error, options, cls) => {
return new NodesworkError(error.message, error.meta, error.cause);
},
};
class ValidationError extends NodesworkError {

@@ -187,1 +196,2 @@ }

NodesworkError.addErrorCaster(exports.PASSTHROUGH_CASTER);
NodesworkError.addErrorCaster(exports.JSON_CASTER);

2

package.json
{
"name": "@nodeswork/utils",
"version": "0.1.11",
"version": "0.1.12",
"description": "Utilities used across nodeswork repos.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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