@vlayer/sdk 0.1.0-nightly-20241115-d2cef04 → 0.1.0-nightly-20241115-20d6f84

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.
@@ -12,10 +12,12 @@ export async function v_call(call, context, url = "http://127.0.0.1:3000") {
12
12
  body: JSON.stringify(v_callBody(call, context)),
13
13
  headers: { "Content-Type": "application/json" },
14
14
  });
15
+ console.log("response", response);
15
16
  if (!response.ok) {
16
17
  throw new Error(`HTTP error! status: ${response.status}`);
17
18
  }
18
19
  const response_json = await response.json();
20
+ console.log("response_json", response_json);
19
21
  assertObject(response_json);
20
22
  if ("error" in response_json) {
21
23
  throw new Error(`Error response: ${response_json.error.message || "unknown error"}`);
@@ -1,9 +1,8 @@
1
1
  import dotenvflow from "dotenv-flow";
2
- import chalk from "chalk";
3
2
  const ensureEnvVariable = (envVar) => {
4
3
  if (!process.env[envVar]) {
5
4
  if (envVar === "EXAMPLES_TEST_PRIVATE_KEY") {
6
- throw new Error(chalk.bgBlue(`${envVar} missing. Add a HEX private key with ETH in .env.local for deploy and verify transactions.`));
5
+ throw new Error(`${envVar} missing. Add a HEX private key with ETH in .env.local for deploy and verify transactions.`);
7
6
  }
8
7
  throw new Error(`${envVar} is not set`);
9
8
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "types": "./dist/config/index.d.ts"
16
16
  }
17
17
  },
18
- "version": "0.1.0-nightly-20241115-d2cef04",
18
+ "version": "0.1.0-nightly-20241115-20d6f84",
19
19
  "scripts": {
20
20
  "build": "bun tsc && bun tsc-alias",
21
21
  "test:unit": "vitest --run",