@oino-ts/db 0.17.3 → 0.17.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.
@@ -6,6 +6,7 @@
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.OINODbApi = exports.OINODbHtmlTemplate = exports.OINODbApiResult = exports.OINODbApiRequest = void 0;
9
+ const node_buffer_1 = require("node:buffer");
9
10
  const index_js_1 = require("./index.js");
10
11
  const common_1 = require("@oino-ts/common");
11
12
  const hashid_1 = require("@oino-ts/hashid");
@@ -70,7 +71,7 @@ class OINODbApiRequest extends common_1.OINOHttpRequest {
70
71
  url: new URL(request.url),
71
72
  method: request.method,
72
73
  headers: Object.fromEntries(request.headers),
73
- data: Buffer.from(body),
74
+ data: node_buffer_1.Buffer.from(body),
74
75
  });
75
76
  }
76
77
  }
@@ -3,6 +3,7 @@
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
4
  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  */
6
+ import { Buffer } from "node:buffer";
6
7
  import { OINODbDataModel, OINOStringDataField, OINO_ERROR_PREFIX, OINODbModelSet, OINOBenchmark, OINODbConfig, OINOHtmlTemplate, OINONumberDataField, OINODbParser, OINODatetimeDataField, OINODbSqlAggregate, OINODbSqlSelect, OINODbSqlFilter, OINODbSqlOrder, OINODbSqlLimit } from "./index.js";
7
8
  import { OINOLog, OINOResult, OINOHttpRequest } from "@oino-ts/common";
8
9
  import { OINOHashid } from "@oino-ts/hashid";
@@ -1,3 +1,4 @@
1
+ import { Buffer } from "node:buffer";
1
2
  import { OINODbApiParams, OINODb, OINODbDataModel, OINODataRow, OINODbModelSet, OINOHttpResult, OINOHtmlTemplate, OINODbSqlParams, OINODbSqlAggregate, OINODbSqlSelect, OINODbSqlFilter, OINODbSqlOrder, OINODbSqlLimit } from "./index.js";
2
3
  import { OINOResult, OINOHttpRequest, OINOHttpRequestInit } from "@oino-ts/common";
3
4
  import { OINOHashid } from "@oino-ts/hashid";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oino-ts/db",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
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,13 +19,13 @@
19
19
  "module": "./dist/esm/index.js",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "dependencies": {
22
- "@oino-ts/common": "0.17.3",
22
+ "@oino-ts/common": "0.17.4",
23
23
  "oino-ts": "file:.."
24
24
  },
25
25
  "devDependencies": {
26
- "@oino-ts/types": "0.17.3",
26
+ "@oino-ts/types": "0.17.4",
27
27
  "@types/bun": "^1.1.14",
28
- "@types/node": "^20.17.30",
28
+ "@types/node": "^20.17.40",
29
29
  "typescript": "~5.9.0"
30
30
  },
31
31
  "files": [
package/src/OINODbApi.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  */
6
6
 
7
+ import { Buffer } from "node:buffer";
7
8
  import { OINODbApiParams, OINODb, OINODbDataSet, OINODbDataModel, OINODbDataField, OINOStringDataField, OINO_ERROR_PREFIX, OINODataRow, OINODataCell, OINODbModelSet, OINOBenchmark, OINODbConfig, OINOHttpResult, OINOHtmlTemplate, OINONumberDataField, OINODbParser, OINODatetimeDataField, OINODbSqlParams, OINODbSqlAggregate, OINODbSqlSelect, OINODbSqlFilter, OINODbSqlOrder, OINODbSqlLimit } from "./index.js"
8
9
  import { OINOLog, OINOResult, OINOHttpRequest, OINOHttpRequestInit } from "@oino-ts/common";
9
10
  import { OINOHashid } from "@oino-ts/hashid"