@opengis/fastify-table 2.0.28 → 2.0.29

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 +1 @@
1
- {"version":3,"file":"logger.file.d.ts","sourceRoot":"","sources":["../../../../../server/routes/logger/controllers/logger.file.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AAEH,wBAA8B,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,gBA2F5D"}
1
+ {"version":3,"file":"logger.file.d.ts","sourceRoot":"","sources":["../../../../../server/routes/logger/controllers/logger.file.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AAEH,wBAA8B,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,gBA4F5D"}
@@ -70,6 +70,7 @@ export default async function loggerFile(req, reply) {
70
70
  : originalUrl;
71
71
  const message = (params["*"] ? '<a href="/logger-file/">...</a><br>' : "") +
72
72
  files
73
+ .sort((a, b) => lstats[a].mtimeMs - lstats[b].mtimeMs)
73
74
  .map((file) => `<a href="${relpath}/${file}${relpaceable}">${file}</a> (${lstats[file].size} bytes)`)
74
75
  .join("</br>");
75
76
  reply.headers({
@@ -10,9 +10,5 @@ export default function getForm({ pg, params, user, query, }: {
10
10
  query: {
11
11
  edit?: any;
12
12
  };
13
- }, reply: FastifyReply): Promise<{
14
- mode: string;
15
- time: number;
16
- schema: any;
17
- }>;
13
+ }, reply: FastifyReply): Promise<any>;
18
14
  //# sourceMappingURL=getFormByTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFormByTable.d.ts","sourceRoot":"","sources":["../../../../../server/routes/table/controllers/getFormByTable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAc5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAUzD,wBAA8B,OAAO,CACnC,EACE,EAAqB,EACrB,MAAM,EACN,IAAS,EACT,KAAU,GACX,EAAE;IACD,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE;QAAE,IAAI,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;CACvB,EACD,KAAK,EAAE,YAAY;;;;GAqJpB"}
1
+ {"version":3,"file":"getFormByTable.d.ts","sourceRoot":"","sources":["../../../../../server/routes/table/controllers/getFormByTable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAc5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAUzD,wBAA8B,OAAO,CACnC,EACE,EAAqB,EACrB,MAAM,EACN,IAAS,EACT,KAAU,GACX,EAAE;IACD,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE;QAAE,IAAI,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;CACvB,EACD,KAAK,EAAE,YAAY,gBAqJpB"}
@@ -45,7 +45,7 @@ export default async function getForm({ pg = pgClients.client, params, user = {}
45
45
  schema[key].options = arr;
46
46
  }
47
47
  }));
48
- const res = { mode: "form", time: 0, schema };
48
+ const res = { mode: "form", time: 0, ...loadTemplate, schema };
49
49
  if (user.uid) {
50
50
  // form in form addToken
51
51
  formatSchema(schema, user, loadTemplate?.obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [