@jetthai/cuora 1.1.221-layout → 1.1.221-layout-1
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 +2 -0
- package/package.json +1 -1
- package/src/machine/common.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.221-layout-1](https://github.com/jetthai/cuora-module/compare/v1.1.221-layout...v1.1.221-layout-1) (2024-02-06)
|
|
6
|
+
|
|
5
7
|
### [1.1.221-layout](https://github.com/jetthai/cuora-module/compare/v1.1.221...v1.1.221-layout) (2024-02-02)
|
|
6
8
|
|
|
7
9
|
### [1.1.221](https://github.com/jetthai/cuora-module/compare/v1.1.220...v1.1.221) (2024-01-23)
|
package/package.json
CHANGED
package/src/machine/common.js
CHANGED
|
@@ -269,8 +269,8 @@ export default function (request) {
|
|
|
269
269
|
},
|
|
270
270
|
services: {
|
|
271
271
|
fetchConfig: async (context, event) => {
|
|
272
|
-
const [
|
|
273
|
-
return { siteConfig: JSON.parse(window.atob(config)), layoutConfig: JSON.parse(window.atob(
|
|
272
|
+
const [site, layout] = await Promise.all([request.send(api.getConfig({ appSecret })), request.send(api.getLayoutConfig({ appSecret }))])
|
|
273
|
+
return { siteConfig: JSON.parse(window.atob(site.config)), layoutConfig: JSON.parse(window.atob(layout.config)) }
|
|
274
274
|
},
|
|
275
275
|
fetchFeeds: async (context, event) => {
|
|
276
276
|
return await request.send(api.feeds({ appSecret }))
|