File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 77 "scripts" : {
88 "test" : " echo \" Error: no test specified\" && exit 1" ,
99 "start" : " nodemon server/server.js" ,
10- "format" : " npx prettier --write **.{js,md}" ,
11- "format:check" : " npx prettier --check **.{js,md}" ,
10+ "format" : " npx prettier --write **/* .{js,md}" ,
11+ "format:check" : " npx prettier --check **/* .{js,md}" ,
1212 "lint" : " npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
1313 },
1414 "license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change 11window . paypal
22 . Buttons ( {
3- createOrder : async ( ) => {
3+ async createOrder ( ) {
44 try {
55 const response = await fetch ( "/api/orders" , {
66 method : "POST" ,
@@ -36,7 +36,7 @@ window.paypal
3636 resultMessage ( `Could not initiate PayPal Checkout...<br><br>${ error } ` ) ;
3737 }
3838 } ,
39- onApprove : async ( data , actions ) => {
39+ async onApprove ( data , actions ) {
4040 try {
4141 const response = await fetch ( `/api/orders/${ data . orderID } /capture` , {
4242 method : "POST" ,
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "test" : " echo \" Error: no test specified\" && exit 1" ,
99 "start" : " nodemon server/server.js" ,
10- "format" : " npx prettier --write **.{js,md}" ,
11- "format:check" : " npx prettier --check **.{js,md}" ,
10+ "format" : " npx prettier --write **/* .{js,md}" ,
11+ "format:check" : " npx prettier --check **/* .{js,md}" ,
1212 "lint" : " npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
1313 },
1414 "license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments