@goast/kotlin 0.5.6 → 0.5.7

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/esm/src/utils.js CHANGED
@@ -32,7 +32,7 @@ export function modifyString(value, modifier, ...args) {
32
32
  return value;
33
33
  }
34
34
  export function getSourceDocLine(component) {
35
- const file = path.relative(process.cwd(), component.$src.file);
35
+ const file = path.relative(process.cwd(), component.$src.file).replace(/\\/g, '/');
36
36
  const { line, col } = component.$src.pos;
37
37
  return `Source: ${file}:${line}:${col} (${component.$src.path})`;
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goast/kotlin",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Provides gOAst generators for generating Kotlin code from OpenAPI specifications.",
5
5
  "author": {
6
6
  "name": "Marc Schmidt (MaSch0212)",
@@ -39,7 +39,7 @@ function modifyString(value, modifier, ...args) {
39
39
  return value;
40
40
  }
41
41
  function getSourceDocLine(component) {
42
- const file = node_path_1.default.relative(node_process_1.default.cwd(), component.$src.file);
42
+ const file = node_path_1.default.relative(node_process_1.default.cwd(), component.$src.file).replace(/\\/g, '/');
43
43
  const { line, col } = component.$src.pos;
44
44
  return `Source: ${file}:${line}:${col} (${component.$src.path})`;
45
45
  }
package/src/src/utils.ts CHANGED
@@ -41,7 +41,7 @@ export function modifyString<TArgs extends unknown[]>(
41
41
  }
42
42
 
43
43
  export function getSourceDocLine<T>(component: ApiComponent<T>): string {
44
- const file = path.relative(process.cwd(), component.$src.file);
44
+ const file = path.relative(process.cwd(), component.$src.file).replace(/\\/g, '/');
45
45
  const { line, col } = component.$src.pos;
46
46
  return `Source: ${file}:${line}:${col} (${component.$src.path})`;
47
47
  }