dumi 2.4.12 → 2.4.13

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.
@@ -105,11 +105,8 @@ export async function getFullDemos() {
105
105
  // expand context for omit ext
106
106
  expandDemoContext(demo.context);
107
107
  });
108
-
109
- return {
110
- ...total,
111
- ...demos,
112
- };
108
+ Object.assign(total, demos);
109
+ return total;
113
110
  }, {}),
114
111
  );
115
112
  }
@@ -184,10 +181,10 @@ export async function getFullRoutesMeta(): Promise<Record<string, IRouteMeta>> {
184
181
  })),
185
182
  ).then((ret) =>
186
183
  ret.reduce(
187
- (total, { id, meta }) => ({
188
- ...total,
189
- [id]: meta,
190
- }),
184
+ (total, { id, meta }) => {
185
+ total[id] = meta;
186
+ return total;
187
+ },
191
188
  {},
192
189
  ),
193
190
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi",
3
- "version": "2.4.12",
3
+ "version": "2.4.13",
4
4
  "description": "📖 Documentation Generator of React Component",
5
5
  "keywords": [
6
6
  "generator",