@8ms/helpers 1.1.15 → 1.1.16

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.
@@ -2,7 +2,7 @@ import { FinancialYearType } from './financialYear';
2
2
  /**
3
3
  * Get the current financial year.
4
4
  */
5
- declare const getFinancialYear: ({ year }: {
5
+ declare const getFinancialYear: ({ year }?: {
6
6
  year?: number;
7
7
  }) => FinancialYearType;
8
8
  export default getFinancialYear;
@@ -12,7 +12,7 @@ var getToday_1 = __importDefault(require("./getToday"));
12
12
  * Get the current financial year.
13
13
  */
14
14
  var getFinancialYear = function (_a) {
15
- var _b = _a.year, year = _b === void 0 ? undefined : _b;
15
+ var _b = _a === void 0 ? {} : _a, _c = _b.year, year = _c === void 0 ? undefined : _c;
16
16
  // Either use the current year or a specified year
17
17
  var financialYear = year;
18
18
  if (undefined === year) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"