@forklaunch/core 0.14.0 → 0.14.1

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,17 +1,16 @@
1
+ import { Prettify } from '@forklaunch/common';
1
2
  import { AnySchemaValidator, IdiomaticSchema, Schema } from '@forklaunch/validator';
2
3
  import { Constructor } from '@mikro-orm/core';
3
4
 
4
- declare function mapper<SV extends AnySchemaValidator, DtoSchema extends IdiomaticSchema<SV>, Entity, AdditionalArgs extends unknown[] = []>(schemaValidator: SV, dtoSchema: DtoSchema, _entityConstructor: Constructor<Entity>, mapperDefinition: {
5
+ declare function requestMapper<SV extends AnySchemaValidator, DtoSchema extends IdiomaticSchema<SV>, Entity, AdditionalArgs extends unknown[] = []>(schemaValidator: SV, dtoSchema: DtoSchema, _entityConstructor: Constructor<Entity>, mapperDefinition: {
5
6
  toEntity: (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => Promise<Entity>;
6
- } | {
7
- toDto: (entity: Entity, ...args: AdditionalArgs) => Promise<Schema<DtoSchema, SV>>;
8
- } | {
9
- toEntity: (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => Promise<Entity>;
10
- toDto: (entity: Entity, ...args: AdditionalArgs) => Promise<Schema<DtoSchema, SV>>;
11
7
  }): {
12
8
  schema: DtoSchema;
13
- toEntity: (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => Promise<Entity>;
9
+ } & typeof mapperDefinition;
10
+ declare function responseMapper<SV extends AnySchemaValidator, DtoSchema extends IdiomaticSchema<SV>, Entity, AdditionalArgs extends unknown[] = []>(schemaValidator: SV, dtoSchema: DtoSchema, _entityConstructor: Constructor<Entity>, mapperDefinition: {
14
11
  toDto: (entity: Entity, ...args: AdditionalArgs) => Promise<Schema<DtoSchema, SV>>;
15
- };
12
+ }): Prettify<{
13
+ schema: DtoSchema;
14
+ } & typeof mapperDefinition>;
16
15
 
17
- export { mapper };
16
+ export { requestMapper, responseMapper };
@@ -1,17 +1,16 @@
1
+ import { Prettify } from '@forklaunch/common';
1
2
  import { AnySchemaValidator, IdiomaticSchema, Schema } from '@forklaunch/validator';
2
3
  import { Constructor } from '@mikro-orm/core';
3
4
 
4
- declare function mapper<SV extends AnySchemaValidator, DtoSchema extends IdiomaticSchema<SV>, Entity, AdditionalArgs extends unknown[] = []>(schemaValidator: SV, dtoSchema: DtoSchema, _entityConstructor: Constructor<Entity>, mapperDefinition: {
5
+ declare function requestMapper<SV extends AnySchemaValidator, DtoSchema extends IdiomaticSchema<SV>, Entity, AdditionalArgs extends unknown[] = []>(schemaValidator: SV, dtoSchema: DtoSchema, _entityConstructor: Constructor<Entity>, mapperDefinition: {
5
6
  toEntity: (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => Promise<Entity>;
6
- } | {
7
- toDto: (entity: Entity, ...args: AdditionalArgs) => Promise<Schema<DtoSchema, SV>>;
8
- } | {
9
- toEntity: (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => Promise<Entity>;
10
- toDto: (entity: Entity, ...args: AdditionalArgs) => Promise<Schema<DtoSchema, SV>>;
11
7
  }): {
12
8
  schema: DtoSchema;
13
- toEntity: (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => Promise<Entity>;
9
+ } & typeof mapperDefinition;
10
+ declare function responseMapper<SV extends AnySchemaValidator, DtoSchema extends IdiomaticSchema<SV>, Entity, AdditionalArgs extends unknown[] = []>(schemaValidator: SV, dtoSchema: DtoSchema, _entityConstructor: Constructor<Entity>, mapperDefinition: {
14
11
  toDto: (entity: Entity, ...args: AdditionalArgs) => Promise<Schema<DtoSchema, SV>>;
15
- };
12
+ }): Prettify<{
13
+ schema: DtoSchema;
14
+ } & typeof mapperDefinition>;
16
15
 
17
- export { mapper };
16
+ export { requestMapper, responseMapper };
@@ -20,20 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/mappers/index.ts
21
21
  var mappers_exports = {};
22
22
  __export(mappers_exports, {
23
- mapper: () => mapper
23
+ requestMapper: () => requestMapper,
24
+ responseMapper: () => responseMapper
24
25
  });
25
26
  module.exports = __toCommonJS(mappers_exports);
26
27
 
27
28
  // src/mappers/mapper.ts
28
29
  var import_validator = require("@forklaunch/validator");
29
- function mapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition) {
30
+ function requestMapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition) {
30
31
  const sv = schemaValidator;
31
32
  return {
33
+ ...mapperDefinition,
32
34
  schema: dtoSchema,
33
35
  toEntity: async (dto, ...args) => {
34
- if (!("toEntity" in mapperDefinition)) {
35
- throw new Error("toEntity not found in mapperDefinition");
36
- }
37
36
  const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);
38
37
  if (!parsedSchema.ok) {
39
38
  throw new Error((0, import_validator.prettyPrintParseErrors)(parsedSchema.errors, "DTO"));
@@ -42,11 +41,15 @@ function mapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition
42
41
  dto,
43
42
  ...args
44
43
  );
45
- },
44
+ }
45
+ };
46
+ }
47
+ function responseMapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition) {
48
+ const sv = schemaValidator;
49
+ return {
50
+ ...mapperDefinition,
51
+ schema: dtoSchema,
46
52
  toDto: async (entity, ...args) => {
47
- if (!("toDto" in mapperDefinition)) {
48
- throw new Error("toDto not found in mapperDefinition");
49
- }
50
53
  const dto = await mapperDefinition.toDto(entity, ...args);
51
54
  const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);
52
55
  if (!parsedSchema.ok) {
@@ -58,6 +61,7 @@ function mapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition
58
61
  }
59
62
  // Annotate the CommonJS export names for ESM import in node:
60
63
  0 && (module.exports = {
61
- mapper
64
+ requestMapper,
65
+ responseMapper
62
66
  });
63
67
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/mappers/index.ts","../../src/mappers/mapper.ts"],"sourcesContent":["export * from './mapper';\n","import {\n AnySchemaValidator,\n IdiomaticSchema,\n prettyPrintParseErrors,\n Schema,\n SchemaValidator\n} from '@forklaunch/validator';\nimport { Constructor } from '@mikro-orm/core';\n\nexport function mapper<\n SV extends AnySchemaValidator,\n DtoSchema extends IdiomaticSchema<SV>,\n Entity,\n AdditionalArgs extends unknown[] = []\n>(\n schemaValidator: SV,\n dtoSchema: DtoSchema,\n _entityConstructor: Constructor<Entity>,\n mapperDefinition:\n | {\n toEntity: (\n dto: Schema<DtoSchema, SV>,\n ...args: AdditionalArgs\n ) => Promise<Entity>;\n }\n | {\n toDto: (\n entity: Entity,\n ...args: AdditionalArgs\n ) => Promise<Schema<DtoSchema, SV>>;\n }\n | {\n toEntity: (\n dto: Schema<DtoSchema, SV>,\n ...args: AdditionalArgs\n ) => Promise<Entity>;\n toDto: (\n entity: Entity,\n ...args: AdditionalArgs\n ) => Promise<Schema<DtoSchema, SV>>;\n }\n) {\n const sv = schemaValidator as SchemaValidator;\n return {\n schema: dtoSchema,\n toEntity: async (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => {\n if (!('toEntity' in mapperDefinition)) {\n throw new Error('toEntity not found in mapperDefinition');\n }\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return mapperDefinition.toEntity(\n dto as Schema<DtoSchema, SV>,\n ...(args as AdditionalArgs)\n );\n },\n toDto: async (entity: Entity, ...args: AdditionalArgs) => {\n if (!('toDto' in mapperDefinition)) {\n throw new Error('toDto not found in mapperDefinition');\n }\n const dto = await mapperDefinition.toDto(entity, ...args);\n\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return dto;\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,uBAMO;AAGA,SAAS,OAMd,iBACA,WACA,oBACA,kBAuBA;AACA,QAAM,KAAK;AACX,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,UAAU,OAAO,QAA+B,SAAyB;AACvE,UAAI,EAAE,cAAc,mBAAmB;AACrC,cAAM,IAAI,MAAM,wCAAwC;AAAA,MAC1D;AACA,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,UAAM,yCAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO,iBAAiB;AAAA,QACtB;AAAA,QACA,GAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,OAAO,OAAO,WAAmB,SAAyB;AACxD,UAAI,EAAE,WAAW,mBAAmB;AAClC,cAAM,IAAI,MAAM,qCAAqC;AAAA,MACvD;AACA,YAAM,MAAM,MAAM,iBAAiB,MAAM,QAAQ,GAAG,IAAI;AAExD,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,UAAM,yCAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/mappers/index.ts","../../src/mappers/mapper.ts"],"sourcesContent":["export * from './mapper';\n","import { Prettify } from '@forklaunch/common';\nimport {\n AnySchemaValidator,\n IdiomaticSchema,\n prettyPrintParseErrors,\n Schema,\n SchemaValidator\n} from '@forklaunch/validator';\nimport { Constructor } from '@mikro-orm/core';\n\nexport function requestMapper<\n SV extends AnySchemaValidator,\n DtoSchema extends IdiomaticSchema<SV>,\n Entity,\n AdditionalArgs extends unknown[] = []\n>(\n schemaValidator: SV,\n dtoSchema: DtoSchema,\n _entityConstructor: Constructor<Entity>,\n mapperDefinition: {\n toEntity: (\n dto: Schema<DtoSchema, SV>,\n ...args: AdditionalArgs\n ) => Promise<Entity>;\n }\n): {\n schema: DtoSchema;\n} & typeof mapperDefinition {\n const sv = schemaValidator as SchemaValidator;\n return {\n ...mapperDefinition,\n schema: dtoSchema,\n\n toEntity: async (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => {\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return mapperDefinition.toEntity(\n dto as Schema<DtoSchema, SV>,\n ...(args as AdditionalArgs)\n );\n }\n };\n}\n\nexport function responseMapper<\n SV extends AnySchemaValidator,\n DtoSchema extends IdiomaticSchema<SV>,\n Entity,\n AdditionalArgs extends unknown[] = []\n>(\n schemaValidator: SV,\n dtoSchema: DtoSchema,\n _entityConstructor: Constructor<Entity>,\n mapperDefinition: {\n toDto: (\n entity: Entity,\n ...args: AdditionalArgs\n ) => Promise<Schema<DtoSchema, SV>>;\n }\n): Prettify<\n {\n schema: DtoSchema;\n } & typeof mapperDefinition\n> {\n const sv = schemaValidator as SchemaValidator;\n return {\n ...mapperDefinition,\n schema: dtoSchema,\n\n toDto: async (entity: Entity, ...args: AdditionalArgs) => {\n const dto = await mapperDefinition.toDto(entity, ...args);\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return dto;\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,uBAMO;AAGA,SAAS,cAMd,iBACA,WACA,oBACA,kBAQ0B;AAC1B,QAAM,KAAK;AACX,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,IAER,UAAU,OAAO,QAA+B,SAAyB;AACvE,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,UAAM,yCAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO,iBAAiB;AAAA,QACtB;AAAA,QACA,GAAI;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACF;AAEO,SAAS,eAMd,iBACA,WACA,oBACA,kBAUA;AACA,QAAM,KAAK;AACX,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,IAER,OAAO,OAAO,WAAmB,SAAyB;AACxD,YAAM,MAAM,MAAM,iBAAiB,MAAM,QAAQ,GAAG,IAAI;AACxD,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,UAAM,yCAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
@@ -2,14 +2,12 @@
2
2
  import {
3
3
  prettyPrintParseErrors
4
4
  } from "@forklaunch/validator";
5
- function mapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition) {
5
+ function requestMapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition) {
6
6
  const sv = schemaValidator;
7
7
  return {
8
+ ...mapperDefinition,
8
9
  schema: dtoSchema,
9
10
  toEntity: async (dto, ...args) => {
10
- if (!("toEntity" in mapperDefinition)) {
11
- throw new Error("toEntity not found in mapperDefinition");
12
- }
13
11
  const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);
14
12
  if (!parsedSchema.ok) {
15
13
  throw new Error(prettyPrintParseErrors(parsedSchema.errors, "DTO"));
@@ -18,11 +16,15 @@ function mapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition
18
16
  dto,
19
17
  ...args
20
18
  );
21
- },
19
+ }
20
+ };
21
+ }
22
+ function responseMapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition) {
23
+ const sv = schemaValidator;
24
+ return {
25
+ ...mapperDefinition,
26
+ schema: dtoSchema,
22
27
  toDto: async (entity, ...args) => {
23
- if (!("toDto" in mapperDefinition)) {
24
- throw new Error("toDto not found in mapperDefinition");
25
- }
26
28
  const dto = await mapperDefinition.toDto(entity, ...args);
27
29
  const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);
28
30
  if (!parsedSchema.ok) {
@@ -33,6 +35,7 @@ function mapper(schemaValidator, dtoSchema, _entityConstructor, mapperDefinition
33
35
  };
34
36
  }
35
37
  export {
36
- mapper
38
+ requestMapper,
39
+ responseMapper
37
40
  };
38
41
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/mappers/mapper.ts"],"sourcesContent":["import {\n AnySchemaValidator,\n IdiomaticSchema,\n prettyPrintParseErrors,\n Schema,\n SchemaValidator\n} from '@forklaunch/validator';\nimport { Constructor } from '@mikro-orm/core';\n\nexport function mapper<\n SV extends AnySchemaValidator,\n DtoSchema extends IdiomaticSchema<SV>,\n Entity,\n AdditionalArgs extends unknown[] = []\n>(\n schemaValidator: SV,\n dtoSchema: DtoSchema,\n _entityConstructor: Constructor<Entity>,\n mapperDefinition:\n | {\n toEntity: (\n dto: Schema<DtoSchema, SV>,\n ...args: AdditionalArgs\n ) => Promise<Entity>;\n }\n | {\n toDto: (\n entity: Entity,\n ...args: AdditionalArgs\n ) => Promise<Schema<DtoSchema, SV>>;\n }\n | {\n toEntity: (\n dto: Schema<DtoSchema, SV>,\n ...args: AdditionalArgs\n ) => Promise<Entity>;\n toDto: (\n entity: Entity,\n ...args: AdditionalArgs\n ) => Promise<Schema<DtoSchema, SV>>;\n }\n) {\n const sv = schemaValidator as SchemaValidator;\n return {\n schema: dtoSchema,\n toEntity: async (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => {\n if (!('toEntity' in mapperDefinition)) {\n throw new Error('toEntity not found in mapperDefinition');\n }\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return mapperDefinition.toEntity(\n dto as Schema<DtoSchema, SV>,\n ...(args as AdditionalArgs)\n );\n },\n toDto: async (entity: Entity, ...args: AdditionalArgs) => {\n if (!('toDto' in mapperDefinition)) {\n throw new Error('toDto not found in mapperDefinition');\n }\n const dto = await mapperDefinition.toDto(entity, ...args);\n\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return dto;\n }\n };\n}\n"],"mappings":";AAAA;AAAA,EAGE;AAAA,OAGK;AAGA,SAAS,OAMd,iBACA,WACA,oBACA,kBAuBA;AACA,QAAM,KAAK;AACX,SAAO;AAAA,IACL,QAAQ;AAAA,IACR,UAAU,OAAO,QAA+B,SAAyB;AACvE,UAAI,EAAE,cAAc,mBAAmB;AACrC,cAAM,IAAI,MAAM,wCAAwC;AAAA,MAC1D;AACA,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,MAAM,uBAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO,iBAAiB;AAAA,QACtB;AAAA,QACA,GAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,OAAO,OAAO,WAAmB,SAAyB;AACxD,UAAI,EAAE,WAAW,mBAAmB;AAClC,cAAM,IAAI,MAAM,qCAAqC;AAAA,MACvD;AACA,YAAM,MAAM,MAAM,iBAAiB,MAAM,QAAQ,GAAG,IAAI;AAExD,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,MAAM,uBAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/mappers/mapper.ts"],"sourcesContent":["import { Prettify } from '@forklaunch/common';\nimport {\n AnySchemaValidator,\n IdiomaticSchema,\n prettyPrintParseErrors,\n Schema,\n SchemaValidator\n} from '@forklaunch/validator';\nimport { Constructor } from '@mikro-orm/core';\n\nexport function requestMapper<\n SV extends AnySchemaValidator,\n DtoSchema extends IdiomaticSchema<SV>,\n Entity,\n AdditionalArgs extends unknown[] = []\n>(\n schemaValidator: SV,\n dtoSchema: DtoSchema,\n _entityConstructor: Constructor<Entity>,\n mapperDefinition: {\n toEntity: (\n dto: Schema<DtoSchema, SV>,\n ...args: AdditionalArgs\n ) => Promise<Entity>;\n }\n): {\n schema: DtoSchema;\n} & typeof mapperDefinition {\n const sv = schemaValidator as SchemaValidator;\n return {\n ...mapperDefinition,\n schema: dtoSchema,\n\n toEntity: async (dto: Schema<DtoSchema, SV>, ...args: AdditionalArgs) => {\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return mapperDefinition.toEntity(\n dto as Schema<DtoSchema, SV>,\n ...(args as AdditionalArgs)\n );\n }\n };\n}\n\nexport function responseMapper<\n SV extends AnySchemaValidator,\n DtoSchema extends IdiomaticSchema<SV>,\n Entity,\n AdditionalArgs extends unknown[] = []\n>(\n schemaValidator: SV,\n dtoSchema: DtoSchema,\n _entityConstructor: Constructor<Entity>,\n mapperDefinition: {\n toDto: (\n entity: Entity,\n ...args: AdditionalArgs\n ) => Promise<Schema<DtoSchema, SV>>;\n }\n): Prettify<\n {\n schema: DtoSchema;\n } & typeof mapperDefinition\n> {\n const sv = schemaValidator as SchemaValidator;\n return {\n ...mapperDefinition,\n schema: dtoSchema,\n\n toDto: async (entity: Entity, ...args: AdditionalArgs) => {\n const dto = await mapperDefinition.toDto(entity, ...args);\n const parsedSchema = sv.parse(sv.schemify(dtoSchema), dto);\n if (!parsedSchema.ok) {\n throw new Error(prettyPrintParseErrors(parsedSchema.errors, 'DTO'));\n }\n return dto;\n }\n };\n}\n"],"mappings":";AACA;AAAA,EAGE;AAAA,OAGK;AAGA,SAAS,cAMd,iBACA,WACA,oBACA,kBAQ0B;AAC1B,QAAM,KAAK;AACX,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,IAER,UAAU,OAAO,QAA+B,SAAyB;AACvE,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,MAAM,uBAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO,iBAAiB;AAAA,QACtB;AAAA,QACA,GAAI;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACF;AAEO,SAAS,eAMd,iBACA,WACA,oBACA,kBAUA;AACA,QAAM,KAAK;AACX,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,IAER,OAAO,OAAO,WAAmB,SAAyB;AACxD,YAAM,MAAM,MAAM,iBAAiB,MAAM,QAAQ,GAAG,IAAI;AACxD,YAAM,eAAe,GAAG,MAAM,GAAG,SAAS,SAAS,GAAG,GAAG;AACzD,UAAI,CAAC,aAAa,IAAI;AACpB,cAAM,IAAI,MAAM,uBAAuB,aAAa,QAAQ,KAAK,CAAC;AAAA,MACpE;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/core",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "forklaunch-js core package. Contains useful building blocks.",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -91,8 +91,8 @@
91
91
  "pino-pretty": "^13.1.1",
92
92
  "redis": "^5.8.2",
93
93
  "uuid": "^11.1.0",
94
- "@forklaunch/common": "0.6.0",
95
- "@forklaunch/validator": "0.10.0"
94
+ "@forklaunch/common": "0.6.1",
95
+ "@forklaunch/validator": "0.10.1"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@eslint/js": "^9.34.0",