Skip to content

Commit 4fa060f

Browse files
fixes/inject-request-hash-action (#230)
* Moved _injectRequestHashAction position to process raw responseObject before update requestHashes * Updated package config and lock * Updated demo app package config and lock * Updated code formatting on demo app * Updated README
1 parent 2d39b2f commit 4fa060f

23 files changed

Lines changed: 1000 additions & 898 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
- [Data Retrieval and Manipulation](#data-retrieval-and-manipulation)
4343
- [Data Validation and Comparison](#data-validation-and-comparison)
4444
- [Credits](#credits)
45+
- [License](#license)
4546

4647
## Overview
4748

@@ -1059,3 +1060,7 @@ const addresses = [
10591060
alt="Dickson Palomeras"
10601061
height="40" width="40" />
10611062
</a>
1063+
1064+
## License
1065+
1066+
This project is licensed under the MIT License.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
async redirects() {
4+
return [
5+
{
6+
source: '/',
7+
destination: '/demo',
8+
permanent: true,
9+
},
10+
]
11+
},
12+
}
313

4-
export default nextConfig;
14+
export default nextConfig

apps/create-next-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
"eslint-config-next": "^16.1.4",
2424
"tailwindcss": "^4",
2525
"typescript": "5.9.3"
26-
}
26+
},
27+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
2728
}

apps/create-next-app/src/app/api/v1/addresses/[id]/route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function PUT(request) {
3232
headers: {
3333
'Content-Type': 'application/json',
3434
},
35-
}
35+
},
3636
)
3737
}
3838

@@ -47,6 +47,6 @@ export async function DELETE(request) {
4747
headers: {
4848
'Content-Type': 'application/json',
4949
},
50-
}
50+
},
5151
)
5252
}

apps/create-next-app/src/app/api/v1/addresses/route.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function GET(request) {
1515
headers: {
1616
'Content-Type': 'application/json',
1717
},
18-
}
18+
},
1919
)
2020
}
2121

@@ -26,7 +26,7 @@ export async function GET(request) {
2626
headers: {
2727
'Content-Type': 'application/json',
2828
},
29-
}
29+
},
3030
)
3131
}
3232

@@ -41,6 +41,6 @@ export async function POST(request) {
4141
headers: {
4242
'Content-Type': 'application/json',
4343
},
44-
}
44+
},
4545
)
4646
}

apps/create-next-app/src/app/api/v1/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export async function GET(request) {
1010
headers: {
1111
'Content-Type': 'application/json',
1212
},
13-
}
13+
},
1414
)
1515
}

apps/create-next-app/src/app/api/v1/users/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export async function GET(request) {
1111
headers: {
1212
'Content-Type': 'application/json',
1313
},
14-
}
14+
},
1515
)
1616
}

apps/create-next-app/src/app/demo/collection-records/getter-setter-functions/page.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,15 @@ const Page = observer(() => {
7373
className="blue-btn"
7474
onClick={() => {
7575
alert(address.get('attributes.address1'))
76-
}}
77-
>
76+
}}>
7877
Get (Address1)
7978
</button>
8079

8180
<button
8281
className="blue-btn"
8382
onClick={() =>
8483
address.set('attributes.landmark', 'New landmark')
85-
}
86-
>
84+
}>
8785
Set (Landmark)
8886
</button>
8987

@@ -96,8 +94,7 @@ const Page = observer(() => {
9694
'post-code': '1226',
9795
},
9896
})
99-
}
100-
>
97+
}>
10198
Set Properties (Landmark and Post Code)
10299
</button>
103100
</p>

apps/create-next-app/src/app/demo/collection-records/state-properties/page.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ const Page = observer(() => {
7373
className="blue-btn"
7474
onClick={() =>
7575
address.set('attributes.landmark', 'New landmark')
76-
}
77-
>
76+
}>
7877
Modify (Landmark)
7978
</button>
8079
</p>

apps/create-next-app/src/app/demo/create-collection-record-function/create-record/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Controller = () => {
1818
longitude: '121.026661',
1919
},
2020
},
21-
false
21+
false,
2222
)
2323

2424
const onSave = () => {

0 commit comments

Comments
 (0)