New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@novnc/novnc

Package Overview
Dependencies
Maintainers
4
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@novnc/novnc - npm Package Compare versions

Comparing version 1.5.0-g43326eb to 1.5.0-g4f284c2

2

docs/LIBRARY.md

@@ -19,3 +19,3 @@ # Using the noVNC JavaScript library

## Conversion of Modules
## Conversion of modules

@@ -22,0 +22,0 @@ noVNC is written using ECMAScript 6 modules. This is not supported by older

@@ -13,3 +13,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2021 The noVNC Authors
* Copyright (C) 2021 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -16,0 +16,0 @@ *

@@ -15,3 +15,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -18,0 +18,0 @@ *

@@ -23,3 +23,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2024 The noVNC Authors
* Copyright (C) 2024 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -26,0 +26,0 @@ *

@@ -17,3 +17,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -20,0 +20,0 @@ *

@@ -22,3 +22,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -25,0 +25,0 @@ *

@@ -15,3 +15,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -18,0 +18,0 @@ *

@@ -15,3 +15,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -18,0 +18,0 @@ *

@@ -19,3 +19,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* (c) 2012 Michael Tinglof, Joe Balaz, Les Piech (Mercuri.ca)

@@ -22,0 +22,0 @@ * Licensed under MPL 2.0 (see LICENSE.txt)

@@ -23,3 +23,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -26,0 +26,0 @@ *

@@ -16,3 +16,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2024 The noVNC Authors
* Copyright (C) 2024 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -19,0 +19,0 @@ *

@@ -16,3 +16,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2021 The noVNC Authors
* Copyright (C) 2021 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -19,0 +19,0 @@ *

@@ -17,3 +17,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC Authors
* Copyright (C) 2020 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -20,0 +20,0 @@ *

@@ -20,3 +20,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -23,0 +23,0 @@ *

@@ -10,3 +10,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -40,2 +40,3 @@ *

pseudoEncodingContinuousUpdates: -313,
pseudoEncodingExtendedMouseButtons: -316,
pseudoEncodingCompressLevel9: -247,

@@ -42,0 +43,0 @@ pseudoEncodingCompressLevel0: -256,

@@ -17,3 +17,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC Authors
* Copyright (C) 2020 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -20,0 +20,0 @@ *

@@ -11,3 +11,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC Authors
* Copyright (C) 2018 The noVNC authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)

@@ -14,0 +14,0 @@ */

@@ -9,3 +9,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC Authors
* Copyright (C) 2018 The noVNC authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)

@@ -12,0 +12,0 @@ */

@@ -15,3 +15,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC Authors
* Copyright (C) 2020 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -18,0 +18,0 @@ *

@@ -22,3 +22,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)

@@ -25,0 +25,0 @@ */

@@ -9,3 +9,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC Authors
* Copyright (C) 2018 The noVNC authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)

@@ -12,0 +12,0 @@ */

@@ -24,2 +24,4 @@ "use strict";

