@8ms/helpers 1.1.14 → 1.1.17

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.
@@ -0,0 +1,4 @@
1
+ declare const getHandlerPath: ({ context }: {
2
+ context: string;
3
+ }) => string;
4
+ export default getHandlerPath;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var getHandlerPath = function (_a) {
4
+ var context = _a.context;
5
+ return "".concat(context.split(process.cwd())[1].substring(1)
6
+ .replace(/\\/g, '/'));
7
+ };
8
+ exports.default = getHandlerPath;
@@ -1,4 +1,5 @@
1
1
  import getClient from './getClient';
2
+ import getHandlerPath from './getHandlerPath';
2
3
  import invoke from './invoke';
3
4
  export type {};
4
- export { getClient, invoke, };
5
+ export { getClient, getHandlerPath, invoke, };
@@ -3,8 +3,10 @@ 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.invoke = exports.getClient = void 0;
6
+ exports.invoke = exports.getHandlerPath = exports.getClient = void 0;
7
7
  var getClient_1 = __importDefault(require("./getClient"));
8
8
  exports.getClient = getClient_1.default;
9
+ var getHandlerPath_1 = __importDefault(require("./getHandlerPath"));
10
+ exports.getHandlerPath = getHandlerPath_1.default;
9
11
  var invoke_1 = __importDefault(require("./invoke"));
10
12
  exports.invoke = invoke_1.default;
@@ -2,7 +2,7 @@ import { FinancialYearType } from './financialYear';
2
2
  /**
3
3
  * Get the current financial year.
4
4
  */
5
- declare const getFinancialYear: ({ year }: {
6
- year: number;
5
+ declare const getFinancialYear: ({ year }?: {
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 year = _a.year;
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.14",
3
+ "version": "1.1.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"