@onivoro/isomorphic-common 0.0.12 → 0.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/isomorphic-common",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "main": "./src/index.js",
5
5
  "type": "commonjs"
6
6
  }
@@ -1,2 +1 @@
1
- import { addOffset } from "./add-offset.function";
2
- export declare const fromCalendarDate: typeof addOffset;
1
+ export declare function fromCalendarDate(input: string | Date | undefined | null): Date | null;
@@ -2,5 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fromCalendarDate = void 0;
4
4
  const add_offset_function_1 = require("./add-offset.function");
5
- exports.fromCalendarDate = add_offset_function_1.addOffset;
5
+ function fromCalendarDate(input) {
6
+ return (0, add_offset_function_1.addOffset)(input) || null;
7
+ }
8
+ exports.fromCalendarDate = fromCalendarDate;
6
9
  //# sourceMappingURL=from-calendar-date.function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"from-calendar-date.function.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/from-calendar-date.function.ts"],"names":[],"mappings":";;;AAAA,+DAAkD;AAErC,QAAA,gBAAgB,GAAG,+BAAS,CAAC"}
1
+ {"version":3,"file":"from-calendar-date.function.js","sourceRoot":"","sources":["../../../../../../libs/isomorphic-common/src/lib/functions/from-calendar-date.function.ts"],"names":[],"mappings":";;;AAAA,+DAAkD;AAElD,SAAgB,gBAAgB,CAAC,KAAuC;IACpE,OAAO,IAAA,+BAAS,EAAC,KAAK,CAAC,IAAI,IAAI,CAAC;AACpC,CAAC;AAFD,4CAEC"}