@xterm/addon-image 0.10.0-beta.260 → 0.10.0-beta.262

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xterm/addon-image",
3
- "version": "0.10.0-beta.260",
3
+ "version": "0.10.0-beta.262",
4
4
  "author": {
5
5
  "name": "The xterm.js authors",
6
6
  "url": "https://xtermjs.org/"
@@ -27,8 +27,8 @@
27
27
  "sixel": "^0.16.0",
28
28
  "xterm-wasm-parts": "^0.4.1"
29
29
  },
30
- "commit": "936442c813eb497af957409c224ed0e250600640",
30
+ "commit": "6fd6003d6cce7d0e2552052c2550d0f5d0afcd0e",
31
31
  "peerDependencies": {
32
- "@xterm/xterm": "^6.1.0-beta.260"
32
+ "@xterm/xterm": "^6.1.0-beta.262"
33
33
  }
34
34
  }
package/src/IIPHandler.ts CHANGED
@@ -222,8 +222,8 @@ export class IIPHandler implements IOscHandler, IResetHandler {
222
222
 
223
223
  private _dim(s: string, total: number, cdim: number): number {
224
224
  if (s === 'auto') return 0;
225
- if (s.endsWith('%')) return parseInt(s.slice(0, -1)) * total / 100;
226
- if (s.endsWith('px')) return parseInt(s.slice(0, -2));
227
- return parseInt(s) * cdim;
225
+ if (s.endsWith('%')) return parseInt(s.slice(0, -1), 10) * total / 100;
226
+ if (s.endsWith('px')) return parseInt(s.slice(0, -2), 10);
227
+ return parseInt(s, 10) * cdim;
228
228
  }
229
229
  }
package/src/Types.ts CHANGED
@@ -9,7 +9,8 @@ import { IDisposable, IMarker, Terminal } from '@xterm/xterm';
9
9
  import { Attributes, BgFlags, Content, ExtFlags, UnderlineStyle } from 'common/buffer/Constants';
10
10
  import type { AttributeData } from 'common/buffer/AttributeData';
11
11
  import type { IParams, IDcsHandler, IOscHandler, IApcHandler, IEscapeSequenceParser } from 'common/parser/Types';
12
- import type { IBufferLine, IExtendedAttrs, IInputHandler } from 'common/Types';
12
+ import type { IInputHandler } from 'common/Types';
13
+ import type { IBufferLine, IExtendedAttrs } from 'common/buffer/Types';
13
14
  import type { ITerminal, ReadonlyColorSet } from 'browser/Types';
14
15
  import type { IRenderDimensions } from 'browser/renderer/shared/Types';
15
16
  import type { ICoreBrowserService, IRenderService, IThemeService } from 'browser/services/Services';
@@ -168,7 +168,7 @@ export function parseKittyCommand(data: string): IKittyCommand {
168
168
  cmd.deleteSelector = value;
169
169
  continue;
170
170
  }
171
- const numValue = parseInt(value);
171
+ const numValue = parseInt(value, 10);
172
172
  switch (key) {
173
173
  case KittyKey.FORMAT: cmd.format = numValue; break;
174
174
  case KittyKey.ID: cmd.id = numValue; break;