diff --git a/app.toml b/app.toml index 539aae1..414960e 100644 --- a/app.toml +++ b/app.toml @@ -8,6 +8,7 @@ account_id = "bc2eda78f9c47c829244fe7e14d72e50" route = "apiker-demo.volted.co/*" workers_dev = false compatibility_date = "2021-10-12" +node_compat = true main = "./dist/shim.mjs" [build] diff --git a/package-lock.json b/package-lock.json index 7c5d21a..69a4aa9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,6 @@ "html-webpack-plugin": "^5.3.2", "jest": "^27.5.1", "path-to-regexp": "^6.2.0", - "prettier": "^1.19.1", "terser-webpack-plugin": "^5.3.1", "typescript": "^4.6.3", "webpack": "^5.72.0", @@ -3477,6 +3476,38 @@ "integrity": "sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA==", "dev": true }, + "node_modules/@types/prop-types": { + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", + "dev": true + }, + "node_modules/@types/react": { + "version": "18.2.46", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.46.tgz", + "integrity": "sha512-nNCvVBcZlvX4NU1nRRNV/mFl1nNRuTuslAJglQsq+8ldXe5Xv0Wd2f7WTE3jOxhLH2BFfiZGC6GCp+kHQbgG+w==", + "dev": true, + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.2.18", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.18.tgz", + "integrity": "sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==", + "dev": true, + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/scheduler": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", + "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", + "dev": true + }, "node_modules/@types/stack-trace": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/stack-trace/-/stack-trace-0.0.29.tgz", @@ -4320,10 +4351,14 @@ } }, "node_modules/apiker": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/apiker/-/apiker-1.6.8.tgz", - "integrity": "sha512-0deApQ1w9qB93uzSaPps42/hMmFsfQ0xq50ftbnnSq3i12YFuL9fmkBjU54m988N4KZzK9U7ZDi0FLcyUsR60w==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/apiker/-/apiker-1.7.1.tgz", + "integrity": "sha512-2/BzX/7CNHbpR8KqLErvgPXLLvJ3f2acnFR+FrOibSFyEhT3wN2PDulCSsqO65RSlErKH9HUSVcDhkUrsOnImQ==", "dev": true, + "dependencies": { + "@types/react": "^18.2.45", + "@types/react-dom": "^18.2.18" + }, "bin": { "apiker": "bin/index.js" } @@ -5500,6 +5535,12 @@ "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", "dev": true }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "dev": true + }, "node_modules/data-urls": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", @@ -9922,18 +9963,6 @@ "node": ">= 0.8.0" } }, - "node_modules/prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/pretty-error": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", @@ -13955,6 +13984,38 @@ "integrity": "sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA==", "dev": true }, + "@types/prop-types": { + "version": "15.7.11", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz", + "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==", + "dev": true + }, + "@types/react": { + "version": "18.2.46", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.46.tgz", + "integrity": "sha512-nNCvVBcZlvX4NU1nRRNV/mFl1nNRuTuslAJglQsq+8ldXe5Xv0Wd2f7WTE3jOxhLH2BFfiZGC6GCp+kHQbgG+w==", + "dev": true, + "requires": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "@types/react-dom": { + "version": "18.2.18", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.18.tgz", + "integrity": "sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==", + "dev": true, + "requires": { + "@types/react": "*" + } + }, + "@types/scheduler": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz", + "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==", + "dev": true + }, "@types/stack-trace": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/stack-trace/-/stack-trace-0.0.29.tgz", @@ -14556,10 +14617,14 @@ } }, "apiker": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/apiker/-/apiker-1.6.8.tgz", - "integrity": "sha512-0deApQ1w9qB93uzSaPps42/hMmFsfQ0xq50ftbnnSq3i12YFuL9fmkBjU54m988N4KZzK9U7ZDi0FLcyUsR60w==", - "dev": true + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/apiker/-/apiker-1.7.1.tgz", + "integrity": "sha512-2/BzX/7CNHbpR8KqLErvgPXLLvJ3f2acnFR+FrOibSFyEhT3wN2PDulCSsqO65RSlErKH9HUSVcDhkUrsOnImQ==", + "dev": true, + "requires": { + "@types/react": "^18.2.45", + "@types/react-dom": "^18.2.18" + } }, "argparse": { "version": "1.0.10", @@ -15530,6 +15595,12 @@ } } }, + "csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "dev": true + }, "data-urls": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", @@ -18836,12 +18907,6 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, - "prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", - "dev": true - }, "pretty-error": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", diff --git a/package.json b/package.json index 29af713..f85af3e 100644 --- a/package.json +++ b/package.json @@ -39,13 +39,12 @@ "html-webpack-plugin": "^5.3.2", "jest": "^27.5.1", "path-to-regexp": "^6.2.0", - "prettier": "^1.19.1", "terser-webpack-plugin": "^5.3.1", "typescript": "^4.6.3", "webpack": "^5.72.0", "webpack-cli": "^4.9.2", - "yaml": "^2.0.0", - "wrangler": "latest" + "wrangler": "latest", + "yaml": "^2.0.0" }, "jest": { "moduleFileExtensions": [ diff --git a/src/index.js b/src/index.js index 1c4d425..735da3f 100644 --- a/src/index.js +++ b/src/index.js @@ -14,11 +14,11 @@ apiker.init({ limitRequestsPerMinute: 30 }, debug: true, - adminPanel: false, + adminPanel: true, objectStateMapping: { CounterUser: OBMT.SIGNEDIP, RateLimit: OBMT.SIGNEDIP, Logs: OBMT.SIGNEDIP, - Bans: OBMT.SIGNEDIP + Bans: "userId" } });