@8ms/helpers 1.0.15 → 1.0.18

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.
@@ -5,6 +5,7 @@ import getDurationHours from './getDurationHours';
5
5
  import getDurationMinutes from './getDurationMinutes';
6
6
  import getFinancialYear from './getFinancialYear';
7
7
  import getFinancialYearToDate from './getFinancialYearToDate';
8
+ import getFinancialYearWeeks from './getFinancialYearWeeks';
8
9
  import getLastWeek from './getLastWeek';
9
10
  import getMax from './getMax';
10
11
  import getMin from './getMin';
@@ -22,4 +23,4 @@ import isThisWeek from './isThisWeek';
22
23
  import parseExcelDate from './parseExcelDate';
23
24
  import { DateType, FinancialYearType, FinancialYearWeekType, TimeframePredefinedType, TimeframeType } from './types';
24
25
  export type { DateType, FinancialYearType, FinancialYearWeekType, TimeframeType, TimeframePredefinedType, };
25
- export { Duration, DurationComparison, Timeframe, TimeframePredefined, format, getDate, getDurationHours, getDurationMinutes, getFinancialYear, getFinancialYearToDate, getLastWeek, getMax, getMin, getMonday, getNumber, getPredefinedTimeframe, getSunday, getThisWeek, getToday, getTwoWeeksAgo, getYesterday, isDateValid, isLastWeek, isThisWeek, parseExcelDate, };
26
+ export { Duration, DurationComparison, Timeframe, TimeframePredefined, format, getDate, getDurationHours, getDurationMinutes, getFinancialYear, getFinancialYearToDate, getFinancialYearWeeks, getLastWeek, getMax, getMin, getMonday, getNumber, getPredefinedTimeframe, getSunday, getThisWeek, getToday, getTwoWeeksAgo, getYesterday, isDateValid, isLastWeek, isThisWeek, parseExcelDate, };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.parseExcelDate = exports.isThisWeek = exports.isLastWeek = exports.isDateValid = exports.getYesterday = exports.getTwoWeeksAgo = exports.getToday = exports.getThisWeek = exports.getSunday = exports.getPredefinedTimeframe = exports.getNumber = exports.getMonday = exports.getMin = exports.getMax = exports.getLastWeek = exports.getFinancialYearToDate = exports.getFinancialYear = exports.getDurationMinutes = exports.getDurationHours = exports.getDate = exports.format = exports.TimeframePredefined = exports.Timeframe = exports.DurationComparison = exports.Duration = void 0;
6
+ exports.parseExcelDate = exports.isThisWeek = exports.isLastWeek = exports.isDateValid = exports.getYesterday = exports.getTwoWeeksAgo = exports.getToday = exports.getThisWeek = exports.getSunday = exports.getPredefinedTimeframe = exports.getNumber = exports.getMonday = exports.getMin = exports.getMax = exports.getLastWeek = exports.getFinancialYearWeeks = exports.getFinancialYearToDate = exports.getFinancialYear = exports.getDurationMinutes = exports.getDurationHours = exports.getDate = exports.format = exports.TimeframePredefined = exports.Timeframe = exports.DurationComparison = exports.Duration = void 0;
7
7
  var constants_1 = require("./constants");
8
8
  Object.defineProperty(exports, "Duration", { enumerable: true, get: function () { return constants_1.Duration; } });
9
9
  Object.defineProperty(exports, "DurationComparison", { enumerable: true, get: function () { return constants_1.DurationComparison; } });
@@ -21,6 +21,8 @@ var getFinancialYear_1 = __importDefault(require("./getFinancialYear"));
21
21
  exports.getFinancialYear = getFinancialYear_1.default;
22
22
  var getFinancialYearToDate_1 = __importDefault(require("./getFinancialYearToDate"));
23
23
  exports.getFinancialYearToDate = getFinancialYearToDate_1.default;
24
+ var getFinancialYearWeeks_1 = __importDefault(require("./getFinancialYearWeeks"));
25
+ exports.getFinancialYearWeeks = getFinancialYearWeeks_1.default;
24
26
  var getLastWeek_1 = __importDefault(require("./getLastWeek"));
25
27
  exports.getLastWeek = getLastWeek_1.default;
26
28
  var getMax_1 = __importDefault(require("./getMax"));
@@ -0,0 +1,5 @@
1
+ export declare const WebWorkerData: {
2
+ ERROR: string;
3
+ SUCCESS: string;
4
+ PROGRESS: string;
5
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebWorkerData = void 0;
4
+ exports.WebWorkerData = {
5
+ ERROR: 'error',
6
+ SUCCESS: 'success',
7
+ PROGRESS: 'progress',
8
+ };
@@ -0,0 +1,4 @@
1
+ import { WebWorkerData } from './constant';
2
+ import { WebWorkerDataType } from './types';
3
+ export type { WebWorkerDataType, };
4
+ export { WebWorkerData, };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebWorkerData = void 0;
4
+ var constant_1 = require("./constant");
5
+ Object.defineProperty(exports, "WebWorkerData", { enumerable: true, get: function () { return constant_1.WebWorkerData; } });
@@ -0,0 +1,2 @@
1
+ import { WebWorkerData } from './constant';
2
+ export declare type WebWorkerDataType = typeof WebWorkerData.SUCCESS | typeof WebWorkerData.ERROR | typeof WebWorkerData.PROGRESS;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
- "version": "1.0.15",
3
+ "version": "1.0.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
@@ -15,7 +15,7 @@
15
15
  "jest": "jest --watch"
16
16
  },
17
17
  "dependencies": {
18
- "axios": "0.25.0",
18
+ "axios": "0.26.0",
19
19
  "date-fns": "2.28.0",
20
20
  "lodash": "4.17.21"
21
21
  },
@@ -23,12 +23,12 @@
23
23
  "@babel/preset-env": "7.16.11",
24
24
  "@babel/preset-flow": "7.16.7",
25
25
  "@babel/preset-typescript": "7.16.7",
26
- "@types/jest": "27.4.0",
26
+ "@types/jest": "27.4.1",
27
27
  "@types/lodash": "4.14.178",
28
- "@types/node": "17.0.14",
29
- "babel-jest": "27.4.6",
30
- "jest": "27.4.7",
31
- "ts-node": "10.4.0",
28
+ "@types/node": "17.0.20",
29
+ "babel-jest": "27.5.1",
30
+ "jest": "27.5.1",
31
+ "ts-node": "10.5.0",
32
32
  "tslib": "2.3.1",
33
33
  "typescript": "4.5.5"
34
34
  }