linny-r 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/package.json +1 -1
- package/server.js +4 -2
package/README.md
CHANGED
@@ -13,6 +13,9 @@ so as to be platform-independent and 100% transparent open source (under the MIT
|
|
13
13
|
The software comprises a server that runs on **Node.js**,
|
14
14
|
and a graphical user interface (GUI) that runs in any modern browser.
|
15
15
|
|
16
|
+
These <a href="https://sysmod.tbm.tudelft.nl/linny-r/docs/?68" target="_blank">instruction videos</a>
|
17
|
+
published on YouTube give an idea of what Linny-R can do.
|
18
|
+
|
16
19
|
User documentation for Linny-R is still scant, but it is growing. You can contribute yourself (in "wiki fashion")
|
17
20
|
via the official user documentation site <a href="https://linny-r.info" target="_blank">https://linny-r.info</a>.
|
18
21
|
Technical documentation will be developed on GitHub: https://github.com/pwgbots/linny-r/wiki
|
@@ -22,7 +25,7 @@ Technical documentation will be developed on GitHub: https://github.com/pwgbots/
|
|
22
25
|
Linny-R is developed as a JavaScript package, and requires that **Node.js** is installed on your computer.
|
23
26
|
This software can be downloaded from <a href="https://nodejs.org" target="_blank">https://nodejs.org</a>.
|
24
27
|
Make sure that you choose the correct installer for your computer.
|
25
|
-
Linny-R is developed using the _current_ release. Presently (October 2022) this is
|
28
|
+
Linny-R is developed using the _current_ release. Presently (October 2022) this is 19.0.0.
|
26
29
|
|
27
30
|
Run the installer and accept the default settings.
|
28
31
|
There is **no** need to install the optional _Tools for Native Modules_.
|
@@ -33,7 +36,7 @@ Verify the installation by typing:
|
|
33
36
|
|
34
37
|
``node --version``
|
35
38
|
|
36
|
-
The response should be the version number of Node.js, for example:
|
39
|
+
The response should be the version number of Node.js, for example: v19.0.0.
|
37
40
|
|
38
41
|
## Installing Linny-R
|
39
42
|
It is advisable to install Linny-R in a directory on your computer, not in a cloud.
|
@@ -166,8 +169,8 @@ Open the Command Line Interface (CLI) of your computer, change to your `WORKING_
|
|
166
169
|
This response should be something similar to:
|
167
170
|
|
168
171
|
<pre>
|
169
|
-
Node.js server for Linny-R version 1.1.
|
170
|
-
Node.js version:
|
172
|
+
Node.js server for Linny-R version 1.1.14
|
173
|
+
Node.js version: v19.0.0
|
171
174
|
... etc.
|
172
175
|
</pre>
|
173
176
|
|
package/package.json
CHANGED
package/server.js
CHANGED
@@ -476,7 +476,7 @@ function repoAdd(res, sp) {
|
|
476
476
|
url = 'https://' + (url ? url.trim() : '');
|
477
477
|
let i = url.length - 1;
|
478
478
|
while(url[i] === '/') i--;
|
479
|
-
url = url.substring(0, i);
|
479
|
+
url = url.substring(0, i+1);
|
480
480
|
try {
|
481
481
|
test = new URL(url);
|
482
482
|
} catch(err) {
|
@@ -491,6 +491,7 @@ function repoAdd(res, sp) {
|
|
491
491
|
postRequest(url, {action: 'id'},
|
492
492
|
// The `on_ok` function
|
493
493
|
(data, res) => {
|
494
|
+
data = data.toString();
|
494
495
|
// Response should be the URL of the repository
|
495
496
|
if(data !== url) {
|
496
497
|
servePlainText(res, 'WARNING: Not a Linny-R repository');
|
@@ -504,6 +505,7 @@ function repoAdd(res, sp) {
|
|
504
505
|
postRequest(url, {action: 'access', repo: rname, token: token},
|
505
506
|
// The `on_ok` function
|
506
507
|
(data, res) => {
|
508
|
+
data = data.toString();
|
507
509
|
if(data !== 'Authenticated') {
|
508
510
|
servePlainText(res, data);
|
509
511
|
return;
|
@@ -511,7 +513,7 @@ function repoAdd(res, sp) {
|
|
511
513
|
list = fs.readFileSync(
|
512
514
|
WORKSPACE.repositories, 'utf8').split('\n');
|
513
515
|
for(let i = 0; i < list.length; i++) {
|
514
|
-
nu =
|
516
|
+
const nu = list[i].trim().split('|');
|
515
517
|
if(nu[0] !== 'local host') {
|
516
518
|
if(nu[0] == rname) {
|
517
519
|
servePlainText(res,
|