vovk-cli 0.0.1-draft.310 → 0.0.1-draft.311

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.
@@ -18,6 +18,7 @@ import { locateSegments } from '../locateSegments.mjs';
18
18
  import debounceWithArgs from '../utils/debounceWithArgs.mjs';
19
19
  import formatLoggedSegmentName from '../utils/formatLoggedSegmentName.mjs';
20
20
  import writeMetaJson from './writeMetaJson.mjs';
21
+ import chalkHighlightThing from '../utils/chalkHighlightThing.mjs';
21
22
  export class VovkDev {
22
23
  #projectInfo;
23
24
  #segments = [];
@@ -265,7 +266,7 @@ export class VovkDev {
265
266
  const probableCause = {
266
267
  404: 'The segment did not compile or config.origin is wrong.',
267
268
  }[resp.status];
268
- log.warn(`Schema request to ${endpoint} for ${formatLoggedSegmentName(segmentName)} failed with status code ${resp.status} but expected 200.${probableCause ? ` Probable cause: ${probableCause}` : ''}. Response text will be logged below on "debug" level.`);
269
+ log.warn(`Schema request to ${chalkHighlightThing(endpoint)} for ${formatLoggedSegmentName(segmentName)} failed with status code ${resp.status} but expected 200.${probableCause ? ` Probable cause: ${probableCause}` : ''}. Response text will be logged below on "debug" level.`);
269
270
  log.debug(`Response from ${formatLoggedSegmentName(segmentName)}: ${text}`);
270
271
  return { isError: true };
271
272
  }
@@ -288,7 +289,7 @@ export class VovkDev {
288
289
  async #handleSegmentSchema(segmentName, segmentSchema) {
289
290
  const { log, config, cwd } = this.#projectInfo;
290
291
  if (!segmentSchema) {
291
- log.warn(`${formatLoggedSegmentName(segmentName)} schema is null`);
292
+ log.warn(`${formatLoggedSegmentName(segmentName, { upperFirst: true })} schema is null`);
292
293
  return;
293
294
  }
294
295
  log.debug(`Handling received schema from ${formatLoggedSegmentName(segmentName)}`);
@@ -13,7 +13,7 @@ export default function getConfig({ configPath, cwd }: {
13
13
  modulesDir?: string;
14
14
  rootEntry?: string;
15
15
  origin?: string;
16
- logLevel?: "error" | "trace" | "debug" | "info" | "warn";
16
+ logLevel?: "error" | "trace" | "debug" | "info" | "warn" | (string & {});
17
17
  prettifyClient?: boolean;
18
18
  libs?: {
19
19
  ajv: import("vovk").KnownAny;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.310",
3
+ "version": "0.0.1-draft.311",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "homepage": "https://vovk.dev",
37
37
  "peerDependencies": {
38
- "vovk": "^3.0.0-draft.352"
38
+ "vovk": "^3.0.0-draft.354"
39
39
  },
40
40
  "optionalDependencies": {
41
41
  "vovk-python": "^0.0.1-draft.58"