@alwaysmeticulous/replay-orchestrator-launcher 2.42.0

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/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2022, Meticulous Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Replay Orchestrator Launcher
2
+
3
+ Downloads the replay-orchestrator bundle script and executes it
@@ -0,0 +1,3 @@
1
+ import { ExecuteTestRunOptions, ExecuteTestRunResult, ReplayAndStoreResultsOptions, ReplayExecution } from "@alwaysmeticulous/sdk-bundles-api";
2
+ export declare const replayAndStoreResults: (options: Omit<ReplayAndStoreResultsOptions, "logLevel">) => Promise<ReplayExecution>;
3
+ export declare const executeTestRun: (options: Omit<ExecuteTestRunOptions, "logLevel">) => Promise<ExecuteTestRunResult>;
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.executeTestRun = exports.replayAndStoreResults = void 0;
7
+ const common_1 = require("@alwaysmeticulous/common");
8
+ const downloading_helpers_1 = require("@alwaysmeticulous/downloading-helpers");
9
+ const loglevel_1 = __importDefault(require("loglevel"));
10
+ const replayAndStoreResults = async (options) => {
11
+ const logger = loglevel_1.default.getLogger(common_1.METICULOUS_LOGGER_NAME);
12
+ const bundleLocation = await (0, downloading_helpers_1.fetchAsset)("replay/v3/replay-and-store-results.bundle.js");
13
+ return (await require(bundleLocation)).replayAndStoreResults({
14
+ ...options,
15
+ logLevel: logger.getLevel(),
16
+ });
17
+ };
18
+ exports.replayAndStoreResults = replayAndStoreResults;
19
+ const executeTestRun = async (options) => {
20
+ const logger = loglevel_1.default.getLogger(common_1.METICULOUS_LOGGER_NAME);
21
+ const bundleLocation = await (0, downloading_helpers_1.fetchAsset)("replay/v3/execute-test-run.bundle.js");
22
+ return (await require(bundleLocation)).executeTestRun({
23
+ ...options,
24
+ logLevel: logger.getLevel(),
25
+ });
26
+ };
27
+ exports.executeTestRun = executeTestRun;
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@alwaysmeticulous/replay-orchestrator-launcher",
3
+ "version": "2.42.0",
4
+ "description": "Downloads the replay-orchestrator bundle script and executes it",
5
+ "license": "ISC",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "clean": "rimraf dist tsconfig.tsbuildinfo",
13
+ "build": "tsc --build tsconfig.json",
14
+ "dev": "tsc --build tsconfig.json --watch",
15
+ "format": "prettier --write src",
16
+ "lint": "eslint src --ext=ts,tsx,js --cache",
17
+ "lint:commit": "eslint --cache $(git diff --relative --name-only --diff-filter=ACMRTUXB master | grep -E \"(.js$|.ts$|.tsx$)\")",
18
+ "lint:fix": "eslint src --ext=ts,tsx,js --cache --fix",
19
+ "depcheck": "depcheck --ignore-patterns=dist"
20
+ },
21
+ "dependencies": {
22
+ "@alwaysmeticulous/common": "^2.42.0",
23
+ "@alwaysmeticulous/downloading-helpers": "^2.42.0",
24
+ "@alwaysmeticulous/sdk-bundles-api": "^2.42.1",
25
+ "loglevel": "^1.8.0"
26
+ },
27
+ "author": {
28
+ "name": "The Meticulous Team",
29
+ "email": "eng@meticulous.ai",
30
+ "url": "https://meticulous.ai"
31
+ },
32
+ "engines": {
33
+ "node": ">= 12"
34
+ },
35
+ "homepage": "https://github.com/alwaysmeticulous/meticulous-sdk",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/alwaysmeticulous/meticulous-sdk.git",
39
+ "directory": "packages/replay-orchestrator-launcher"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
43
+ },
44
+ "gitHead": "a931db7e68e79994ed48268e0646363d09bd57c6"
45
+ }