@gnuechtel/nx-cucumber 23.1.0 → 23.1.1
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.
- package/internal/shared-util/src/index.d.ts +0 -1
- package/internal/shared-util/src/index.js +0 -1
- package/internal/shared-util/src/index.js.map +1 -1
- package/package.json +2 -3
- package/internal/shared-util/src/lib/wait-for-url.d.ts +0 -1
- package/internal/shared-util/src/lib/wait-for-url.js +0 -27
- package/internal/shared-util/src/lib/wait-for-url.js.map +0 -1
|
@@ -7,5 +7,4 @@ tslib_1.__exportStar(require("./lib/error-message"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./lib/get-package-version"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./lib/replace-in-file"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./lib/root-directory"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./lib/wait-for-url"), exports);
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/shared-util/src/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,kEAAwC;AACxC,8DAAoC;AACpC,oEAA0C;AAC1C,gEAAsC;AACtC,+DAAqC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/shared-util/src/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,kEAAwC;AACxC,8DAAoC;AACpC,oEAA0C;AAC1C,gEAAsC;AACtC,+DAAqC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnuechtel/nx-cucumber",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.1",
|
|
4
4
|
"description": "Plugin to use Cucumber within Nx workspaces",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@nx/devkit": ">=23 <24",
|
|
13
13
|
"minimatch": "^10.0.0",
|
|
14
|
-
"tslib": "^2.8.1"
|
|
15
|
-
"wait-on": "^9.5.1"
|
|
14
|
+
"tslib": "^2.8.1"
|
|
16
15
|
},
|
|
17
16
|
"peerDependencies": {
|
|
18
17
|
"@cucumber/cucumber": ">=13 <14",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function waitForUrl(url: string, timeout?: number | undefined): Promise<void>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitForUrl = waitForUrl;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
6
|
-
const waitOn = require('wait-on');
|
|
7
|
-
function waitForUrl(url_1) {
|
|
8
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* (url, timeout = undefined) {
|
|
9
|
-
if (timeout && (timeout < 1000 || timeout >= 3600))
|
|
10
|
-
throw new Error('Invalid timeout');
|
|
11
|
-
const usedTimeout = timeout || 5 * 60 * 1000;
|
|
12
|
-
console.log(`waiting for URL ${url} | timeout: ${new Date(usedTimeout).toISOString().slice(14, -5)}`);
|
|
13
|
-
const opts = {
|
|
14
|
-
resources: [url],
|
|
15
|
-
interval: usedTimeout > 4000 ? 2000 : 125,
|
|
16
|
-
window: 1000,
|
|
17
|
-
timeout: usedTimeout,
|
|
18
|
-
strictSSL: false,
|
|
19
|
-
headers: {
|
|
20
|
-
Accept: 'text/html, application/json, text/plain, */*',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
yield waitOn(opts);
|
|
24
|
-
console.log(`URL ready: ${url}`);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=wait-for-url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wait-for-url.js","sourceRoot":"","sources":["../../../../../libs/shared-util/src/lib/wait-for-url.ts"],"names":[],"mappings":";;AAGA,gCAgBC;;AAnBD,8DAA8D;AAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAElC,SAAsB,UAAU;iEAAC,GAAW,EAAE,UAA8B,SAAS;QACnF,IAAI,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,IAAI,OAAO,IAAI,IAAI,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACvF,MAAM,WAAW,GAAG,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,mBAAmB,GAAG,eAAe,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACtG,MAAM,IAAI,GAAG;YACX,SAAS,EAAE,CAAC,GAAG,CAAC;YAChB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG;YACzC,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE;gBACP,MAAM,EAAE,8CAA8C;aACvD;SACF,CAAC;QACF,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,EAAE,CAAC,CAAC;IACnC,CAAC;CAAA"}
|