update packages, fix readme
This commit is contained in:
parent
b6bccfb07f
commit
850091188f
@ -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
6
package-lock.json
generated
@ -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"
|
||||
}
|
||||
|
@ -15,6 +15,6 @@
|
||||
"dependencies": {
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "^4.17.1",
|
||||
"postgresupdater": "^1.0.13"
|
||||
"postgresupdater": "^1.0.14"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user