@leftium/gg 0.0.5 → 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.
- package/dist/gg.js +1 -1
- package/package.json +1 -1
package/dist/gg.js
CHANGED
|
@@ -109,7 +109,7 @@ 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);
|
|
112
|
+
maxCallpointLength = Math.min(Math.max(maxCallpointLength, callpoint.length), 80);
|
|
113
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);
|