@leftium/gg 0.0.3 → 0.0.5
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/dist/OpenInEditorLink.svelte +28 -28
- package/dist/gg.js +2 -2
- package/package.json +30 -27
|
@@ -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
|
@@ -110,7 +110,7 @@ export function gg(...args) {
|
|
|
110
110
|
// A callpoint is uniquely identified by the filename plus function name
|
|
111
111
|
const callpoint = `${filenameToDisplay}${functionName ? `@${functionName}` : ''}`;
|
|
112
112
|
maxCallpointLength = Math.max(maxCallpointLength, callpoint.length);
|
|
113
|
-
const namespace = `${callpoint.padEnd(maxCallpointLength, ' ')}
|
|
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(...
|
|
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.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Leftium/gg.git"
|
|
@@ -37,32 +37,29 @@
|
|
|
37
37
|
"svelte": "^5.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@eslint/compat": "^1.2
|
|
41
|
-
"@eslint/js": "^9.
|
|
40
|
+
"@eslint/compat": "^1.3.2",
|
|
41
|
+
"@eslint/js": "^9.33.0",
|
|
42
42
|
"@picocss/pico": "^2.1.1",
|
|
43
|
-
"@sveltejs/adapter-vercel": "^5.
|
|
44
|
-
"@sveltejs/kit": "^2.
|
|
45
|
-
"@sveltejs/package": "^2.
|
|
46
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
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": "^
|
|
48
|
+
"@types/node": "^24.2.1",
|
|
49
49
|
"add": "^2.0.6",
|
|
50
|
-
"
|
|
51
|
-
"eslint": "^
|
|
52
|
-
"eslint-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"typescript-eslint": "^8.20.0",
|
|
64
|
-
"vite": "^6.0.0",
|
|
65
|
-
"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"
|
|
66
63
|
},
|
|
67
64
|
"keywords": [
|
|
68
65
|
"svelte"
|
|
@@ -70,10 +67,16 @@
|
|
|
70
67
|
"pnpm": {
|
|
71
68
|
"onlyBuiltDependencies": [
|
|
72
69
|
"esbuild"
|
|
73
|
-
]
|
|
70
|
+
],
|
|
71
|
+
"patchedDependencies": {
|
|
72
|
+
"debug@4.4.1": "patches/debug@4.4.1.patch"
|
|
73
|
+
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"
|
|
77
|
-
"
|
|
76
|
+
"debug": "^4.4.1",
|
|
77
|
+
"dotenv": "^17.2.1",
|
|
78
|
+
"error-stack-parser": "^2.1.4",
|
|
79
|
+
"esm-env": "^1.2.2",
|
|
80
|
+
"launch-editor": "^2.11.1"
|
|
78
81
|
}
|
|
79
82
|
}
|