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

@serialized/serialized-client

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialized/serialized-client - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

1

dist/AggregatesClient.d.ts

@@ -38,3 +38,2 @@ import { BaseClient, DomainEvent, EventEnvelope } from './';

private readonly aggregateType;
private readonly eventHandlers;
private readonly initialState;

@@ -41,0 +40,0 @@ private readonly stateLoader;

2

dist/AggregatesClient.js

@@ -60,5 +60,5 @@ "use strict";

var aggregateTypeInstance = new aggregateTypeConstructor.prototype.constructor({});
_this.stateLoader = new StateLoader_1.StateLoader(aggregateTypeConstructor);
_this.aggregateType = aggregateTypeInstance.aggregateType;
_this.initialState = aggregateTypeInstance.initialState;
_this.stateLoader = new StateLoader_1.StateLoader(aggregateTypeInstance.initialState, aggregateTypeInstance.eventHandlers);
return _this;

@@ -65,0 +65,0 @@ }

import { DomainEvent, EventEnvelope } from "./";
declare class StateLoader {
private initialState;
private readonly stateType;
private readonly initialState;
private readonly eventHandlers;
constructor(initialState: any, eventHandlers: any);
constructor(stateType: any);
loadState(events: EventEnvelope<DomainEvent>[]): any;
}
export { StateLoader };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var StateLoader = /** @class */ (function () {
function StateLoader(initialState, eventHandlers) {
this.initialState = initialState;
this.eventHandlers = eventHandlers;
function StateLoader(stateType) {
this.stateType = stateType;
var instance = new stateType.prototype.constructor({});
this.initialState = instance.initialState;
this.eventHandlers = instance.eventHandlers;
}

@@ -8,0 +10,0 @@ StateLoader.prototype.loadState = function (events) {

@@ -6,3 +6,3 @@ {

"author": "Mattias Holmqvist",
"version": "3.1.0",
"version": "3.2.0",
"main": "dist/index.js",

@@ -9,0 +9,0 @@ "types": "dist/index.d.ts",

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