@sealcode/sealgen 0.17.7 → 0.17.9

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.
@@ -20,7 +20,7 @@ class CollectionField extends FormField {
20
20
  ctx.$context,
21
21
  encoded_value,
22
22
  null,
23
- {}
23
+ this.sealiousField.typeName == "text" ? "original" : {}
24
24
  );
25
25
  return {
26
26
  parsable: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.17.7",
3
+ "version": "0.17.9",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
package/src/builder.ts CHANGED
@@ -10,10 +10,6 @@ import { generateRoutes } from "./generate-routes.js";
10
10
  import { generateStimulusControllers } from "./generate-stimulus.js";
11
11
  import { FONTS_CONFIG_PATH, getFonts } from "./get-fonts.js";
12
12
  import { relative, resolve } from "node:path";
13
- import {
14
- prepareSingleFileReplaceTscAliasPaths,
15
- SingleFileReplacer,
16
- } from "tsc-alias";
17
13
 
18
14
  export abstract class Builder {
19
15
  abstract ownsFile(file_path: string): boolean;
@@ -31,11 +31,12 @@ export class CollectionField<
31
31
  ctx.$context,
32
32
  raw_value
33
33
  )) as Depromisify<ReturnType<F["encode"]>>;
34
+
34
35
  const parsed_value = (await this.sealiousField.decode(
35
36
  ctx.$context,
36
37
  encoded_value,
37
38
  null,
38
- {}
39
+ this.sealiousField.typeName == "text" ? "original" : {}
39
40
  )) as ExtractFieldDecoded<F>;
40
41
  return {
41
42
  parsable: true,