@oino-ts/db 0.11.0 → 0.12.2

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.
@@ -147,7 +147,7 @@ class OINODbHtmlTemplate extends index_js_1.OINOHtmlTemplate {
147
147
  await dataset.next();
148
148
  }
149
149
  this.modified = last_modified;
150
- const result = this._createHttpResult(html, false);
150
+ const result = this._createHttpResult(html);
151
151
  index_js_1.OINOBenchmark.endMetric("OINOHtmlTemplate", "renderFromDbData");
152
152
  return result;
153
153
  }
@@ -143,7 +143,7 @@ export class OINODbHtmlTemplate extends OINOHtmlTemplate {
143
143
  await dataset.next();
144
144
  }
145
145
  this.modified = last_modified;
146
- const result = this._createHttpResult(html, false);
146
+ const result = this._createHttpResult(html);
147
147
  OINOBenchmark.endMetric("OINOHtmlTemplate", "renderFromDbData");
148
148
  return result;
149
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/db",
3
- "version": "0.11.0",
3
+ "version": "0.12.2",
4
4
  "description": "OINO TS library package for publishing an SQL database tables as a REST API.",
5
5
  "author": "Matias Kiviniemi (pragmatta)",
6
6
  "license": "MPL-2.0",
@@ -19,11 +19,11 @@
19
19
  "module": "./dist/esm/index.js",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "dependencies": {
22
- "@oino-ts/common": "0.11.0",
22
+ "@oino-ts/common": "0.12.2",
23
23
  "oino-ts": "file:.."
24
24
  },
25
25
  "devDependencies": {
26
- "@oino-ts/types": "0.11.0",
26
+ "@oino-ts/types": "0.12.2",
27
27
  "@types/bun": "^1.1.14",
28
28
  "@types/node": "^20.14.10",
29
29
  "typescript": "~5.9.0"
@@ -151,7 +151,7 @@ function encodeResult(o:any|undefined):string {
151
151
  function createApiTemplate(api:OINODbApi):OINODbHtmlTemplate {
152
152
  let template_str = ""
153
153
  for (let i=0; i<api.datamodel.fields.length; i++) {
154
- template_str += "<input type='text' name='" + api.datamodel.fields[i].name + "' value='###" + api.datamodel.fields[i].name + "###'></input>"
154
+ template_str += "<input type='text' name='" + api.datamodel.fields[i].name + "' value='{{{" + api.datamodel.fields[i].name + "}}}'></input>"
155
155
  }
156
156
  return new OINODbHtmlTemplate(template_str, -1, "fi", "medium")
157
157
  }
package/src/OINODbApi.ts CHANGED
@@ -150,7 +150,7 @@ export class OINODbHtmlTemplate extends OINOHtmlTemplate {
150
150
  await dataset.next()
151
151
  }
152
152
  this.modified = last_modified
153
- const result:OINOHttpResult = this._createHttpResult(html, false)
153
+ const result:OINOHttpResult = this._createHttpResult(html)
154
154
  OINOBenchmark.endMetric("OINOHtmlTemplate", "renderFromDbData")
155
155
  return result
156
156
  }