Skip to content

Commit

Permalink
* Add node 20 to package.json
Browse files Browse the repository at this point in the history
* Fix incorrect api methods structure in scaffolding in the client
  • Loading branch information
rgbabaev committed Sep 1, 2024
1 parent cd5e340 commit 536a63a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JavaScript/9-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"main": "main.js",
"engines": {
"node": "14 || 16 || 18"
"node": "14 || 16 || 18 || 20"
},
"scripts": {
"start": "node --experimental-vm-modules main.js"
Expand Down
9 changes: 8 additions & 1 deletion JavaScript/9-logger/static/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,17 @@ const api = scaffold(
delete: ['id'],
find: ['mask'],
},
city: {
read: ['id'],
create: ['record'],
update: ['id', 'record'],
delete: ['id'],
},
country: {
read: ['id'],
create: ['record'],
update: ['id', 'record'],
delete: ['id'],
find: ['mask'],
},
},
transports.http,
Expand Down

0 comments on commit 536a63a

Please sign in to comment.