@forklaunch/core 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __decorateClass = (decorators, target, key, kind) => {
4
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
- if (decorator = decorators[i])
7
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result) __defProp(target, key, result);
9
- return result;
10
- };
11
-
12
- // src/database/mikro/models/entities/base.entity.ts
13
- import { v4 } from "uuid";
14
- import { PrimaryKey, Property } from "@mikro-orm/core";
15
- var BaseEntity = class {
16
- id = v4();
17
- createdAt = /* @__PURE__ */ new Date();
18
- updatedAt = /* @__PURE__ */ new Date();
19
- };
20
- __decorateClass([
21
- PrimaryKey({ type: "uuid" })
22
- ], BaseEntity.prototype, "id", 2);
23
- __decorateClass([
24
- Property()
25
- ], BaseEntity.prototype, "createdAt", 2);
26
- __decorateClass([
27
- Property({ onUpdate: () => /* @__PURE__ */ new Date() })
28
- ], BaseEntity.prototype, "updatedAt", 2);
29
-
30
- // src/database/mikro/models/entities/mongo.base.entity.ts
31
- import { PrimaryKey as PrimaryKey2, Property as Property2, SerializedPrimaryKey } from "@mikro-orm/core";
32
- var MongoBaseEntity = class {
33
- _id;
34
- id;
35
- createdAt = /* @__PURE__ */ new Date();
36
- updatedAt = /* @__PURE__ */ new Date();
37
- };
38
- __decorateClass([
39
- PrimaryKey2()
40
- ], MongoBaseEntity.prototype, "_id", 2);
41
- __decorateClass([
42
- SerializedPrimaryKey()
43
- ], MongoBaseEntity.prototype, "id", 2);
44
- __decorateClass([
45
- Property2()
46
- ], MongoBaseEntity.prototype, "createdAt", 2);
47
- __decorateClass([
48
- Property2({ onUpdate: () => /* @__PURE__ */ new Date() })
49
- ], MongoBaseEntity.prototype, "updatedAt", 2);
50
- export {
51
- BaseEntity,
52
- MongoBaseEntity
53
- };