@stackflow/core
Advanced tools
+1
-4
@@ -395,5 +395,2 @@ "use strict"; | ||
| // src/event-utils/makeEvent.ts | ||
| function clone(input) { | ||
| return JSON.parse(JSON.stringify(input)); | ||
| } | ||
| function makeEvent(name, parameters) { | ||
@@ -403,3 +400,3 @@ return __spreadProps(__spreadValues({ | ||
| eventDate: time() | ||
| }, clone(parameters)), { | ||
| }, parameters), { | ||
| name | ||
@@ -406,0 +403,0 @@ }); |
+1
-4
@@ -358,5 +358,2 @@ var __defProp = Object.defineProperty; | ||
| // src/event-utils/makeEvent.ts | ||
| function clone(input) { | ||
| return JSON.parse(JSON.stringify(input)); | ||
| } | ||
| function makeEvent(name, parameters) { | ||
@@ -366,3 +363,3 @@ return __spreadProps(__spreadValues({ | ||
| eventDate: time() | ||
| }, clone(parameters)), { | ||
| }, parameters), { | ||
| name | ||
@@ -369,0 +366,0 @@ }); |
+1
-1
| { | ||
| "name": "@stackflow/core", | ||
| "version": "1.0.13", | ||
| "version": "1.0.14", | ||
| "repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -5,6 +5,2 @@ import type { DomainEvent } from "../event-types"; | ||
| function clone<T extends {}>(input: T): T { | ||
| return JSON.parse(JSON.stringify(input)); | ||
| } | ||
| export function makeEvent<T extends DomainEvent["name"]>( | ||
@@ -21,5 +17,5 @@ name: T, | ||
| eventDate: time(), | ||
| ...clone(parameters), | ||
| ...parameters, | ||
| name, | ||
| } as Extract<DomainEvent, { name: T }>; | ||
| } |
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
382046
-0.16%9562
-0.09%