@react-pakistan/util-functions 1.25.12 → 1.25.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.
@@ -1,3 +1,5 @@
1
1
  export declare const ONE_DAY_IN_MS: number;
2
2
  export declare const ONE_WEEK_IN_MS: number;
3
3
  export declare const ONE_MONTH_IN_MS: number;
4
+ export declare const SIX_MONTHS_IN_MS: number;
5
+ export declare const ONE_YEAR_IN_MS: number;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ONE_MONTH_IN_MS = exports.ONE_WEEK_IN_MS = exports.ONE_DAY_IN_MS = void 0;
3
+ exports.ONE_YEAR_IN_MS = exports.SIX_MONTHS_IN_MS = exports.ONE_MONTH_IN_MS = exports.ONE_WEEK_IN_MS = exports.ONE_DAY_IN_MS = void 0;
4
4
  exports.ONE_DAY_IN_MS = 1 * 24 * 60 * 60 * 1000; // 1 day in milliseconds
5
5
  exports.ONE_WEEK_IN_MS = 7 * 24 * 60 * 60 * 1000; // 1 week in milliseconds
6
6
  exports.ONE_MONTH_IN_MS = 30 * 24 * 60 * 60 * 1000; // 1 month in milliseconds
7
+ exports.SIX_MONTHS_IN_MS = 6 * 30 * 24 * 60 * 60 * 1000; // 6 months in milliseconds
8
+ exports.ONE_YEAR_IN_MS = 12 * 30 * 24 * 60 * 60 * 1000; // 1 year in milliseconds
@@ -62,7 +62,7 @@ var normalizeAvailability = function (val) {
62
62
  return "https://schema.org/".concat(asUrl);
63
63
  return undefined;
64
64
  }
65
- catch (e) {
65
+ catch (_a) {
66
66
  return undefined;
67
67
  }
68
68
  };
@@ -67,7 +67,7 @@ var normalizeAvailability = function (val) {
67
67
  return "https://schema.org/".concat(asUrl);
68
68
  return undefined;
69
69
  }
70
- catch (e) {
70
+ catch (_a) {
71
71
  return undefined;
72
72
  }
73
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.25.12",
3
+ "version": "1.25.13",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {