From f8458520f5ddb23beba0b7755ece30e80e6152ed Mon Sep 17 00:00:00 2001
From: Brian Vanderbusch
Date: Sat, 12 Dec 2020 09:11:47 -0600
Subject: [PATCH 01/28] change github.event_name to github.event.action
---
.github/workflows/trigger_docker.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml
index 38f0a4e13..0397dc3b4 100644
--- a/.github/workflows/trigger_docker.yml
+++ b/.github/workflows/trigger_docker.yml
@@ -19,7 +19,7 @@ jobs:
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
- event-type: ${{ github.event_name }}
+ event-type: ${{ github.event.action }}
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
dispatch_canary:
From 58911009c480b665f03813b5ca0031e00a85c3cc Mon Sep 17 00:00:00 2001
From: Brian Vanderbusch
Date: Sat, 12 Dec 2020 09:27:15 -0600
Subject: [PATCH 02/28] send better refs for tag_name on docker trigger
---
.github/workflows/trigger_docker.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml
index 0397dc3b4..a3a8fea9d 100644
--- a/.github/workflows/trigger_docker.yml
+++ b/.github/workflows/trigger_docker.yml
@@ -32,7 +32,7 @@ jobs:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "canary"
- client-payload: '{"tag_name": "${{ github.sha }}"}'
+ client-payload: '{"tag_name": "maintenance"}'
dispatch_bleeding:
runs-on: ubuntu-latest
@@ -44,4 +44,4 @@ jobs:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "bleeding"
- client-payload: '{"tag_name": "${{ github.sha }}"}'
+ client-payload: '{"tag_name": "devel"}'
From 3b79f83c503aa7893f4e42a62a1b0d7bbe19c113 Mon Sep 17 00:00:00 2001
From: cp2004 <31997505+cp2004@users.noreply.github.com>
Date: Tue, 15 Dec 2020 23:17:00 +0000
Subject: [PATCH 03/28] :bug: Fix rendering of UI plugin
No, I'm not making one *yet*. Just testing it out as a possible way of updating the UI, or extracting the current core UI :wink:
Closes #3887
---
src/octoprint/server/views.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/octoprint/server/views.py b/src/octoprint/server/views.py
index 699b3b301..f5d0b5a28 100644
--- a/src/octoprint/server/views.py
+++ b/src/octoprint/server/views.py
@@ -616,14 +616,16 @@ def index():
if plugin is not None and isinstance(
plugin.implementation, octoprint.plugin.UiPlugin
):
- permissions = plugin.get_ui_permissions()
+ permissions = plugin.implementation.get_ui_permissions()
response = require_login(*permissions)
if not response:
response = plugin_view(plugin.implementation)
if _logger.isEnabledFor(logging.DEBUG) and isinstance(
response, Response
):
- response.headers["X-Ui-Plugin"] = plugin._identifier
+ response.headers[
+ "X-Ui-Plugin"
+ ] = plugin.implementation._identifier
else:
response = require_login(*default_permissions)
if not response:
From bf6010f21f0870549921ec0548bfc5e5d220f4d7 Mon Sep 17 00:00:00 2001
From: Shawn Bruce
Date: Wed, 16 Dec 2020 10:19:08 -0500
Subject: [PATCH 04/28] Handle http errors when downloading plugin files.
---
.../plugins/pluginmanager/__init__.py | 41 ++++++++++++-------
.../plugins/pluginmanager/exceptions.py | 10 +++++
2 files changed, 37 insertions(+), 14 deletions(-)
create mode 100644 src/octoprint/plugins/pluginmanager/exceptions.py
diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py
index d732e0b43..cd03a407d 100644
--- a/src/octoprint/plugins/pluginmanager/__init__.py
+++ b/src/octoprint/plugins/pluginmanager/__init__.py
@@ -47,6 +47,8 @@ from octoprint.util.version import (
is_python_compatible,
)
+from . import exceptions
+
try:
from os import scandir
except ImportError:
@@ -633,21 +635,32 @@ class PluginManagerPlugin(
)
else:
- self._logger.error(
- "{} is neither an archive nor a python file, can't install that.".format(
- source
- )
+ raise exceptions.InvalidPackageFormat()
+ except requests.exceptions.HTTPError as e:
+ self._logger.error("Could not fetch plugin from server, got {}".format(e))
+ result = {
+ "result": False,
+ "source": source,
+ "source_type": source_type,
+ "reason": "Could not fetch plugin from server, got {}".format(e),
+ }
+ self._send_result_notification("install", result)
+ return result
+ except exceptions.InvalidPackageFormat:
+ self._logger.error(
+ "{} is neither an archive nor a python file, can't install that.".format(
+ source
)
- result = {
- "result": False,
- "source": source,
- "source_type": source_type,
- "reason": "Could not install plugin from {}, was neither "
- "a plugin archive nor a single file plugin".format(source),
- }
- self._send_result_notification("install", result)
- return result
-
+ )
+ result = {
+ "result": False,
+ "source": source,
+ "source_type": source_type,
+ "reason": "Could not install plugin from {}, was neither "
+ "a plugin archive nor a single file plugin".format(source),
+ }
+ self._send_result_notification("install", result)
+ return result
finally:
if folder is not None:
folder.cleanup()
diff --git a/src/octoprint/plugins/pluginmanager/exceptions.py b/src/octoprint/plugins/pluginmanager/exceptions.py
new file mode 100644
index 000000000..deddaafbe
--- /dev/null
+++ b/src/octoprint/plugins/pluginmanager/exceptions.py
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+__author__ = "Gina Häußge "
+__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
+__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+
+
+class InvalidPackageFormat(Exception):
+ pass
From 223064ce467a30d76fca8569479638498100b50a Mon Sep 17 00:00:00 2001
From: Charlie Powell <31997505+cp2004@users.noreply.github.com>
Date: Wed, 16 Dec 2020 16:50:34 +0000
Subject: [PATCH 05/28] :pencil2: Update access control documentation
Access control is mandatory in OctoPrint 1.5.0, so I have removed and edited the documentation to clarify this.
---
docs/features/accesscontrol.rst | 49 ++++-----------------------------
1 file changed, 5 insertions(+), 44 deletions(-)
diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst
index ca035d699..e285ab9ae 100644
--- a/docs/features/accesscontrol.rst
+++ b/docs/features/accesscontrol.rst
@@ -3,7 +3,7 @@
Access Control
==============
-.. versionchanged:: 1.4.0
+.. versionchanged:: 1.5.0
OctoPrint's bundled access control feature allows granular permission control
over which users or user groups are allowed to access which parts of OctoPrint.
@@ -33,19 +33,15 @@ read-only access to the following parts of the UI:
Logged in users without admin flag will be allowed to access everything besides the
Settings and System Commands, which are admin-only.
-If Access Control is disabled, everything is directly accessible. **That also
-includes all administrative functionality as well as full control over the
-printer**, and without the need for an :ref:`API key `!
-
Upon first start a configuration wizard is provided which allows configuration
-of the first administrator account or alternatively disabling Access Control
-(which is **NOT** recommended for systems that are directly accessible via the
-internet or other untrusted networks!).
+of the first administrator account to be used for OctoPrint. After initial setup,
+you can then create more users under Settings > Access Control for customisation of
+the granular permission system.
.. hint::
If you plan to have your OctoPrint instance accessible over the internet,
- **always enable Access Control** and ideally **don't make it accessible to
+ **please use additional security measures** and ideally **don't make it accessible to
everyone over the internet but instead use a VPN** or at the very least
HTTP basic authentication on a layer above OctoPrint.
@@ -75,38 +71,3 @@ octoprint.plugin.loginui.theming
................................
See :ref:`here `.
-
-.. _sec-features-access_control-rerunning_wizard:
-
-Rerunning the wizard
---------------------
-
-In case Access Control was disabled in the configuration wizard, it is
-possible to re-run it by editing ``config.yaml`` [#f1]_ and setting ``firstRun``
-in the ``server`` section and ``enabled`` in the ``accessControl`` section to
-``true``:
-
-.. code-block-ext:: yaml
-
- accessControl:
- enabled: true
- # ...
- server:
- firstRun: true
-
-Then restart the server and connect to the web interface - the wizard should
-be shown again.
-
-.. note::
-
- If user accounts were created prior to disabling Access Control and those
- user accounts are not to be used any more, remove ``.octoprint/users.yaml``.
- If you don't remove this file, the above changes won't lead to the
- configuration being shown again, instead Access Control will just be
- enabled using the already existing login data. This is to prevent you from
- resetting access control by accident.
-
-.. rubric:: Footnotes
-
-.. [#f1] For Linux that will be ``~/.octoprint/config.yaml``, for Windows it will be ``%APPDATA%/OctoPrint/config.yaml`` and for
- Mac ``~/Library/Application Support/OctoPrint/config.yaml``
From 5687da064cc90fd76098b71c54735382f632f915 Mon Sep 17 00:00:00 2001
From: test
Date: Fri, 18 Dec 2020 14:59:23 -0500
Subject: [PATCH 06/28] better access control documentation that integrates the
information in the auto login guide into the main body of the documentation.
This seems like it belongs in the documentation as part of the repo, and I
don't see a better place to put it other than under the access control
section based on how the documentation is currently organized. If there's a
better place for it, by all means split it off, put it there, and just link
to ti in the access control section
---
docs/features/accesscontrol.rst | 135 +++++++++++++++++++++++++++++++-
1 file changed, 132 insertions(+), 3 deletions(-)
diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst
index e285ab9ae..f932002e3 100644
--- a/docs/features/accesscontrol.rst
+++ b/docs/features/accesscontrol.rst
@@ -17,8 +17,16 @@ users out of the box.
thus also cannot limit access to it. If an anonymous user correctly guesses the
webcam URL, they will thus be able to see it.
-If read-only access for anonymous users is enabled, anonymous users will have
-read-only access to the following parts of the UI:
+Upon first start a configuration wizard is provided which allows configuration
+of the first administrator account to be used for OctoPrint. After initial setup,
+you can then create more users under Settings > Access Control for customisation of
+the granular permission system.
+
+The predefined Guest group can be used to configure default permissions of anonymous
+users, that is those who have not logged in. By default, no permissions are granted to these users.
+
+A predefined Read-only Access group with no users is configured which grants
+read-only access to the following parts of the UI to any users assigned to this group:
* printer state
* available gcode files and stats (upload is disabled)
@@ -43,7 +51,9 @@ the granular permission system.
If you plan to have your OctoPrint instance accessible over the internet,
**please use additional security measures** and ideally **don't make it accessible to
everyone over the internet but instead use a VPN** or at the very least
- HTTP basic authentication on a layer above OctoPrint.
+ HTTP basic authentication on a layer above OctoPrint. Unless you are using a VPN
+ **please do not** enable any permissions for the Guest group or the auto-login feature
+ described below.
A physical device that includes heaters and stepper motors really should not be
publicly reachable by everyone with an internet connection, even with access
@@ -51,6 +61,7 @@ the granular permission system.
.. _sec-features-access_control-hooks:
+
Available Extension Hooks
-------------------------
@@ -71,3 +82,121 @@ octoprint.plugin.loginui.theming
................................
See :ref:`here `.
+
+
+Autologin
+-------------------------
+
+While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can be used to
+bypass authentication for hosts on the network(s) that you trust.
+
+Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This might be an inconvience for some who run OctoPrint in an isolated setup where a login is not required to ensure security, at a benefit for a huge number of users out there who continue to underestimate or simply ignore the risk of keeping their OctoPrint instance unsecured and then happily exposing it on the public internet. And frankly, it will also make me sleep better at night.
+
+That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed a way to have OctoPrint automatically log you in, if you connect from a trusted local network address. This functionality has not been exposed on the UI, and for now also won't be (to make it a bit harder to once again create an insecure setup for those who simply won't listen to common sense), but it's easy to set up with a bit of configuration editing.
+
+When set up properly, it will make sure to automatically log you in as a configured user whenever you connect from a device on your local network. To get back pretty much the same behaviour as with disabled access control, you'll only need to create a single (admin) account and then set up autologin for it.
+
+
+.. warning::
+
+ **Do not do this if you cannot trust EVERYONE on your local network.** And I really mean everyone. If you ignore this and then someone takes over your OctoPrint instance, installs malware on it and makes your printer print an endless stream of benchies, that's on you.
+
+
+Gather configuraiton information
+............................
+
+You can configure Autologin via a plugin (the easy way), or manually (the hard way), but in either case you will need to specify which user should be automatically logged in, and which hosts are permitted access this way.
+
+**Improperly setting this subnet option can lead to the compromise of your system, or even your entire network. Proceed with extreme caution.**
+
+The subnet to use is usually the IP address range of your LAN, which sounds scary but actually isn't. Just `figure out your PC's IP address and subnet mask ` and then combine both with a / in between.
+
+On OctoPi (or another Linux distribution) you can use the follwing command:
+
+.. code-block::
+ ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+Or, for IPv6, use this:
+
+.. code-block::
+ ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+This will be what you set as the subnet in the plugin, or where it says below om the manual configuration instructions
+
+E.g.: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of ``255.255.255.0.`` Your address range is ``192.168.23.42/255.255.255.0.``
+
+
+The easy way: Using the OctoPrint-AutoLoginConfig plugin
+............................
+
+The easist way to configure AutoLogin is to install the `OctoPrint-AutoLoginConfig ` plugin via the plugin manager.
+
+Open its settings and follow the instructions on the screen.
+
+The hard way: Manual editing of config.yaml
+............................
+
+**Preparation**
+
+First of all, read `the YAML primer in the docs, please. ` You will have to edit OctoPrint's main configuration file, and thus should make sure you understand at least roughly how things work and that you should keep your hands off the Tab key. If you don't, you might break your config file, and while I'll tell you to make a backup, this still can be easily avoided by educating yourself on the DOs and DONTs first.
+
+Then, take a look at `the docs on config.yaml ` and where to find that central configuration file of OctoPrint:
+
+.. code-block::
+ If not specified via the command line, the main configuration file config.yaml for OctoPrint is expected in its settings folder, which unless defined differently via the command line is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at ~/Library/Application Support/OctoPrint on macOS.
+
+
+**Configuration**
+
+
+Ready? Let's do some editing then. I'll outline what to do and where first, and then further down there's also a dedicated list of steps for OctoPi specifically.
+
+1. Shutdown OctoPrint
+2. Make a backup of your config.yaml
+3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like this:
+.. code-block::
+ accessControl:
+ salt: aabbccddee1234523452345
+
+Edit this, adding lines so it looks like this (making absolutely sure not to touch the salt line):
+.. code-block::
+ accessControl:
+ salt: aabbccddee1234523452345
+ autologinLocal: true
+ autologinAs: ""
+ localNetworks:
+ - "127.0.0.0/8"
+ - ""
+
+4. Restart OctoPrint, check that everything works.
+
+This will automatically log you in as the user you specified whenver you connect to OctoPrint from an address in the address range (e.g. a device on your local network).
+
+
+**OctoPi specific steps**
+
+If you are running OctoPi you will have to SSH into your Raspberry Pi (username: pi, default password: raspberry, but you hopefully changed that - if not, do so right away please via sudo raspi-config!). Then:
+
+1. ``sudo service octoprint stop``
+2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
+3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
+4. ``sudo service octoprint start``
+
+If something went wrong, you can restore the config backup with
+.. code-block::
+ cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
+
+
+If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OcotPrint access controls
+............................
+
+.. warning::
+
+ **You probably shouldn't do this, EVER. There are usually other options. Don't even THINK about it, unless you have a VPN layer for security. Only consider proceeding with this configuration after exhausting ALL other possibilities, and even then, you should think long and hard about whether this is a good idea. You almost certainly don't need or want to do this.**
+
+
+While access controls can no longer be disabled in OctoPrint 1.5+, this can be approximated by an Autologin configuration that automatically logs in all users, that is by using subnets that match all possible IP addresses. By specifying the `0.0.0.0/0` subnet (for IPv4) and `::/0` for IPv6 in the AutoLogin configuration, you can achieve this. This configuration is permitted, but highly, highly discouraged.
+
+Please don't do this. You will almost certainly regret it.
+
+
From b807eb2d6de1322fba66e8ba61cadc8df3a7c3c7 Mon Sep 17 00:00:00 2001
From: cp2004 <31997505+cp2004@users.noreply.github.com>
Date: Sun, 27 Dec 2020 18:30:14 +0000
Subject: [PATCH 07/28] :bug: Fix plugin install errors not being reported to
the UI
When plugin install went async (4cf2a673c8860304472904cf11d13e2187bc17fd) not all of the responses were caught. This PR changes the rest of the responses to become asynchronous as well.
Closes #3849
---
.../plugins/pluginmanager/__init__.py | 50 +++++++++++++------
1 file changed, 36 insertions(+), 14 deletions(-)
diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py
index 0da508497..c95b7bb20 100644
--- a/src/octoprint/plugins/pluginmanager/__init__.py
+++ b/src/octoprint/plugins/pluginmanager/__init__.py
@@ -687,11 +687,19 @@ class PluginManagerPlugin(
and not self._settings.get_boolean(["ignore_throttled"])
):
# currently throttled, we refuse to run
- return make_response(
- "System is currently throttled, refusing to install "
- "anything due to possible stability issues",
- 409,
+ error_msg = (
+ "System is currently throttled, refusing to install anything"
+ " due to possible stability isssues"
)
+ self._logger.error(error_msg)
+ result = {
+ "result": False,
+ "source": source,
+ "source_type": source_type,
+ "reason": error_msg,
+ }
+ self._send_result_notification("install", result)
+ return result
try:
# Py3
@@ -761,11 +769,20 @@ class PluginManagerPlugin(
"Looks like the plugin was already installed. Forcing a reinstall."
)
force = True
- except Exception:
- self._logger.exception("Could not install plugin from %s" % source)
- return make_response(
- "Could not install plugin from URL, see the log for more details", 500
- )
+ except Exception as e:
+ self._logger.exception("Could not install plugin from {}".format(source))
+ self._logger.exception("Reason: {}".format(repr(e)))
+ result = {
+ "result": False,
+ "source": source,
+ "source_type": source_type,
+ "reason": "Could not install plugin from {}, see the log for more details".format(
+ source
+ ),
+ }
+ self._send_result_notification("install", result)
+ return result
+
else:
if force:
# We don't use --upgrade here because that will also happily update all our dependencies - we'd rather
@@ -773,16 +790,21 @@ class PluginManagerPlugin(
pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"]
try:
returncode, stdout, stderr = self._call_pip(pip_args)
- except Exception:
+ except Exception as e:
self._logger.exception(
"Could not install plugin from {}".format(source)
)
- return make_response(
- "Could not install plugin from source {}, see the log for more details".format(
+ self._logger.exception("Reason: {}".format(repr(e)))
+ result = {
+ "result": False,
+ "source": source,
+ "source_type": source_type,
+ "reason": "Could not install plugin from source {}, see the log for more details".format(
source
),
- 500,
- )
+ }
+ self._send_result_notification("install", result)
+ return result
try:
result_line = list(
From e8b0277d760bca842ce0614c463cf1f5c0919790 Mon Sep 17 00:00:00 2001
From: cp2004 <31997505+cp2004@users.noreply.github.com>
Date: Sun, 27 Dec 2020 19:17:09 +0000
Subject: [PATCH 08/28] :bug: Fix default regexp for new terminal filters
Closes #3845
This was prettier's doing I suspect. Watch out that it doesn't do this one again.
---
src/octoprint/static/js/app/viewmodels/settings.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js
index c81556e15..ac9222ce1 100644
--- a/src/octoprint/static/js/app/viewmodels/settings.js
+++ b/src/octoprint/static/js/app/viewmodels/settings.js
@@ -406,7 +406,7 @@ $(function () {
self.addTerminalFilter = function () {
self.terminalFilters.push({
name: "New",
- regex: "(Send: (Nd+s+)?M105)|(Recv:s+(oks+)?.*(B|Td*):d+)"
+ regex: "(Send:\\s+(N\\d+\\s+)?M105)|(Recv:\\s+(ok\\s+)?.*(B|T\\d*):\\d+)"
});
};
From 2e7ed0106add92238bd011818b6e7c43615fdd6b Mon Sep 17 00:00:00 2001
From: cp2004 <31997505+cp2004@users.noreply.github.com>
Date: Thu, 31 Dec 2020 14:07:29 +0000
Subject: [PATCH 09/28] :bug: Ensure connectivity check wizard comes before
usage tracking
If the server was not connected to the internet, then the AUT wizard would hang as it failed to reach https://tracking.octoprint.org.
Closes #3895
---
src/octoprint/settings.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py
index 02f4c3851..7d62b36c4 100644
--- a/src/octoprint/settings.py
+++ b/src/octoprint/settings.py
@@ -365,7 +365,11 @@ default_settings = {
"plugin_pi_support",
],
"usersettings": ["access", "interface"],
- "wizard": ["plugin_backup", "plugin_corewizard_acl"],
+ "wizard": [
+ "plugin_backup",
+ "plugin_corewizard_acl",
+ "plugin_corewizard_onlinecheck",
+ ],
"about": [
"about",
"plugin_pi_support",
From 850d4492909e2faddaa8412245bab8f4f6a049ae Mon Sep 17 00:00:00 2001
From: Sophist <3001893+Sophist-UK@users.noreply.github.com>
Date: Thu, 31 Dec 2020 22:42:25 +0000
Subject: [PATCH 10/28] Change service type to exec...
... so that `systemctl start octoprint` will report an error if octoprint cannot be started.
See `man systemd.service` for explanation.
---
scripts/octoprint.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/octoprint.service b/scripts/octoprint.service
index 14f5d7f4b..ae5405c34 100644
--- a/scripts/octoprint.service
+++ b/scripts/octoprint.service
@@ -6,7 +6,7 @@ Wants=network-online.target
[Service]
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
-Type=simple
+Type=exec
User=pi
ExecStart=/home/pi/OctoPrint/venv/bin/octoprint
From 0de01942a3f6aee707a39e472f7cc920a282025d Mon Sep 17 00:00:00 2001
From: "Jason B. Cox"
Date: Sun, 3 Jan 2021 15:27:28 -0800
Subject: [PATCH 11/28] Fix button state in usage tracking wizard
* Fix button state so that the tracking can be enabled/disabled after
selecting one of the options for the first time.
* Improve formatting in tracking wizard template to improve code
readability.
* Add myself to AUTHORS file.
---
AUTHORS.md | 1 +
.../plugins/tracking/templates/tracking_wizard.jinja2 | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/AUTHORS.md b/AUTHORS.md
index a50ec706b..187d754cc 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -130,6 +130,7 @@ date of first contribution):
* [Sophist](https://github.com/Sophist-UK)
* [Manuel McLure](https://github.com/ManuelMcLure)
* ["j7126"](https://github.com/j7126)
+ * ["jasonbcox"](https://github.com/jasonbcox)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
diff --git a/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2 b/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2
index e5874b6c3..a8c0b3838 100644
--- a/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2
+++ b/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2
@@ -9,8 +9,14 @@
From 35494e975d011964ef59a4c6a582ad619d57ae23 Mon Sep 17 00:00:00 2001
From: cp2004 <31997505+cp2004@users.noreply.github.com>
Date: Mon, 4 Jan 2021 18:59:50 +0000
Subject: [PATCH 12/28] :lipstick: Set default state on announcments icon
Created an annoying pop-in on page load, by setting default states it only changes occasionally when there is a new post.
---
src/octoprint/plugins/announcements/static/js/announcements.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/octoprint/plugins/announcements/static/js/announcements.js b/src/octoprint/plugins/announcements/static/js/announcements.js
index 2e015853f..75720f39a 100644
--- a/src/octoprint/plugins/announcements/static/js/announcements.js
+++ b/src/octoprint/plugins/announcements/static/js/announcements.js
@@ -31,7 +31,7 @@ $(function () {
5
);
- self.unread = ko.observable();
+ self.unread = ko.observable(false);
self.hiddenChannels = [];
self.channelNotifications = {};
From f2403a13e53aeb662bacbe91fe68d35e9c176c99 Mon Sep 17 00:00:00 2001
From: cp2004 <31997505+cp2004@users.noreply.github.com>
Date: Mon, 4 Jan 2021 19:06:24 +0000
Subject: [PATCH 13/28] :lipstick: Fix action command prompt icon
Leftover from FA5 upgrade #3782
Thanks to @LazeMMS for spotting this one!
---
.../templates/action_command_prompt_navbar.jinja2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_navbar.jinja2 b/src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_navbar.jinja2
index 0a9d041e5..c9f903f73 100644
--- a/src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_navbar.jinja2
+++ b/src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_navbar.jinja2
@@ -1,3 +1,3 @@
-
+
From f4a2af750c8210c44252d5586d18d6855e1b7019 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 09:24:04 +0100
Subject: [PATCH 14/28] =?UTF-8?q?=E2=9C=8F=20Fix=20file=20header?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/octoprint/plugins/pluginmanager/exceptions.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/octoprint/plugins/pluginmanager/exceptions.py b/src/octoprint/plugins/pluginmanager/exceptions.py
index deddaafbe..0b4256018 100644
--- a/src/octoprint/plugins/pluginmanager/exceptions.py
+++ b/src/octoprint/plugins/pluginmanager/exceptions.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
-__author__ = "Gina Häußge "
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
-__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+__copyright__ = "Copyright (C) 2020 The OctoPrint Project - Released under terms of the AGPLv3 License"
class InvalidPackageFormat(Exception):
From f0ecc0464894ef65ce44c2d10650762877cacb00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 15:55:55 +0100
Subject: [PATCH 15/28] =?UTF-8?q?=F0=9F=93=9D=20Rephrasing=20&=20formattin?=
=?UTF-8?q?g?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/features/accesscontrol.rst | 318 ++++++++++++++++++--------------
1 file changed, 184 insertions(+), 134 deletions(-)
diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst
index f932002e3..23bf90b75 100644
--- a/docs/features/accesscontrol.rst
+++ b/docs/features/accesscontrol.rst
@@ -18,14 +18,15 @@ users out of the box.
webcam URL, they will thus be able to see it.
Upon first start a configuration wizard is provided which allows configuration
-of the first administrator account to be used for OctoPrint. After initial setup,
-you can then create more users under Settings > Access Control for customisation of
-the granular permission system.
+of the first administrator account to be used for OctoPrint. After initial setup,
+you can then create more users and groups under Settings > Access Control for
+customisation of the granular permission system.
-The predefined Guest group can be used to configure default permissions of anonymous
-users, that is those who have not logged in. By default, no permissions are granted to these users.
+The predefined "Guests" group can be used to configure default permissions of anonymous
+users, that is those who have not logged in. By default, no permissions are granted to
+these users.
-A predefined Read-only Access group with no users is configured which grants
+A predefined "Read-only Access" group with no users is configured which by default grants
read-only access to the following parts of the UI to any users assigned to this group:
* printer state
@@ -38,13 +39,13 @@ read-only access to the following parts of the UI to any users assigned to this
* any components provided through plugins which are enabled for anonymous
users
-Logged in users without admin flag will be allowed to access everything besides the
-Settings and System Commands, which are admin-only.
+Another predefined "Operator" group is the default group for newly created users and
+by default gives access to all aspects of OctoPrint that involve regular printer
+operation. It matches the old "user" role from OctoPrint prior to 1.4.0.
-Upon first start a configuration wizard is provided which allows configuration
-of the first administrator account to be used for OctoPrint. After initial setup,
-you can then create more users under Settings > Access Control for customisation of
-the granular permission system.
+Finally, the predefined "Admins" group gives full admin access to the platform. You should
+be careful of who you put into that. It matches the old "admin" role from OctoPrint prior
+to 1.4.0.
.. hint::
@@ -59,8 +60,175 @@ the granular permission system.
publicly reachable by everyone with an internet connection, even with access
control enabled.
-.. _sec-features-access_control-hooks:
+.. _sec-features-access_control-autologin:
+Autologin
+---------
+
+While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can
+be used to bypass authentication for hosts on the network(s) that you trust.
+
+Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This
+might be an inconvience for some who run OctoPrint in an isolated setup where a login is
+not required to ensure security, at a benefit for a huge number of users out there who
+continue to underestimate or simply ignore the risk of keeping their OctoPrint instance
+unsecured and then happily exposing it on the public internet.
+
+That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed
+a way to have OctoPrint automatically log you in, if you connect from a trusted local
+network address. This functionality has not been exposed on the UI, and for now also won't
+be (to make it a bit harder to once again create an insecure setup for those who simply
+won't listen to common sense), but it's easy to set up with a bit of configuration
+editing.
+
+When set up properly, it will make sure to automatically log you in as a configured user
+whenever you connect from a device on your local network. To get back pretty much the same
+behaviour as with disabled access control, you'll only need to create a single (admin)
+account and then set up autologin for it.
+
+
+.. warning::
+
+ **Do not do this if you cannot trust EVERYONE on your local network.** And that really
+ means mean everyone. If you ignore this and then someone takes over your OctoPrint
+ instance, installs malware on it and makes your printer print an endless stream of
+ benchies, that's on you.
+
+.. _sec-features-access_control-autologin-gather_config_info:
+
+Gather configuration information
+................................
+
+You can configure Autologin via a plugin (the easy way), or manually (the hard way), but
+in either case you will need to specify which user should be automatically logged in, and
+which hosts are permitted access this way.
+
+**Improperly setting this subnet option can lead to the compromise of your system, or even
+your entire network. Proceed with extreme caution.**
+
+The subnet to use is usually the IP address range of your LAN, which sounds scary but
+actually isn't. Just `figure out your PC's IP address and subnet mask `_
+and then combine both with a / in between.
+
+On OctoPi (or another Linux distribution) you can use the follwing command:
+
+.. code-block::
+
+ ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+Or, for IPv6, use this:
+
+.. code-block::
+
+ ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+This will be what you set as the subnet in the plugin, or where it says
+```` below on the manual configuration instructions.
+
+Example: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of
+``255.255.255.0``. Your address range is ``192.168.23.42/255.255.255.0``.
+
+.. _sec-features-access_control-autologin-plugin:
+
+The easy way: Using the OctoPrint-AutoLoginConfig plugin
+........................................................
+
+The easist way to configure AutoLogin is to install the
+`OctoPrint-AutoLoginConfig plugin `_
+via the plugin manager.
+
+Open its settings and follow the instructions on the screen.
+
+.. _sec-features-access_control-autologin-manual:
+
+The hard way: Manual editing of config.yaml
+...........................................
+
+Preparation
+***********
+
+First of all, read :ref:`the YAML primer `. You
+will have to edit OctoPrint's main configuration file, and thus should make sure
+you understand at least roughly how things work and that you should keep your
+hands off the Tab key. If you don't, you might break your config file, and
+while the steps include making a backup, this still can be easily avoided by
+learning about the DOs and DONTs first.
+
+Then, take a look at :ref:`the docs on config.yaml `
+on where to find that central configuration file of OctoPrint.
+
+Configuration
+*************
+
+Ready? Let's do some editing then. I'll outline what to do and where first, and then
+further down there's also a dedicated list of steps for OctoPi specifically.
+
+1. Shutdown OctoPrint
+2. Make a backup of your config.yaml
+3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like
+ this:
+
+ .. code-block:: yaml
+
+ accessControl:
+ salt: aabbccddee1234523452345
+
+ Edit this, adding lines so it looks like this (making absolutely sure not to touch the
+ salt line):
+
+ .. code-block:: yaml
+ accessControl:
+ salt: aabbccddee1234523452345
+ autologinLocal: true
+ autologinAs: ""
+ localNetworks:
+ - "127.0.0.0/8"
+ - ""
+
+4. Restart OctoPrint, check that everything works.
+
+This will automatically log you in as the user you specified whenver you connect to
+OctoPrint from an address in the address range (e.g. a device on your local network).
+
+OctoPi specific steps
+*********************
+
+If you are running OctoPi you will have to SSH into your Raspberry Pi. Then issue
+the following commands:
+
+1. ``sudo service octoprint stop``
+2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
+3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
+4. ``sudo service octoprint start``
+
+If something went wrong, you can restore the config backup with
+
+.. code-block::
+
+ cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
+
+
+If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OctoPrint access controls
+......................................................................................................
+
+.. warning::
+
+ You probably shouldn't do this, EVER. There are usually other options. Don't even
+ THINK about it, unless you have a VPN layer for security. Only consider proceeding
+ with this configuration after exhausting ALL other possibilities, and even then, you
+ should think long and hard about whether this is a good idea. You almost certainly
+ don't need or want to do this.
+
+While access controls can no longer be disabled in OctoPrint 1.5+, this can be
+approximated by an Autologin configuration that automatically logs in all users, that is
+by using subnets that match all possible IP addresses. By specifying the ``0.0.0.0/0``
+subnet (for IPv4) and ``::/0`` for IPv6 in the AutoLogin configuration, you can achieve
+this. This configuration is permitted, but highly, highly discouraged.
+
+Please don't do this. You will almost certainly regret it. You alone are responsible for
+your actions.
+
+.. _sec-features-access_control-hooks:
Available Extension Hooks
-------------------------
@@ -78,125 +246,7 @@ See :ref:`here `.
.. _sec-features-access_control-hooks-loginui:
-octoprint.plugin.loginui.theming
-................................
-
-See :ref:`here `.
-
-
-Autologin
--------------------------
-
-While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can be used to
-bypass authentication for hosts on the network(s) that you trust.
-
-Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This might be an inconvience for some who run OctoPrint in an isolated setup where a login is not required to ensure security, at a benefit for a huge number of users out there who continue to underestimate or simply ignore the risk of keeping their OctoPrint instance unsecured and then happily exposing it on the public internet. And frankly, it will also make me sleep better at night.
-
-That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed a way to have OctoPrint automatically log you in, if you connect from a trusted local network address. This functionality has not been exposed on the UI, and for now also won't be (to make it a bit harder to once again create an insecure setup for those who simply won't listen to common sense), but it's easy to set up with a bit of configuration editing.
-
-When set up properly, it will make sure to automatically log you in as a configured user whenever you connect from a device on your local network. To get back pretty much the same behaviour as with disabled access control, you'll only need to create a single (admin) account and then set up autologin for it.
-
-
-.. warning::
-
- **Do not do this if you cannot trust EVERYONE on your local network.** And I really mean everyone. If you ignore this and then someone takes over your OctoPrint instance, installs malware on it and makes your printer print an endless stream of benchies, that's on you.
-
-
-Gather configuraiton information
-............................
-
-You can configure Autologin via a plugin (the easy way), or manually (the hard way), but in either case you will need to specify which user should be automatically logged in, and which hosts are permitted access this way.
-
-**Improperly setting this subnet option can lead to the compromise of your system, or even your entire network. Proceed with extreme caution.**
-
-The subnet to use is usually the IP address range of your LAN, which sounds scary but actually isn't. Just `figure out your PC's IP address and subnet mask ` and then combine both with a / in between.
-
-On OctoPi (or another Linux distribution) you can use the follwing command:
-
-.. code-block::
- ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
-
-Or, for IPv6, use this:
-
-.. code-block::
- ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
-
-This will be what you set as the subnet in the plugin, or where it says below om the manual configuration instructions
-
-E.g.: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of ``255.255.255.0.`` Your address range is ``192.168.23.42/255.255.255.0.``
-
-
-The easy way: Using the OctoPrint-AutoLoginConfig plugin
-............................
-
-The easist way to configure AutoLogin is to install the `OctoPrint-AutoLoginConfig ` plugin via the plugin manager.
-
-Open its settings and follow the instructions on the screen.
-
-The hard way: Manual editing of config.yaml
-............................
-
-**Preparation**
-
-First of all, read `the YAML primer in the docs, please. ` You will have to edit OctoPrint's main configuration file, and thus should make sure you understand at least roughly how things work and that you should keep your hands off the Tab key. If you don't, you might break your config file, and while I'll tell you to make a backup, this still can be easily avoided by educating yourself on the DOs and DONTs first.
-
-Then, take a look at `the docs on config.yaml ` and where to find that central configuration file of OctoPrint:
-
-.. code-block::
- If not specified via the command line, the main configuration file config.yaml for OctoPrint is expected in its settings folder, which unless defined differently via the command line is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at ~/Library/Application Support/OctoPrint on macOS.
-
-
-**Configuration**
-
-
-Ready? Let's do some editing then. I'll outline what to do and where first, and then further down there's also a dedicated list of steps for OctoPi specifically.
-
-1. Shutdown OctoPrint
-2. Make a backup of your config.yaml
-3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like this:
-.. code-block::
- accessControl:
- salt: aabbccddee1234523452345
-
-Edit this, adding lines so it looks like this (making absolutely sure not to touch the salt line):
-.. code-block::
- accessControl:
- salt: aabbccddee1234523452345
- autologinLocal: true
- autologinAs: ""
- localNetworks:
- - "127.0.0.0/8"
- - ""
-
-4. Restart OctoPrint, check that everything works.
-
-This will automatically log you in as the user you specified whenver you connect to OctoPrint from an address in the address range (e.g. a device on your local network).
-
-
-**OctoPi specific steps**
-
-If you are running OctoPi you will have to SSH into your Raspberry Pi (username: pi, default password: raspberry, but you hopefully changed that - if not, do so right away please via sudo raspi-config!). Then:
-
-1. ``sudo service octoprint stop``
-2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
-3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
-4. ``sudo service octoprint start``
-
-If something went wrong, you can restore the config backup with
-.. code-block::
- cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
-
-
-If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OcotPrint access controls
-............................
-
-.. warning::
-
- **You probably shouldn't do this, EVER. There are usually other options. Don't even THINK about it, unless you have a VPN layer for security. Only consider proceeding with this configuration after exhausting ALL other possibilities, and even then, you should think long and hard about whether this is a good idea. You almost certainly don't need or want to do this.**
-
-
-While access controls can no longer be disabled in OctoPrint 1.5+, this can be approximated by an Autologin configuration that automatically logs in all users, that is by using subnets that match all possible IP addresses. By specifying the `0.0.0.0/0` subnet (for IPv4) and `::/0` for IPv6 in the AutoLogin configuration, you can achieve this. This configuration is permitted, but highly, highly discouraged.
-
-Please don't do this. You will almost certainly regret it.
-
+octoprint.theming.login
+.......................
+See :ref:`here `.
From 5a86da1090557a32b82b566db5862b0765a4139e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 16:02:33 +0100
Subject: [PATCH 16/28] =?UTF-8?q?=F0=9F=93=9D=20Remove=20some=20outdated?=
=?UTF-8?q?=20documentation?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/plugins/hooks.rst | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst
index 5863c034b..eb52fbec4 100644
--- a/docs/plugins/hooks.rst
+++ b/docs/plugins/hooks.rst
@@ -1173,15 +1173,6 @@ octoprint.plugin.backup.additional_excludes
See :ref:`here `.
-.. _sec-plugins-hook-plugin-loginui-theming:
-
-octoprint.plugin.loginui.theming
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-.. versionadded:: 1.4.0
-
-See :ref:`here `.
-
.. _sec-plugins-hook-plugin-pluginmanager-reconnect:
octoprint.plugin.pluginmanager.reconnect_hooks
From 04c8d7a888d8d726fc6cdc34e78cae3c22225a51 Mon Sep 17 00:00:00 2001
From: Brian Vanderbusch
Date: Sat, 19 Dec 2020 14:10:47 -0600
Subject: [PATCH 17/28] change docs setting userFile to userfile
cherry-picked from d36b06f
---
docs/configuration/config_yaml.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst
index 7b8a949eb..56a0a5fce 100644
--- a/docs/configuration/config_yaml.rst
+++ b/docs/configuration/config_yaml.rst
@@ -30,7 +30,7 @@ Use the following settings to enable access control:
userManager: octoprint.access.users.FilebasedUserManager
# The YAML user file to use. If left out defaults to users.yaml in the default configuration folder.
- userFile: /path/to/users.yaml
+ userfile: /path/to/users.yaml
# If set to true, will automatically log on clients originating from any of the networks defined in
# "localNetworks" as the user defined in "autologinAs". Defaults to false.
From 221ecad5c8c1b28aa31a91b65edc8dba1b66891a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 16:17:10 +0100
Subject: [PATCH 18/28] =?UTF-8?q?=E2=9C=85=20Update=20e2e=20dep=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Should make dependabot happy about our e2e tests again.
---
tests/cypress/package-lock.json | 515 ++++++++++++++++----------------
tests/cypress/package.json | 3 +-
2 files changed, 263 insertions(+), 255 deletions(-)
diff --git a/tests/cypress/package-lock.json b/tests/cypress/package-lock.json
index 3ca3daad3..98933b466 100644
--- a/tests/cypress/package-lock.json
+++ b/tests/cypress/package-lock.json
@@ -9,10 +9,10 @@
"resolved": "https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz",
"integrity": "sha1-p3SS9LEdzHxEajSz4ochr9M8ZCo=",
"requires": {
- "chalk": "1.1.3",
- "cli-cursor": "1.0.2",
- "date-fns": "1.30.1",
- "figures": "1.7.0"
+ "chalk": "^1.1.3",
+ "cli-cursor": "^1.0.2",
+ "date-fns": "^1.27.2",
+ "figures": "^1.7.0"
},
"dependencies": {
"chalk": {
@@ -20,11 +20,11 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"requires": {
- "ansi-styles": "2.2.1",
- "escape-string-regexp": "1.0.5",
- "has-ansi": "2.0.0",
- "strip-ansi": "3.0.1",
- "supports-color": "2.0.0"
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
}
},
"supports-color": {
@@ -39,26 +39,26 @@
"resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.5.tgz",
"integrity": "sha512-TzEC1XMi1hJkywWpRfD2clreTa/Z+lOrXDCxxBTBPEcY5azdPi56A6Xw+O4tWJnaJH3iIE7G5aDXZC6JgRZLcA==",
"requires": {
- "aws-sign2": "0.7.0",
- "aws4": "1.10.0",
- "caseless": "0.12.0",
- "combined-stream": "1.0.8",
- "extend": "3.0.2",
- "forever-agent": "0.6.1",
- "form-data": "2.3.3",
- "har-validator": "5.1.5",
- "http-signature": "1.2.0",
- "is-typedarray": "1.0.0",
- "isstream": "0.1.2",
- "json-stringify-safe": "5.0.1",
- "mime-types": "2.1.27",
- "oauth-sign": "0.9.0",
- "performance-now": "2.1.0",
- "qs": "6.5.2",
- "safe-buffer": "5.2.1",
- "tough-cookie": "2.5.0",
- "tunnel-agent": "0.6.0",
- "uuid": "3.4.0"
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
}
},
"@cypress/xvfb": {
@@ -66,8 +66,8 @@
"resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz",
"integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==",
"requires": {
- "debug": "3.2.6",
- "lodash.once": "4.1.1"
+ "debug": "^3.1.0",
+ "lodash.once": "^4.1.1"
},
"dependencies": {
"debug": {
@@ -75,7 +75,7 @@
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
"requires": {
- "ms": "2.1.2"
+ "ms": "^2.1.1"
}
}
}
@@ -85,7 +85,7 @@
"resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz",
"integrity": "sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==",
"requires": {
- "any-observable": "0.3.0"
+ "any-observable": "^0.3.0"
}
},
"@types/color-name": {
@@ -108,10 +108,10 @@
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz",
"integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==",
"requires": {
- "fast-deep-equal": "3.1.3",
- "fast-json-stable-stringify": "2.1.0",
- "json-schema-traverse": "0.4.1",
- "uri-js": "4.2.2"
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
}
},
"ansi-escapes": {
@@ -144,7 +144,7 @@
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
"integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
"requires": {
- "safer-buffer": "2.1.2"
+ "safer-buffer": "~2.1.0"
}
},
"assert-plus": {
@@ -182,7 +182,7 @@
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
"requires": {
- "tweetnacl": "0.14.5"
+ "tweetnacl": "^0.14.3"
}
},
"bluebird": {
@@ -195,7 +195,7 @@
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"requires": {
- "balanced-match": "1.0.0",
+ "balanced-match": "^1.0.0",
"concat-map": "0.0.1"
}
},
@@ -224,9 +224,9 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
"requires": {
- "ansi-styles": "3.2.1",
- "escape-string-regexp": "1.0.5",
- "supports-color": "5.5.0"
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
},
"dependencies": {
"ansi-styles": {
@@ -234,7 +234,7 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
"requires": {
- "color-convert": "1.9.3"
+ "color-convert": "^1.9.0"
}
},
"supports-color": {
@@ -242,7 +242,7 @@
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"requires": {
- "has-flag": "3.0.0"
+ "has-flag": "^3.0.0"
}
}
}
@@ -262,7 +262,7 @@
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz",
"integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=",
"requires": {
- "restore-cursor": "1.0.1"
+ "restore-cursor": "^1.0.1"
}
},
"cli-table3": {
@@ -270,9 +270,9 @@
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz",
"integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==",
"requires": {
- "colors": "1.4.0",
- "object-assign": "4.1.1",
- "string-width": "2.1.1"
+ "colors": "^1.1.2",
+ "object-assign": "^4.1.0",
+ "string-width": "^2.1.1"
}
},
"cli-truncate": {
@@ -281,7 +281,7 @@
"integrity": "sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ=",
"requires": {
"slice-ansi": "0.0.4",
- "string-width": "1.0.2"
+ "string-width": "^1.0.1"
},
"dependencies": {
"is-fullwidth-code-point": {
@@ -289,7 +289,7 @@
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
"requires": {
- "number-is-nan": "1.0.1"
+ "number-is-nan": "^1.0.0"
}
},
"string-width": {
@@ -297,9 +297,9 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"requires": {
- "code-point-at": "1.1.0",
- "is-fullwidth-code-point": "1.0.0",
- "strip-ansi": "3.0.1"
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
}
}
}
@@ -333,7 +333,7 @@
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"requires": {
- "delayed-stream": "1.0.0"
+ "delayed-stream": "~1.0.0"
}
},
"commander": {
@@ -356,10 +356,10 @@
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
"requires": {
- "buffer-from": "1.1.1",
- "inherits": "2.0.4",
- "readable-stream": "2.3.7",
- "typedarray": "0.0.6"
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
}
},
"core-util-is": {
@@ -372,11 +372,11 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"requires": {
- "nice-try": "1.0.5",
- "path-key": "2.0.1",
- "semver": "5.7.1",
- "shebang-command": "1.2.0",
- "which": "1.3.1"
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
}
},
"cypress": {
@@ -384,43 +384,43 @@
"resolved": "https://registry.npmjs.org/cypress/-/cypress-4.12.0.tgz",
"integrity": "sha512-ZDngKMwoQ2UYmeSUJikLMZG6t2N7lTHHlzBzh5W0MbPfXSMv36YUgL2ZVD+t4ZLA63WWkvhwxIkDG+WJknBgHw==",
"requires": {
- "@cypress/listr-verbose-renderer": "0.4.1",
- "@cypress/request": "2.88.5",
- "@cypress/xvfb": "1.2.4",
- "@types/sinonjs__fake-timers": "6.0.1",
- "@types/sizzle": "2.3.2",
- "arch": "2.1.2",
- "bluebird": "3.7.2",
- "cachedir": "2.3.0",
- "chalk": "2.4.2",
- "check-more-types": "2.24.0",
- "cli-table3": "0.5.1",
- "commander": "4.1.1",
- "common-tags": "1.8.0",
- "debug": "4.1.1",
- "eventemitter2": "6.4.3",
- "execa": "1.0.0",
- "executable": "4.1.1",
- "extract-zip": "1.7.0",
- "fs-extra": "8.1.0",
- "getos": "3.2.1",
- "is-ci": "2.0.0",
- "is-installed-globally": "0.3.2",
- "lazy-ass": "1.6.0",
- "listr": "0.14.3",
- "lodash": "4.17.19",
- "log-symbols": "3.0.0",
- "minimist": "1.2.5",
- "moment": "2.27.0",
- "ospath": "1.2.2",
- "pretty-bytes": "5.3.0",
- "ramda": "0.26.1",
- "request-progress": "3.0.0",
- "supports-color": "7.1.0",
- "tmp": "0.1.0",
- "untildify": "4.0.0",
- "url": "0.11.0",
- "yauzl": "2.10.0"
+ "@cypress/listr-verbose-renderer": "^0.4.1",
+ "@cypress/request": "^2.88.5",
+ "@cypress/xvfb": "^1.2.4",
+ "@types/sinonjs__fake-timers": "^6.0.1",
+ "@types/sizzle": "^2.3.2",
+ "arch": "^2.1.2",
+ "bluebird": "^3.7.2",
+ "cachedir": "^2.3.0",
+ "chalk": "^2.4.2",
+ "check-more-types": "^2.24.0",
+ "cli-table3": "~0.5.1",
+ "commander": "^4.1.1",
+ "common-tags": "^1.8.0",
+ "debug": "^4.1.1",
+ "eventemitter2": "^6.4.2",
+ "execa": "^1.0.0",
+ "executable": "^4.1.1",
+ "extract-zip": "^1.7.0",
+ "fs-extra": "^8.1.0",
+ "getos": "^3.2.1",
+ "is-ci": "^2.0.0",
+ "is-installed-globally": "^0.3.2",
+ "lazy-ass": "^1.6.0",
+ "listr": "^0.14.3",
+ "lodash": "^4.17.19",
+ "log-symbols": "^3.0.0",
+ "minimist": "^1.2.5",
+ "moment": "^2.27.0",
+ "ospath": "^1.2.2",
+ "pretty-bytes": "^5.3.0",
+ "ramda": "~0.26.1",
+ "request-progress": "^3.0.0",
+ "supports-color": "^7.1.0",
+ "tmp": "~0.1.0",
+ "untildify": "^4.0.0",
+ "url": "^0.11.0",
+ "yauzl": "^2.10.0"
}
},
"cypress-commands": {
@@ -433,7 +433,7 @@
"resolved": "https://registry.npmjs.org/cypress-file-upload/-/cypress-file-upload-4.0.7.tgz",
"integrity": "sha512-rFFmnoZ2bWyWFpSV09AhkSUgYEiVy70pcQ6nf/mGTMTrVHvKCCCIfRu3TbgVYHbgBq+0hqjfjQrtz4IbgH7qZA==",
"requires": {
- "mime": "2.4.6"
+ "mime": "^2.4.4"
}
},
"cypress-plugin-retries": {
@@ -441,7 +441,7 @@
"resolved": "https://registry.npmjs.org/cypress-plugin-retries/-/cypress-plugin-retries-1.5.2.tgz",
"integrity": "sha512-o1xVIGtv4WvNVxoVJ2X08eAuvditPHrePRzHqhwwHbMKu3C2rtxCdanRCZdO5fjh8ww+q4v4V0e9GmysbOvu3A==",
"requires": {
- "chalk": "3.0.0"
+ "chalk": "^3.0.0"
},
"dependencies": {
"ansi-styles": {
@@ -449,8 +449,8 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"requires": {
- "@types/color-name": "1.1.1",
- "color-convert": "2.0.1"
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
}
},
"chalk": {
@@ -458,8 +458,8 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"requires": {
- "ansi-styles": "4.2.1",
- "supports-color": "7.1.0"
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
}
},
"color-convert": {
@@ -467,7 +467,7 @@
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
- "color-name": "1.1.4"
+ "color-name": "~1.1.4"
}
},
"color-name": {
@@ -482,8 +482,8 @@
"resolved": "https://registry.npmjs.org/cypress-terminal-report/-/cypress-terminal-report-1.4.1.tgz",
"integrity": "sha512-Oyx7VQCSh4Nh1q0ROo9Wq6KrxxbP8adhUQRxVpNlXeyyfLj2X8AXxqbIh6Ct3V8oENKh5iHHhuOfRfQ1tmE4Tw==",
"requires": {
- "chalk": "3.0.0",
- "methods": "1.1.2"
+ "chalk": "^3.0.0",
+ "methods": "^1.1.2"
},
"dependencies": {
"ansi-styles": {
@@ -491,8 +491,8 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"requires": {
- "@types/color-name": "1.1.1",
- "color-convert": "2.0.1"
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
}
},
"chalk": {
@@ -500,8 +500,8 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"requires": {
- "ansi-styles": "4.2.1",
- "supports-color": "7.1.0"
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
}
},
"color-convert": {
@@ -509,7 +509,7 @@
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
- "color-name": "1.1.4"
+ "color-name": "~1.1.4"
}
},
"color-name": {
@@ -529,7 +529,7 @@
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
"requires": {
- "assert-plus": "1.0.0"
+ "assert-plus": "^1.0.0"
}
},
"date-fns": {
@@ -542,7 +542,7 @@
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
- "ms": "2.1.2"
+ "ms": "^2.1.1"
}
},
"delayed-stream": {
@@ -555,8 +555,8 @@
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"requires": {
- "jsbn": "0.1.1",
- "safer-buffer": "2.1.2"
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
}
},
"elegant-spinner": {
@@ -569,7 +569,7 @@
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"requires": {
- "once": "1.4.0"
+ "once": "^1.4.0"
}
},
"escape-string-regexp": {
@@ -587,13 +587,13 @@
"resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
"integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
"requires": {
- "cross-spawn": "6.0.5",
- "get-stream": "4.1.0",
- "is-stream": "1.1.0",
- "npm-run-path": "2.0.2",
- "p-finally": "1.0.0",
- "signal-exit": "3.0.3",
- "strip-eof": "1.0.0"
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
}
},
"executable": {
@@ -601,7 +601,7 @@
"resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz",
"integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==",
"requires": {
- "pify": "2.3.0"
+ "pify": "^2.2.0"
}
},
"exit-hook": {
@@ -619,10 +619,10 @@
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",
"integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",
"requires": {
- "concat-stream": "1.6.2",
- "debug": "2.6.9",
- "mkdirp": "0.5.5",
- "yauzl": "2.10.0"
+ "concat-stream": "^1.6.2",
+ "debug": "^2.6.9",
+ "mkdirp": "^0.5.4",
+ "yauzl": "^2.10.0"
},
"dependencies": {
"debug": {
@@ -660,7 +660,7 @@
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
"integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
"requires": {
- "pend": "1.2.0"
+ "pend": "~1.2.0"
}
},
"figures": {
@@ -668,8 +668,8 @@
"resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz",
"integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=",
"requires": {
- "escape-string-regexp": "1.0.5",
- "object-assign": "4.1.1"
+ "escape-string-regexp": "^1.0.5",
+ "object-assign": "^4.1.0"
}
},
"forever-agent": {
@@ -682,9 +682,9 @@
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
"requires": {
- "asynckit": "0.4.0",
- "combined-stream": "1.0.8",
- "mime-types": "2.1.27"
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
}
},
"fs-extra": {
@@ -692,9 +692,9 @@
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
"requires": {
- "graceful-fs": "4.2.4",
- "jsonfile": "4.0.0",
- "universalify": "0.1.2"
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
}
},
"fs.realpath": {
@@ -707,7 +707,7 @@
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
"integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
"requires": {
- "pump": "3.0.0"
+ "pump": "^3.0.0"
}
},
"getos": {
@@ -715,7 +715,7 @@
"resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
"integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
"requires": {
- "async": "3.2.0"
+ "async": "^3.2.0"
}
},
"getpass": {
@@ -723,7 +723,7 @@
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"requires": {
- "assert-plus": "1.0.0"
+ "assert-plus": "^1.0.0"
}
},
"glob": {
@@ -731,12 +731,12 @@
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
"requires": {
- "fs.realpath": "1.0.0",
- "inflight": "1.0.6",
- "inherits": "2.0.4",
- "minimatch": "3.0.4",
- "once": "1.4.0",
- "path-is-absolute": "1.0.1"
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
}
},
"global-dirs": {
@@ -744,7 +744,14 @@
"resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz",
"integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==",
"requires": {
- "ini": "1.3.5"
+ "ini": "^1.3.5"
+ },
+ "dependencies": {
+ "ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
+ }
}
},
"graceful-fs": {
@@ -762,8 +769,8 @@
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
"integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
"requires": {
- "ajv": "6.12.3",
- "har-schema": "2.0.0"
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
}
},
"has-ansi": {
@@ -771,7 +778,7 @@
"resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
"integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
"requires": {
- "ansi-regex": "2.1.1"
+ "ansi-regex": "^2.0.0"
}
},
"has-flag": {
@@ -784,9 +791,9 @@
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"requires": {
- "assert-plus": "1.0.0",
- "jsprim": "1.4.1",
- "sshpk": "1.16.1"
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
}
},
"indent-string": {
@@ -799,8 +806,8 @@
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"requires": {
- "once": "1.4.0",
- "wrappy": "1.0.2"
+ "once": "^1.3.0",
+ "wrappy": "1"
}
},
"inherits": {
@@ -809,16 +816,16 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"ini": {
- "version": "1.3.5",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
- "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",
+ "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA=="
},
"is-ci": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
"integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
"requires": {
- "ci-info": "2.0.0"
+ "ci-info": "^2.0.0"
}
},
"is-fullwidth-code-point": {
@@ -831,8 +838,8 @@
"resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz",
"integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==",
"requires": {
- "global-dirs": "2.0.1",
- "is-path-inside": "3.0.2"
+ "global-dirs": "^2.0.1",
+ "is-path-inside": "^3.0.1"
}
},
"is-observable": {
@@ -840,7 +847,7 @@
"resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz",
"integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==",
"requires": {
- "symbol-observable": "1.2.0"
+ "symbol-observable": "^1.1.0"
}
},
"is-path-inside": {
@@ -903,7 +910,7 @@
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
"requires": {
- "graceful-fs": "4.2.4"
+ "graceful-fs": "^4.1.6"
}
},
"jsprim": {
@@ -927,15 +934,15 @@
"resolved": "https://registry.npmjs.org/listr/-/listr-0.14.3.tgz",
"integrity": "sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==",
"requires": {
- "@samverschueren/stream-to-observable": "0.3.0",
- "is-observable": "1.1.0",
- "is-promise": "2.2.2",
- "is-stream": "1.1.0",
- "listr-silent-renderer": "1.1.1",
- "listr-update-renderer": "0.5.0",
- "listr-verbose-renderer": "0.5.0",
- "p-map": "2.1.0",
- "rxjs": "6.6.2"
+ "@samverschueren/stream-to-observable": "^0.3.0",
+ "is-observable": "^1.1.0",
+ "is-promise": "^2.1.0",
+ "is-stream": "^1.1.0",
+ "listr-silent-renderer": "^1.1.1",
+ "listr-update-renderer": "^0.5.0",
+ "listr-verbose-renderer": "^0.5.0",
+ "p-map": "^2.0.0",
+ "rxjs": "^6.3.3"
}
},
"listr-silent-renderer": {
@@ -948,14 +955,14 @@
"resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz",
"integrity": "sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==",
"requires": {
- "chalk": "1.1.3",
- "cli-truncate": "0.2.1",
- "elegant-spinner": "1.0.1",
- "figures": "1.7.0",
- "indent-string": "3.2.0",
- "log-symbols": "1.0.2",
- "log-update": "2.3.0",
- "strip-ansi": "3.0.1"
+ "chalk": "^1.1.3",
+ "cli-truncate": "^0.2.1",
+ "elegant-spinner": "^1.0.1",
+ "figures": "^1.7.0",
+ "indent-string": "^3.0.0",
+ "log-symbols": "^1.0.2",
+ "log-update": "^2.3.0",
+ "strip-ansi": "^3.0.1"
},
"dependencies": {
"chalk": {
@@ -963,11 +970,11 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"requires": {
- "ansi-styles": "2.2.1",
- "escape-string-regexp": "1.0.5",
- "has-ansi": "2.0.0",
- "strip-ansi": "3.0.1",
- "supports-color": "2.0.0"
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
}
},
"log-symbols": {
@@ -975,7 +982,7 @@
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz",
"integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=",
"requires": {
- "chalk": "1.1.3"
+ "chalk": "^1.0.0"
}
},
"supports-color": {
@@ -990,10 +997,10 @@
"resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz",
"integrity": "sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==",
"requires": {
- "chalk": "2.4.2",
- "cli-cursor": "2.1.0",
- "date-fns": "1.30.1",
- "figures": "2.0.0"
+ "chalk": "^2.4.1",
+ "cli-cursor": "^2.1.0",
+ "date-fns": "^1.27.2",
+ "figures": "^2.0.0"
},
"dependencies": {
"cli-cursor": {
@@ -1001,7 +1008,7 @@
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
"integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
"requires": {
- "restore-cursor": "2.0.0"
+ "restore-cursor": "^2.0.0"
}
},
"figures": {
@@ -1009,7 +1016,7 @@
"resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
"integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=",
"requires": {
- "escape-string-regexp": "1.0.5"
+ "escape-string-regexp": "^1.0.5"
}
},
"onetime": {
@@ -1017,7 +1024,7 @@
"resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
"requires": {
- "mimic-fn": "1.2.0"
+ "mimic-fn": "^1.0.0"
}
},
"restore-cursor": {
@@ -1025,8 +1032,8 @@
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
"integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
"requires": {
- "onetime": "2.0.1",
- "signal-exit": "3.0.3"
+ "onetime": "^2.0.0",
+ "signal-exit": "^3.0.2"
}
}
}
@@ -1046,7 +1053,7 @@
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz",
"integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==",
"requires": {
- "chalk": "2.4.2"
+ "chalk": "^2.4.2"
}
},
"log-update": {
@@ -1054,9 +1061,9 @@
"resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz",
"integrity": "sha1-iDKP19HOeTiykoN0bwsbwSayRwg=",
"requires": {
- "ansi-escapes": "3.2.0",
- "cli-cursor": "2.1.0",
- "wrap-ansi": "3.0.1"
+ "ansi-escapes": "^3.0.0",
+ "cli-cursor": "^2.0.0",
+ "wrap-ansi": "^3.0.1"
},
"dependencies": {
"cli-cursor": {
@@ -1064,7 +1071,7 @@
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
"integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
"requires": {
- "restore-cursor": "2.0.0"
+ "restore-cursor": "^2.0.0"
}
},
"onetime": {
@@ -1072,7 +1079,7 @@
"resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
"requires": {
- "mimic-fn": "1.2.0"
+ "mimic-fn": "^1.0.0"
}
},
"restore-cursor": {
@@ -1080,8 +1087,8 @@
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
"integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
"requires": {
- "onetime": "2.0.1",
- "signal-exit": "3.0.3"
+ "onetime": "^2.0.0",
+ "signal-exit": "^3.0.2"
}
}
}
@@ -1119,7 +1126,7 @@
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"requires": {
- "brace-expansion": "1.1.11"
+ "brace-expansion": "^1.1.7"
}
},
"minimist": {
@@ -1132,7 +1139,7 @@
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
"requires": {
- "minimist": "1.2.5"
+ "minimist": "^1.2.5"
}
},
"moment": {
@@ -1155,7 +1162,7 @@
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"requires": {
- "path-key": "2.0.1"
+ "path-key": "^2.0.0"
}
},
"number-is-nan": {
@@ -1178,7 +1185,7 @@
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"requires": {
- "wrappy": "1.0.2"
+ "wrappy": "1"
}
},
"onetime": {
@@ -1246,8 +1253,8 @@
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"requires": {
- "end-of-stream": "1.4.4",
- "once": "1.4.0"
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
}
},
"punycode": {
@@ -1275,13 +1282,13 @@
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
"requires": {
- "core-util-is": "1.0.2",
- "inherits": "2.0.4",
- "isarray": "1.0.0",
- "process-nextick-args": "2.0.1",
- "safe-buffer": "5.1.2",
- "string_decoder": "1.1.1",
- "util-deprecate": "1.0.2"
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
},
"dependencies": {
"safe-buffer": {
@@ -1296,7 +1303,7 @@
"resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz",
"integrity": "sha1-TKdUCBx/7GP1BeT6qCWqBs1mnb4=",
"requires": {
- "throttleit": "1.0.0"
+ "throttleit": "^1.0.0"
}
},
"restore-cursor": {
@@ -1304,8 +1311,8 @@
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz",
"integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=",
"requires": {
- "exit-hook": "1.1.1",
- "onetime": "1.1.0"
+ "exit-hook": "^1.0.0",
+ "onetime": "^1.0.0"
}
},
"rimraf": {
@@ -1313,7 +1320,7 @@
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
"integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
"requires": {
- "glob": "7.1.6"
+ "glob": "^7.1.3"
}
},
"rxjs": {
@@ -1321,7 +1328,7 @@
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz",
"integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==",
"requires": {
- "tslib": "1.13.0"
+ "tslib": "^1.9.0"
}
},
"safe-buffer": {
@@ -1344,7 +1351,7 @@
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"requires": {
- "shebang-regex": "1.0.0"
+ "shebang-regex": "^1.0.0"
}
},
"shebang-regex": {
@@ -1367,15 +1374,15 @@
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
"integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
"requires": {
- "asn1": "0.2.4",
- "assert-plus": "1.0.0",
- "bcrypt-pbkdf": "1.0.2",
- "dashdash": "1.14.1",
- "ecc-jsbn": "0.1.2",
- "getpass": "0.1.7",
- "jsbn": "0.1.1",
- "safer-buffer": "2.1.2",
- "tweetnacl": "0.14.5"
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
}
},
"string-width": {
@@ -1383,8 +1390,8 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"requires": {
- "is-fullwidth-code-point": "2.0.0",
- "strip-ansi": "4.0.0"
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^4.0.0"
},
"dependencies": {
"ansi-regex": {
@@ -1397,7 +1404,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"requires": {
- "ansi-regex": "3.0.0"
+ "ansi-regex": "^3.0.0"
}
}
}
@@ -1407,7 +1414,7 @@
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"requires": {
- "safe-buffer": "5.1.2"
+ "safe-buffer": "~5.1.0"
},
"dependencies": {
"safe-buffer": {
@@ -1422,7 +1429,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"requires": {
- "ansi-regex": "2.1.1"
+ "ansi-regex": "^2.0.0"
}
},
"strip-eof": {
@@ -1435,7 +1442,7 @@
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
"requires": {
- "has-flag": "4.0.0"
+ "has-flag": "^4.0.0"
},
"dependencies": {
"has-flag": {
@@ -1460,7 +1467,7 @@
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz",
"integrity": "sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==",
"requires": {
- "rimraf": "2.7.1"
+ "rimraf": "^2.6.3"
}
},
"tough-cookie": {
@@ -1468,8 +1475,8 @@
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
"integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
"requires": {
- "psl": "1.8.0",
- "punycode": "2.1.1"
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
}
},
"tslib": {
@@ -1482,7 +1489,7 @@
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"requires": {
- "safe-buffer": "5.2.1"
+ "safe-buffer": "^5.0.1"
}
},
"tweetnacl": {
@@ -1510,7 +1517,7 @@
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
"integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
"requires": {
- "punycode": "2.1.1"
+ "punycode": "^2.1.0"
}
},
"url": {
@@ -1544,9 +1551,9 @@
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"requires": {
- "assert-plus": "1.0.0",
+ "assert-plus": "^1.0.0",
"core-util-is": "1.0.2",
- "extsprintf": "1.3.0"
+ "extsprintf": "^1.2.0"
}
},
"which": {
@@ -1554,7 +1561,7 @@
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"requires": {
- "isexe": "2.0.0"
+ "isexe": "^2.0.0"
}
},
"wrap-ansi": {
@@ -1562,8 +1569,8 @@
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz",
"integrity": "sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=",
"requires": {
- "string-width": "2.1.1",
- "strip-ansi": "4.0.0"
+ "string-width": "^2.1.1",
+ "strip-ansi": "^4.0.0"
},
"dependencies": {
"ansi-regex": {
@@ -1576,7 +1583,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"requires": {
- "ansi-regex": "3.0.0"
+ "ansi-regex": "^3.0.0"
}
}
}
@@ -1591,8 +1598,8 @@
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
"integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
"requires": {
- "buffer-crc32": "0.2.13",
- "fd-slicer": "1.1.0"
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
}
}
}
diff --git a/tests/cypress/package.json b/tests/cypress/package.json
index a2af0bf72..e7f403f29 100644
--- a/tests/cypress/package.json
+++ b/tests/cypress/package.json
@@ -22,6 +22,7 @@
"cypress-file-upload": "^4.0.7",
"cypress-plugin-retries": "^1.5.2",
"cypress-terminal-report": "^1.4.1",
- "cypress-wait-until": "^1.7.1"
+ "cypress-wait-until": "^1.7.1",
+ "ini": "^2.0.0"
}
}
From a11f81c84a5a801c28c8747b4244e3e7cee65c0a Mon Sep 17 00:00:00 2001
From: Charlie Powell <31997505+cp2004@users.noreply.github.com>
Date: Wed, 16 Dec 2020 16:50:34 +0000
Subject: [PATCH 19/28] :pencil2: Update access control documentation
Access control is mandatory in OctoPrint 1.5.0, so I have removed and edited the documentation to clarify this.
---
docs/features/accesscontrol.rst | 49 ++++-----------------------------
1 file changed, 5 insertions(+), 44 deletions(-)
diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst
index ca035d699..e285ab9ae 100644
--- a/docs/features/accesscontrol.rst
+++ b/docs/features/accesscontrol.rst
@@ -3,7 +3,7 @@
Access Control
==============
-.. versionchanged:: 1.4.0
+.. versionchanged:: 1.5.0
OctoPrint's bundled access control feature allows granular permission control
over which users or user groups are allowed to access which parts of OctoPrint.
@@ -33,19 +33,15 @@ read-only access to the following parts of the UI:
Logged in users without admin flag will be allowed to access everything besides the
Settings and System Commands, which are admin-only.
-If Access Control is disabled, everything is directly accessible. **That also
-includes all administrative functionality as well as full control over the
-printer**, and without the need for an :ref:`API key `!
-
Upon first start a configuration wizard is provided which allows configuration
-of the first administrator account or alternatively disabling Access Control
-(which is **NOT** recommended for systems that are directly accessible via the
-internet or other untrusted networks!).
+of the first administrator account to be used for OctoPrint. After initial setup,
+you can then create more users under Settings > Access Control for customisation of
+the granular permission system.
.. hint::
If you plan to have your OctoPrint instance accessible over the internet,
- **always enable Access Control** and ideally **don't make it accessible to
+ **please use additional security measures** and ideally **don't make it accessible to
everyone over the internet but instead use a VPN** or at the very least
HTTP basic authentication on a layer above OctoPrint.
@@ -75,38 +71,3 @@ octoprint.plugin.loginui.theming
................................
See :ref:`here `.
-
-.. _sec-features-access_control-rerunning_wizard:
-
-Rerunning the wizard
---------------------
-
-In case Access Control was disabled in the configuration wizard, it is
-possible to re-run it by editing ``config.yaml`` [#f1]_ and setting ``firstRun``
-in the ``server`` section and ``enabled`` in the ``accessControl`` section to
-``true``:
-
-.. code-block-ext:: yaml
-
- accessControl:
- enabled: true
- # ...
- server:
- firstRun: true
-
-Then restart the server and connect to the web interface - the wizard should
-be shown again.
-
-.. note::
-
- If user accounts were created prior to disabling Access Control and those
- user accounts are not to be used any more, remove ``.octoprint/users.yaml``.
- If you don't remove this file, the above changes won't lead to the
- configuration being shown again, instead Access Control will just be
- enabled using the already existing login data. This is to prevent you from
- resetting access control by accident.
-
-.. rubric:: Footnotes
-
-.. [#f1] For Linux that will be ``~/.octoprint/config.yaml``, for Windows it will be ``%APPDATA%/OctoPrint/config.yaml`` and for
- Mac ``~/Library/Application Support/OctoPrint/config.yaml``
From 3278118487188a1c976d37b9e9fbf0106a35fd1a Mon Sep 17 00:00:00 2001
From: Brian Vanderbusch
Date: Sat, 12 Dec 2020 09:11:47 -0600
Subject: [PATCH 20/28] change github.event_name to github.event.action
---
.github/workflows/trigger_docker.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml
index 0b4553545..ecfad9ef4 100644
--- a/.github/workflows/trigger_docker.yml
+++ b/.github/workflows/trigger_docker.yml
@@ -19,7 +19,7 @@ jobs:
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
- event-type: ${{ github.event_name }}
+ event-type: ${{ github.event.action }}
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
dispatch_canary:
From 2e6c9e80aa69ce506d79f13a0f2d3a5be636acd7 Mon Sep 17 00:00:00 2001
From: Brian Vanderbusch
Date: Sat, 12 Dec 2020 09:27:15 -0600
Subject: [PATCH 21/28] send better refs for tag_name on docker trigger
---
.github/workflows/trigger_docker.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml
index ecfad9ef4..1a86bb0c6 100644
--- a/.github/workflows/trigger_docker.yml
+++ b/.github/workflows/trigger_docker.yml
@@ -32,7 +32,7 @@ jobs:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "canary"
- client-payload: '{"tag_name": "${{ github.sha }}"}'
+ client-payload: '{"tag_name": "maintenance"}'
dispatch_bleeding:
runs-on: ubuntu-latest
@@ -44,4 +44,4 @@ jobs:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "bleeding"
- client-payload: '{"tag_name": "${{ github.sha }}"}'
+ client-payload: '{"tag_name": "devel"}'
From 66cfed71e9af7c9db75b4292f9900d96765574e6 Mon Sep 17 00:00:00 2001
From: test
Date: Fri, 18 Dec 2020 14:59:23 -0500
Subject: [PATCH 22/28] better access control documentation that integrates the
information in the auto login guide into the main body of the documentation.
This seems like it belongs in the documentation as part of the repo, and I
don't see a better place to put it other than under the access control
section based on how the documentation is currently organized. If there's a
better place for it, by all means split it off, put it there, and just link
to ti in the access control section
---
docs/features/accesscontrol.rst | 135 +++++++++++++++++++++++++++++++-
1 file changed, 132 insertions(+), 3 deletions(-)
diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst
index e285ab9ae..f932002e3 100644
--- a/docs/features/accesscontrol.rst
+++ b/docs/features/accesscontrol.rst
@@ -17,8 +17,16 @@ users out of the box.
thus also cannot limit access to it. If an anonymous user correctly guesses the
webcam URL, they will thus be able to see it.
-If read-only access for anonymous users is enabled, anonymous users will have
-read-only access to the following parts of the UI:
+Upon first start a configuration wizard is provided which allows configuration
+of the first administrator account to be used for OctoPrint. After initial setup,
+you can then create more users under Settings > Access Control for customisation of
+the granular permission system.
+
+The predefined Guest group can be used to configure default permissions of anonymous
+users, that is those who have not logged in. By default, no permissions are granted to these users.
+
+A predefined Read-only Access group with no users is configured which grants
+read-only access to the following parts of the UI to any users assigned to this group:
* printer state
* available gcode files and stats (upload is disabled)
@@ -43,7 +51,9 @@ the granular permission system.
If you plan to have your OctoPrint instance accessible over the internet,
**please use additional security measures** and ideally **don't make it accessible to
everyone over the internet but instead use a VPN** or at the very least
- HTTP basic authentication on a layer above OctoPrint.
+ HTTP basic authentication on a layer above OctoPrint. Unless you are using a VPN
+ **please do not** enable any permissions for the Guest group or the auto-login feature
+ described below.
A physical device that includes heaters and stepper motors really should not be
publicly reachable by everyone with an internet connection, even with access
@@ -51,6 +61,7 @@ the granular permission system.
.. _sec-features-access_control-hooks:
+
Available Extension Hooks
-------------------------
@@ -71,3 +82,121 @@ octoprint.plugin.loginui.theming
................................
See :ref:`here `.
+
+
+Autologin
+-------------------------
+
+While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can be used to
+bypass authentication for hosts on the network(s) that you trust.
+
+Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This might be an inconvience for some who run OctoPrint in an isolated setup where a login is not required to ensure security, at a benefit for a huge number of users out there who continue to underestimate or simply ignore the risk of keeping their OctoPrint instance unsecured and then happily exposing it on the public internet. And frankly, it will also make me sleep better at night.
+
+That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed a way to have OctoPrint automatically log you in, if you connect from a trusted local network address. This functionality has not been exposed on the UI, and for now also won't be (to make it a bit harder to once again create an insecure setup for those who simply won't listen to common sense), but it's easy to set up with a bit of configuration editing.
+
+When set up properly, it will make sure to automatically log you in as a configured user whenever you connect from a device on your local network. To get back pretty much the same behaviour as with disabled access control, you'll only need to create a single (admin) account and then set up autologin for it.
+
+
+.. warning::
+
+ **Do not do this if you cannot trust EVERYONE on your local network.** And I really mean everyone. If you ignore this and then someone takes over your OctoPrint instance, installs malware on it and makes your printer print an endless stream of benchies, that's on you.
+
+
+Gather configuraiton information
+............................
+
+You can configure Autologin via a plugin (the easy way), or manually (the hard way), but in either case you will need to specify which user should be automatically logged in, and which hosts are permitted access this way.
+
+**Improperly setting this subnet option can lead to the compromise of your system, or even your entire network. Proceed with extreme caution.**
+
+The subnet to use is usually the IP address range of your LAN, which sounds scary but actually isn't. Just `figure out your PC's IP address and subnet mask ` and then combine both with a / in between.
+
+On OctoPi (or another Linux distribution) you can use the follwing command:
+
+.. code-block::
+ ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+Or, for IPv6, use this:
+
+.. code-block::
+ ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+This will be what you set as the subnet in the plugin, or where it says below om the manual configuration instructions
+
+E.g.: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of ``255.255.255.0.`` Your address range is ``192.168.23.42/255.255.255.0.``
+
+
+The easy way: Using the OctoPrint-AutoLoginConfig plugin
+............................
+
+The easist way to configure AutoLogin is to install the `OctoPrint-AutoLoginConfig ` plugin via the plugin manager.
+
+Open its settings and follow the instructions on the screen.
+
+The hard way: Manual editing of config.yaml
+............................
+
+**Preparation**
+
+First of all, read `the YAML primer in the docs, please. ` You will have to edit OctoPrint's main configuration file, and thus should make sure you understand at least roughly how things work and that you should keep your hands off the Tab key. If you don't, you might break your config file, and while I'll tell you to make a backup, this still can be easily avoided by educating yourself on the DOs and DONTs first.
+
+Then, take a look at `the docs on config.yaml ` and where to find that central configuration file of OctoPrint:
+
+.. code-block::
+ If not specified via the command line, the main configuration file config.yaml for OctoPrint is expected in its settings folder, which unless defined differently via the command line is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at ~/Library/Application Support/OctoPrint on macOS.
+
+
+**Configuration**
+
+
+Ready? Let's do some editing then. I'll outline what to do and where first, and then further down there's also a dedicated list of steps for OctoPi specifically.
+
+1. Shutdown OctoPrint
+2. Make a backup of your config.yaml
+3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like this:
+.. code-block::
+ accessControl:
+ salt: aabbccddee1234523452345
+
+Edit this, adding lines so it looks like this (making absolutely sure not to touch the salt line):
+.. code-block::
+ accessControl:
+ salt: aabbccddee1234523452345
+ autologinLocal: true
+ autologinAs: ""
+ localNetworks:
+ - "127.0.0.0/8"
+ - ""
+
+4. Restart OctoPrint, check that everything works.
+
+This will automatically log you in as the user you specified whenver you connect to OctoPrint from an address in the address range (e.g. a device on your local network).
+
+
+**OctoPi specific steps**
+
+If you are running OctoPi you will have to SSH into your Raspberry Pi (username: pi, default password: raspberry, but you hopefully changed that - if not, do so right away please via sudo raspi-config!). Then:
+
+1. ``sudo service octoprint stop``
+2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
+3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
+4. ``sudo service octoprint start``
+
+If something went wrong, you can restore the config backup with
+.. code-block::
+ cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
+
+
+If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OcotPrint access controls
+............................
+
+.. warning::
+
+ **You probably shouldn't do this, EVER. There are usually other options. Don't even THINK about it, unless you have a VPN layer for security. Only consider proceeding with this configuration after exhausting ALL other possibilities, and even then, you should think long and hard about whether this is a good idea. You almost certainly don't need or want to do this.**
+
+
+While access controls can no longer be disabled in OctoPrint 1.5+, this can be approximated by an Autologin configuration that automatically logs in all users, that is by using subnets that match all possible IP addresses. By specifying the `0.0.0.0/0` subnet (for IPv4) and `::/0` for IPv6 in the AutoLogin configuration, you can achieve this. This configuration is permitted, but highly, highly discouraged.
+
+Please don't do this. You will almost certainly regret it.
+
+
From 8b96f71bc004613fd05248e1dec03e26b9492bcc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 15:55:55 +0100
Subject: [PATCH 23/28] =?UTF-8?q?=F0=9F=93=9D=20Rephrasing=20&=20formattin?=
=?UTF-8?q?g?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/features/accesscontrol.rst | 318 ++++++++++++++++++--------------
1 file changed, 184 insertions(+), 134 deletions(-)
diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst
index f932002e3..23bf90b75 100644
--- a/docs/features/accesscontrol.rst
+++ b/docs/features/accesscontrol.rst
@@ -18,14 +18,15 @@ users out of the box.
webcam URL, they will thus be able to see it.
Upon first start a configuration wizard is provided which allows configuration
-of the first administrator account to be used for OctoPrint. After initial setup,
-you can then create more users under Settings > Access Control for customisation of
-the granular permission system.
+of the first administrator account to be used for OctoPrint. After initial setup,
+you can then create more users and groups under Settings > Access Control for
+customisation of the granular permission system.
-The predefined Guest group can be used to configure default permissions of anonymous
-users, that is those who have not logged in. By default, no permissions are granted to these users.
+The predefined "Guests" group can be used to configure default permissions of anonymous
+users, that is those who have not logged in. By default, no permissions are granted to
+these users.
-A predefined Read-only Access group with no users is configured which grants
+A predefined "Read-only Access" group with no users is configured which by default grants
read-only access to the following parts of the UI to any users assigned to this group:
* printer state
@@ -38,13 +39,13 @@ read-only access to the following parts of the UI to any users assigned to this
* any components provided through plugins which are enabled for anonymous
users
-Logged in users without admin flag will be allowed to access everything besides the
-Settings and System Commands, which are admin-only.
+Another predefined "Operator" group is the default group for newly created users and
+by default gives access to all aspects of OctoPrint that involve regular printer
+operation. It matches the old "user" role from OctoPrint prior to 1.4.0.
-Upon first start a configuration wizard is provided which allows configuration
-of the first administrator account to be used for OctoPrint. After initial setup,
-you can then create more users under Settings > Access Control for customisation of
-the granular permission system.
+Finally, the predefined "Admins" group gives full admin access to the platform. You should
+be careful of who you put into that. It matches the old "admin" role from OctoPrint prior
+to 1.4.0.
.. hint::
@@ -59,8 +60,175 @@ the granular permission system.
publicly reachable by everyone with an internet connection, even with access
control enabled.
-.. _sec-features-access_control-hooks:
+.. _sec-features-access_control-autologin:
+Autologin
+---------
+
+While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can
+be used to bypass authentication for hosts on the network(s) that you trust.
+
+Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This
+might be an inconvience for some who run OctoPrint in an isolated setup where a login is
+not required to ensure security, at a benefit for a huge number of users out there who
+continue to underestimate or simply ignore the risk of keeping their OctoPrint instance
+unsecured and then happily exposing it on the public internet.
+
+That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed
+a way to have OctoPrint automatically log you in, if you connect from a trusted local
+network address. This functionality has not been exposed on the UI, and for now also won't
+be (to make it a bit harder to once again create an insecure setup for those who simply
+won't listen to common sense), but it's easy to set up with a bit of configuration
+editing.
+
+When set up properly, it will make sure to automatically log you in as a configured user
+whenever you connect from a device on your local network. To get back pretty much the same
+behaviour as with disabled access control, you'll only need to create a single (admin)
+account and then set up autologin for it.
+
+
+.. warning::
+
+ **Do not do this if you cannot trust EVERYONE on your local network.** And that really
+ means mean everyone. If you ignore this and then someone takes over your OctoPrint
+ instance, installs malware on it and makes your printer print an endless stream of
+ benchies, that's on you.
+
+.. _sec-features-access_control-autologin-gather_config_info:
+
+Gather configuration information
+................................
+
+You can configure Autologin via a plugin (the easy way), or manually (the hard way), but
+in either case you will need to specify which user should be automatically logged in, and
+which hosts are permitted access this way.
+
+**Improperly setting this subnet option can lead to the compromise of your system, or even
+your entire network. Proceed with extreme caution.**
+
+The subnet to use is usually the IP address range of your LAN, which sounds scary but
+actually isn't. Just `figure out your PC's IP address and subnet mask `_
+and then combine both with a / in between.
+
+On OctoPi (or another Linux distribution) you can use the follwing command:
+
+.. code-block::
+
+ ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+Or, for IPv6, use this:
+
+.. code-block::
+
+ ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
+
+This will be what you set as the subnet in the plugin, or where it says
+```` below on the manual configuration instructions.
+
+Example: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of
+``255.255.255.0``. Your address range is ``192.168.23.42/255.255.255.0``.
+
+.. _sec-features-access_control-autologin-plugin:
+
+The easy way: Using the OctoPrint-AutoLoginConfig plugin
+........................................................
+
+The easist way to configure AutoLogin is to install the
+`OctoPrint-AutoLoginConfig plugin `_
+via the plugin manager.
+
+Open its settings and follow the instructions on the screen.
+
+.. _sec-features-access_control-autologin-manual:
+
+The hard way: Manual editing of config.yaml
+...........................................
+
+Preparation
+***********
+
+First of all, read :ref:`the YAML primer `. You
+will have to edit OctoPrint's main configuration file, and thus should make sure
+you understand at least roughly how things work and that you should keep your
+hands off the Tab key. If you don't, you might break your config file, and
+while the steps include making a backup, this still can be easily avoided by
+learning about the DOs and DONTs first.
+
+Then, take a look at :ref:`the docs on config.yaml `
+on where to find that central configuration file of OctoPrint.
+
+Configuration
+*************
+
+Ready? Let's do some editing then. I'll outline what to do and where first, and then
+further down there's also a dedicated list of steps for OctoPi specifically.
+
+1. Shutdown OctoPrint
+2. Make a backup of your config.yaml
+3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like
+ this:
+
+ .. code-block:: yaml
+
+ accessControl:
+ salt: aabbccddee1234523452345
+
+ Edit this, adding lines so it looks like this (making absolutely sure not to touch the
+ salt line):
+
+ .. code-block:: yaml
+ accessControl:
+ salt: aabbccddee1234523452345
+ autologinLocal: true
+ autologinAs: ""
+ localNetworks:
+ - "127.0.0.0/8"
+ - ""
+
+4. Restart OctoPrint, check that everything works.
+
+This will automatically log you in as the user you specified whenver you connect to
+OctoPrint from an address in the address range (e.g. a device on your local network).
+
+OctoPi specific steps
+*********************
+
+If you are running OctoPi you will have to SSH into your Raspberry Pi. Then issue
+the following commands:
+
+1. ``sudo service octoprint stop``
+2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
+3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
+4. ``sudo service octoprint start``
+
+If something went wrong, you can restore the config backup with
+
+.. code-block::
+
+ cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
+
+
+If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OctoPrint access controls
+......................................................................................................
+
+.. warning::
+
+ You probably shouldn't do this, EVER. There are usually other options. Don't even
+ THINK about it, unless you have a VPN layer for security. Only consider proceeding
+ with this configuration after exhausting ALL other possibilities, and even then, you
+ should think long and hard about whether this is a good idea. You almost certainly
+ don't need or want to do this.
+
+While access controls can no longer be disabled in OctoPrint 1.5+, this can be
+approximated by an Autologin configuration that automatically logs in all users, that is
+by using subnets that match all possible IP addresses. By specifying the ``0.0.0.0/0``
+subnet (for IPv4) and ``::/0`` for IPv6 in the AutoLogin configuration, you can achieve
+this. This configuration is permitted, but highly, highly discouraged.
+
+Please don't do this. You will almost certainly regret it. You alone are responsible for
+your actions.
+
+.. _sec-features-access_control-hooks:
Available Extension Hooks
-------------------------
@@ -78,125 +246,7 @@ See :ref:`here `.
.. _sec-features-access_control-hooks-loginui:
-octoprint.plugin.loginui.theming
-................................
-
-See :ref:`here `.
-
-
-Autologin
--------------------------
-
-While access control cannot be disabled as of OctoPrint 1.5+, the Autologin feature can be used to
-bypass authentication for hosts on the network(s) that you trust.
-
-Starting with OctoPrint 1.5.0, OctoPrint makes enabled access control mandatory. This might be an inconvience for some who run OctoPrint in an isolated setup where a login is not required to ensure security, at a benefit for a huge number of users out there who continue to underestimate or simply ignore the risk of keeping their OctoPrint instance unsecured and then happily exposing it on the public internet. And frankly, it will also make me sleep better at night.
-
-That being said, even as far back as OctoPrint 1.0.0 (released in 2013) there has existed a way to have OctoPrint automatically log you in, if you connect from a trusted local network address. This functionality has not been exposed on the UI, and for now also won't be (to make it a bit harder to once again create an insecure setup for those who simply won't listen to common sense), but it's easy to set up with a bit of configuration editing.
-
-When set up properly, it will make sure to automatically log you in as a configured user whenever you connect from a device on your local network. To get back pretty much the same behaviour as with disabled access control, you'll only need to create a single (admin) account and then set up autologin for it.
-
-
-.. warning::
-
- **Do not do this if you cannot trust EVERYONE on your local network.** And I really mean everyone. If you ignore this and then someone takes over your OctoPrint instance, installs malware on it and makes your printer print an endless stream of benchies, that's on you.
-
-
-Gather configuraiton information
-............................
-
-You can configure Autologin via a plugin (the easy way), or manually (the hard way), but in either case you will need to specify which user should be automatically logged in, and which hosts are permitted access this way.
-
-**Improperly setting this subnet option can lead to the compromise of your system, or even your entire network. Proceed with extreme caution.**
-
-The subnet to use is usually the IP address range of your LAN, which sounds scary but actually isn't. Just `figure out your PC's IP address and subnet mask ` and then combine both with a / in between.
-
-On OctoPi (or another Linux distribution) you can use the follwing command:
-
-.. code-block::
- ip route | grep -P 'eth0|wlan0' | awk '{print $1}'
-
-Or, for IPv6, use this:
-
-.. code-block::
- ip -6 route | grep -P 'eth0|wlan0' | awk '{print $1}'
-
-This will be what you set as the subnet in the plugin, or where it says below om the manual configuration instructions
-
-E.g.: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of ``255.255.255.0.`` Your address range is ``192.168.23.42/255.255.255.0.``
-
-
-The easy way: Using the OctoPrint-AutoLoginConfig plugin
-............................
-
-The easist way to configure AutoLogin is to install the `OctoPrint-AutoLoginConfig ` plugin via the plugin manager.
-
-Open its settings and follow the instructions on the screen.
-
-The hard way: Manual editing of config.yaml
-............................
-
-**Preparation**
-
-First of all, read `the YAML primer in the docs, please. ` You will have to edit OctoPrint's main configuration file, and thus should make sure you understand at least roughly how things work and that you should keep your hands off the Tab key. If you don't, you might break your config file, and while I'll tell you to make a backup, this still can be easily avoided by educating yourself on the DOs and DONTs first.
-
-Then, take a look at `the docs on config.yaml ` and where to find that central configuration file of OctoPrint:
-
-.. code-block::
- If not specified via the command line, the main configuration file config.yaml for OctoPrint is expected in its settings folder, which unless defined differently via the command line is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at ~/Library/Application Support/OctoPrint on macOS.
-
-
-**Configuration**
-
-
-Ready? Let's do some editing then. I'll outline what to do and where first, and then further down there's also a dedicated list of steps for OctoPi specifically.
-
-1. Shutdown OctoPrint
-2. Make a backup of your config.yaml
-3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like this:
-.. code-block::
- accessControl:
- salt: aabbccddee1234523452345
-
-Edit this, adding lines so it looks like this (making absolutely sure not to touch the salt line):
-.. code-block::
- accessControl:
- salt: aabbccddee1234523452345
- autologinLocal: true
- autologinAs: ""
- localNetworks:
- - "127.0.0.0/8"
- - ""
-
-4. Restart OctoPrint, check that everything works.
-
-This will automatically log you in as the user you specified whenver you connect to OctoPrint from an address in the address range (e.g. a device on your local network).
-
-
-**OctoPi specific steps**
-
-If you are running OctoPi you will have to SSH into your Raspberry Pi (username: pi, default password: raspberry, but you hopefully changed that - if not, do so right away please via sudo raspi-config!). Then:
-
-1. ``sudo service octoprint stop``
-2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
-3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
-4. ``sudo service octoprint start``
-
-If something went wrong, you can restore the config backup with
-.. code-block::
- cp ~/.octoprint/config.yaml.back ~/.octoprint/config.yaml
-
-
-If you are using a VPN and your setup ABSOLUTELY REQUIRES disabling internal OcotPrint access controls
-............................
-
-.. warning::
-
- **You probably shouldn't do this, EVER. There are usually other options. Don't even THINK about it, unless you have a VPN layer for security. Only consider proceeding with this configuration after exhausting ALL other possibilities, and even then, you should think long and hard about whether this is a good idea. You almost certainly don't need or want to do this.**
-
-
-While access controls can no longer be disabled in OctoPrint 1.5+, this can be approximated by an Autologin configuration that automatically logs in all users, that is by using subnets that match all possible IP addresses. By specifying the `0.0.0.0/0` subnet (for IPv4) and `::/0` for IPv6 in the AutoLogin configuration, you can achieve this. This configuration is permitted, but highly, highly discouraged.
-
-Please don't do this. You will almost certainly regret it.
-
+octoprint.theming.login
+.......................
+See :ref:`here `.
From a84b5be104dad971a0cfca99857387c0a7d4832c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 16:02:33 +0100
Subject: [PATCH 24/28] =?UTF-8?q?=F0=9F=93=9D=20Remove=20some=20outdated?=
=?UTF-8?q?=20documentation?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/plugins/hooks.rst | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst
index 5863c034b..eb52fbec4 100644
--- a/docs/plugins/hooks.rst
+++ b/docs/plugins/hooks.rst
@@ -1173,15 +1173,6 @@ octoprint.plugin.backup.additional_excludes
See :ref:`here `.
-.. _sec-plugins-hook-plugin-loginui-theming:
-
-octoprint.plugin.loginui.theming
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-.. versionadded:: 1.4.0
-
-See :ref:`here `.
-
.. _sec-plugins-hook-plugin-pluginmanager-reconnect:
octoprint.plugin.pluginmanager.reconnect_hooks
From 59fa74925a35b5d621415363fff6303de45ea511 Mon Sep 17 00:00:00 2001
From: Brian Vanderbusch
Date: Sat, 19 Dec 2020 14:10:47 -0600
Subject: [PATCH 25/28] change docs setting userFile to userfile
cherry-picked from d36b06f
---
docs/configuration/config_yaml.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst
index 7b8a949eb..56a0a5fce 100644
--- a/docs/configuration/config_yaml.rst
+++ b/docs/configuration/config_yaml.rst
@@ -30,7 +30,7 @@ Use the following settings to enable access control:
userManager: octoprint.access.users.FilebasedUserManager
# The YAML user file to use. If left out defaults to users.yaml in the default configuration folder.
- userFile: /path/to/users.yaml
+ userfile: /path/to/users.yaml
# If set to true, will automatically log on clients originating from any of the networks defined in
# "localNetworks" as the user defined in "autologinAs". Defaults to false.
From 6b2485363ea19f708101f5c60acb3e410599c09a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 16:17:10 +0100
Subject: [PATCH 26/28] =?UTF-8?q?=E2=9C=85=20Update=20e2e=20dep=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Should make dependabot happy about our e2e tests again.
---
tests/cypress/package-lock.json | 515 ++++++++++++++++----------------
tests/cypress/package.json | 3 +-
2 files changed, 263 insertions(+), 255 deletions(-)
diff --git a/tests/cypress/package-lock.json b/tests/cypress/package-lock.json
index 3ca3daad3..98933b466 100644
--- a/tests/cypress/package-lock.json
+++ b/tests/cypress/package-lock.json
@@ -9,10 +9,10 @@
"resolved": "https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz",
"integrity": "sha1-p3SS9LEdzHxEajSz4ochr9M8ZCo=",
"requires": {
- "chalk": "1.1.3",
- "cli-cursor": "1.0.2",
- "date-fns": "1.30.1",
- "figures": "1.7.0"
+ "chalk": "^1.1.3",
+ "cli-cursor": "^1.0.2",
+ "date-fns": "^1.27.2",
+ "figures": "^1.7.0"
},
"dependencies": {
"chalk": {
@@ -20,11 +20,11 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"requires": {
- "ansi-styles": "2.2.1",
- "escape-string-regexp": "1.0.5",
- "has-ansi": "2.0.0",
- "strip-ansi": "3.0.1",
- "supports-color": "2.0.0"
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
}
},
"supports-color": {
@@ -39,26 +39,26 @@
"resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.5.tgz",
"integrity": "sha512-TzEC1XMi1hJkywWpRfD2clreTa/Z+lOrXDCxxBTBPEcY5azdPi56A6Xw+O4tWJnaJH3iIE7G5aDXZC6JgRZLcA==",
"requires": {
- "aws-sign2": "0.7.0",
- "aws4": "1.10.0",
- "caseless": "0.12.0",
- "combined-stream": "1.0.8",
- "extend": "3.0.2",
- "forever-agent": "0.6.1",
- "form-data": "2.3.3",
- "har-validator": "5.1.5",
- "http-signature": "1.2.0",
- "is-typedarray": "1.0.0",
- "isstream": "0.1.2",
- "json-stringify-safe": "5.0.1",
- "mime-types": "2.1.27",
- "oauth-sign": "0.9.0",
- "performance-now": "2.1.0",
- "qs": "6.5.2",
- "safe-buffer": "5.2.1",
- "tough-cookie": "2.5.0",
- "tunnel-agent": "0.6.0",
- "uuid": "3.4.0"
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
}
},
"@cypress/xvfb": {
@@ -66,8 +66,8 @@
"resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz",
"integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==",
"requires": {
- "debug": "3.2.6",
- "lodash.once": "4.1.1"
+ "debug": "^3.1.0",
+ "lodash.once": "^4.1.1"
},
"dependencies": {
"debug": {
@@ -75,7 +75,7 @@
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
"requires": {
- "ms": "2.1.2"
+ "ms": "^2.1.1"
}
}
}
@@ -85,7 +85,7 @@
"resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz",
"integrity": "sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==",
"requires": {
- "any-observable": "0.3.0"
+ "any-observable": "^0.3.0"
}
},
"@types/color-name": {
@@ -108,10 +108,10 @@
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz",
"integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==",
"requires": {
- "fast-deep-equal": "3.1.3",
- "fast-json-stable-stringify": "2.1.0",
- "json-schema-traverse": "0.4.1",
- "uri-js": "4.2.2"
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
}
},
"ansi-escapes": {
@@ -144,7 +144,7 @@
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
"integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
"requires": {
- "safer-buffer": "2.1.2"
+ "safer-buffer": "~2.1.0"
}
},
"assert-plus": {
@@ -182,7 +182,7 @@
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
"requires": {
- "tweetnacl": "0.14.5"
+ "tweetnacl": "^0.14.3"
}
},
"bluebird": {
@@ -195,7 +195,7 @@
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"requires": {
- "balanced-match": "1.0.0",
+ "balanced-match": "^1.0.0",
"concat-map": "0.0.1"
}
},
@@ -224,9 +224,9 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
"requires": {
- "ansi-styles": "3.2.1",
- "escape-string-regexp": "1.0.5",
- "supports-color": "5.5.0"
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
},
"dependencies": {
"ansi-styles": {
@@ -234,7 +234,7 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
"requires": {
- "color-convert": "1.9.3"
+ "color-convert": "^1.9.0"
}
},
"supports-color": {
@@ -242,7 +242,7 @@
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"requires": {
- "has-flag": "3.0.0"
+ "has-flag": "^3.0.0"
}
}
}
@@ -262,7 +262,7 @@
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz",
"integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=",
"requires": {
- "restore-cursor": "1.0.1"
+ "restore-cursor": "^1.0.1"
}
},
"cli-table3": {
@@ -270,9 +270,9 @@
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz",
"integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==",
"requires": {
- "colors": "1.4.0",
- "object-assign": "4.1.1",
- "string-width": "2.1.1"
+ "colors": "^1.1.2",
+ "object-assign": "^4.1.0",
+ "string-width": "^2.1.1"
}
},
"cli-truncate": {
@@ -281,7 +281,7 @@
"integrity": "sha1-nxXPuwcFAFNpIWxiasfQWrkN1XQ=",
"requires": {
"slice-ansi": "0.0.4",
- "string-width": "1.0.2"
+ "string-width": "^1.0.1"
},
"dependencies": {
"is-fullwidth-code-point": {
@@ -289,7 +289,7 @@
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
"requires": {
- "number-is-nan": "1.0.1"
+ "number-is-nan": "^1.0.0"
}
},
"string-width": {
@@ -297,9 +297,9 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"requires": {
- "code-point-at": "1.1.0",
- "is-fullwidth-code-point": "1.0.0",
- "strip-ansi": "3.0.1"
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
}
}
}
@@ -333,7 +333,7 @@
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"requires": {
- "delayed-stream": "1.0.0"
+ "delayed-stream": "~1.0.0"
}
},
"commander": {
@@ -356,10 +356,10 @@
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
"requires": {
- "buffer-from": "1.1.1",
- "inherits": "2.0.4",
- "readable-stream": "2.3.7",
- "typedarray": "0.0.6"
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
}
},
"core-util-is": {
@@ -372,11 +372,11 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"requires": {
- "nice-try": "1.0.5",
- "path-key": "2.0.1",
- "semver": "5.7.1",
- "shebang-command": "1.2.0",
- "which": "1.3.1"
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
}
},
"cypress": {
@@ -384,43 +384,43 @@
"resolved": "https://registry.npmjs.org/cypress/-/cypress-4.12.0.tgz",
"integrity": "sha512-ZDngKMwoQ2UYmeSUJikLMZG6t2N7lTHHlzBzh5W0MbPfXSMv36YUgL2ZVD+t4ZLA63WWkvhwxIkDG+WJknBgHw==",
"requires": {
- "@cypress/listr-verbose-renderer": "0.4.1",
- "@cypress/request": "2.88.5",
- "@cypress/xvfb": "1.2.4",
- "@types/sinonjs__fake-timers": "6.0.1",
- "@types/sizzle": "2.3.2",
- "arch": "2.1.2",
- "bluebird": "3.7.2",
- "cachedir": "2.3.0",
- "chalk": "2.4.2",
- "check-more-types": "2.24.0",
- "cli-table3": "0.5.1",
- "commander": "4.1.1",
- "common-tags": "1.8.0",
- "debug": "4.1.1",
- "eventemitter2": "6.4.3",
- "execa": "1.0.0",
- "executable": "4.1.1",
- "extract-zip": "1.7.0",
- "fs-extra": "8.1.0",
- "getos": "3.2.1",
- "is-ci": "2.0.0",
- "is-installed-globally": "0.3.2",
- "lazy-ass": "1.6.0",
- "listr": "0.14.3",
- "lodash": "4.17.19",
- "log-symbols": "3.0.0",
- "minimist": "1.2.5",
- "moment": "2.27.0",
- "ospath": "1.2.2",
- "pretty-bytes": "5.3.0",
- "ramda": "0.26.1",
- "request-progress": "3.0.0",
- "supports-color": "7.1.0",
- "tmp": "0.1.0",
- "untildify": "4.0.0",
- "url": "0.11.0",
- "yauzl": "2.10.0"
+ "@cypress/listr-verbose-renderer": "^0.4.1",
+ "@cypress/request": "^2.88.5",
+ "@cypress/xvfb": "^1.2.4",
+ "@types/sinonjs__fake-timers": "^6.0.1",
+ "@types/sizzle": "^2.3.2",
+ "arch": "^2.1.2",
+ "bluebird": "^3.7.2",
+ "cachedir": "^2.3.0",
+ "chalk": "^2.4.2",
+ "check-more-types": "^2.24.0",
+ "cli-table3": "~0.5.1",
+ "commander": "^4.1.1",
+ "common-tags": "^1.8.0",
+ "debug": "^4.1.1",
+ "eventemitter2": "^6.4.2",
+ "execa": "^1.0.0",
+ "executable": "^4.1.1",
+ "extract-zip": "^1.7.0",
+ "fs-extra": "^8.1.0",
+ "getos": "^3.2.1",
+ "is-ci": "^2.0.0",
+ "is-installed-globally": "^0.3.2",
+ "lazy-ass": "^1.6.0",
+ "listr": "^0.14.3",
+ "lodash": "^4.17.19",
+ "log-symbols": "^3.0.0",
+ "minimist": "^1.2.5",
+ "moment": "^2.27.0",
+ "ospath": "^1.2.2",
+ "pretty-bytes": "^5.3.0",
+ "ramda": "~0.26.1",
+ "request-progress": "^3.0.0",
+ "supports-color": "^7.1.0",
+ "tmp": "~0.1.0",
+ "untildify": "^4.0.0",
+ "url": "^0.11.0",
+ "yauzl": "^2.10.0"
}
},
"cypress-commands": {
@@ -433,7 +433,7 @@
"resolved": "https://registry.npmjs.org/cypress-file-upload/-/cypress-file-upload-4.0.7.tgz",
"integrity": "sha512-rFFmnoZ2bWyWFpSV09AhkSUgYEiVy70pcQ6nf/mGTMTrVHvKCCCIfRu3TbgVYHbgBq+0hqjfjQrtz4IbgH7qZA==",
"requires": {
- "mime": "2.4.6"
+ "mime": "^2.4.4"
}
},
"cypress-plugin-retries": {
@@ -441,7 +441,7 @@
"resolved": "https://registry.npmjs.org/cypress-plugin-retries/-/cypress-plugin-retries-1.5.2.tgz",
"integrity": "sha512-o1xVIGtv4WvNVxoVJ2X08eAuvditPHrePRzHqhwwHbMKu3C2rtxCdanRCZdO5fjh8ww+q4v4V0e9GmysbOvu3A==",
"requires": {
- "chalk": "3.0.0"
+ "chalk": "^3.0.0"
},
"dependencies": {
"ansi-styles": {
@@ -449,8 +449,8 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"requires": {
- "@types/color-name": "1.1.1",
- "color-convert": "2.0.1"
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
}
},
"chalk": {
@@ -458,8 +458,8 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"requires": {
- "ansi-styles": "4.2.1",
- "supports-color": "7.1.0"
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
}
},
"color-convert": {
@@ -467,7 +467,7 @@
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
- "color-name": "1.1.4"
+ "color-name": "~1.1.4"
}
},
"color-name": {
@@ -482,8 +482,8 @@
"resolved": "https://registry.npmjs.org/cypress-terminal-report/-/cypress-terminal-report-1.4.1.tgz",
"integrity": "sha512-Oyx7VQCSh4Nh1q0ROo9Wq6KrxxbP8adhUQRxVpNlXeyyfLj2X8AXxqbIh6Ct3V8oENKh5iHHhuOfRfQ1tmE4Tw==",
"requires": {
- "chalk": "3.0.0",
- "methods": "1.1.2"
+ "chalk": "^3.0.0",
+ "methods": "^1.1.2"
},
"dependencies": {
"ansi-styles": {
@@ -491,8 +491,8 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"requires": {
- "@types/color-name": "1.1.1",
- "color-convert": "2.0.1"
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
}
},
"chalk": {
@@ -500,8 +500,8 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"requires": {
- "ansi-styles": "4.2.1",
- "supports-color": "7.1.0"
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
}
},
"color-convert": {
@@ -509,7 +509,7 @@
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
- "color-name": "1.1.4"
+ "color-name": "~1.1.4"
}
},
"color-name": {
@@ -529,7 +529,7 @@
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
"requires": {
- "assert-plus": "1.0.0"
+ "assert-plus": "^1.0.0"
}
},
"date-fns": {
@@ -542,7 +542,7 @@
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"requires": {
- "ms": "2.1.2"
+ "ms": "^2.1.1"
}
},
"delayed-stream": {
@@ -555,8 +555,8 @@
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"requires": {
- "jsbn": "0.1.1",
- "safer-buffer": "2.1.2"
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
}
},
"elegant-spinner": {
@@ -569,7 +569,7 @@
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"requires": {
- "once": "1.4.0"
+ "once": "^1.4.0"
}
},
"escape-string-regexp": {
@@ -587,13 +587,13 @@
"resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
"integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
"requires": {
- "cross-spawn": "6.0.5",
- "get-stream": "4.1.0",
- "is-stream": "1.1.0",
- "npm-run-path": "2.0.2",
- "p-finally": "1.0.0",
- "signal-exit": "3.0.3",
- "strip-eof": "1.0.0"
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
}
},
"executable": {
@@ -601,7 +601,7 @@
"resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz",
"integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==",
"requires": {
- "pify": "2.3.0"
+ "pify": "^2.2.0"
}
},
"exit-hook": {
@@ -619,10 +619,10 @@
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",
"integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",
"requires": {
- "concat-stream": "1.6.2",
- "debug": "2.6.9",
- "mkdirp": "0.5.5",
- "yauzl": "2.10.0"
+ "concat-stream": "^1.6.2",
+ "debug": "^2.6.9",
+ "mkdirp": "^0.5.4",
+ "yauzl": "^2.10.0"
},
"dependencies": {
"debug": {
@@ -660,7 +660,7 @@
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
"integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
"requires": {
- "pend": "1.2.0"
+ "pend": "~1.2.0"
}
},
"figures": {
@@ -668,8 +668,8 @@
"resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz",
"integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=",
"requires": {
- "escape-string-regexp": "1.0.5",
- "object-assign": "4.1.1"
+ "escape-string-regexp": "^1.0.5",
+ "object-assign": "^4.1.0"
}
},
"forever-agent": {
@@ -682,9 +682,9 @@
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
"requires": {
- "asynckit": "0.4.0",
- "combined-stream": "1.0.8",
- "mime-types": "2.1.27"
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
}
},
"fs-extra": {
@@ -692,9 +692,9 @@
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
"requires": {
- "graceful-fs": "4.2.4",
- "jsonfile": "4.0.0",
- "universalify": "0.1.2"
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
}
},
"fs.realpath": {
@@ -707,7 +707,7 @@
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
"integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
"requires": {
- "pump": "3.0.0"
+ "pump": "^3.0.0"
}
},
"getos": {
@@ -715,7 +715,7 @@
"resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
"integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
"requires": {
- "async": "3.2.0"
+ "async": "^3.2.0"
}
},
"getpass": {
@@ -723,7 +723,7 @@
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"requires": {
- "assert-plus": "1.0.0"
+ "assert-plus": "^1.0.0"
}
},
"glob": {
@@ -731,12 +731,12 @@
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
"requires": {
- "fs.realpath": "1.0.0",
- "inflight": "1.0.6",
- "inherits": "2.0.4",
- "minimatch": "3.0.4",
- "once": "1.4.0",
- "path-is-absolute": "1.0.1"
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
}
},
"global-dirs": {
@@ -744,7 +744,14 @@
"resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz",
"integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==",
"requires": {
- "ini": "1.3.5"
+ "ini": "^1.3.5"
+ },
+ "dependencies": {
+ "ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
+ }
}
},
"graceful-fs": {
@@ -762,8 +769,8 @@
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
"integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
"requires": {
- "ajv": "6.12.3",
- "har-schema": "2.0.0"
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
}
},
"has-ansi": {
@@ -771,7 +778,7 @@
"resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
"integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
"requires": {
- "ansi-regex": "2.1.1"
+ "ansi-regex": "^2.0.0"
}
},
"has-flag": {
@@ -784,9 +791,9 @@
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"requires": {
- "assert-plus": "1.0.0",
- "jsprim": "1.4.1",
- "sshpk": "1.16.1"
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
}
},
"indent-string": {
@@ -799,8 +806,8 @@
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"requires": {
- "once": "1.4.0",
- "wrappy": "1.0.2"
+ "once": "^1.3.0",
+ "wrappy": "1"
}
},
"inherits": {
@@ -809,16 +816,16 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"ini": {
- "version": "1.3.5",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
- "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",
+ "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA=="
},
"is-ci": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
"integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
"requires": {
- "ci-info": "2.0.0"
+ "ci-info": "^2.0.0"
}
},
"is-fullwidth-code-point": {
@@ -831,8 +838,8 @@
"resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz",
"integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==",
"requires": {
- "global-dirs": "2.0.1",
- "is-path-inside": "3.0.2"
+ "global-dirs": "^2.0.1",
+ "is-path-inside": "^3.0.1"
}
},
"is-observable": {
@@ -840,7 +847,7 @@
"resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz",
"integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==",
"requires": {
- "symbol-observable": "1.2.0"
+ "symbol-observable": "^1.1.0"
}
},
"is-path-inside": {
@@ -903,7 +910,7 @@
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
"requires": {
- "graceful-fs": "4.2.4"
+ "graceful-fs": "^4.1.6"
}
},
"jsprim": {
@@ -927,15 +934,15 @@
"resolved": "https://registry.npmjs.org/listr/-/listr-0.14.3.tgz",
"integrity": "sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==",
"requires": {
- "@samverschueren/stream-to-observable": "0.3.0",
- "is-observable": "1.1.0",
- "is-promise": "2.2.2",
- "is-stream": "1.1.0",
- "listr-silent-renderer": "1.1.1",
- "listr-update-renderer": "0.5.0",
- "listr-verbose-renderer": "0.5.0",
- "p-map": "2.1.0",
- "rxjs": "6.6.2"
+ "@samverschueren/stream-to-observable": "^0.3.0",
+ "is-observable": "^1.1.0",
+ "is-promise": "^2.1.0",
+ "is-stream": "^1.1.0",
+ "listr-silent-renderer": "^1.1.1",
+ "listr-update-renderer": "^0.5.0",
+ "listr-verbose-renderer": "^0.5.0",
+ "p-map": "^2.0.0",
+ "rxjs": "^6.3.3"
}
},
"listr-silent-renderer": {
@@ -948,14 +955,14 @@
"resolved": "https://registry.npmjs.org/listr-update-renderer/-/listr-update-renderer-0.5.0.tgz",
"integrity": "sha512-tKRsZpKz8GSGqoI/+caPmfrypiaq+OQCbd+CovEC24uk1h952lVj5sC7SqyFUm+OaJ5HN/a1YLt5cit2FMNsFA==",
"requires": {
- "chalk": "1.1.3",
- "cli-truncate": "0.2.1",
- "elegant-spinner": "1.0.1",
- "figures": "1.7.0",
- "indent-string": "3.2.0",
- "log-symbols": "1.0.2",
- "log-update": "2.3.0",
- "strip-ansi": "3.0.1"
+ "chalk": "^1.1.3",
+ "cli-truncate": "^0.2.1",
+ "elegant-spinner": "^1.0.1",
+ "figures": "^1.7.0",
+ "indent-string": "^3.0.0",
+ "log-symbols": "^1.0.2",
+ "log-update": "^2.3.0",
+ "strip-ansi": "^3.0.1"
},
"dependencies": {
"chalk": {
@@ -963,11 +970,11 @@
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"requires": {
- "ansi-styles": "2.2.1",
- "escape-string-regexp": "1.0.5",
- "has-ansi": "2.0.0",
- "strip-ansi": "3.0.1",
- "supports-color": "2.0.0"
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
}
},
"log-symbols": {
@@ -975,7 +982,7 @@
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz",
"integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=",
"requires": {
- "chalk": "1.1.3"
+ "chalk": "^1.0.0"
}
},
"supports-color": {
@@ -990,10 +997,10 @@
"resolved": "https://registry.npmjs.org/listr-verbose-renderer/-/listr-verbose-renderer-0.5.0.tgz",
"integrity": "sha512-04PDPqSlsqIOaaaGZ+41vq5FejI9auqTInicFRndCBgE3bXG8D6W1I+mWhk+1nqbHmyhla/6BUrd5OSiHwKRXw==",
"requires": {
- "chalk": "2.4.2",
- "cli-cursor": "2.1.0",
- "date-fns": "1.30.1",
- "figures": "2.0.0"
+ "chalk": "^2.4.1",
+ "cli-cursor": "^2.1.0",
+ "date-fns": "^1.27.2",
+ "figures": "^2.0.0"
},
"dependencies": {
"cli-cursor": {
@@ -1001,7 +1008,7 @@
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
"integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
"requires": {
- "restore-cursor": "2.0.0"
+ "restore-cursor": "^2.0.0"
}
},
"figures": {
@@ -1009,7 +1016,7 @@
"resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
"integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=",
"requires": {
- "escape-string-regexp": "1.0.5"
+ "escape-string-regexp": "^1.0.5"
}
},
"onetime": {
@@ -1017,7 +1024,7 @@
"resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
"requires": {
- "mimic-fn": "1.2.0"
+ "mimic-fn": "^1.0.0"
}
},
"restore-cursor": {
@@ -1025,8 +1032,8 @@
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
"integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
"requires": {
- "onetime": "2.0.1",
- "signal-exit": "3.0.3"
+ "onetime": "^2.0.0",
+ "signal-exit": "^3.0.2"
}
}
}
@@ -1046,7 +1053,7 @@
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz",
"integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==",
"requires": {
- "chalk": "2.4.2"
+ "chalk": "^2.4.2"
}
},
"log-update": {
@@ -1054,9 +1061,9 @@
"resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz",
"integrity": "sha1-iDKP19HOeTiykoN0bwsbwSayRwg=",
"requires": {
- "ansi-escapes": "3.2.0",
- "cli-cursor": "2.1.0",
- "wrap-ansi": "3.0.1"
+ "ansi-escapes": "^3.0.0",
+ "cli-cursor": "^2.0.0",
+ "wrap-ansi": "^3.0.1"
},
"dependencies": {
"cli-cursor": {
@@ -1064,7 +1071,7 @@
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
"integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
"requires": {
- "restore-cursor": "2.0.0"
+ "restore-cursor": "^2.0.0"
}
},
"onetime": {
@@ -1072,7 +1079,7 @@
"resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
"integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
"requires": {
- "mimic-fn": "1.2.0"
+ "mimic-fn": "^1.0.0"
}
},
"restore-cursor": {
@@ -1080,8 +1087,8 @@
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
"integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
"requires": {
- "onetime": "2.0.1",
- "signal-exit": "3.0.3"
+ "onetime": "^2.0.0",
+ "signal-exit": "^3.0.2"
}
}
}
@@ -1119,7 +1126,7 @@
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"requires": {
- "brace-expansion": "1.1.11"
+ "brace-expansion": "^1.1.7"
}
},
"minimist": {
@@ -1132,7 +1139,7 @@
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
"requires": {
- "minimist": "1.2.5"
+ "minimist": "^1.2.5"
}
},
"moment": {
@@ -1155,7 +1162,7 @@
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"requires": {
- "path-key": "2.0.1"
+ "path-key": "^2.0.0"
}
},
"number-is-nan": {
@@ -1178,7 +1185,7 @@
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"requires": {
- "wrappy": "1.0.2"
+ "wrappy": "1"
}
},
"onetime": {
@@ -1246,8 +1253,8 @@
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"requires": {
- "end-of-stream": "1.4.4",
- "once": "1.4.0"
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
}
},
"punycode": {
@@ -1275,13 +1282,13 @@
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
"requires": {
- "core-util-is": "1.0.2",
- "inherits": "2.0.4",
- "isarray": "1.0.0",
- "process-nextick-args": "2.0.1",
- "safe-buffer": "5.1.2",
- "string_decoder": "1.1.1",
- "util-deprecate": "1.0.2"
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
},
"dependencies": {
"safe-buffer": {
@@ -1296,7 +1303,7 @@
"resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz",
"integrity": "sha1-TKdUCBx/7GP1BeT6qCWqBs1mnb4=",
"requires": {
- "throttleit": "1.0.0"
+ "throttleit": "^1.0.0"
}
},
"restore-cursor": {
@@ -1304,8 +1311,8 @@
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz",
"integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=",
"requires": {
- "exit-hook": "1.1.1",
- "onetime": "1.1.0"
+ "exit-hook": "^1.0.0",
+ "onetime": "^1.0.0"
}
},
"rimraf": {
@@ -1313,7 +1320,7 @@
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
"integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
"requires": {
- "glob": "7.1.6"
+ "glob": "^7.1.3"
}
},
"rxjs": {
@@ -1321,7 +1328,7 @@
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz",
"integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==",
"requires": {
- "tslib": "1.13.0"
+ "tslib": "^1.9.0"
}
},
"safe-buffer": {
@@ -1344,7 +1351,7 @@
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"requires": {
- "shebang-regex": "1.0.0"
+ "shebang-regex": "^1.0.0"
}
},
"shebang-regex": {
@@ -1367,15 +1374,15 @@
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
"integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
"requires": {
- "asn1": "0.2.4",
- "assert-plus": "1.0.0",
- "bcrypt-pbkdf": "1.0.2",
- "dashdash": "1.14.1",
- "ecc-jsbn": "0.1.2",
- "getpass": "0.1.7",
- "jsbn": "0.1.1",
- "safer-buffer": "2.1.2",
- "tweetnacl": "0.14.5"
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
}
},
"string-width": {
@@ -1383,8 +1390,8 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"requires": {
- "is-fullwidth-code-point": "2.0.0",
- "strip-ansi": "4.0.0"
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^4.0.0"
},
"dependencies": {
"ansi-regex": {
@@ -1397,7 +1404,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"requires": {
- "ansi-regex": "3.0.0"
+ "ansi-regex": "^3.0.0"
}
}
}
@@ -1407,7 +1414,7 @@
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"requires": {
- "safe-buffer": "5.1.2"
+ "safe-buffer": "~5.1.0"
},
"dependencies": {
"safe-buffer": {
@@ -1422,7 +1429,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"requires": {
- "ansi-regex": "2.1.1"
+ "ansi-regex": "^2.0.0"
}
},
"strip-eof": {
@@ -1435,7 +1442,7 @@
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
"requires": {
- "has-flag": "4.0.0"
+ "has-flag": "^4.0.0"
},
"dependencies": {
"has-flag": {
@@ -1460,7 +1467,7 @@
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz",
"integrity": "sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==",
"requires": {
- "rimraf": "2.7.1"
+ "rimraf": "^2.6.3"
}
},
"tough-cookie": {
@@ -1468,8 +1475,8 @@
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
"integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
"requires": {
- "psl": "1.8.0",
- "punycode": "2.1.1"
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
}
},
"tslib": {
@@ -1482,7 +1489,7 @@
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"requires": {
- "safe-buffer": "5.2.1"
+ "safe-buffer": "^5.0.1"
}
},
"tweetnacl": {
@@ -1510,7 +1517,7 @@
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
"integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
"requires": {
- "punycode": "2.1.1"
+ "punycode": "^2.1.0"
}
},
"url": {
@@ -1544,9 +1551,9 @@
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"requires": {
- "assert-plus": "1.0.0",
+ "assert-plus": "^1.0.0",
"core-util-is": "1.0.2",
- "extsprintf": "1.3.0"
+ "extsprintf": "^1.2.0"
}
},
"which": {
@@ -1554,7 +1561,7 @@
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"requires": {
- "isexe": "2.0.0"
+ "isexe": "^2.0.0"
}
},
"wrap-ansi": {
@@ -1562,8 +1569,8 @@
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz",
"integrity": "sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=",
"requires": {
- "string-width": "2.1.1",
- "strip-ansi": "4.0.0"
+ "string-width": "^2.1.1",
+ "strip-ansi": "^4.0.0"
},
"dependencies": {
"ansi-regex": {
@@ -1576,7 +1583,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"requires": {
- "ansi-regex": "3.0.0"
+ "ansi-regex": "^3.0.0"
}
}
}
@@ -1591,8 +1598,8 @@
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
"integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
"requires": {
- "buffer-crc32": "0.2.13",
- "fd-slicer": "1.1.0"
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
}
}
}
diff --git a/tests/cypress/package.json b/tests/cypress/package.json
index a2af0bf72..e7f403f29 100644
--- a/tests/cypress/package.json
+++ b/tests/cypress/package.json
@@ -22,6 +22,7 @@
"cypress-file-upload": "^4.0.7",
"cypress-plugin-retries": "^1.5.2",
"cypress-terminal-report": "^1.4.1",
- "cypress-wait-until": "^1.7.1"
+ "cypress-wait-until": "^1.7.1",
+ "ini": "^2.0.0"
}
}
From de8c31ed512c82663c4a4b267ebc2a30614ea165 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Mon, 11 Jan 2021 19:07:54 +0100
Subject: [PATCH 27/28] =?UTF-8?q?=E2=9C=A8=20Tracking:=20add=20printer=20s?=
=?UTF-8?q?tate=20to=20ping=20event?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
That will allow us to get a general idea of actively used vs idle
instances. A huge number of instances in an error state could also be an
indicator of problems with a release.
Would also be a cool thing to be able to add "this many printers are
currently printing" to data.octoprint.org
---
src/octoprint/plugins/tracking/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/octoprint/plugins/tracking/__init__.py b/src/octoprint/plugins/tracking/__init__.py
index 077b23855..5543d60a2 100644
--- a/src/octoprint/plugins/tracking/__init__.py
+++ b/src/octoprint/plugins/tracking/__init__.py
@@ -241,7 +241,8 @@ class TrackingPlugin(
return
uptime = int(monotonic_time() - self._startup_time)
- self._track("ping", octoprint_uptime=uptime)
+ printer_state = self._printer.get_state_id()
+ self._track("ping", octoprint_uptime=uptime, printer_state=printer_state)
def _track_pong(self):
if not self._settings.get_boolean(["events", "pong"]):
From 35c366095829413a6cfcfbc2c0eb3712258e9e4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?=
Date: Tue, 12 Jan 2021 16:33:02 +0100
Subject: [PATCH 28/28] =?UTF-8?q?=F0=9F=90=9B=20pmgr:=20make=20upload=20in?=
=?UTF-8?q?stall=20async=20&=20fix=20conflict=20handling?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
It turns out that a) we were not yet doing plugin installation after an
archive/file upload asynchronously, so that any delays there could still
cause timeouts, and that b) we were also not handling the conflict
situation of trying to start another plugin install while one is already
running correctly on the frontend.
This fixes both issues.
---
.../plugins/pluginmanager/__init__.py | 83 +++++++++++++------
.../pluginmanager/static/js/pluginmanager.js | 56 ++++++++-----
2 files changed, 93 insertions(+), 46 deletions(-)
diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py
index 7425d253d..15cb8e013 100644
--- a/src/octoprint/plugins/pluginmanager/__init__.py
+++ b/src/octoprint/plugins/pluginmanager/__init__.py
@@ -380,28 +380,43 @@ class PluginManagerPlugin(
)
ext = exts[0]
+ archive = tempfile.NamedTemporaryFile(delete=False, suffix=ext)
+ archive.close()
+ shutil.copy(upload_path, archive.name)
- archive = tempfile.NamedTemporaryFile(
- delete=False, suffix="{ext}".format(**locals())
- )
- try:
- archive.close()
- shutil.copy(upload_path, archive.name)
- return self.command_install(
- path=archive.name,
- name=upload_name,
- force="force" in flask.request.values
- and flask.request.values["force"] in valid_boolean_trues,
- )
- finally:
+ def perform_install(source, name, force=False):
try:
- os.remove(archive.name)
- except Exception as e:
- self._logger.warning(
- "Could not remove temporary file {path} again: {message}".format(
- path=archive.name, message=str(e)
- )
+ self.command_install(
+ path=source,
+ name=name,
+ force=force,
)
+ finally:
+ try:
+ os.remove(archive.name)
+ except Exception as e:
+ self._logger.warning(
+ "Could not remove temporary file {path} again: {message}".format(
+ path=archive.name, message=str(e)
+ )
+ )
+
+ with self._install_lock:
+ if self._install_task is not None:
+ return make_response("There's already a plugin being installed", 409)
+
+ self._install_task = threading.Thread(
+ target=perform_install,
+ args=(archive.name, upload_name),
+ kwargs={
+ "force": "force" in flask.request.values
+ and flask.request.values["force"] in valid_boolean_trues
+ },
+ )
+ self._install_task.daemon = True
+ self._install_task.start()
+
+ return jsonify(in_progress=True)
@octoprint.plugin.BlueprintPlugin.route("/export", methods=["GET"])
@no_firstrun_access
@@ -538,7 +553,7 @@ class PluginManagerPlugin(
with self._install_lock:
if self._install_task is not None:
- return make_response("There's always a plugin being installed", 409)
+ return make_response("There's already a plugin being installed", 409)
self._install_task = threading.Thread(
target=self.command_install,
@@ -636,7 +651,7 @@ class PluginManagerPlugin(
# determine type of path
if self._is_archive(path):
- return self._command_install_archive(
+ result = self._command_install_archive(
path,
source=source,
source_type=source_type,
@@ -646,12 +661,13 @@ class PluginManagerPlugin(
)
elif self._is_pythonfile(path):
- return self._command_install_pythonfile(
+ result = self._command_install_pythonfile(
path, source=source, source_type=source_type, name=name
)
else:
raise exceptions.InvalidPackageFormat()
+
except requests.exceptions.HTTPError as e:
self._logger.error("Could not fetch plugin from server, got {}".format(e))
result = {
@@ -661,7 +677,7 @@ class PluginManagerPlugin(
"reason": "Could not fetch plugin from server, got {}".format(e),
}
self._send_result_notification("install", result)
- return result
+
except exceptions.InvalidPackageFormat:
self._logger.error(
"{} is neither an archive nor a python file, can't install that.".format(
@@ -676,12 +692,29 @@ class PluginManagerPlugin(
"a plugin archive nor a single file plugin".format(source),
}
self._send_result_notification("install", result)
- return result
+
+ except Exception:
+ error_msg = (
+ "Unexpected error while trying to install plugin from {}".format(
+ source
+ )
+ )
+ self._logger.exception(error_msg)
+ result = {
+ "result": False,
+ "source": source,
+ "source_type": source_type,
+ "reason": error_msg,
+ }
+ self._send_result_notification("install", result)
+
finally:
if folder is not None:
folder.cleanup()
self._install_task = None
+ return result
+
# noinspection DuplicatedCode
def _command_install_archive(
self,
@@ -702,7 +735,7 @@ class PluginManagerPlugin(
# currently throttled, we refuse to run
error_msg = (
"System is currently throttled, refusing to install anything"
- " due to possible stability isssues"
+ " due to possible stability issues"
)
self._logger.error(error_msg)
result = {
diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
index 5b5bd9552..b0a72ccfe 100644
--- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
+++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js
@@ -435,23 +435,30 @@ $(function () {
},
done: function (e, data) {
var response = data.result;
- if (response.result) {
- self._markDone();
- } else {
- self._markDone(response.reason);
+ if (!response.in_progress) {
+ if (response.result) {
+ self._markDone();
+ } else {
+ self._markDone(response.reason);
+ }
}
self.uploadButton.unbind("click");
self.uploadFilename(undefined);
},
fail: function (e, data) {
- new PNotify({
- title: gettext("Something went wrong"),
- text: gettext("Please consult octoprint.log for details"),
- type: "error",
- hide: false
- });
- self._markDone("Could not install plugin, unknown error.");
+ if (data && data.errorThrown === "CONFLICT") {
+ // there's already a plugin being installed
+ self._markDone("There's already another plugin install in progress.");
+ } else {
+ new PNotify({
+ title: gettext("Something went wrong"),
+ text: gettext("Please consult octoprint.log for details"),
+ type: "error",
+ hide: false
+ });
+ self._markDone("Could not install plugin, unknown error.");
+ }
self.uploadButton.unbind("click");
self.uploadFilename(undefined);
}
@@ -823,16 +830,23 @@ $(function () {
var onSuccess = function (response) {
self.installUrl("");
},
- onError = function () {
- self._markDone(
- "Could not install plugin, unknown error, please consult octoprint.log for details"
- );
- new PNotify({
- title: gettext("Something went wrong"),
- text: gettext("Please consult octoprint.log for details"),
- type: "error",
- hide: false
- });
+ onError = function (jqXHR) {
+ if (jqXHR.status === 409) {
+ // there's already a plugin being installed
+ self._markDone(
+ "There's already another plugin install in progress."
+ );
+ } else {
+ self._markDone(
+ "Could not install plugin, unknown error, please consult octoprint.log for details"
+ );
+ new PNotify({
+ title: gettext("Something went wrong"),
+ text: gettext("Please consult octoprint.log for details"),
+ type: "error",
+ hide: false
+ });
+ }
};
if (reinstall) {