var Log = _interopRequireWildcard(require("./logging.js"));
var _base = _interopRequireDefault(require("../base64.js"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

@@ -32,3 +34,3 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -97,3 +99,3 @@ *

_checkWebCodecsH264DecodeSupport2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
var config, result;
var config, support, data, gotframe, _error, decoder, chunk;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -106,3 +108,3 @@ while (1) switch (_context.prev = _context.next) {

}
return _context.abrupt("return");
return _context.abrupt("return", false);
case 2:

@@ -119,13 +121,65 @@ // We'll need to make do with some placeholders here

case 5:
result = _context.sent;
exports.supportsWebCodecsH264Decode = supportsWebCodecsH264Decode = result.supported;
case 7:
support = _context.sent;
if (support.supported) {
_context.next = 8;
break;
}
return _context.abrupt("return", false);
case 8:
// Firefox incorrectly reports supports for H.264 under some
// circumstances, so we need to actually test a real frame
// https://bugzilla.mozilla.org/show_bug.cgi?id=1932392
data = new Uint8Array(_base["default"].decode('AAAAAWdCwBTZnpuAgICgAAADACAAAAZB4oVNAAAAAWjJYyyAAAABBgX//4Hc' + 'Rem95tlIt5Ys2CDZI+7veDI2NCAtIGNvcmUgMTY0IHIzMTA4IDMxZTE5Zjkg' + 'LSBILjI2NC9NUEVHLTQgQVZDIGNvZGVjIC0gQ29weWxlZnQgMjAwMy0yMDIz' + 'IC0gaHR0cDovL3d3dy52aWRlb2xhbi5vcmcveDI2NC5odG1sIC0gb3B0aW9u' + 'czogY2FiYWM9MCByZWY9NSBkZWJsb2NrPTE6MDowIGFuYWx5c2U9MHgxOjB4' + 'MTExIG1lPWhleCBzdWJtZT04IHBzeT0xIHBzeV9yZD0xLjAwOjAuMDAgbWl4' + 'ZWRfcmVmPTEgbWVfcmFuZ2U9MTYgY2hyb21hX21lPTEgdHJlbGxpcz0yIDh4' + 'OGRjdD0wIGNxbT0wIGRlYWR6b25lPTIxLDExIGZhc3RfcHNraXA9MSBjaHJv' + 'bWFfcXBfb2Zmc2V0PS0yIHRocmVhZHM9MSBsb29rYWhlYWRfdGhyZWFkcz0x' + 'IHNsaWNlZF90aHJlYWRzPTAgbnI9MCBkZWNpbWF0ZT0xIGludGVybGFjZWQ9' + 'MCBibHVyYXlfY29tcGF0PTAgY29uc3RyYWluZWRfaW50cmE9MCBiZnJhbWVz' + 'PTAgd2VpZ2h0cD0wIGtleWludD1pbmZpbml0ZSBrZXlpbnRfbWluPTI1IHNj' + 'ZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NTAgcmM9' + 'YWJyIG1idHJlZT0xIGJpdHJhdGU9NDAwIHJhdGV0b2w9MS4wIHFjb21wPTAu' + 'NjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCBpcF9yYXRpbz0xLjQwIGFx' + 'PTE6MS4wMACAAAABZYiEBrxmKAAPVccAAS044AA5DRJMnkycJk4TPw=='));
gotframe = false;
_error = null;
decoder = new VideoDecoder({
output: function output(frame) {
gotframe = true;
},
error: function error(e) {
_error = e;
}
});
chunk = new EncodedVideoChunk({
timestamp: 0,
type: 'key',
data: data
});
decoder.configure(config);
decoder.decode(chunk);
_context.prev = 15;
_context.next = 18;
return decoder.flush();
case 18:
_context.next = 23;
break;
case 20:
_context.prev = 20;
_context.t0 = _context["catch"](15);
// Firefox incorrectly throws an exception here
// https://bugzilla.mozilla.org/show_bug.cgi?id=1932566
_error = _context.t0;
case 23:
if (gotframe) {
_context.next = 25;
break;
}
return _context.abrupt("return", false);
case 25:
if (!(_error !== null)) {
_context.next = 27;
break;
}
return _context.abrupt("return", false);
case 27:
return _context.abrupt("return", true);
case 28:
case "end":
return _context.stop();
}
}, _callee);
}, _callee, null, [[15, 20]]);
}));
return _checkWebCodecsH264DecodeSupport2.apply(this, arguments);
}
_checkWebCodecsH264DecodeSupport();
exports.supportsWebCodecsH264Decode = supportsWebCodecsH264Decode = await _checkWebCodecsH264DecodeSupport();

@@ -132,0 +186,0 @@ /*

@@ -15,3 +15,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)

@@ -18,0 +18,0 @@ */

@@ -9,3 +9,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC Authors
* Copyright (C) 2020 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -12,0 +12,0 @@ *

@@ -12,3 +12,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC Authors
* Copyright (C) 2018 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -15,0 +15,0 @@ *

@@ -15,3 +15,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -18,0 +18,0 @@ *

@@ -10,3 +10,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC Authors
* Copyright (C) 2020 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -13,0 +13,0 @@ *

@@ -11,3 +11,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -14,0 +14,0 @@ *

@@ -10,3 +10,3 @@ "use strict";

* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -13,0 +13,0 @@ *

@@ -23,3 +23,3 @@ "use strict";

* Websock: high-performance buffering wrapper
* Copyright (C) 2019 The noVNC Authors
* Copyright (C) 2019 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)

@@ -81,3 +81,3 @@ *

