New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@piggly/ddd-toolkit

Package Overview
Dependencies
Maintainers
0
Versions
36
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.3.2 to 3.4.0

dist/cjs/core/AbstractCollectionOfAttributes.js

10

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.splitAndTrim = exports.mountURL = exports.toRFC3339 = exports.toMoment = exports.toArray = exports.toJSON = exports.randomString = exports.removeIndex = exports.removeItem = exports.parseToJson = exports.preserve = exports.parseEmpty = exports.getTimestamp = exports.deleteKeys = exports.lastAvailableString = exports.commaStringAsArray = exports.DateParser = exports.EntityIdMismatchError = exports.InvalidPayloadError = exports.BusinessRuleViolationError = exports.InvalidSchemaError = exports.RuntimeError = exports.ApplicationError = exports.DomainError = exports.UseCase = exports.ServiceProvider = exports.InfraService = exports.ApplicationService = exports.DomainService = exports.Service = exports.EventEmmiter = exports.DomainEvent = exports.Adapter = exports.MapCollectionOfValueObjects = exports.CollectionOfValueObjects = exports.AbstractCollectionOfEntities = exports.CollectionOfRelatedEnhancedEntity = exports.CollectionOfRelatedEntity = exports.CollectionOfEnhancedEntity = exports.CollectionOfEntity = exports.SchemaValidator = exports.AggregateRoot = exports.ResultChain = exports.Result = exports.EnhancedAttribute = exports.ValueObject = exports.EntityID = exports.EnhancedEntity = exports.OptionalEntity = exports.Entity = void 0;
exports.schemaValidator = void 0;
exports.toMoment = exports.toArray = exports.toJSON = exports.randomString = exports.removeIndex = exports.removeItem = exports.parseToJson = exports.preserve = exports.parseEmpty = exports.getTimestamp = exports.deleteKeys = exports.lastAvailableString = exports.commaStringAsArray = exports.DateParser = exports.EntityIdMismatchError = exports.InvalidPayloadError = exports.BusinessRuleViolationError = exports.InvalidSchemaError = exports.RuntimeError = exports.ApplicationError = exports.DomainError = exports.UseCase = exports.ServiceProvider = exports.InfraService = exports.ApplicationService = exports.DomainService = exports.Service = exports.EventEmmiter = exports.DomainEvent = exports.Adapter = exports.MapCollectionOfValueObjects = exports.CollectionOfValueObjects = exports.AbstractCollectionOfEntities = exports.CollectionOfRelatedEnhancedEntity = exports.CollectionOfRelatedEntity = exports.CollectionOfEnhancedEntity = exports.CollectionOfEntity = exports.AbstractCollectionOfAttributes = exports.CollectionOfAttributes = exports.Attribute = exports.SchemaValidator = exports.AggregateRoot = exports.ResultChain = exports.Result = exports.EnhancedAttribute = exports.ValueObject = exports.EntityID = exports.EnhancedEntity = exports.OptionalEntity = exports.Entity = void 0;
exports.schemaValidator = exports.splitAndTrim = exports.mountURL = exports.toRFC3339 = void 0;
var Entity_1 = require("./core/Entity.js");

@@ -25,2 +25,8 @@ Object.defineProperty(exports, "Entity", { enumerable: true, get: function () { return Entity_1.Entity; } });

Object.defineProperty(exports, "SchemaValidator", { enumerable: true, get: function () { return SchemaValidator_1.SchemaValidator; } });
var Attribute_1 = require("./core/Attribute.js");
Object.defineProperty(exports, "Attribute", { enumerable: true, get: function () { return Attribute_1.Attribute; } });
var CollectionOfAttributes_1 = require("./core/CollectionOfAttributes.js");
Object.defineProperty(exports, "CollectionOfAttributes", { enumerable: true, get: function () { return CollectionOfAttributes_1.CollectionOfAttributes; } });
var AbstractCollectionOfAttributes_1 = require("./core/AbstractCollectionOfAttributes.js");
Object.defineProperty(exports, "AbstractCollectionOfAttributes", { enumerable: true, get: function () { return AbstractCollectionOfAttributes_1.AbstractCollectionOfAttributes; } });
var CollectionOfEntity_1 = require("./core/CollectionOfEntity.js");

@@ -27,0 +33,0 @@ Object.defineProperty(exports, "CollectionOfEntity", { enumerable: true, get: function () { return CollectionOfEntity_1.CollectionOfEntity; } });

3

dist/esm/index.js

@@ -11,2 +11,5 @@ export { Entity } from './core/Entity.js';

export { SchemaValidator } from './core/SchemaValidator.js';
export { Attribute } from './core/Attribute.js';
export { CollectionOfAttributes } from './core/CollectionOfAttributes.js';
export { AbstractCollectionOfAttributes } from './core/AbstractCollectionOfAttributes.js';
export { CollectionOfEntity } from './core/CollectionOfEntity.js';

@@ -13,0 +16,0 @@ export { CollectionOfEnhancedEntity } from './core/CollectionOfEnhancedEntity.js';

@@ -27,1 +27,6 @@ import type { TOrAnother } from '../../types';

}
export interface IAttribute<Props extends Record<any, any> = Record<any, any>> {
clone(): IAttribute<Props>;
hash(): string;
equals(a: IAttribute<Props> | undefined | null): boolean;
}

@@ -11,2 +11,5 @@ export { Entity } from './core/Entity';

export { SchemaValidator } from './core/SchemaValidator';
export { Attribute } from './core/Attribute';
export { CollectionOfAttributes } from './core/CollectionOfAttributes';
export { AbstractCollectionOfAttributes } from './core/AbstractCollectionOfAttributes';
export { CollectionOfEntity } from './core/CollectionOfEntity';

@@ -39,2 +42,2 @@ export { CollectionOfEnhancedEntity } from './core/CollectionOfEnhancedEntity';

export type { DomainErrorJSON, ApplicationErrorJSON, RuntimeErrorJSON, PreviousErrorJSON, PreviousError, DomainErrorHiddenProp, IDomainError, IApplicationError, IRuntimeError, } from './core/errors/types';
export type { RelatedEntity, RelatedEnhancedEntity, IDomainEvent, EventListener, ResultFn, ResultReturnType, } from './core/types';
export type { RelatedEntity, RelatedEnhancedEntity, IDomainEvent, EventListener, ResultFn, ResultReturnType, IEntity, IAttribute, } from './core/types';
{
"name": "@piggly/ddd-toolkit",
"version": "3.3.2",
"version": "3.4.0",
"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