@cryptexlabs/codex-nodejs-common 0.14.2 → 0.14.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.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptexlabs/codex-nodejs-common",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
4
4
  "description": "Common code for Codex framework",
5
5
  "main": "lib/src/index.js",
6
6
  "type": "commonjs",
@@ -7,3 +7,4 @@ export * from "./uuidv4.array.validation.pipe";
7
7
  export * from "./uuidv4.validation.pipe";
8
8
  export * from "./integer.validation.pipe";
9
9
  export * from "./float.validation.pipe";
10
+ export * from "./custom.parse-bool.pipe";
@@ -23,4 +23,5 @@ __exportStar(require("./uuidv4.array.validation.pipe"), exports);
23
23
  __exportStar(require("./uuidv4.validation.pipe"), exports);
24
24
  __exportStar(require("./integer.validation.pipe"), exports);
25
25
  __exportStar(require("./float.validation.pipe"), exports);
26
+ __exportStar(require("./custom.parse-bool.pipe"), exports);
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6CAA2B;AAC3B,uDAAqC;AACrC,mDAAiC;AACjC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6CAA2B;AAC3B,uDAAqC;AACrC,mDAAiC;AACjC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DateUtil = void 0;
4
- const moment_1 = require("moment");
4
+ const moment = require("moment");
5
5
  class DateUtil {
6
6
  static isValidISO8601Date(dateString) {
7
7
  const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d+)?(Z|[+-]\d{2}:\d{2})$/;
@@ -11,13 +11,13 @@ class DateUtil {
11
11
  if (!date) {
12
12
  return date;
13
13
  }
14
- return ((0, moment_1.default)(date, "YYYY-MM-DD HH:mm:ss").toISOString(true).slice(0, 23) + "Z");
14
+ return (moment(date, "YYYY-MM-DD HH:mm:ss").toISOString(true).slice(0, 23) + "Z");
15
15
  }
16
16
  static toMysqlString(date) {
17
17
  if (!date) {
18
18
  return date;
19
19
  }
20
- return (0, moment_1.default)(date, "YYYY-MM-DDThh:mm:ssZ")
20
+ return moment(date, "YYYY-MM-DDThh:mm:ssZ")
21
21
  .utcOffset(0)
22
22
  .format("YYYY-MM-DD HH:mm:ss");
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"date.util.js","sourceRoot":"","sources":["../../../src/util/date.util.ts"],"names":[],"mappings":";;;AAAA,mCAA4B;AAE5B,MAAa,QAAQ;IACZ,MAAM,CAAC,kBAAkB,CAAC,UAAkB;QACjD,MAAM,KAAK,GAAG,iEAAiE,CAAC;QAChF,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,0BAA0B,CAAC,IAAmB;QACnD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,IAAW,CAAC;QACrB,CAAC;QACD,OAAO,CACL,IAAA,gBAAM,EAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CACzE,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,IAAmB;QACtC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,IAAW,CAAC;QACrB,CAAC;QACD,OAAO,IAAA,gBAAM,EAAC,IAAI,EAAE,sBAAsB,CAAC;aACxC,SAAS,CAAC,CAAC,CAAC;aACZ,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACnC,CAAC;CACF;AAvBD,4BAuBC"}
1
+ {"version":3,"file":"date.util.js","sourceRoot":"","sources":["../../../src/util/date.util.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AAEjC,MAAa,QAAQ;IACZ,MAAM,CAAC,kBAAkB,CAAC,UAAkB;QACjD,MAAM,KAAK,GAAG,iEAAiE,CAAC;QAChF,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,0BAA0B,CAAC,IAAmB;QACnD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,IAAW,CAAC;QACrB,CAAC;QACD,OAAO,CACL,MAAM,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CACzE,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,IAAmB;QACtC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,IAAW,CAAC;QACrB,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,EAAE,sBAAsB,CAAC;aACxC,SAAS,CAAC,CAAC,CAAC;aACZ,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACnC,CAAC;CACF;AAvBD,4BAuBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptexlabs/codex-nodejs-common",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
4
4
  "description": "Common code for Codex framework",
5
5
  "main": "lib/src/index.js",
6
6
  "type": "commonjs",
package/src/pipe/index.ts CHANGED
@@ -7,3 +7,4 @@ export * from "./uuidv4.array.validation.pipe";
7
7
  export * from "./uuidv4.validation.pipe";
8
8
  export * from "./integer.validation.pipe";
9
9
  export * from "./float.validation.pipe";
10
+ export * from "./custom.parse-bool.pipe";
@@ -1,4 +1,4 @@
1
- import moment from "moment";
1
+ import * as moment from "moment";
2
2
 
3
3
  export class DateUtil {
4
4
  public static isValidISO8601Date(dateString: string) {