claude-code-templates 1.14.2 → 1.14.3
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/package.json +1 -1
- package/src/tracking-service.js +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
4
4
|
"description": "CLI tool to setup Claude Code configurations with framework-specific commands, automation hooks and MCP Servers for your projects",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
package/src/tracking-service.js
CHANGED
|
@@ -45,12 +45,18 @@ class TrackingService {
|
|
|
45
45
|
this.sendTrackingData(trackingData)
|
|
46
46
|
.catch(error => {
|
|
47
47
|
// Silent failure - tracking should never impact functionality
|
|
48
|
-
|
|
48
|
+
// Only show debug info when explicitly enabled
|
|
49
|
+
if (process.env.CCT_DEBUG === 'true') {
|
|
50
|
+
console.debug('📊 Tracking info (non-critical):', error.message);
|
|
51
|
+
}
|
|
49
52
|
});
|
|
50
53
|
|
|
51
54
|
} catch (error) {
|
|
52
55
|
// Silently handle any tracking errors
|
|
53
|
-
|
|
56
|
+
// Only show debug info when explicitly enabled
|
|
57
|
+
if (process.env.CCT_DEBUG === 'true') {
|
|
58
|
+
console.debug('📊 Analytics error (non-critical):', error.message);
|
|
59
|
+
}
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -118,7 +124,10 @@ Session: \`${trackingData.session_id}\`
|
|
|
118
124
|
throw new Error(`GitHub API responded with ${response.status}`);
|
|
119
125
|
}
|
|
120
126
|
|
|
121
|
-
|
|
127
|
+
// Only show success message when debugging
|
|
128
|
+
if (process.env.CCT_DEBUG === 'true') {
|
|
129
|
+
console.debug('📊 Download tracked successfully');
|
|
130
|
+
}
|
|
122
131
|
|
|
123
132
|
} catch (error) {
|
|
124
133
|
clearTimeout(timeoutId);
|