// Getters and Setters
// Getters and setters
return _createClass(Websock, [{

@@ -103,3 +103,3 @@ key: "readyState",

// Receive Queue
// Receive queue
}, {

@@ -199,3 +199,3 @@ key: "rQpeek8",

// Send Queue
// Send queue
}, {

@@ -261,3 +261,3 @@ key: "sQpush8",

// Event Handlers
// Event handlers
}, {

@@ -363,3 +363,3 @@ key: "off",

if (this._rQbufferSize - (this._rQlen - this._rQi) < minFit) {
throw new Error("Receive Queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit");
throw new Error("Receive queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit");
}

@@ -366,0 +366,0 @@ }

@@ -1,2 +0,2 @@

noVNC is Copyright (C) 2022 The noVNC Authors
noVNC is Copyright (C) 2022 The noVNC authors
(./AUTHORS)

@@ -3,0 +3,0 @@

{
"name": "@novnc/novnc",
"version": "1.5.0-g43326eb",
"version": "1.5.0-g4f284c2",
"description": "An HTML5 VNC client",

@@ -59,4 +59,3 @@ "browser": "lib/rfb",

"mocha": "latest",
"node-getopt": "latest",
"po2json": "latest",
"pofile": "latest",
"sinon": "latest",

@@ -63,0 +62,0 @@ "sinon-chai": "latest"

@@ -1,2 +0,2 @@

## noVNC: HTML VNC Client Library and Application
## noVNC: HTML VNC client library and application

@@ -17,6 +17,6 @@ [![Test Status](https://github.com/novnc/noVNC/workflows/Test/badge.svg)](https://github.com/novnc/noVNC/actions?query=workflow%3ATest)

[ThinLinc](https://cendio.com/thinlinc). See
[the Projects and Companies wiki page](https://github.com/novnc/noVNC/wiki/Projects-and-companies-using-noVNC)
[the Projects and companies wiki page](https://github.com/novnc/noVNC/wiki/Projects-and-companies-using-noVNC)
for a more complete list with additional info and links.
### Table of Contents
### Table of contents

@@ -26,7 +26,7 @@ - [News/help/contact](#newshelpcontact)

- [Screenshots](#screenshots)
- [Browser Requirements](#browser-requirements)
- [Server Requirements](#server-requirements)
- [Quick Start](#quick-start)
- [Installation from Snap Package](#installation-from-snap-package)
- [Integration and Deployment](#integration-and-deployment)
- [Browser requirements](#browser-requirements)
- [Server requirements](#server-requirements)
- [Quick start](#quick-start)
- [Installation from snap package](#installation-from-snap-package)
- [Integration and deployment](#integration-and-deployment)
- [Authors/Contributors](#authorscontributors)

@@ -91,3 +91,3 @@

### Browser Requirements
### Browser requirements

@@ -98,6 +98,6 @@ noVNC uses many modern web technologies so a formal requirement list is

* Chrome 64, Firefox 79, Safari 13.4, Opera 51, Edge 79
* Chrome 89, Firefox 89, Safari 15, Opera 75, Edge 89
### Server Requirements
### Server requirements

@@ -114,3 +114,3 @@ noVNC follows the standard VNC protocol, but unlike other VNC clients it does

### Quick Start
### Quick start

@@ -132,19 +132,19 @@ * Use the `novnc_proxy` script to automatically download and start websockify, which

### Installation from Snap Package
Running the command below will install the latest release of noVNC from Snap:
### Installation from snap package
Running the command below will install the latest release of noVNC from snap:
`sudo snap install novnc`
#### Running noVNC from Snap Directly
#### Running noVNC from snap directly
You can run the Snap-package installed novnc directly with, for example:
You can run the snap package installed novnc directly with, for example:
`novnc --listen 6081 --vnc localhost:5901 # /snap/bin/novnc if /snap/bin is not in your PATH`
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:
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
#### Running noVNC from snap as a service (daemon)
The snap package also has the capability to run a 'novnc' service which can be
configured to listen on multiple ports connecting to multiple VNC servers

@@ -181,3 +181,3 @@ (effectively a service runing multiple instances of novnc).

Disable a service (note that because of a limitation in Snap it's currently not
Disable a service (note that because of a limitation in snap it's currently not
possible to unset config variables, setting them to blank values is the way

@@ -199,3 +199,3 @@ to disable a service):

### Integration and Deployment
### Integration and deployment

@@ -223,4 +223,4 @@ Please see our other documents for how to integrate noVNC in your own software,

* Notable contributions:
* UI and Icons : Pierre Ossman, Chris Gordon
* Original Logo : Michael Sersen
* UI and icons : Pierre Ossman, Chris Gordon
* Original logo : Michael Sersen
* tight encoding : Michael Tinglof (Mercuri.ca)

@@ -227,0 +227,0 @@ * RealVNC RSA AES authentication : USTC Vlab Team

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc