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 2.0.0 to 2.0.1

2

dist/cjs/core/AggregateRoot.d.ts

@@ -7,3 +7,3 @@ import Entity from './Entity';

*/
export default abstract class AggregateRoot<Props, Id extends EntityID> extends Entity<Props, Id> {
export default abstract class AggregateRoot<Props, Id extends EntityID<any>> extends Entity<Props, Id> {
}

@@ -21,3 +21,3 @@ import BaseEntity from './Entity';

*
* @param {Map<EntityID, Entity>} [initial]
* @param {Map<EntityID<any>, Entity>} [initial]
* @public

@@ -29,3 +29,3 @@ * @constructor

*/
constructor(initial?: Map<EntityID, Entity>);
constructor(initial?: Map<EntityID<any>, Entity>);
/**

@@ -32,0 +32,0 @@ * Add an array of entities to the collection.

@@ -21,3 +21,3 @@ "use strict";

*
* @param {Map<EntityID, Entity>} [initial]
* @param {Map<EntityID<any>, Entity>} [initial]
* @public

@@ -24,0 +24,0 @@ * @constructor

@@ -6,3 +6,3 @@ import BaseValueObject from './ValueObject';

*/
export default class CollectionOfValueObject<ValueObject extends BaseValueObject<any>> {
export default class CollectionOfValueObjects<ValueObject extends BaseValueObject<any>> {
/**

@@ -9,0 +9,0 @@ * An array of value objects.

@@ -7,3 +7,3 @@ "use strict";

*/
class CollectionOfValueObject {
class CollectionOfValueObjects {
/**

@@ -157,3 +157,3 @@ * An array of value objects.

}
exports.default = CollectionOfValueObject;
exports.default = CollectionOfValueObjects;
//# sourceMappingURL=CollectionOfValueObjects.js.map

@@ -7,3 +7,3 @@ import Entity from './Entity';

*/
export default abstract class AggregateRoot<Props, Id extends EntityID> extends Entity<Props, Id> {
export default abstract class AggregateRoot<Props, Id extends EntityID<any>> extends Entity<Props, Id> {
}

@@ -21,3 +21,3 @@ import BaseEntity from './Entity';

*
* @param {Map<EntityID, Entity>} [initial]
* @param {Map<EntityID<any>, Entity>} [initial]
* @public

@@ -29,3 +29,3 @@ * @constructor

*/
constructor(initial?: Map<EntityID, Entity>);
constructor(initial?: Map<EntityID<any>, Entity>);
/**

@@ -32,0 +32,0 @@ * Add an array of entities to the collection.

@@ -19,3 +19,3 @@ /**

*
* @param {Map<EntityID, Entity>} [initial]
* @param {Map<EntityID<any>, Entity>} [initial]
* @public

@@ -22,0 +22,0 @@ * @constructor

@@ -6,3 +6,3 @@ import BaseValueObject from './ValueObject';

*/
export default class CollectionOfValueObject<ValueObject extends BaseValueObject<any>> {
export default class CollectionOfValueObjects<ValueObject extends BaseValueObject<any>> {
/**

@@ -9,0 +9,0 @@ * An array of value objects.

@@ -5,3 +5,3 @@ /**

*/
export default class CollectionOfValueObject {
export default class CollectionOfValueObjects {
/**

@@ -8,0 +8,0 @@ * An array of value objects.

{
"name": "@piggly/ddd-toolkit",
"version": "2.0.0",
"version": "2.0.1",
"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

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