From 8b9a71e21ba236bffc7fd0656db145560c0e3a3b Mon Sep 17 00:00:00 2001 From: alexkar598 <25136265+alexkar598@users.noreply.github.com> Date: Tue, 9 Jul 2024 23:22:42 -0400 Subject: [PATCH] Updates xterm-addon-fit to use the new package and versions --- package-lock.json | 29 +++++++------------ package.json | 2 +- .../components/terminal/terminal.component.ts | 2 +- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index ec6e447..78a2f2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,7 @@ "@taiga-ui/kit": "^3.84.0", "@taiga-ui/layout": "^3.84.0", "@taiga-ui/styles": "^3.84.0", + "@xterm/addon-fit": "^0.10.0", "@xterm/xterm": "^5.5.0", "angular-split": "^17.2.0", "cancelable-promise": "^4.3.1", @@ -43,7 +44,6 @@ "rxjs": "~7.8.0", "thememirror": "^2.0.1", "tslib": "^2.3.0", - "xterm-addon-fit": "^0.8.0", "zone.js": "~0.14.3" }, "devDependencies": { @@ -6626,6 +6626,15 @@ "@xtuc/long": "4.2.2" } }, + "node_modules/@xterm/addon-fit": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@xterm/addon-fit/-/addon-fit-0.10.0.tgz", + "integrity": "sha512-UFYkDm4HUahf2lnEyHvio51TNGiLK66mqP2JoATy7hRZeXaGMRDr00JiSF7m63vR5WKATF605yEggJKsw0JpMQ==", + "license": "MIT", + "peerDependencies": { + "@xterm/xterm": "^5.0.0" + } + }, "node_modules/@xterm/xterm": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-5.5.0.tgz", @@ -22412,24 +22421,6 @@ } } }, - "node_modules/xterm": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/xterm/-/xterm-5.3.0.tgz", - "integrity": "sha512-8QqjlekLUFTrU6x7xck1MsPzPA571K5zNqWm0M0oroYEWVOptZ0+ubQSkQ3uxIEhcIHRujJy6emDWX4A7qyFzg==", - "deprecated": "This package is now deprecated. Move to @xterm/xterm instead.", - "license": "MIT", - "peer": true - }, - "node_modules/xterm-addon-fit": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/xterm-addon-fit/-/xterm-addon-fit-0.8.0.tgz", - "integrity": "sha512-yj3Np7XlvxxhYF/EJ7p3KHaMt6OdwQ+HDu573Vx1lRXsVxOcnVJs51RgjZOouIZOczTsskaS+CpXspK81/DLqw==", - "deprecated": "This package is now deprecated. Move to @xterm/addon-fit instead.", - "license": "MIT", - "peerDependencies": { - "xterm": "^5.0.0" - } - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index 3baed92..29d1389 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@taiga-ui/layout": "^3.84.0", "@taiga-ui/styles": "^3.84.0", "@xterm/xterm": "^5.5.0", + "@xterm/addon-fit": "^0.10.0", "angular-split": "^17.2.0", "cancelable-promise": "^4.3.1", "codemirror": "^6.0.1", @@ -45,7 +46,6 @@ "rxjs": "~7.8.0", "thememirror": "^2.0.1", "tslib": "^2.3.0", - "xterm-addon-fit": "^0.8.0", "zone.js": "~0.14.3" }, "devDependencies": { diff --git a/src/app/components/terminal/terminal.component.ts b/src/app/components/terminal/terminal.component.ts index 8cbbfea..48b9b93 100644 --- a/src/app/components/terminal/terminal.component.ts +++ b/src/app/components/terminal/terminal.component.ts @@ -8,7 +8,7 @@ import { ViewChild, } from '@angular/core'; import { Terminal } from '@xterm/xterm'; -import { FitAddon } from 'xterm-addon-fit'; +import { FitAddon } from '@xterm/addon-fit'; import { TerminalDimensions } from '../../../vm/emulator.service'; @Component({