@novnc/novnc 1.3.0-beta → 1.3.0-g99cf540
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/README.md +1 -1
- package/lib/input/util.js +1 -1
- package/lib/util/browser.js +9 -5
- package/lib/util/events.js +2 -2
- package/lib/util/int.js +1 -1
- package/lib/util/logging.js +2 -2
- package/lib/vendor/pako/lib/utils/common.js +2 -2
- package/lib/vendor/pako/lib/zlib/deflate.js +5 -4
- package/lib/vendor/pako/lib/zlib/inffast.js +6 -2
- package/lib/vendor/pako/lib/zlib/inflate.js +40 -17
- package/lib/vendor/pako/lib/zlib/trees.js +2 -2
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ proxy.
|
|
|
114
114
|
|
|
115
115
|
`./utils/novnc_proxy --vnc localhost:5901`
|
|
116
116
|
|
|
117
|
-
* Point your browser to the cut-and-paste URL that is output by the `
|
|
117
|
+
* Point your browser to the cut-and-paste URL that is output by the `novnc_proxy`
|
|
118
118
|
script. Hit the Connect button, enter a password if the VNC server has one
|
|
119
119
|
configured, and enjoy!
|
|
120
120
|
|
package/lib/input/util.js
CHANGED
|
@@ -5,8 +5,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.getKeycode = getKeycode;
|
|
9
8
|
exports.getKey = getKey;
|
|
9
|
+
exports.getKeycode = getKeycode;
|
|
10
10
|
exports.getKeysym = getKeysym;
|
|
11
11
|
|
|
12
12
|
var _keysym = _interopRequireDefault(require("./keysym.js"));
|
package/lib/util/browser.js
CHANGED
|
@@ -5,12 +5,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
8
|
+
exports.hasScrollbarGutter = exports.dragThreshold = void 0;
|
|
9
|
+
exports.isFirefox = isFirefox;
|
|
10
10
|
exports.isIOS = isIOS;
|
|
11
|
+
exports.isMac = isMac;
|
|
11
12
|
exports.isSafari = isSafari;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
13
|
+
exports.isTouchDevice = void 0;
|
|
14
|
+
exports.isWindows = isWindows;
|
|
15
|
+
exports.supportsCursorURIs = void 0;
|
|
14
16
|
|
|
15
17
|
var Log = _interopRequireWildcard(require("./logging.js"));
|
|
16
18
|
|
|
@@ -28,7 +30,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
28
30
|
* Browser feature support detection
|
|
29
31
|
*/
|
|
30
32
|
// Touch detection
|
|
31
|
-
var isTouchDevice = 'ontouchstart' in document.documentElement ||
|
|
33
|
+
var isTouchDevice = 'ontouchstart' in document.documentElement || // requried for Chrome debugger
|
|
34
|
+
document.ontouchstart !== undefined || // required for MS Surface
|
|
35
|
+
navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
32
36
|
exports.isTouchDevice = isTouchDevice;
|
|
33
37
|
window.addEventListener('touchstart', function onFirstTouch() {
|
|
34
38
|
exports.isTouchDevice = isTouchDevice = true;
|
package/lib/util/events.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getPointerEvent = getPointerEvent;
|
|
7
|
-
exports.stopEvent = stopEvent;
|
|
8
|
-
exports.setCapture = setCapture;
|
|
9
7
|
exports.releaseCapture = releaseCapture;
|
|
8
|
+
exports.setCapture = setCapture;
|
|
9
|
+
exports.stopEvent = stopEvent;
|
|
10
10
|
|
|
11
11
|
/*
|
|
12
12
|
* noVNC: HTML5 VNC client
|
package/lib/util/int.js
CHANGED
package/lib/util/logging.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Warn = exports.Info = exports.Error = exports.Debug = void 0;
|
|
7
7
|
exports.getLogging = getLogging;
|
|
8
|
-
exports.
|
|
8
|
+
exports.initLogging = initLogging;
|
|
9
9
|
|
|
10
10
|
/*
|
|
11
11
|
* noVNC: HTML5 VNC client
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Buf8 = exports.Buf32 = exports.Buf16 = void 0;
|
|
7
7
|
exports.arraySet = arraySet;
|
|
8
8
|
exports.flattenChunks = flattenChunks;
|
|
9
|
-
exports.
|
|
9
|
+
exports.shrinkBuf = shrinkBuf;
|
|
10
10
|
|
|
11
11
|
// reduce buffer size, avoiding mem copy
|
|
12
12
|
function shrinkBuf(buf, size) {
|
|
@@ -5,15 +5,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.Z_UNKNOWN = exports.Z_STREAM_ERROR = exports.Z_STREAM_END = exports.Z_RLE = exports.Z_PARTIAL_FLUSH = exports.Z_OK = exports.Z_NO_FLUSH = exports.Z_HUFFMAN_ONLY = exports.Z_FULL_FLUSH = exports.Z_FIXED = exports.Z_FINISH = exports.Z_FILTERED = exports.Z_DEFLATED = exports.Z_DEFAULT_STRATEGY = exports.Z_DEFAULT_COMPRESSION = exports.Z_DATA_ERROR = exports.Z_BUF_ERROR = exports.Z_BLOCK = void 0;
|
|
9
|
+
exports.deflate = deflate;
|
|
10
|
+
exports.deflateEnd = deflateEnd;
|
|
11
|
+
exports.deflateInfo = void 0;
|
|
8
12
|
exports.deflateInit = deflateInit;
|
|
9
13
|
exports.deflateInit2 = deflateInit2;
|
|
10
14
|
exports.deflateReset = deflateReset;
|
|
11
15
|
exports.deflateResetKeep = deflateResetKeep;
|
|
12
|
-
exports.deflateSetHeader = deflateSetHeader;
|
|
13
|
-
exports.deflate = deflate;
|
|
14
|
-
exports.deflateEnd = deflateEnd;
|
|
15
16
|
exports.deflateSetDictionary = deflateSetDictionary;
|
|
16
|
-
exports.
|
|
17
|
+
exports.deflateSetHeader = deflateSetHeader;
|
|
17
18
|
|
|
18
19
|
var utils = _interopRequireWildcard(require("../utils/common.js"));
|
|
19
20
|
|
|
@@ -392,7 +392,9 @@ function inflate_fast(strm, start) {
|
|
|
392
392
|
}
|
|
393
393
|
} else if ((op & 64) === 0) {
|
|
394
394
|
/* 2nd level distance code */
|
|
395
|
-
here = dcode[(here & 0xffff
|
|
395
|
+
here = dcode[(here & 0xffff
|
|
396
|
+
/*here.val*/
|
|
397
|
+
) + (hold & (1 << op) - 1)];
|
|
396
398
|
continue dodist;
|
|
397
399
|
} else {
|
|
398
400
|
strm.msg = 'invalid distance code';
|
|
@@ -404,7 +406,9 @@ function inflate_fast(strm, start) {
|
|
|
404
406
|
}
|
|
405
407
|
} else if ((op & 64) === 0) {
|
|
406
408
|
/* 2nd level length code */
|
|
407
|
-
here = lcode[(here & 0xffff
|
|
409
|
+
here = lcode[(here & 0xffff
|
|
410
|
+
/*here.val*/
|
|
411
|
+
) + (hold & (1 << op) - 1)];
|
|
408
412
|
continue dolen;
|
|
409
413
|
} else if (op & 32) {
|
|
410
414
|
/* end-of-block */
|
|
@@ -5,16 +5,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
9
|
-
exports.inflateReset2 = inflateReset2;
|
|
10
|
-
exports.inflateResetKeep = inflateResetKeep;
|
|
11
|
-
exports.inflateInit = inflateInit;
|
|
12
|
-
exports.inflateInit2 = inflateInit2;
|
|
8
|
+
exports.Z_TREES = exports.Z_STREAM_ERROR = exports.Z_STREAM_END = exports.Z_OK = exports.Z_NEED_DICT = exports.Z_MEM_ERROR = exports.Z_FINISH = exports.Z_DEFLATED = exports.Z_DATA_ERROR = exports.Z_BUF_ERROR = exports.Z_BLOCK = void 0;
|
|
13
9
|
exports.inflate = inflate;
|
|
14
10
|
exports.inflateEnd = inflateEnd;
|
|
15
11
|
exports.inflateGetHeader = inflateGetHeader;
|
|
12
|
+
exports.inflateInfo = void 0;
|
|
13
|
+
exports.inflateInit = inflateInit;
|
|
14
|
+
exports.inflateInit2 = inflateInit2;
|
|
15
|
+
exports.inflateReset = inflateReset;
|
|
16
|
+
exports.inflateReset2 = inflateReset2;
|
|
17
|
+
exports.inflateResetKeep = inflateResetKeep;
|
|
16
18
|
exports.inflateSetDictionary = inflateSetDictionary;
|
|
17
|
-
exports.inflateInfo = exports.Z_DEFLATED = exports.Z_BUF_ERROR = exports.Z_MEM_ERROR = exports.Z_DATA_ERROR = exports.Z_STREAM_ERROR = exports.Z_NEED_DICT = exports.Z_STREAM_END = exports.Z_OK = exports.Z_TREES = exports.Z_BLOCK = exports.Z_FINISH = void 0;
|
|
18
19
|
|
|
19
20
|
var utils = _interopRequireWildcard(require("../utils/common.js"));
|
|
20
21
|
|
|
@@ -693,13 +694,17 @@ function inflate(strm, flush) {
|
|
|
693
694
|
|
|
694
695
|
if (!(state.wrap & 1) ||
|
|
695
696
|
/* check if zlib header allowed */
|
|
696
|
-
(((hold & 0xff
|
|
697
|
+
(((hold & 0xff
|
|
698
|
+
/*BITS(8)*/
|
|
699
|
+
) << 8) + (hold >> 8)) % 31) {
|
|
697
700
|
strm.msg = 'incorrect header check';
|
|
698
701
|
state.mode = BAD;
|
|
699
702
|
break;
|
|
700
703
|
}
|
|
701
704
|
|
|
702
|
-
if ((hold & 0x0f
|
|
705
|
+
if ((hold & 0x0f
|
|
706
|
+
/*BITS(4)*/
|
|
707
|
+
) !== Z_DEFLATED) {
|
|
703
708
|
strm.msg = 'unknown compression method';
|
|
704
709
|
state.mode = BAD;
|
|
705
710
|
break;
|
|
@@ -709,7 +714,9 @@ function inflate(strm, flush) {
|
|
|
709
714
|
hold >>>= 4;
|
|
710
715
|
bits -= 4; //---//
|
|
711
716
|
|
|
712
|
-
len = (hold & 0x0f
|
|
717
|
+
len = (hold & 0x0f
|
|
718
|
+
/*BITS(4)*/
|
|
719
|
+
) + 8;
|
|
713
720
|
|
|
714
721
|
if (state.wbits === 0) {
|
|
715
722
|
state.wbits = len;
|
|
@@ -1117,7 +1124,9 @@ function inflate(strm, flush) {
|
|
|
1117
1124
|
hold >>>= 1;
|
|
1118
1125
|
bits -= 1; //---//
|
|
1119
1126
|
|
|
1120
|
-
switch (hold & 0x03
|
|
1127
|
+
switch (hold & 0x03
|
|
1128
|
+
/*BITS(2)*/
|
|
1129
|
+
) {
|
|
1121
1130
|
case 0:
|
|
1122
1131
|
/* stored block */
|
|
1123
1132
|
//Tracev((stderr, "inflate: stored block%s\n",
|
|
@@ -1248,17 +1257,23 @@ function inflate(strm, flush) {
|
|
|
1248
1257
|
} //===//
|
|
1249
1258
|
|
|
1250
1259
|
|
|
1251
|
-
state.nlen = (hold & 0x1f
|
|
1260
|
+
state.nlen = (hold & 0x1f
|
|
1261
|
+
/*BITS(5)*/
|
|
1262
|
+
) + 257; //--- DROPBITS(5) ---//
|
|
1252
1263
|
|
|
1253
1264
|
hold >>>= 5;
|
|
1254
1265
|
bits -= 5; //---//
|
|
1255
1266
|
|
|
1256
|
-
state.ndist = (hold & 0x1f
|
|
1267
|
+
state.ndist = (hold & 0x1f
|
|
1268
|
+
/*BITS(5)*/
|
|
1269
|
+
) + 1; //--- DROPBITS(5) ---//
|
|
1257
1270
|
|
|
1258
1271
|
hold >>>= 5;
|
|
1259
1272
|
bits -= 5; //---//
|
|
1260
1273
|
|
|
1261
|
-
state.ncode = (hold & 0x0f
|
|
1274
|
+
state.ncode = (hold & 0x0f
|
|
1275
|
+
/*BITS(4)*/
|
|
1276
|
+
) + 4; //--- DROPBITS(4) ---//
|
|
1262
1277
|
|
|
1263
1278
|
hold >>>= 4;
|
|
1264
1279
|
bits -= 4; //---//
|
|
@@ -1575,7 +1590,9 @@ function inflate(strm, flush) {
|
|
|
1575
1590
|
last_val = here_val;
|
|
1576
1591
|
|
|
1577
1592
|
for (;;) {
|
|
1578
|
-
here = state.lencode[last_val + ((hold & (1 << last_bits + last_op) - 1
|
|
1593
|
+
here = state.lencode[last_val + ((hold & (1 << last_bits + last_op) - 1
|
|
1594
|
+
/*BITS(last.bits + last.op)*/
|
|
1595
|
+
) >> last_bits)];
|
|
1579
1596
|
here_bits = here >>> 24;
|
|
1580
1597
|
here_op = here >>> 16 & 0xff;
|
|
1581
1598
|
here_val = here & 0xffff;
|
|
@@ -1695,7 +1712,9 @@ function inflate(strm, flush) {
|
|
|
1695
1712
|
last_val = here_val;
|
|
1696
1713
|
|
|
1697
1714
|
for (;;) {
|
|
1698
|
-
here = state.distcode[last_val + ((hold & (1 << last_bits + last_op) - 1
|
|
1715
|
+
here = state.distcode[last_val + ((hold & (1 << last_bits + last_op) - 1
|
|
1716
|
+
/*BITS(last.bits + last.op)*/
|
|
1717
|
+
) >> last_bits)];
|
|
1699
1718
|
here_bits = here >>> 24;
|
|
1700
1719
|
here_op = here >>> 16 & 0xff;
|
|
1701
1720
|
here_val = here & 0xffff;
|
|
@@ -1878,7 +1897,9 @@ function inflate(strm, flush) {
|
|
|
1878
1897
|
state.total += _out;
|
|
1879
1898
|
|
|
1880
1899
|
if (_out) {
|
|
1881
|
-
strm.adler = state.check =
|
|
1900
|
+
strm.adler = state.check =
|
|
1901
|
+
/*UPDATE(state.check, put - _out, _out);*/
|
|
1902
|
+
state.flags ? (0, _crc["default"])(state.check, output, _out, put - _out) : (0, _adler["default"])(state.check, output, _out, put - _out);
|
|
1882
1903
|
}
|
|
1883
1904
|
|
|
1884
1905
|
_out = left; // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
|
|
@@ -1978,7 +1999,9 @@ function inflate(strm, flush) {
|
|
|
1978
1999
|
state.total += _out;
|
|
1979
2000
|
|
|
1980
2001
|
if (state.wrap && _out) {
|
|
1981
|
-
strm.adler = state.check =
|
|
2002
|
+
strm.adler = state.check =
|
|
2003
|
+
/*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
2004
|
+
state.flags ? (0, _crc["default"])(state.check, output, _out, strm.next_out - _out) : (0, _adler["default"])(state.check, output, _out, strm.next_out - _out);
|
|
1982
2005
|
}
|
|
1983
2006
|
|
|
1984
2007
|
strm.data_type = state.bits + (state.last ? 64 : 0) + (state.mode === TYPE ? 128 : 0) + (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
|
|
@@ -5,11 +5,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports._tr_align = _tr_align;
|
|
9
|
+
exports._tr_flush_block = _tr_flush_block;
|
|
8
10
|
exports._tr_init = _tr_init;
|
|
9
11
|
exports._tr_stored_block = _tr_stored_block;
|
|
10
|
-
exports._tr_flush_block = _tr_flush_block;
|
|
11
12
|
exports._tr_tally = _tr_tally;
|
|
12
|
-
exports._tr_align = _tr_align;
|
|
13
13
|
|
|
14
14
|
var utils = _interopRequireWildcard(require("../utils/common.js"));
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novnc/novnc",
|
|
3
|
-
"version": "1.3.0-
|
|
3
|
+
"version": "1.3.0-g99cf540",
|
|
4
4
|
"description": "An HTML5 VNC client",
|
|
5
5
|
"browser": "lib/rfb",
|
|
6
6
|
"directories": {
|
|
@@ -29,8 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"author": "Joel Martin <github@martintribe.org> (https://github.com/kanaka)",
|
|
31
31
|
"contributors": [
|
|
32
|
-
"Solly Ross <sross@redhat.com> (https://github.com/directxman12)",
|
|
33
|
-
"Peter Åstrand <astrand@cendio.se> (https://github.com/astrand)",
|
|
34
32
|
"Samuel Mannehed <samuel@cendio.se> (https://github.com/samhed)",
|
|
35
33
|
"Pierre Ossman <ossman@cendio.se> (https://github.com/CendioOssman)"
|
|
36
34
|
],
|