gritty 10.0.1 → 10.1.0
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/ChangeLog +16 -0
- package/README.md +0 -1
- package/dist/gritty.js +21 -25
- package/dist/gritty.js.map +1 -1
- package/dist-dev/gritty.js +9 -9
- package/index.html +1 -2
- package/package.json +7 -8
- package/server/gritty.js +1 -1
package/ChangeLog
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
2026.04.03, v10.1.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- f8a84d2 client: terminal disconnected...: write on next line
|
|
5
|
+
- bea8ef7 gritty: webpack-cli v7.0.2
|
|
6
|
+
- 198d341 gritty: putout v42.4.2
|
|
7
|
+
- 77f703e gritty: madrun v13.0.1
|
|
8
|
+
- cde5ebd gritty: eslint-plugin-putout v31.1.2
|
|
9
|
+
- cec19f4 gritty: css-minimizer-webpack-plugin v8.0.0
|
|
10
|
+
- c987136 gritty: superc8 v12.3.1
|
|
11
|
+
|
|
12
|
+
2026.02.12, v10.0.2
|
|
13
|
+
|
|
14
|
+
fix:
|
|
15
|
+
- 5f111bf gritty: client: export default
|
|
16
|
+
|
|
1
17
|
2026.02.12, v10.0.1
|
|
2
18
|
|
|
3
19
|
feature:
|
package/README.md
CHANGED
package/dist/gritty.js
CHANGED
|
@@ -529,21 +529,14 @@ function check(fn) {
|
|
|
529
529
|
var __webpack_exports__ = {};
|
|
530
530
|
// This entry needs to be wrapped in an IIFE because it declares 'gritty' on top-level, which conflicts with the current library output.
|
|
531
531
|
(() => {
|
|
532
|
-
// ESM COMPAT FLAG
|
|
533
|
-
__webpack_require__.r(__webpack_exports__);
|
|
534
532
|
|
|
535
533
|
// EXPORTS
|
|
536
534
|
__webpack_require__.d(__webpack_exports__, {
|
|
537
|
-
_defaultFontFamily: () => (/* binding */ _defaultFontFamily),
|
|
538
|
-
_onConnect: () => (/* binding */ _onConnect),
|
|
539
|
-
_onData: () => (/* binding */ _onData),
|
|
540
|
-
_onDisconnect: () => (/* binding */ _onDisconnect),
|
|
541
|
-
_onTermData: () => (/* binding */ _onTermData),
|
|
542
|
-
_onTermResize: () => (/* binding */ _onTermResize),
|
|
543
|
-
_onWindowResize: () => (/* binding */ _onWindowResize),
|
|
544
535
|
"default": () => (/* binding */ gritty)
|
|
545
536
|
});
|
|
546
537
|
|
|
538
|
+
// UNUSED EXPORTS: _defaultFontFamily, _onConnect, _onData, _onDisconnect, _onTermData, _onTermResize, _onWindowResize
|
|
539
|
+
|
|
547
540
|
// NAMESPACE OBJECT: ./node_modules/socket.io-parser/build/esm/index.js
|
|
548
541
|
var socket_io_parser_build_esm_namespaceObject = {};
|
|
549
542
|
__webpack_require__.r(socket_io_parser_build_esm_namespaceObject);
|
|
@@ -555,13 +548,6 @@ __webpack_require__.d(socket_io_parser_build_esm_namespaceObject, {
|
|
|
555
548
|
protocol: () => (build_esm_protocol)
|
|
556
549
|
});
|
|
557
550
|
|
|
558
|
-
// NAMESPACE OBJECT: ./node_modules/@xterm/xterm/lib/xterm.mjs
|
|
559
|
-
var lib_xterm_namespaceObject = {};
|
|
560
|
-
__webpack_require__.r(lib_xterm_namespaceObject);
|
|
561
|
-
__webpack_require__.d(lib_xterm_namespaceObject, {
|
|
562
|
-
Terminal: () => (Dl)
|
|
563
|
-
});
|
|
564
|
-
|
|
565
551
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
566
552
|
var injectStylesIntoStyleTag = __webpack_require__(72);
|
|
567
553
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
@@ -3366,12 +3352,13 @@ class Encoder {
|
|
|
3366
3352
|
class Decoder extends Emitter {
|
|
3367
3353
|
/**
|
|
3368
3354
|
* Decoder constructor
|
|
3369
|
-
*
|
|
3370
|
-
* @param {function} reviver - custom reviver to pass down to JSON.stringify
|
|
3371
3355
|
*/
|
|
3372
|
-
constructor(
|
|
3356
|
+
constructor(opts) {
|
|
3373
3357
|
super();
|
|
3374
|
-
this.
|
|
3358
|
+
this.opts = Object.assign({
|
|
3359
|
+
reviver: undefined,
|
|
3360
|
+
maxAttachments: 10,
|
|
3361
|
+
}, typeof opts === "function" ? { reviver: opts } : opts);
|
|
3375
3362
|
}
|
|
3376
3363
|
/**
|
|
3377
3364
|
* Decodes an encoded packet string into packet JSON.
|
|
@@ -3442,7 +3429,14 @@ class Decoder extends Emitter {
|
|
|
3442
3429
|
if (buf != Number(buf) || str.charAt(i) !== "-") {
|
|
3443
3430
|
throw new Error("Illegal attachments");
|
|
3444
3431
|
}
|
|
3445
|
-
|
|
3432
|
+
const n = Number(buf);
|
|
3433
|
+
if (!isInteger(n) || n < 0) {
|
|
3434
|
+
throw new Error("Illegal attachments");
|
|
3435
|
+
}
|
|
3436
|
+
else if (n > this.opts.maxAttachments) {
|
|
3437
|
+
throw new Error("too many attachments");
|
|
3438
|
+
}
|
|
3439
|
+
p.attachments = n;
|
|
3446
3440
|
}
|
|
3447
3441
|
// look up namespace (if any)
|
|
3448
3442
|
if ("/" === str.charAt(i + 1)) {
|
|
@@ -3488,7 +3482,7 @@ class Decoder extends Emitter {
|
|
|
3488
3482
|
}
|
|
3489
3483
|
tryParse(str) {
|
|
3490
3484
|
try {
|
|
3491
|
-
return JSON.parse(str, this.reviver);
|
|
3485
|
+
return JSON.parse(str, this.opts.reviver);
|
|
3492
3486
|
}
|
|
3493
3487
|
catch (e) {
|
|
3494
3488
|
return false;
|
|
@@ -5091,7 +5085,7 @@ const onDisconnect = wraptile(_onDisconnect);
|
|
|
5091
5085
|
const onConnect = wraptile(_onConnect);
|
|
5092
5086
|
/* harmony default export */ const gritty = (gritty_gritty);
|
|
5093
5087
|
const defaultFontFamily = 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace';
|
|
5094
|
-
const _defaultFontFamily = defaultFontFamily;
|
|
5088
|
+
const _defaultFontFamily = (/* unused pure expression or super */ null && (defaultFontFamily));
|
|
5095
5089
|
function gritty_gritty(element, options = {}) {
|
|
5096
5090
|
const el = get_el(element);
|
|
5097
5091
|
const {
|
|
@@ -5102,7 +5096,7 @@ function gritty_gritty(element, options = {}) {
|
|
|
5102
5096
|
autoRestart,
|
|
5103
5097
|
cwd,
|
|
5104
5098
|
connect,
|
|
5105
|
-
Terminal =
|
|
5099
|
+
Terminal = Dl,
|
|
5106
5100
|
WebglAddon = xr
|
|
5107
5101
|
} = options;
|
|
5108
5102
|
const env = get_env(options.env || {});
|
|
@@ -5189,7 +5183,9 @@ function _onConnect(socket, fitAddon, {
|
|
|
5189
5183
|
fitAddon.fit();
|
|
5190
5184
|
}
|
|
5191
5185
|
function _onDisconnect(terminal) {
|
|
5186
|
+
terminal.writeln('');
|
|
5192
5187
|
terminal.writeln('terminal disconnected...');
|
|
5188
|
+
terminal.writeln('');
|
|
5193
5189
|
}
|
|
5194
5190
|
function _onData(terminal, data) {
|
|
5195
5191
|
terminal.write(data);
|
|
@@ -5228,7 +5224,7 @@ function doConnect(prefix, socketPath, overrides = {}) {
|
|
|
5228
5224
|
}
|
|
5229
5225
|
})();
|
|
5230
5226
|
|
|
5231
|
-
gritty = __webpack_exports__;
|
|
5227
|
+
gritty = __webpack_exports__["default"];
|
|
5232
5228
|
/******/ })()
|
|
5233
5229
|
;
|
|
5234
5230
|
//# sourceMappingURL=gritty.js.map
|