@leftium/gg 0.0.10 → 0.0.12

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 -1
  2. package/package.json +7 -2
package/dist/gg.js CHANGED
@@ -109,7 +109,9 @@ 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.min(Math.max(maxCallpointLength, callpoint.length), 80);
112
+ if (callpoint.length < 80 && callpoint.length > maxCallpointLength) {
113
+ maxCallpointLength = callpoint.length;
114
+ }
113
115
  const namespace = `${callpoint.padEnd(maxCallpointLength, ' ')}${ggConfig.editorLink ? url : ''}`;
114
116
  const ggLogFunction = namespaceToLogFunction.get(namespace) ||
115
117
  namespaceToLogFunction.set(namespace, ggLog.extend(namespace)).get(namespace);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leftium/gg",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Leftium/gg.git"
@@ -69,7 +69,12 @@
69
69
  "pnpm": {
70
70
  "onlyBuiltDependencies": [
71
71
  "esbuild"
72
- ]
72
+ ],
73
+ "peerDependencyRules": {
74
+ "ignoreMissing": [
75
+ "debug"
76
+ ]
77
+ }
73
78
  },
74
79
  "dependencies": {
75
80
  "debug": "^4.4.1",