Skip to content

Commit

Permalink
Use method definition syntax and fix glob pattern for prettier (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjopa authored Aug 22, 2023
1 parent 5788f93 commit 1d0216d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions advanced-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server/server.js",
"format": "npx prettier --write **.{js,md}",
"format:check": "npx prettier --check **.{js,md}",
"format": "npx prettier --write **/*.{js,md}",
"format:check": "npx prettier --check **/*.{js,md}",
"lint": "npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
},
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions standard-integration/client/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
window.paypal
.Buttons({
createOrder: async () => {
async createOrder() {
try {
const response = await fetch("/api/orders", {
method: "POST",
Expand Down Expand Up @@ -36,7 +36,7 @@ window.paypal
resultMessage(`Could not initiate PayPal Checkout...<br><br>${error}`);
}
},
onApprove: async (data, actions) => {
async onApprove(data, actions) {
try {
const response = await fetch(`/api/orders/${data.orderID}/capture`, {
method: "POST",
Expand Down
4 changes: 2 additions & 2 deletions standard-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server/server.js",
"format": "npx prettier --write **.{js,md}",
"format:check": "npx prettier --check **.{js,md}",
"format": "npx prettier --write **/*.{js,md}",
"format:check": "npx prettier --check **/*.{js,md}",
"lint": "npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
},
"license": "Apache-2.0",
Expand Down

3 comments on commit 1d0216d

@heppyluckyedita
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FBFFM4HSMK6AJ

@heppyluckyedita
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Danangsada
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

តើអ្នកអាចជួយខ្ញុំតណើកាគនណីរបស់ខ្ញុំបានដែឬទេអគុណសរាប់កាជួយ
PayPal-JavaScript-FullStack-Standard-Checkout-Sample.zip

Please sign in to comment.