@akashic/headless-driver 2.5.3 → 2.6.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeVM } from "vm2";
|
|
2
2
|
import type { AMFlowClient } from "../play/amflow/AMFlowClient";
|
|
3
3
|
import type { PlayManager } from "../play/PlayManager";
|
|
4
|
+
import type { RunnerStartParameters } from "./Runner";
|
|
4
5
|
import type { RunnerExecutionMode, RunnerPlayer, RunnerRenderingMode } from "./types";
|
|
5
6
|
import type { RunnerV1, RunnerV1Game } from "./v1";
|
|
6
7
|
import type { RunnerV2, RunnerV2Game } from "./v2";
|
|
@@ -75,7 +76,7 @@ export declare class RunnerManager {
|
|
|
75
76
|
* Runner を開始する。
|
|
76
77
|
* @param runnerId RunnerID
|
|
77
78
|
*/
|
|
78
|
-
startRunner(runnerId: string): Promise<RunnerV1Game | RunnerV2Game | RunnerV3Game | null>;
|
|
79
|
+
startRunner(runnerId: string, options?: RunnerStartParameters): Promise<RunnerV1Game | RunnerV2Game | RunnerV3Game | null>;
|
|
79
80
|
/**
|
|
80
81
|
* Runner を停止する。
|
|
81
82
|
* @param runnerId RunnerID
|
|
@@ -157,13 +157,13 @@ class RunnerManager {
|
|
|
157
157
|
* Runner を開始する。
|
|
158
158
|
* @param runnerId RunnerID
|
|
159
159
|
*/
|
|
160
|
-
startRunner(runnerId) {
|
|
160
|
+
startRunner(runnerId, options) {
|
|
161
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
162
|
const runner = this.getRunner(runnerId);
|
|
163
163
|
if (!runner) {
|
|
164
164
|
throw new Error("Runner is not found");
|
|
165
165
|
}
|
|
166
|
-
return runner.start();
|
|
166
|
+
return runner.start(options);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akashic/headless-driver",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "A library to execute contents using Akashic Engine headlessly",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "DWANGO Co., Ltd.",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@akashic/trigger": "^1.0.1",
|
|
30
30
|
"engine-files-v1": "npm:@akashic/engine-files@1.2.1",
|
|
31
31
|
"engine-files-v2": "npm:@akashic/engine-files@2.2.2",
|
|
32
|
-
"engine-files-v3": "npm:@akashic/engine-files@3.6.
|
|
32
|
+
"engine-files-v3": "npm:@akashic/engine-files@3.6.3",
|
|
33
33
|
"js-sha256": "^0.9.0",
|
|
34
34
|
"lodash.clonedeep": "^4.5.0",
|
|
35
35
|
"node-fetch": "^2.6.7",
|