@8ms/helpers 1.1.16 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
- "version": "1.1.16",
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"