genlayer 0.0.18 → 0.0.19
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.
|
@@ -10,10 +10,17 @@ jobs:
|
|
|
10
10
|
release:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
|
+
- name: Get CI Bot Token
|
|
14
|
+
uses: tibdex/github-app-token@v1
|
|
15
|
+
id: ci_bot_token
|
|
16
|
+
with:
|
|
17
|
+
app_id: ${{ secrets.CI_BOT_APP_ID }}
|
|
18
|
+
private_key: ${{ secrets.CI_BOT_SECRET }}
|
|
19
|
+
|
|
13
20
|
- name: Checkout source code
|
|
14
21
|
uses: actions/checkout@v4
|
|
15
22
|
with:
|
|
16
|
-
token: ${{
|
|
23
|
+
token: ${{ steps.ci_bot_token.outputs.token }}
|
|
17
24
|
- name: Setup Node.js
|
|
18
25
|
uses: actions/setup-node@v2
|
|
19
26
|
with:
|
|
@@ -30,5 +37,5 @@ jobs:
|
|
|
30
37
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
31
38
|
- run: npm run release
|
|
32
39
|
env:
|
|
33
|
-
GITHUB_TOKEN: ${{
|
|
40
|
+
GITHUB_TOKEN: ${{ steps.ci_bot_token.outputs.token }}
|
|
34
41
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -43508,6 +43508,7 @@ var DEFAULT_RUN_SIMULATOR_COMMAND = (simulatorLocation) => ({
|
|
|
43508
43508
|
});
|
|
43509
43509
|
var AVAILABLE_PLATFORMS = ["darwin", "win32", "linux"];
|
|
43510
43510
|
var STARTING_TIMEOUT_WAIT_CYLCE = 2e3;
|
|
43511
|
+
var STARTING_TIMEOUT_ATTEMPTS = 60;
|
|
43511
43512
|
|
|
43512
43513
|
// src/lib/clients/jsonRpcClient.ts
|
|
43513
43514
|
var JsonRpcClient = class {
|
|
@@ -43658,8 +43659,8 @@ function runSimulator() {
|
|
|
43658
43659
|
const commandsByPlatform = DEFAULT_RUN_SIMULATOR_COMMAND(simulatorLocation);
|
|
43659
43660
|
return executeCommandInNewTerminal(commandsByPlatform);
|
|
43660
43661
|
}
|
|
43661
|
-
function waitForSimulatorToBeReady(
|
|
43662
|
-
return __async(this,
|
|
43662
|
+
function waitForSimulatorToBeReady() {
|
|
43663
|
+
return __async(this, arguments, function* (retries = STARTING_TIMEOUT_ATTEMPTS) {
|
|
43663
43664
|
try {
|
|
43664
43665
|
const response = yield rpcClient.request({ method: "ping", params: [] });
|
|
43665
43666
|
if (response && response.result.status === "OK") {
|
package/package.json
CHANGED
|
@@ -8,3 +8,4 @@ export const DEFAULT_RUN_SIMULATOR_COMMAND = (simulatorLocation: string) => ({
|
|
|
8
8
|
export const AVAILABLE_PLATFORMS = ["darwin", "win32", "linux"] as const;
|
|
9
9
|
export type RunningPlatform = (typeof AVAILABLE_PLATFORMS)[number];
|
|
10
10
|
export const STARTING_TIMEOUT_WAIT_CYLCE = 2000;
|
|
11
|
+
export const STARTING_TIMEOUT_ATTEMPTS = 60;
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_REPO_GH_URL,
|
|
4
4
|
DEFAULT_RUN_SIMULATOR_COMMAND,
|
|
5
5
|
STARTING_TIMEOUT_WAIT_CYLCE,
|
|
6
|
+
STARTING_TIMEOUT_ATTEMPTS,
|
|
6
7
|
} from "@/lib/config/simulator";
|
|
7
8
|
import {
|
|
8
9
|
checkCommand,
|
|
@@ -86,7 +87,9 @@ export function runSimulator(): Promise<{stdout: string; stderr: string}> {
|
|
|
86
87
|
return executeCommandInNewTerminal(commandsByPlatform);
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
export async function waitForSimulatorToBeReady(
|
|
90
|
+
export async function waitForSimulatorToBeReady(
|
|
91
|
+
retries: number = STARTING_TIMEOUT_ATTEMPTS,
|
|
92
|
+
): Promise<boolean> {
|
|
90
93
|
try {
|
|
91
94
|
const response = await rpcClient.request({method: "ping", params: []});
|
|
92
95
|
if (response && response.result.status === "OK") {
|