@adonis-agora/payments-dashboard 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -1
- package/dist/spa/assets/index-DtMpe2lE.js +10 -0
- package/dist/spa/assets/index-DtMpe2lE.js.map +1 -0
- package/dist/spa/index.html +1 -1
- package/package.json +1 -1
- package/dist/spa/assets/index-DsNg6yNC.js +0 -10
- package/dist/spa/assets/index-DsNg6yNC.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @adonis-agora/payments-dashboard
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#179](https://github.com/DavideCarvalho/adonis-agora-payments/pull/179) [`6968caf`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/6968cafa9897c05669886d0472f35ca82111c228) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - perf: memoize the `Intl.NumberFormat`/`Intl.DateTimeFormat` instances behind the money, count and date cell formatters instead of constructing a new one per cell on every refetch (~20-50x cheaper per formatted value).
|
|
8
|
+
|
|
3
9
|
## 0.5.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -46,7 +46,9 @@ export default defineConfig({
|
|
|
46
46
|
|
|
47
47
|
**Auth defaults to the same posture as `@adonis-agora/durable`'s console**: open outside production;
|
|
48
48
|
in production it requires a bearer token equal to `PAYMENTS_DASHBOARD_TOKEN`, and denies everything
|
|
49
|
-
when that variable is unset. Replace `authorize` with your own guard
|
|
49
|
+
when that variable is unset. Replace `authorize` with your own guard — it returns `true`/`false` or
|
|
50
|
+
`{ allowed, reason?: 'unauthenticated' | 'forbidden' }` (`401` for `unauthenticated`, `403` for any
|
|
51
|
+
other denial or a throw) — and/or add the optional
|
|
50
52
|
`dashboardAuth` session gate (a built-in login page and/or an "open the console from your app"
|
|
51
53
|
endpoint) on top of it.
|
|
52
54
|
|