@mochabug/adapt-web 0.0.63 → 0.0.65
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mochabug/adapt-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "The client library to execute automations, without effort, in a browser environment",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"generate": "cd ../../ && buf generate --include-imports --template clients/web/buf.gen.yaml",
|
|
34
|
+
"generate": "rm -rf src/genrproto && cd ../../ && buf generate --include-imports --template clients/web/buf.gen.yaml",
|
|
35
35
|
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
36
36
|
"build:esm": "tsc --project tsconfig.esm.json",
|
|
37
37
|
"build:types": "tsc --project tsconfig.types.json",
|
|
38
|
-
"build": "npm run generate && npm run build:cjs && npm run build:esm && npm run build:types",
|
|
38
|
+
"build": "npm run generate && rm -rf dist && npm run build:cjs && npm run build:esm && npm run build:types",
|
|
39
39
|
"test": "vitest",
|
|
40
40
|
"test:ui": "vitest --ui",
|
|
41
41
|
"test:run": "vitest run"
|
package/dist/cjs/test-utils.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findAvailablePort = findAvailablePort;
|
|
4
|
-
const http_1 = require("http");
|
|
5
|
-
/**
|
|
6
|
-
* Find an available port dynamically
|
|
7
|
-
*/
|
|
8
|
-
async function findAvailablePort() {
|
|
9
|
-
return new Promise((resolve, reject) => {
|
|
10
|
-
const server = (0, http_1.createServer)();
|
|
11
|
-
server.listen(0, () => {
|
|
12
|
-
const address = server.address();
|
|
13
|
-
if (!address || typeof address === "string") {
|
|
14
|
-
reject(new Error("Failed to get port"));
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const port = address.port;
|
|
18
|
-
server.close(() => resolve(port));
|
|
19
|
-
});
|
|
20
|
-
server.on("error", reject);
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=test-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../src/test-utils.ts"],"names":[],"mappings":";;AAKA,8CAcC;AAnBD,+BAAoC;AAEpC;;GAEG;AACI,KAAK,UAAU,iBAAiB;IACrC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAA,mBAAY,GAAE,CAAC;QAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE;YACpB,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;YACjC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAC5C,MAAM,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBACxC,OAAO;YACT,CAAC;YACD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/esm/test-utils.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createServer } from "http";
|
|
2
|
-
/**
|
|
3
|
-
* Find an available port dynamically
|
|
4
|
-
*/
|
|
5
|
-
export async function findAvailablePort() {
|
|
6
|
-
return new Promise((resolve, reject) => {
|
|
7
|
-
const server = createServer();
|
|
8
|
-
server.listen(0, () => {
|
|
9
|
-
const address = server.address();
|
|
10
|
-
if (!address || typeof address === "string") {
|
|
11
|
-
reject(new Error("Failed to get port"));
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const port = address.port;
|
|
15
|
-
server.close(() => resolve(port));
|
|
16
|
-
});
|
|
17
|
-
server.on("error", reject);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=test-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../src/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;QAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE;YACpB,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;YACjC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAC5C,MAAM,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBACxC,OAAO;YACT,CAAC;YACD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC"}
|