@napp/dti-core 3.0.3 → 3.0.8

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.
package/common.d.ts CHANGED
@@ -1,3 +1,9 @@
1
+ export declare enum DtiMode {
2
+ QJson = "qjson",
3
+ QStr = "qstr",
4
+ BJson = "bjson",
5
+ BForm = "bform"
6
+ }
1
7
  export interface Serializer<T> {
2
8
  encode: (param: T) => string;
3
9
  decode: (text: string) => T;
package/common.js CHANGED
@@ -1,2 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DtiMode = void 0;
4
+ var DtiMode;
5
+ (function (DtiMode) {
6
+ DtiMode["QJson"] = "qjson";
7
+ DtiMode["QStr"] = "qstr";
8
+ DtiMode["BJson"] = "bjson";
9
+ DtiMode["BForm"] = "bform";
10
+ })(DtiMode = exports.DtiMode || (exports.DtiMode = {}));
package/meta.js CHANGED
@@ -38,14 +38,14 @@ var Dti = /** @class */ (function () {
38
38
  });
39
39
  Object.defineProperty(Dti.prototype, "queryMode", {
40
40
  get: function () {
41
- return this.opt.queryMode || 'base64';
41
+ return this.opt.queryMode || '';
42
42
  },
43
43
  enumerable: false,
44
44
  configurable: true
45
45
  });
46
46
  Object.defineProperty(Dti.prototype, "bodyMode", {
47
47
  get: function () {
48
- return this.opt.bodyMode || 'json';
48
+ return this.opt.bodyMode || '';
49
49
  },
50
50
  enumerable: false,
51
51
  configurable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napp/dti-core",
3
- "version": "3.0.3",
3
+ "version": "3.0.8",
4
4
  "description": "data transaction interface core library",
5
5
  "types": "index.d.ts",
6
6
  "main": "index.js",