File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " echo \" Error: no test specified\" && exit 1" ,
9
9
"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}" ,
12
12
"lint" : " npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
13
13
},
14
14
"license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change 1
1
window . paypal
2
2
. Buttons ( {
3
- createOrder : async ( ) => {
3
+ async createOrder ( ) {
4
4
try {
5
5
const response = await fetch ( "/api/orders" , {
6
6
method : "POST" ,
@@ -36,7 +36,7 @@ window.paypal
36
36
resultMessage ( `Could not initiate PayPal Checkout...<br><br>${ error } ` ) ;
37
37
}
38
38
} ,
39
- onApprove : async ( data , actions ) => {
39
+ async onApprove ( data , actions ) {
40
40
try {
41
41
const response = await fetch ( `/api/orders/${ data . orderID } /capture` , {
42
42
method : "POST" ,
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " echo \" Error: no test specified\" && exit 1" ,
9
9
"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}" ,
12
12
"lint" : " npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
13
13
},
14
14
"license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments