Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ccusage-ui

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ccusage-ui - npm Package Compare versions

Comparing version
0.1.11
to
0.1.12
+1
-1
package.json
{
"name": "ccusage-ui",
"version": "0.1.11",
"version": "0.1.12",
"main": "server.js",

@@ -5,0 +5,0 @@ "bin": {

@@ -612,7 +612,7 @@ <!DOCTYPE html>

// Logic for Monthly Token Projection
if (currentMetric === 'tokens' && currentView === 'monthly') {
// Logic for Monthly Projection (tokens and cost)
if (currentView === 'monthly') {
const lastIdx = dataSrc.length - 1;
const lastData = dataSrc[lastIdx];
// Only if the last bar is the current month

@@ -622,3 +622,3 @@ if (lastData && lastData.month === currentMonthStr) {

const daysInMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0).getDate();
if (day > 0 && day < daysInMonth) {

@@ -628,3 +628,3 @@ const currentVal = datasetData[lastIdx];

const remaining = projectedTotal - currentVal;
// Create Projection Dataset (Zeros for past months, value for current)

@@ -634,2 +634,7 @@ const projectionData = new Array(datasetData.length).fill(0);

// Pace color matches metric color
const paceColor = currentMetric === 'cost'
? { bg: 'rgba(0, 113, 227, 0.1)', border: '#0071e3' }
: { bg: 'rgba(52, 199, 89, 0.1)', border: '#34c759' };
datasets = [

@@ -646,4 +651,4 @@ {

data: projectionData,
backgroundColor: 'rgba(52, 199, 89, 0.1)', // Very light green
borderColor: '#34c759',
backgroundColor: paceColor.bg,
borderColor: paceColor.border,
borderWidth: 2,

@@ -650,0 +655,0 @@ borderDash: [5, 5], // Dotted line style