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

@piggly/ddd-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@piggly/ddd-toolkit - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

4

dist/cjs/core/errors/BusinessRuleViolationError.js

@@ -12,4 +12,4 @@ "use strict";

class BusinessRuleViolationError extends DomainError_1.DomainError {
constructor(name, message, hint = 'Try again later.', code = 422) {
super(name, crc_1.default.crc32(name), typeof message === 'string' ? message : message.join(', '), code, typeof hint === 'string' ? hint : hint.join(', '));
constructor(name, message, hint = 'Try again later.', code = 422, extra) {
super(name, crc_1.default.crc32(name), typeof message === 'string' ? message : message.join(', '), code, typeof hint === 'string' ? hint : hint.join(', '), extra);
}

@@ -16,0 +16,0 @@ }

@@ -8,6 +8,6 @@ import crc from 'crc';

export class BusinessRuleViolationError extends DomainError {
constructor(name, message, hint = 'Try again later.', code = 422) {
super(name, crc.crc32(name), typeof message === 'string' ? message : message.join(', '), code, typeof hint === 'string' ? hint : hint.join(', '));
constructor(name, message, hint = 'Try again later.', code = 422, extra) {
super(name, crc.crc32(name), typeof message === 'string' ? message : message.join(', '), code, typeof hint === 'string' ? hint : hint.join(', '), extra);
}
}
//# sourceMappingURL=BusinessRuleViolationError.js.map

@@ -7,3 +7,3 @@ import { DomainError } from './DomainError';

export declare class BusinessRuleViolationError extends DomainError {
constructor(name: string, message: string | string[], hint?: string | string[], code?: number);
constructor(name: string, message: string | string[], hint?: string | string[], code?: number, extra?: Record<string, any>);
}
{
"name": "@piggly/ddd-toolkit",
"version": "3.0.2",
"version": "3.0.3",
"description": "A bunch of tools to use Model-Driven Design and Domain-Driven Design architecture in a back-end application.",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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