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;
|
let data;
|
||||||
if (error) {
|
if (error) {
|
||||||
data = {
|
data = {
|
||||||
|
app: 'app1',
|
||||||
|
type: 'error',
|
||||||
|
client: appClientId,
|
||||||
message: msg,
|
message: msg,
|
||||||
stack: error.stack,
|
stack: error.stack,
|
||||||
misc: `v: ${appVersion} src: ${source} ln: ${lineno} col: ${colno}`
|
misc: `v: ${appVersion} src: ${source} ln: ${lineno} col: ${colno}`
|
||||||
};
|
};
|
||||||
} else {
|
} 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 first 4 characters of the client will be displayed as app
|
||||||
* the remaining characters (up to 64) will be displayed as client
|
* the remaining characters (up to 64) will be displayed as client
|
||||||
*/
|
*/
|
||||||
fetch('http://localhost:8080?client=app1' + appClientId, {
|
fetch('http://localhost:8080', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(data),
|
body: JSON.stringify(data),
|
||||||
mode: 'no-cors'
|
mode: 'no-cors'
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -336,9 +336,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgresupdater": {
|
"postgresupdater": {
|
||||||
"version": "1.0.13",
|
"version": "1.0.14",
|
||||||
"resolved": "https://registry.npmjs.org/postgresupdater/-/postgresupdater-1.0.13.tgz",
|
"resolved": "https://registry.npmjs.org/postgresupdater/-/postgresupdater-1.0.14.tgz",
|
||||||
"integrity": "sha512-pKPEZCR42lLjx8uYmf+Bqccdmx5tUa1CHGsNK91AEpEy8lM9CLuXkitLHFaiSG37bUweqSdd4C5a//mGTS/9Vw==",
|
"integrity": "sha512-fAH6PWFE+/h7F8Pvwm3KCjkxqqbBO2+f75MrCox2bq2ISd1wzCs3kP0Yz+r8fZDLdORM0pJpV6tLHKd3PEBUcQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"pg": "^7.12.1"
|
"pg": "^7.12.1"
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"postgresupdater": "^1.0.13"
|
"postgresupdater": "^1.0.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user