@leftium/gg 0.0.4 → 0.0.6

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.
@@ -1,28 +1,28 @@
1
- <script lang="ts">
2
- import { dev } from '$app/environment';
3
-
4
- let { ggResult } = $props();
5
-
6
- // svelte-ignore non_reactive_update
7
- let iframeElement: HTMLIFrameElement;
8
-
9
- function onclick(event: MouseEvent) {
10
- iframeElement.src = ggResult.url;
11
- event.preventDefault();
12
- }
13
- </script>
14
-
15
- {#if dev}
16
- [📝<a
17
- {onclick}
18
- href={ggResult.url}
19
- title={`${ggResult.fileName}@${ggResult.functionName}`}
20
- target="_open-in-editor"
21
- class="open-in-editor-link"
22
- >
23
- {ggResult.fileName}
24
- </a>
25
- 👀]
26
-
27
- <iframe bind:this={iframeElement} title="" hidden></iframe>
28
- {/if}
1
+ <script lang="ts">
2
+ import { dev } from '$app/environment';
3
+
4
+ let { ggResult } = $props();
5
+
6
+ // svelte-ignore non_reactive_update
7
+ let iframeElement: HTMLIFrameElement;
8
+
9
+ function onclick(event: MouseEvent) {
10
+ iframeElement.src = ggResult.url;
11
+ event.preventDefault();
12
+ }
13
+ </script>
14
+
15
+ {#if dev}
16
+ [📝<a
17
+ {onclick}
18
+ href={ggResult.url}
19
+ title={`${ggResult.fileName}@${ggResult.functionName}`}
20
+ target="_open-in-editor"
21
+ class="open-in-editor-link"
22
+ >
23
+ {ggResult.fileName}
24
+ </a>
25
+ 👀]
26
+
27
+ <iframe bind:this={iframeElement} title="" hidden></iframe>
28
+ {/if}
package/dist/gg.js CHANGED
@@ -109,8 +109,8 @@ export function gg(...args) {
109
109
  //console.log({ filename, fileNameToOpen: filenameToOpen, fileNameToDisplay: filenameToDisplay });
110
110
  // A callpoint is uniquely identified by the filename plus function name
111
111
  const callpoint = `${filenameToDisplay}${functionName ? `@${functionName}` : ''}`;
112
- maxCallpointLength = Math.max(maxCallpointLength, callpoint.length);
113
- const namespace = `${callpoint.padEnd(maxCallpointLength, ' ')}\t${ggConfig.editorLink ? url : ''}\n`;
112
+ maxCallpointLength = Math.min(Math.max(maxCallpointLength, callpoint.length), 80);
113
+ const namespace = `${callpoint.padEnd(maxCallpointLength, ' ')}${ggConfig.editorLink ? url : ''}`;
114
114
  const ggLogFunction = namespaceToLogFunction.get(namespace) ||
115
115
  namespaceToLogFunction.set(namespace, ggLog.extend(namespace)).get(namespace);
116
116
  if (!args.length) {
@@ -122,7 +122,7 @@ export function gg(...args) {
122
122
  stack
123
123
  };
124
124
  }
125
- ggLogFunction(...['', '\t', ...args]);
125
+ ggLogFunction(...args);
126
126
  return args[0];
127
127
  }
128
128
  gg.disable = debugFactory.disable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leftium/gg",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Leftium/gg.git"
@@ -37,29 +37,29 @@
37
37
  "svelte": "^5.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@eslint/compat": "^1.2.5",
41
- "@eslint/js": "^9.18.0",
40
+ "@eslint/compat": "^1.3.2",
41
+ "@eslint/js": "^9.33.0",
42
42
  "@picocss/pico": "^2.1.1",
43
- "@sveltejs/adapter-vercel": "^5.5.2",
44
- "@sveltejs/kit": "^2.16.0",
45
- "@sveltejs/package": "^2.0.0",
46
- "@sveltejs/vite-plugin-svelte": "^5.0.0",
43
+ "@sveltejs/adapter-vercel": "^5.8.2",
44
+ "@sveltejs/kit": "^2.27.3",
45
+ "@sveltejs/package": "^2.4.1",
46
+ "@sveltejs/vite-plugin-svelte": "^6.1.1",
47
47
  "@types/debug": "^4.1.12",
48
- "@types/node": "^22.13.17",
48
+ "@types/node": "^24.2.1",
49
49
  "add": "^2.0.6",
50
- "eslint": "^9.18.0",
51
- "eslint-config-prettier": "^10.0.1",
52
- "eslint-plugin-svelte": "^3.0.0",
53
- "globals": "^16.0.0",
54
- "prettier": "^3.4.2",
55
- "prettier-plugin-svelte": "^3.3.3",
56
- "publint": "^0.3.2",
57
- "svelte": "^5.0.0",
58
- "svelte-check": "^4.0.0",
59
- "typescript": "^5.0.0",
60
- "typescript-eslint": "^8.20.0",
61
- "vite": "^6.0.0",
62
- "vite-plugin-devtools-json": "^0.2.0"
50
+ "eslint": "^9.33.0",
51
+ "eslint-config-prettier": "^10.1.8",
52
+ "eslint-plugin-svelte": "^3.11.0",
53
+ "globals": "^16.3.0",
54
+ "prettier": "^3.6.2",
55
+ "prettier-plugin-svelte": "^3.4.0",
56
+ "publint": "^0.3.12",
57
+ "svelte": "^5.38.0",
58
+ "svelte-check": "^4.3.1",
59
+ "typescript": "^5.9.2",
60
+ "typescript-eslint": "^8.39.0",
61
+ "vite": "^7.1.1",
62
+ "vite-plugin-devtools-json": "^0.4.1"
63
63
  },
64
64
  "keywords": [
65
65
  "svelte"
@@ -67,13 +67,16 @@
67
67
  "pnpm": {
68
68
  "onlyBuiltDependencies": [
69
69
  "esbuild"
70
- ]
70
+ ],
71
+ "patchedDependencies": {
72
+ "debug@4.4.1": "patches/debug@4.4.1.patch"
73
+ }
71
74
  },
72
75
  "dependencies": {
73
76
  "debug": "^4.4.1",
74
- "dotenv": "^17.2.0",
77
+ "dotenv": "^17.2.1",
75
78
  "error-stack-parser": "^2.1.4",
76
79
  "esm-env": "^1.2.2",
77
- "launch-editor": "^2.10.0"
80
+ "launch-editor": "^2.11.1"
78
81
  }
79
82
  }