@coffic/cosy-ui 0.9.5 → 0.9.6

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.
@@ -51,9 +51,9 @@ class CourseRepo extends BaseDB<
51
51
  * @returns 返回指定语言的顶级课程数组
52
52
  */
53
53
  async allCoursesByLang(lang: string): Promise<CourseDoc[]> {
54
- return await getCollection(COLLECTION_COURSE, ({ id }: { id: string }) => {
54
+ return (await getCollection(COLLECTION_COURSE, ({ id }: { id: string }) => {
55
55
  return id.startsWith(lang) && id.split('/').length === 2;
56
- }).map((entry: CourseEntry) => new CourseDoc(entry));
56
+ })).map((entry: CourseEntry) => new CourseDoc(entry));
57
57
  }
58
58
 
59
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffic/cosy-ui",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "An astro component library",
5
5
  "author": {
6
6
  "name": "nookery",