@clarity-js/port 1.5.0 → 1.5.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clarity-js/port",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Ports React components, React Three Fiber scenes and three.js scripts to Clarity.js by rule: props to parameters, hooks to state, computed, effects and actions, JSX to Clarity markup, a 3D scene to @clarity-js/gl. Every file it writes is compiled and linted, and what a rule could not do is listed with its line.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -18,6 +18,6 @@
18
18
  "typescript": ">=5.0.0 <7"
19
19
  },
20
20
  "homepage": "https://clarity-js.com/docs/porting",
21
- "repository": { "type": "git", "url": "git+https://gitlab.com/ozsarman/clarity.js.git", "directory": "packages/clarity-port" },
21
+ "repository": { "type": "git", "url": "git+https://github.com/ozdemirsarman/clarity.js.git", "directory": "packages/clarity-port" },
22
22
  "engines": { "node": ">=18.0.0" }
23
23
  }
package/src/index.js CHANGED
@@ -124,7 +124,7 @@ const isMistake = (issue) => issue.severity === 'error' || issue.rule === 'no-un
124
124
  */
125
125
  export function formatReport(results, options = {}) {
126
126
  const cwd = options.cwd ?? process.cwd();
127
- const rel = (f) => path.relative(cwd, f) || f;
127
+ const rel = (f) => (path.relative(cwd, f) || f).split(path.sep).join('/');
128
128
  const lines = [];
129
129
  // a remark is a sentence or two: it is folded at 88 columns, under its own start
130
130
  const fold = (head, text) => {