@sqb/sqlite-dialect 4.0.1-beta.9 → 4.0.6

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.
@@ -3,6 +3,5 @@ export declare class SqliteSerializer implements SerializerExtension {
3
3
  dialect: string;
4
4
  serialize(ctx: SerializeContext, type: SerializationType | string, o: any, defFn: DefaultSerializeFunction): string | undefined;
5
5
  private _serializeSelect;
6
- private _serializeParameter;
7
6
  private _serializeReturning;
8
7
  }
@@ -10,8 +10,6 @@ class SqliteSerializer {
10
10
  switch (type) {
11
11
  case builder_1.SerializationType.SELECT_QUERY:
12
12
  return this._serializeSelect(ctx, o, defFn);
13
- case builder_1.SerializationType.EXTERNAL_PARAMETER:
14
- return this._serializeParameter(ctx, o);
15
13
  case builder_1.SerializationType.RETURNING_BLOCK:
16
14
  return this._serializeReturning(ctx, o, defFn);
17
15
  }
@@ -26,12 +24,6 @@ class SqliteSerializer {
26
24
  out += (!limit ? '\n' : ' ') + 'OFFSET ' + offset;
27
25
  return out;
28
26
  }
29
- _serializeParameter(ctx, o) {
30
- const prmValue = ctx.params && ctx.params[o.name];
31
- ctx.queryParams = ctx.queryParams || {};
32
- ctx.queryParams[o.name] = prmValue;
33
- return ':' + o.name;
34
- }
35
27
  // noinspection JSUnusedLocalSymbols
36
28
  _serializeReturning(ctx, arr, defFn) {
37
29
  defFn(ctx, arr);
package/dist/index.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const builder_1 = require("@sqb/builder");
4
4
  const SqliteSerializer_1 = require("./SqliteSerializer");
5
- builder_1.registerSerializer(new SqliteSerializer_1.SqliteSerializer());
5
+ (0, builder_1.registerSerializer)(new SqliteSerializer_1.SqliteSerializer());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/sqlite-dialect",
3
3
  "description": "SQB serialization extension for SQLite database",
4
- "version": "4.0.1-beta.9",
4
+ "version": "4.0.6",
5
5
  "author": "Panates Ltd.",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>"
@@ -26,7 +26,7 @@
26
26
  "main": "dist/index.js",
27
27
  "types": "dist/index.d.ts",
28
28
  "engines": {
29
- "node": ">= 10.0"
29
+ "node": ">= 14.0"
30
30
  },
31
31
  "directories": {
32
32
  "lib": "dist",
@@ -41,7 +41,7 @@
41
41
  "temp-dir": "./coverage/.nyc_output"
42
42
  },
43
43
  "scripts": {
44
- "test": "ts-mocha -p test/tsconfig.json --paths --reporter spec test/**/*.spec.ts",
44
+ "test": "TS_NODE_PROJECT='./test/tsconfig.json' mocha -r ts-node/register -r tsconfig-paths/register --reporter spec test/**/*.spec.ts",
45
45
  "cover": "nyc --reporter=cobertura --reporter html --reporter text npm run test",
46
46
  "build": "tsc -b tsconfig-build.json",
47
47
  "compile": "tsc -b tsconfig.json",