From 850091188f9dea1edb4a94a4a8f2906722423a3f Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 21 Oct 2019 10:16:32 +0200 Subject: [PATCH] update packages, fix readme --- README.md | 7 +++++-- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d2c634c..5a15a84 100644 --- a/README.md +++ b/README.md @@ -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' diff --git a/package-lock.json b/package-lock.json index 66ec036..1a5b213 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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" } diff --git a/package.json b/package.json index 1b90cb1..9e37847 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,6 @@ "dependencies": { "body-parser": "^1.19.0", "express": "^4.17.1", - "postgresupdater": "^1.0.13" + "postgresupdater": "^1.0.14" } }