Updated packages. Allow url in query strings.

This commit is contained in:
Mike Cao 2020-09-02 15:13:45 -07:00
parent 353907e71d
commit a3e920d944
4 changed files with 305 additions and 510 deletions

View File

@ -34,7 +34,6 @@ export default prisma;
export async function runQuery(query) {
return query.catch(e => {
console.error(e);
throw e;
});
}

View File

@ -13,7 +13,11 @@ export const urlFilter = (data, { raw }) => {
const cleanUrl = url => {
try {
const { pathname, searchParams } = new URL(url);
const { pathname, search, searchParams } = new URL(url);
if (search.startsWith('?/')) {
return `${pathname}${search}`;
}
const path = removeTrailingSlash(pathname);
const ref = searchParams.get('ref');

View File

@ -1,6 +1,6 @@
{
"name": "umami",
"version": "0.20.0",
"version": "0.21.0",
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao <mike@mikecao.com>",
"license": "MIT",
@ -39,14 +39,14 @@
}
},
"dependencies": {
"@prisma/client": "2.5.1",
"@prisma/client": "2.6.0",
"@reduxjs/toolkit": "^1.4.0",
"bcrypt": "^5.0.0",
"chart.js": "^2.9.3",
"classnames": "^2.2.6",
"cookie": "^0.4.1",
"cors": "^2.8.5",
"date-fns": "^2.16.0",
"date-fns": "^2.16.1",
"date-fns-tz": "^1.0.10",
"detect-browser": "^5.1.1",
"dotenv": "^8.2.0",
@ -57,7 +57,7 @@
"jose": "^1.28.0",
"maxmind": "^4.1.4",
"moment-timezone": "^0.5.31",
"next": "^9.5.2",
"next": "^9.5.3",
"promise-polyfill": "^8.1.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
@ -75,14 +75,14 @@
"uuid": "^8.3.0"
},
"devDependencies": {
"@prisma/cli": "2.5.1",
"@prisma/cli": "2.6.0",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@svgr/webpack": "^5.4.0",
"cross-env": "^7.0.2",
"dotenv-cli": "^3.2.0",
"eslint": "^7.7.0",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.6",
@ -95,10 +95,10 @@
"postcss-preset-env": "^6.7.0",
"prettier": "^2.1.1",
"prettier-eslint": "^11.0.0",
"rollup": "^2.26.6",
"rollup": "^2.26.9",
"rollup-plugin-hashbang": "^2.2.2",
"rollup-plugin-terser": "^7.0.0",
"stylelint": "^13.6.0",
"rollup-plugin-terser": "^7.0.1",
"stylelint": "^13.7.0",
"stylelint-config-css-modules": "^2.2.0",
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-recommended": "^3.0.0"

790
yarn.lock

File diff suppressed because it is too large Load Diff