Skip to content

Commit

Permalink
chore(.prettierignore): add .next and build directories to prettier i…
Browse files Browse the repository at this point in the history
…gnore list

refactor(route.ts): remove console.log statement from POST function

deps(package.json): remove unused dependency wasm-loader
  • Loading branch information
masterkain committed May 19, 2023
1 parent e05bd1b commit c612b08
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 100 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.next
build
1 change: 0 additions & 1 deletion app/api/v3/notices/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
102 changes: 5 additions & 97 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c612b08

Please sign in to comment.