Upgrading to node 18 LTS. Seems the only major change is a few new security defects in the qs library, and defaulting to IPv6 in some cases.

main
Zed A. Shaw 2 years ago
parent 078543e916
commit a5d8215d43
  1. 4
      admin/bando/demos/WTVideo.svelte.md
  2. 2
      commands/build.js
  3. 2
      commands/init.js
  4. 2
      commands/templates/client/config.js
  5. 2
      commands/templates/secrets/config.json
  6. 1842
      package-lock.json
  7. 5
      package.json
  8. 2
      queues/live.js
  9. 2
      rendered/pages/live/index.js
  10. 2
      static/djenterator/ui_test.js
  11. 2
      tests/ui/livestream.js

@ -2,7 +2,7 @@ The [WebTorrent](https://webtorrent.io) project provides a way for websites to
share the bandwidth load with the users viewing content. It works on almost any
content, but the first thing I I implemented is for Video.
This will most likely *only* work if you have your server on `localhost:5001` since the torrent file is configured for that. Also, the default `npm run dev` will run the simple tracker implementation found in `services/tracker.js`. If you want to generate the torrents again then run:
This will most likely *only* work if you have your server on `127.0.0.1` since the torrent file is configured for that. Also, the default `npm run dev` will run the simple tracker implementation found in `services/tracker.js`. If you want to generate the torrents again then run:
```
sh scripts/mktorrents.sh sample.mp4
@ -14,7 +14,7 @@ It uses the [mktorrents](https://github.com/pobrn/mktorrent) to generate the tor
needed if you want to add extra protections to people accessing your content
only after they log in.
* `-l 15` -- Sets the piece length to 15.
* `-w localhost:5001` -- Sets an initial web URL to use as a source. You
* `-w 127.0.0.1` -- Sets an initial web URL to use as a source. You
should remove this if you want them to only go through the tracker and other
users.

@ -18,7 +18,7 @@ export const options = [
];
const CWD = process.cwd();
const socket = io("ws://localhost:5001");
const socket = io("ws://127.0.0.1:5001");
const dollarImport = () => ({
name: "dollarImport",

@ -56,7 +56,7 @@ export const main = async (opts) => {
question("When you're done hit ENTER.");
// open the registration page
const url = "http://localhost:5001/client/#/register/"
const url = "http://127.0.0.1:5001/client/#/register/"
good(`Opening ${url}`);
if(process.platform === "win32") {

@ -23,7 +23,7 @@ export const btcpay_url = 'https://pay.yoursite.com/modal/btcpay.js';
// brought over from ljsthw but need to adapt to the new product setting
export const product_id = product.id;
export const base_host = 'http://localhost:5001';
export const base_host = 'http://127.0.0.1:5001';
export const support_email = "help@yourcompany.com";

@ -21,7 +21,7 @@
},
"canary_payments": "CANARY",
"base_host": "http://localhost:5001",
"base_host": "http://127.0.0.1:5001",
"bull_config": {
"redis": {

1842
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -36,7 +36,6 @@
"@rollup/plugin-node-resolve": "^11.2.0",
"@rollup/plugin-replace": "^2.4.1",
"acorn": "^8.2.4",
"browser-sync": "^2.26.14",
"commander": "^9.2.0",
"eslint": "^7.32.0",
"eslint-plugin-svelte3": "^3.2.0",
@ -120,11 +119,13 @@
"sirv-cli": "^1.0.0",
"slugify": "^1.6.2",
"snarkdown": "^2.0.0",
"socket.io": "^4.5.3",
"socket.io": "^4.5.4",
"socket.io-client": "^4.5.4",
"sqlite3": "^5.1.2",
"stripe": "^10.11.0",
"svelte-spa-router": "^3.1.0",
"svgson": "^5.2.1",
"ua-parser-js": "^1.0.32",
"uniqueid": "^1.0.0",
"uuid": "^8.3.2",
"Validator": "^1.1.2"

@ -4,7 +4,7 @@ import { Livestream } from "../lib/models.js";
import { io } from "socket.io-client";
const socket = io("ws://localhost:5001");
const socket = io("ws://127.0.0.1:5001");
socket.io.on("error", (error) => {
console.error(error);

@ -1,7 +1,7 @@
import fetch from "node-fetch";
import assert from "assert";
import slugify from "slugify";
const base_host = "http://localhost:5001";
const base_host = "http://127.0.0.1:5001";
export const get = async (url) => {
assert(url && url[0] === "/", `url must start with / you have ${url}`);

@ -2,7 +2,7 @@ import test from 'ava';
import {login, register_user, sleep, form, random_user, expect, wait, tid, playstart, playstop} from '../../lib/testing.js';
import {knex} from '../../lib/ormish.js';
test.before(async t => t.context = await playstart('http://localhost:5001/client/#/'));
test.before(async t => t.context = await playstart('http://127.0.0.1:5001/client/#/'));
test.after(async t => {
await playstop(t.context.browser, t.context.p);

@ -13,7 +13,7 @@ const fixture = {
};
test.before(async t => {
t.context = await playstart('http://localhost:5001/client/#/live/')
t.context = await playstart('http://127.0.0.1:5001/client/#/live/')
const count = await Livestream.count({state: "pending"});

Loading…
Cancel
Save