@leftium/gg 0.0.13 → 0.0.14

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/dist/gg.js +3 -4
  2. package/package.json +1 -1
package/dist/gg.js CHANGED
@@ -57,10 +57,9 @@ function openInEditorUrl(fileName) {
57
57
  return ggConfig.openInEditorUrlTemplate.replace('$FILENAME', encodeURIComponent(fileName).replaceAll('%2F', '/'));
58
58
  }
59
59
  // http://localhost:5173/__open-in-editor?file=src%2Froutes%2F%2Bpage.svelte
60
- const ggLog = debugFactory('gg');
61
60
  // Log some gg info to the JS console/terminal:
62
61
  if (ggConfig.showHints) {
63
- const ggLogTest = ggLog.extend('TEST');
62
+ const ggLogTest = debugFactory('gg:TEST');
64
63
  let ggMessage = '\n';
65
64
  // Utilities for forming ggMessage:
66
65
  const message = (s) => (ggMessage += `${s}\n`);
@@ -112,9 +111,9 @@ export function gg(...args) {
112
111
  if (callpoint.length < 80 && callpoint.length > maxCallpointLength) {
113
112
  maxCallpointLength = callpoint.length;
114
113
  }
115
- const namespace = `${callpoint.padEnd(maxCallpointLength, ' ')}${ggConfig.editorLink ? url : ''}`;
114
+ const namespace = `gg:${callpoint.padEnd(maxCallpointLength, ' ')}${ggConfig.editorLink ? url : ''}`;
116
115
  const ggLogFunction = namespaceToLogFunction.get(namespace) ||
117
- namespaceToLogFunction.set(namespace, ggLog.extend(namespace)).get(namespace);
116
+ namespaceToLogFunction.set(namespace, debugFactory(namespace)).get(namespace);
118
117
  if (!args.length) {
119
118
  ggLogFunction(` 📝📝 ${url} 👀👀`);
120
119
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leftium/gg",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Leftium/gg.git"