nekostream 2026.2.8 → 2026.2.9

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/index.js CHANGED
@@ -576,12 +576,7 @@ async function checkUpdate() {
576
576
  const latestVersion = data.version;
577
577
  if (latestVersion && latestVersion !== currentVersion) {
578
578
  (0, ui_1.clearScreen)();
579
- console.log(chalk_1.default.yellow('╭─────────────────────────────────────────────────────────────╮'));
580
- console.log(chalk_1.default.yellow('│ │'));
581
- console.log(chalk_1.default.yellow(`│ NEKOSTREAM ĐÃ CÓ CẬP NHẬT MỚI ! ${chalk_1.default.red(currentVersion)} → ${chalk_1.default.green(latestVersion)} │`));
582
- console.log(chalk_1.default.yellow('│ Vui lòng cập nhật ứng dụng CLI để tiếp tục sử dụng ứng dụng. │'));
583
- console.log(chalk_1.default.yellow('│ │'));
584
- console.log(chalk_1.default.yellow('╰─────────────────────────────────────────────────────────────╯\n'));
579
+ (0, ui_1.printUpdateNotice)(currentVersion, latestVersion, NPM_PACKAGE_NAME);
585
580
  const { update } = await (0, prompts_wrapper_1.default)({
586
581
  type: 'confirm',
587
582
  name: 'update',
package/dist/ui.js CHANGED
@@ -38,6 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.clearScreen = clearScreen;
40
40
  exports.printBanner = printBanner;
41
+ exports.printUpdateNotice = printUpdateNotice;
41
42
  exports.printStatusStrip = printStatusStrip;
42
43
  exports.drawAnimeCard = drawAnimeCard;
43
44
  exports.drawAnimeInfoCard = drawAnimeInfoCard;
@@ -132,6 +133,21 @@ function printBanner(title, subtitle) {
132
133
  console.log(borderLine(width, theme_1.glyphs.bottomLeft, theme_1.glyphs.bottomRight));
133
134
  console.log('');
134
135
  }
136
+ function printUpdateNotice(currentVersion, latestVersion, packageName) {
137
+ const width = (0, text_1.terminalWidth)(86, 62);
138
+ const innerWidth = width - 4;
139
+ const title = `${theme_1.uiText.warning('Cập nhật mới')} ${theme_1.uiText.danger(currentVersion)} ${theme_1.uiText.subtle('->')} ${theme_1.uiText.success(latestVersion)}`;
140
+ const command = `npm i -g ${packageName}@latest`;
141
+ console.log('');
142
+ console.log(borderLine(width, theme_1.glyphs.topLeft, theme_1.glyphs.topRight, true));
143
+ console.log(boxedLine(`${theme_1.uiText.brand('NekoStream')} ${theme_1.uiText.subtle(theme_1.glyphs.dot)} ${title}`, width, true));
144
+ console.log(borderLine(width, theme_1.glyphs.teeLeft, theme_1.glyphs.teeRight));
145
+ for (const line of (0, text_1.wrapText)('Vui lòng cập nhật CLI để tiếp tục sử dụng ứng dụng.', innerWidth)) {
146
+ console.log(boxedLine(theme_1.uiText.value(line), width));
147
+ }
148
+ console.log(boxedLine(`${theme_1.uiText.label('Lệnh')} ${theme_1.uiText.focus(command)}`, width));
149
+ console.log(`${borderLine(width, theme_1.glyphs.bottomLeft, theme_1.glyphs.bottomRight)}\n`);
150
+ }
135
151
  function printStatusStrip(items) {
136
152
  const width = (0, text_1.terminalWidth)(92, 58);
137
153
  const innerWidth = width - 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nekostream",
3
- "version": "2026.2.8",
3
+ "version": "2026.2.9",
4
4
  "description": "Bettter version of NekoStream ",
5
5
  "keywords": [
6
6
  "anime",