@sqb/oracle-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.
@@ -85,11 +85,13 @@ class OracleSerializer {
85
85
  return defFn(ctx, o) || 'from dual';
86
86
  }
87
87
  _serializeComparison(ctx, o, defFn) {
88
- if (o.right === 'null') {
89
- if (o.operatorType === 'eq')
90
- o.symbol = 'is';
91
- if (o.operatorType === 'ne')
92
- o.symbol = 'is not';
88
+ if (o.right) {
89
+ if (o.right.expression.toLowerCase() === 'null') {
90
+ if (o.operatorType === 'eq')
91
+ return defFn(ctx, { ...o, operatorType: builder_1.OperatorType.is, symbol: 'is' });
92
+ if (o.operatorType === 'ne')
93
+ return defFn(ctx, { ...o, operatorType: builder_1.OperatorType.isNot, symbol: 'is not' });
94
+ }
93
95
  }
94
96
  return defFn(ctx, o);
95
97
  }
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 OracleSerializer_1 = require("./OracleSerializer");
5
- builder_1.registerSerializer(new OracleSerializer_1.OracleSerializer());
5
+ (0, builder_1.registerSerializer)(new OracleSerializer_1.OracleSerializer());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/oracle-dialect",
3
3
  "description": "SQB serialization extension for Oracle 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>"
@@ -22,15 +22,15 @@
22
22
  "database"
23
23
  ],
24
24
  "dependencies": {
25
- "compare-versions": "^3.6.0"
25
+ "compare-versions": "^4.1.1"
26
26
  },
27
27
  "devDependencies": {
28
- "fast-glob": "^3.2.5"
28
+ "fast-glob": "^3.2.6"
29
29
  },
30
30
  "main": "dist/index.js",
31
31
  "types": "dist/index.d.ts",
32
32
  "engines": {
33
- "node": ">= 10.0"
33
+ "node": ">= 14.0"
34
34
  },
35
35
  "directories": {
36
36
  "lib": "dist",
@@ -45,7 +45,7 @@
45
45
  "temp-dir": "./coverage/.nyc_output"
46
46
  },
47
47
  "scripts": {
48
- "test": "ts-mocha -p test/tsconfig.json --paths --reporter spec test/**/*.spec.ts",
48
+ "test": "TS_NODE_PROJECT='./test/tsconfig.json' mocha -r ts-node/register -r tsconfig-paths/register --reporter spec test/**/*.spec.ts",
49
49
  "cover": "nyc --reporter=cobertura --reporter html --reporter text npm run test",
50
50
  "build": "tsc -b tsconfig-build.json",
51
51
  "compile": "tsc -b tsconfig.json",