@samet-it/be-couchbase-common 1.0.16 → 1.0.17

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.
@@ -57,6 +57,7 @@ const couchbase = __importStar(require("couchbase"));
57
57
  const common_1 = require("@nestjs/common");
58
58
  const config_1 = require("../config");
59
59
  const common_2 = require("@leyyo/common");
60
+ const filter_1 = require("../filter");
60
61
  // noinspection JSUnusedGlobalSymbols
61
62
  let CbAdapterService = class CbAdapterService {
62
63
  constructor() {
@@ -64,6 +65,7 @@ let CbAdapterService = class CbAdapterService {
64
65
  this._nativeErrors = new Map();
65
66
  this.logger = new common_1.Logger(this.constructor.name);
66
67
  this._clearErrors();
68
+ filter_1.cbFilterUtil.$set(this);
67
69
  }
68
70
  /**
69
71
  * Clear native errors
@@ -1,4 +1,5 @@
1
1
  import type { CbLine } from "../line";
2
+ import type { CbAdapterServiceLike } from "../adapter";
2
3
  export type FilterCastLambda<T> = (v: unknown) => T;
3
4
  export interface CbFilterUtil {
4
5
  /**
@@ -25,6 +26,7 @@ export interface CbFilterUtil {
25
26
  * Builds a sql for between
26
27
  * */
27
28
  sqlBetween(opt: CbFilterUtilWhereOpt, field: string, value: [unknown, unknown]): string | undefined;
29
+ $set(cb: CbAdapterServiceLike): void;
28
30
  }
29
31
  export interface CbFilterUtilWhereOpt {
30
32
  lines: CbLine;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samet-it/be-couchbase-common",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Couchbase common component",
5
5
  "keywords": [
6
6
  "Couchbase"