update packages, fix readme

This commit is contained in:
Timo Hocker 2019-10-21 10:16:32 +02:00
parent b6bccfb07f
commit 850091188f
3 changed files with 9 additions and 6 deletions

View File

@ -54,18 +54,21 @@ window.onerror = async function(msg, source, lineno, colno, error) {
let data;
if (error) {
data = {
app: 'app1',
type: 'error',
client: appClientId,
message: msg,
stack: error.stack,
misc: `v: ${appVersion} src: ${source} ln: ${lineno} col: ${colno}`
};
} else {
data = { message: msg };
data = { app: 'app1', type: 'error', client: appClientId, message: msg };
}
/*
* the first 4 characters of the client will be displayed as app
* the remaining characters (up to 64) will be displayed as client
*/
fetch('http://localhost:8080?client=app1' + appClientId, {
fetch('http://localhost:8080', {
method: 'POST',
body: JSON.stringify(data),
mode: 'no-cors'

6
package-lock.json generated
View File

@ -336,9 +336,9 @@
}
},
"postgresupdater": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/postgresupdater/-/postgresupdater-1.0.13.tgz",
"integrity": "sha512-pKPEZCR42lLjx8uYmf+Bqccdmx5tUa1CHGsNK91AEpEy8lM9CLuXkitLHFaiSG37bUweqSdd4C5a//mGTS/9Vw==",
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/postgresupdater/-/postgresupdater-1.0.14.tgz",
"integrity": "sha512-fAH6PWFE+/h7F8Pvwm3KCjkxqqbBO2+f75MrCox2bq2ISd1wzCs3kP0Yz+r8fZDLdORM0pJpV6tLHKd3PEBUcQ==",
"requires": {
"pg": "^7.12.1"
}

View File

@ -15,6 +15,6 @@
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"postgresupdater": "^1.0.13"
"postgresupdater": "^1.0.14"
}
}