From c612b08a6ec85ff00ab21e864e7dd4f575b26455 Mon Sep 17 00:00:00 2001 From: Claudio Poli Date: Fri, 19 May 2023 23:21:38 +0200 Subject: [PATCH] chore(.prettierignore): add .next and build directories to prettier ignore list refactor(route.ts): remove console.log statement from POST function deps(package.json): remove unused dependency wasm-loader --- .prettierignore | 2 + app/api/v3/notices/route.ts | 1 - package.json | 3 +- yarn.lock | 102 ++---------------------------------- 4 files changed, 8 insertions(+), 100 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..1d2610ff --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +.next +build diff --git a/app/api/v3/notices/route.ts b/app/api/v3/notices/route.ts index 725f1c8a..018cf8f7 100644 --- a/app/api/v3/notices/route.ts +++ b/app/api/v3/notices/route.ts @@ -86,7 +86,6 @@ async function POST(request: NextRequest) { const customNanoid = customAlphabet(urlAlphabet, 21); // assuming airbroke frontend is deployed alongside collector const responseJSON = { id: customNanoid(), url: `${getServerHostname(request)}/projects/${project.id}/notices` }; - console.log(responseJSON); // Log the response JSON return NextResponse.json(responseJSON, { status: 201 }); } diff --git a/package.json b/package.json index 72136c76..e585c196 100644 --- a/package.json +++ b/package.json @@ -52,8 +52,7 @@ "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "prisma": "4.14.1", - "ts-node": "^10.9.1", - "wasm-loader": "^1.3.0" + "ts-node": "^10.9.1" }, "prisma": { "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts" diff --git a/yarn.lock b/yarn.lock index cefa5c5a..734315a1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -43,7 +43,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.0.0-beta.36, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.18.6, @babel/code-frame@npm:^7.21.4": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.18.6, @babel/code-frame@npm:^7.21.4": version: 7.21.4 resolution: "@babel/code-frame@npm:7.21.4" dependencies: @@ -59,7 +59,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.0.0-beta.39, @babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3": +"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3": version: 7.21.8 resolution: "@babel/core@npm:7.21.8" dependencies: @@ -411,7 +411,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.0.0-beta.39, @babel/traverse@npm:^7.21.5, @babel/traverse@npm:^7.7.2": +"@babel/traverse@npm:^7.21.5, @babel/traverse@npm:^7.7.2": version: 7.21.5 resolution: "@babel/traverse@npm:7.21.5" dependencies: @@ -429,7 +429,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.0.0-beta.39, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.4, @babel/types@npm:^7.21.5, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.18.6, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.0, @babel/types@npm:^7.21.4, @babel/types@npm:^7.21.5, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": version: 7.21.5 resolution: "@babel/types@npm:7.21.5" dependencies: @@ -1624,7 +1624,6 @@ __metadata: timeago-react: ^3.0.6 ts-node: ^10.9.1 typescript: ^5.0.4 - wasm-loader: ^1.3.0 languageName: unknown linkType: soft @@ -1988,15 +1987,6 @@ __metadata: languageName: node linkType: hard -"babylon@npm:^7.0.0-beta.39": - version: 7.0.0-beta.47 - resolution: "babylon@npm:7.0.0-beta.47" - bin: - babylon: ./bin/babylon.js - checksum: f6ce13f2549d4770fe6de9a5e5bb86744600f45db59fc8d206758474933ed8294d55bfb237148180dd1c62c9a3f21054a52ffb5fc74a3b45b906b676dbc899b5 - languageName: node - linkType: hard - "balanced-match@npm:^1.0.0": version: 1.0.2 resolution: "balanced-match@npm:1.0.2" @@ -2018,13 +2008,6 @@ __metadata: languageName: node linkType: hard -"big.js@npm:^5.2.2": - version: 5.2.2 - resolution: "big.js@npm:5.2.2" - checksum: b89b6e8419b097a8fb4ed2399a1931a68c612bce3cfd5ca8c214b2d017531191070f990598de2fc6f3f993d91c0f08aa82697717f6b3b8732c9731866d233c9e - languageName: node - linkType: hard - "binary-extensions@npm:^2.0.0": version: 2.2.0 resolution: "binary-extensions@npm:2.2.0" @@ -2867,13 +2850,6 @@ __metadata: languageName: node linkType: hard -"emojis-list@npm:^3.0.0": - version: 3.0.0 - resolution: "emojis-list@npm:3.0.0" - checksum: ddaaa02542e1e9436c03970eeed445f4ed29a5337dfba0fe0c38dfdd2af5da2429c2a0821304e8a8d1cadf27fdd5b22ff793571fa803ae16852a6975c65e8e70 - languageName: node - linkType: hard - "encoding@npm:^0.1.13": version: 0.1.13 resolution: "encoding@npm:0.1.13" @@ -5143,7 +5119,7 @@ __metadata: languageName: node linkType: hard -"json5@npm:^1.0.1, json5@npm:^1.0.2": +"json5@npm:^1.0.2": version: 1.0.2 resolution: "json5@npm:1.0.2" dependencies: @@ -5246,17 +5222,6 @@ __metadata: languageName: node linkType: hard -"loader-utils@npm:^1.1.0": - version: 1.4.2 - resolution: "loader-utils@npm:1.4.2" - dependencies: - big.js: ^5.2.2 - emojis-list: ^3.0.0 - json5: ^1.0.1 - checksum: eb6fb622efc0ffd1abdf68a2022f9eac62bef8ec599cf8adb75e94d1d338381780be6278534170e99edc03380a6d29bc7eb1563c89ce17c5fed3a0b17f1ad804 - languageName: node - linkType: hard - "locate-path@npm:^5.0.0": version: 5.0.0 resolution: "locate-path@npm:5.0.0" @@ -5298,13 +5263,6 @@ __metadata: languageName: node linkType: hard -"long@npm:^3.2.0": - version: 3.2.0 - resolution: "long@npm:3.2.0" - checksum: bc27bdeab42cb2f25d0a0faf5fbf77b657bd59236ae0ed649c44f91f35e632230ebd0c62d208bb4e9c69ca558a45e9c9c0810e6b5c0380a1754b8f3b5b7b62d7 - languageName: node - linkType: hard - "loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0" @@ -7886,56 +7844,6 @@ __metadata: languageName: node linkType: hard -"wasm-dce@npm:^1.0.0": - version: 1.0.2 - resolution: "wasm-dce@npm:1.0.2" - dependencies: - "@babel/core": ^7.0.0-beta.39 - "@babel/traverse": ^7.0.0-beta.39 - "@babel/types": ^7.0.0-beta.39 - babylon: ^7.0.0-beta.39 - webassembly-interpreter: 0.0.30 - checksum: be9049f4a459cf8cfe26cef0909fea9e6174172cf9c95aaba835185ef6b0686d4f9d3f96eb524e82b3e2a817a8881674910fe83a7b8da8291c86771b55df9311 - languageName: node - linkType: hard - -"wasm-loader@npm:^1.3.0": - version: 1.3.0 - resolution: "wasm-loader@npm:1.3.0" - dependencies: - loader-utils: ^1.1.0 - wasm-dce: ^1.0.0 - peerDependencies: - wasm-dce: 1.x - checksum: c5c1bbcd99f1daec5475121bc5ef0d6eb05641758b16cdb0dcf21c196dc97beda800192f73a9bd0551bb872ea3d1036543a95f44c91da742fddb19d216714e1c - languageName: node - linkType: hard - -"webassembly-floating-point-hex-parser@npm:0.1.2": - version: 0.1.2 - resolution: "webassembly-floating-point-hex-parser@npm:0.1.2" - checksum: 96ac236eacb749ea4a6e7e8241a95745cafcdf8d929d0544dc74830e3bf81e5e83fc5793b52155a2681335ae68dcafe7b843361480e913e985057eb59e16948e - languageName: node - linkType: hard - -"webassembly-interpreter@npm:0.0.30": - version: 0.0.30 - resolution: "webassembly-interpreter@npm:0.0.30" - dependencies: - "@babel/code-frame": ^7.0.0-beta.36 - long: ^3.2.0 - webassembly-floating-point-hex-parser: 0.1.2 - bin: - wasm: ./lib/bin/repl.js - wasm2wast: ./lib/bin/wasm2wast.js - wasmast: ./lib/bin/wasmast.js - wasmdump: ./lib/bin/wasmdump.js - wasmrun: ./lib/bin/wasmrun.js - wastast: ./lib/bin/wastast.js - checksum: a6834dc8e91a56826e4991e2d5cc9b8c0488901e03045b0e6fa76423927ea332144d779c4feccb240f91fc6c848de440d47e0f36d66b900b0671b9a43a6eaac9 - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1"