@intuned/runtime-dev 1.2.1-hooks.7 → 1.2.1-hooks.9

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,4 +1,4 @@
1
- import type { ImportFunction } from "@intuned/runtime/dist/common/runApi/importUsingImportFunction";
1
+ import type { ImportFunction } from "@intuned/runtime/dist/common/runApi";
2
2
  import { err, ok } from "neverthrow";
3
3
 
4
4
  export const importModule: ImportFunction = async (path: string) => {
@@ -18,6 +18,7 @@ var _waitOn = _interopRequireDefault(require("wait-on"));
18
18
  var _errors = require("./runApi/errors");
19
19
  var _neverthrow = require("neverthrow");
20
20
  var _initializeContextHook = require("./initializeContextHook");
21
+ var _getPortPlease = require("get-port-please");
21
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
24
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -142,8 +143,7 @@ async function withPlaywrightContext({
142
143
  cdpAddress
143
144
  }));
144
145
  } else {
145
- const getPort = (await Promise.resolve().then(() => _interopRequireWildcard(require("get-port")))).default;
146
- const port = await getPort({
146
+ const port = await (0, _getPortPlease.getPort)({
147
147
  port: 9222
148
148
  });
149
149
  hookCdpUrl = getCdpAddress(port);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.2.1-hooks.7",
3
+ "version": "1.2.1-hooks.9",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -70,7 +70,7 @@
70
70
  "cross-fetch": "^4.0.0",
71
71
  "dotenv": "^16.3.1",
72
72
  "fs-extra": "^11.3.0",
73
- "get-port": "^7.1.0",
73
+ "get-port-please": "^3.2.0",
74
74
  "image-size": "^1.1.1",
75
75
  "inquirer": "12.6.0",
76
76
  "jsonwebtoken": "9.0.2",