@novnc/novnc
Advanced tools
Comparing version 1.3.0-beta to 1.3.0-g1075cd8
@@ -54,3 +54,3 @@ /* | ||
for (let i = 0; i < pixels; i++) { | ||
data[i * 4 + 3] = 255; | ||
data[index + i * 4 + 3] = 255; | ||
} | ||
@@ -57,0 +57,0 @@ |
@@ -15,3 +15,5 @@ /* | ||
encodingTight: 7, | ||
encodingZRLE: 16, | ||
encodingTightPNG: -260, | ||
encodingJPEG: 21, | ||
@@ -42,5 +44,7 @@ pseudoEncodingQualityLevel9: -23, | ||
case encodings.encodingTight: return "Tight"; | ||
case encodings.encodingZRLE: return "ZRLE"; | ||
case encodings.encodingTightPNG: return "TightPNG"; | ||
case encodings.encodingJPEG: return "JPEG"; | ||
default: return "[unknown encoding " + num + "]"; | ||
} | ||
} |
@@ -89,5 +89,9 @@ # noVNC API | ||
[`disconnect`](#disconnected) | ||
[`disconnect`](#disconnect) | ||
- The `disconnect` event is fired when the `RFB` object disconnects. | ||
[`serververification`](#serververification) | ||
- The `serververification` event is fired when the server identity | ||
must be confirmed by the user. | ||
[`credentialsrequired`](#credentialsrequired) | ||
@@ -122,2 +126,7 @@ - The `credentialsrequired` event is fired when more credentials must | ||
[`RFB.approveServer()`](#rfbapproveserver) | ||
- Proceed connecting to the server. Should be called after the | ||
[`serververification`](#serververification) event has fired and the | ||
user has verified the identity of the server. | ||
[`RFB.sendCredentials()`](#rfbsendcredentials) | ||
@@ -127,3 +136,3 @@ - Send credentials to server. Should be called after the | ||
[`RFB.sendKey()`](#rfbsendKey) | ||
[`RFB.sendKey()`](#rfbsendkey) | ||
- Send a key event. | ||
@@ -149,3 +158,3 @@ | ||
[`RFB.clipboardPasteFrom()`](#rfbclipboardPasteFrom) | ||
[`RFB.clipboardPasteFrom()`](#rfbclipboardpastefrom) | ||
- Send clipboard contents to server. | ||
@@ -219,2 +228,16 @@ | ||
#### serververification | ||
The `serververification` event is fired when the server provides | ||
information that allows the user to verify that it is the correct server | ||
and protect against a man-in-the-middle attack. The `detail` property is | ||
an `Object` containing the property `type` which is a `DOMString` | ||
specifying which type of information the server has provided. Other | ||
properties are also available, depending on the value of `type`: | ||
`"RSA"` | ||
- The server identity is verified using just a RSA key. The property | ||
`publickey` is a `Uint8Array` containing the public key in a unsigned | ||
big endian representation. | ||
#### credentialsrequired | ||
@@ -279,2 +302,12 @@ | ||
#### RFB.approveServer() | ||
The `RFB.approveServer()` method is used to signal that the user has | ||
verified the server identity provided in a `serververification` event | ||
and that the connection can continue. | ||
##### Syntax | ||
RFB.approveServer( ); | ||
#### RFB.sendCredentials() | ||
@@ -337,4 +370,11 @@ | ||
RFB.focus( ); | ||
RFB.focus( [options] ); | ||
###### Parameters | ||
**`options`** *Optional* | ||
- A `object` providing options to control how the focus will be | ||
performed. Please see [`HTMLElement.focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) | ||
for available options. | ||
#### RFB.blur() | ||
@@ -341,0 +381,0 @@ |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -20,3 +20,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -23,0 +23,0 @@ var HextileDecoder = /*#__PURE__*/function () { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -70,3 +70,3 @@ /* | ||
for (var _i = 0; _i < pixels; _i++) { | ||
data[_i * 4 + 3] = 255; | ||
data[index + _i * 4 + 3] = 255; | ||
} | ||
@@ -73,0 +73,0 @@ |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -24,3 +24,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -27,0 +27,0 @@ var TightDecoder = /*#__PURE__*/function () { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -18,5 +18,5 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -23,0 +23,0 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -21,0 +21,0 @@ var Deflator = /*#__PURE__*/function () { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -26,3 +26,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -29,0 +29,0 @@ var Display = /*#__PURE__*/function () { |
@@ -22,3 +22,5 @@ "use strict"; | ||
encodingTight: 7, | ||
encodingZRLE: 16, | ||
encodingTightPNG: -260, | ||
encodingJPEG: 21, | ||
pseudoEncodingQualityLevel9: -23, | ||
@@ -59,5 +61,11 @@ pseudoEncodingQualityLevel0: -32, | ||
case encodings.encodingZRLE: | ||
return "ZRLE"; | ||
case encodings.encodingTightPNG: | ||
return "TightPNG"; | ||
case encodings.encodingJPEG: | ||
return "JPEG"; | ||
default: | ||
@@ -64,0 +72,0 @@ return "[unknown encoding " + num + "]"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -21,0 +21,0 @@ var Inflate = /*#__PURE__*/function () { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -30,3 +30,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -33,0 +33,0 @@ // |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.getKey = getKey; | ||
exports.getKeycode = getKeycode; | ||
exports.getKey = getKey; | ||
exports.getKeysym = getKeysym; | ||
@@ -12,0 +12,0 @@ |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -8,8 +8,10 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.hasScrollbarGutter = exports.dragThreshold = void 0; | ||
exports.isFirefox = isFirefox; | ||
exports.isIOS = isIOS; | ||
exports.isMac = isMac; | ||
exports.isSafari = isSafari; | ||
exports.isTouchDevice = void 0; | ||
exports.isWindows = isWindows; | ||
exports.isIOS = isIOS; | ||
exports.isSafari = isSafari; | ||
exports.isFirefox = isFirefox; | ||
exports.hasScrollbarGutter = exports.supportsCursorURIs = exports.dragThreshold = exports.isTouchDevice = void 0; | ||
exports.supportsCursorURIs = void 0; | ||
@@ -32,3 +34,5 @@ var Log = _interopRequireWildcard(require("./logging.js")); | ||
// Touch detection | ||
var isTouchDevice = 'ontouchstart' in document.documentElement || document.ontouchstart !== undefined || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; | ||
var isTouchDevice = 'ontouchstart' in document.documentElement || // requried for Chrome debugger | ||
document.ontouchstart !== undefined || // required for MS Surface | ||
navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; | ||
exports.isTouchDevice = isTouchDevice; | ||
@@ -35,0 +39,0 @@ window.addEventListener('touchstart', function onFirstTouch() { |
@@ -14,3 +14,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -17,0 +17,0 @@ var useFallback = !_browser.supportsCursorURIs || _browser.isTouchDevice; |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.getPointerEvent = getPointerEvent; | ||
exports.releaseCapture = releaseCapture; | ||
exports.setCapture = setCapture; | ||
exports.stopEvent = stopEvent; | ||
exports.setCapture = setCapture; | ||
exports.releaseCapture = releaseCapture; | ||
@@ -12,0 +12,0 @@ /* |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
@@ -6,4 +6,4 @@ "use strict"; | ||
}); | ||
exports.toSigned32bit = toSigned32bit; | ||
exports.toUnsigned32bit = toUnsigned32bit; | ||
exports.toSigned32bit = toSigned32bit; | ||
@@ -10,0 +10,0 @@ /* |
@@ -6,5 +6,5 @@ "use strict"; | ||
}); | ||
exports.Warn = exports.Info = exports.Error = exports.Debug = void 0; | ||
exports.getLogging = getLogging; | ||
exports.initLogging = initLogging; | ||
exports.getLogging = getLogging; | ||
exports.Error = exports.Warn = exports.Info = exports.Debug = void 0; | ||
@@ -11,0 +11,0 @@ /* |
@@ -6,6 +6,6 @@ "use strict"; | ||
}); | ||
exports.shrinkBuf = shrinkBuf; | ||
exports.Buf8 = exports.Buf32 = exports.Buf16 = void 0; | ||
exports.arraySet = arraySet; | ||
exports.flattenChunks = flattenChunks; | ||
exports.Buf32 = exports.Buf16 = exports.Buf8 = void 0; | ||
exports.shrinkBuf = shrinkBuf; | ||
@@ -12,0 +12,0 @@ // reduce buffer size, avoiding mem copy |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -8,2 +8,6 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
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; | ||
exports.deflate = deflate; | ||
exports.deflateEnd = deflateEnd; | ||
exports.deflateInfo = void 0; | ||
exports.deflateInit = deflateInit; | ||
@@ -13,7 +17,4 @@ exports.deflateInit2 = deflateInit2; | ||
exports.deflateResetKeep = deflateResetKeep; | ||
exports.deflateSetDictionary = deflateSetDictionary; | ||
exports.deflateSetHeader = deflateSetHeader; | ||
exports.deflate = deflate; | ||
exports.deflateEnd = deflateEnd; | ||
exports.deflateSetDictionary = deflateSetDictionary; | ||
exports.deflateInfo = exports.Z_DEFLATED = exports.Z_UNKNOWN = exports.Z_DEFAULT_STRATEGY = exports.Z_FIXED = exports.Z_RLE = exports.Z_HUFFMAN_ONLY = exports.Z_FILTERED = exports.Z_DEFAULT_COMPRESSION = exports.Z_BUF_ERROR = exports.Z_DATA_ERROR = exports.Z_STREAM_ERROR = exports.Z_STREAM_END = exports.Z_OK = exports.Z_BLOCK = exports.Z_FINISH = exports.Z_FULL_FLUSH = exports.Z_PARTIAL_FLUSH = exports.Z_NO_FLUSH = void 0; | ||
@@ -20,0 +21,0 @@ var utils = _interopRequireWildcard(require("../utils/common.js")); |
@@ -395,3 +395,5 @@ "use strict"; | ||
/* 2nd level distance code */ | ||
here = dcode[(here & 0xffff) + (hold & (1 << op) - 1)]; | ||
here = dcode[(here & 0xffff | ||
/*here.val*/ | ||
) + (hold & (1 << op) - 1)]; | ||
continue dodist; | ||
@@ -408,3 +410,5 @@ } else { | ||
/* 2nd level length code */ | ||
here = lcode[(here & 0xffff) + (hold & (1 << op) - 1)]; | ||
here = lcode[(here & 0xffff | ||
/*here.val*/ | ||
) + (hold & (1 << op) - 1)]; | ||
continue dolen; | ||
@@ -411,0 +415,0 @@ } else if (op & 32) { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -8,12 +8,13 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
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; | ||
exports.inflate = inflate; | ||
exports.inflateEnd = inflateEnd; | ||
exports.inflateGetHeader = inflateGetHeader; | ||
exports.inflateInfo = void 0; | ||
exports.inflateInit = inflateInit; | ||
exports.inflateInit2 = inflateInit2; | ||
exports.inflateReset = inflateReset; | ||
exports.inflateReset2 = inflateReset2; | ||
exports.inflateResetKeep = inflateResetKeep; | ||
exports.inflateInit = inflateInit; | ||
exports.inflateInit2 = inflateInit2; | ||
exports.inflate = inflate; | ||
exports.inflateEnd = inflateEnd; | ||
exports.inflateGetHeader = inflateGetHeader; | ||
exports.inflateSetDictionary = inflateSetDictionary; | ||
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; | ||
@@ -697,3 +698,5 @@ var utils = _interopRequireWildcard(require("../utils/common.js")); | ||
/* check if zlib header allowed */ | ||
(((hold & 0xff) << 8) + (hold >> 8)) % 31) { | ||
(((hold & 0xff | ||
/*BITS(8)*/ | ||
) << 8) + (hold >> 8)) % 31) { | ||
strm.msg = 'incorrect header check'; | ||
@@ -704,3 +707,5 @@ state.mode = BAD; | ||
if ((hold & 0x0f) !== Z_DEFLATED) { | ||
if ((hold & 0x0f | ||
/*BITS(4)*/ | ||
) !== Z_DEFLATED) { | ||
strm.msg = 'unknown compression method'; | ||
@@ -715,3 +720,5 @@ state.mode = BAD; | ||
len = (hold & 0x0f) + 8; | ||
len = (hold & 0x0f | ||
/*BITS(4)*/ | ||
) + 8; | ||
@@ -1124,3 +1131,5 @@ if (state.wbits === 0) { | ||
switch (hold & 0x03) { | ||
switch (hold & 0x03 | ||
/*BITS(2)*/ | ||
) { | ||
case 0: | ||
@@ -1256,3 +1265,5 @@ /* stored block */ | ||
state.nlen = (hold & 0x1f) + 257; //--- DROPBITS(5) ---// | ||
state.nlen = (hold & 0x1f | ||
/*BITS(5)*/ | ||
) + 257; //--- DROPBITS(5) ---// | ||
@@ -1262,3 +1273,5 @@ hold >>>= 5; | ||
state.ndist = (hold & 0x1f) + 1; //--- DROPBITS(5) ---// | ||
state.ndist = (hold & 0x1f | ||
/*BITS(5)*/ | ||
) + 1; //--- DROPBITS(5) ---// | ||
@@ -1268,3 +1281,5 @@ hold >>>= 5; | ||
state.ncode = (hold & 0x0f) + 4; //--- DROPBITS(4) ---// | ||
state.ncode = (hold & 0x0f | ||
/*BITS(4)*/ | ||
) + 4; //--- DROPBITS(4) ---// | ||
@@ -1586,3 +1601,5 @@ hold >>>= 4; | ||
for (;;) { | ||
here = state.lencode[last_val + ((hold & (1 << last_bits + last_op) - 1) >> last_bits)]; | ||
here = state.lencode[last_val + ((hold & (1 << last_bits + last_op) - 1 | ||
/*BITS(last.bits + last.op)*/ | ||
) >> last_bits)]; | ||
here_bits = here >>> 24; | ||
@@ -1707,3 +1724,5 @@ here_op = here >>> 16 & 0xff; | ||
for (;;) { | ||
here = state.distcode[last_val + ((hold & (1 << last_bits + last_op) - 1) >> last_bits)]; | ||
here = state.distcode[last_val + ((hold & (1 << last_bits + last_op) - 1 | ||
/*BITS(last.bits + last.op)*/ | ||
) >> last_bits)]; | ||
here_bits = here >>> 24; | ||
@@ -1891,3 +1910,5 @@ here_op = here >>> 16 & 0xff; | ||
if (_out) { | ||
strm.adler = state.check = state.flags ? (0, _crc["default"])(state.check, output, _out, put - _out) : (0, _adler["default"])(state.check, output, _out, put - _out); | ||
strm.adler = state.check = | ||
/*UPDATE(state.check, put - _out, _out);*/ | ||
state.flags ? (0, _crc["default"])(state.check, output, _out, put - _out) : (0, _adler["default"])(state.check, output, _out, put - _out); | ||
} | ||
@@ -1992,3 +2013,5 @@ | ||
if (state.wrap && _out) { | ||
strm.adler = state.check = state.flags ? (0, _crc["default"])(state.check, output, _out, strm.next_out - _out) : (0, _adler["default"])(state.check, output, _out, strm.next_out - _out); | ||
strm.adler = state.check = | ||
/*UPDATE(state.check, strm.next_out - _out, _out);*/ | ||
state.flags ? (0, _crc["default"])(state.check, output, _out, strm.next_out - _out) : (0, _adler["default"])(state.check, output, _out, strm.next_out - _out); | ||
} | ||
@@ -1995,0 +2018,0 @@ |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports._tr_align = _tr_align; | ||
exports._tr_flush_block = _tr_flush_block; | ||
exports._tr_init = _tr_init; | ||
exports._tr_stored_block = _tr_stored_block; | ||
exports._tr_flush_block = _tr_flush_block; | ||
exports._tr_tally = _tr_tally; | ||
exports._tr_align = _tr_align; | ||
@@ -15,0 +15,0 @@ var utils = _interopRequireWildcard(require("../utils/common.js")); |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -32,3 +32,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -35,0 +35,0 @@ // this has performance issues in some versions Chromium, and |
{ | ||
"name": "@novnc/novnc", | ||
"version": "1.3.0-beta", | ||
"version": "1.3.0-g1075cd8", | ||
"description": "An HTML5 VNC client", | ||
@@ -24,3 +24,3 @@ "browser": "lib/rfb", | ||
"test": "karma start karma.conf.js", | ||
"prepublish": "node ./utils/use_require.js --clean" | ||
"prepublish": "node ./utils/convert.js --clean" | ||
}, | ||
@@ -33,4 +33,2 @@ "repository": { | ||
"contributors": [ | ||
"Solly Ross <sross@redhat.com> (https://github.com/directxman12)", | ||
"Peter Åstrand <astrand@cendio.se> (https://github.com/astrand)", | ||
"Samuel Mannehed <samuel@cendio.se> (https://github.com/samhed)", | ||
@@ -73,5 +71,2 @@ "Pierre Ossman <ossman@cendio.se> (https://github.com/CendioOssman)" | ||
"po2json": "*", | ||
"requirejs": "*", | ||
"rollup": "*", | ||
"rollup-plugin-node-resolve": "*", | ||
"sinon": "*", | ||
@@ -78,0 +73,0 @@ "sinon-chai": "*" |
@@ -116,4 +116,9 @@ ## noVNC: HTML VNC Client Library and Application | ||
`./utils/novnc_proxy --vnc localhost:5901` | ||
* If you don't need to expose the web server to public internet, you can | ||
bind to localhost: | ||
`./utils/novnc_proxy --vnc localhost:5901 --listen localhost:6081` | ||
* Point your browser to the cut-and-paste URL that is output by the `novnc_procy` | ||
* Point your browser to the cut-and-paste URL that is output by the `novnc_proxy` | ||
script. Hit the Connect button, enter a password if the VNC server has one | ||
@@ -127,3 +132,3 @@ configured, and enjoy! | ||
#### Running noVNC | ||
#### Running noVNC from Snap Directly | ||
@@ -134,3 +139,7 @@ You can run the Snap-package installed novnc directly with, for example: | ||
#### Running as a Service (Daemon) | ||
If you want to use certificate files, due to standard Snap confinement restrictions you need to have them in the /home/\<user\>/snap/novnc/current/ directory. If your username is jsmith an example command would be: | ||
`novnc --listen 8443 --cert ~jsmith/snap/novnc/current/self.crt --key ~jsmith/snap/novnc/current/self.key --vnc ubuntu.example.com:5901` | ||
#### Running noVNC from Snap as a Service (Daemon) | ||
The Snap package also has the capability to run a 'novnc' service which can be | ||
@@ -209,2 +218,3 @@ configured to listen on multiple ports connecting to multiple VNC servers | ||
* tight encoding : Michael Tinglof (Mercuri.ca) | ||
* RealVNC RSA AES authentication : USTC Vlab Team | ||
@@ -211,0 +221,0 @@ * Included libraries: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1196105
30
106
6
29860
225