@coursekit/client
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -175,3 +175,3 @@ 'use strict'; | ||
markdown = data.privateContent.markdown; | ||
complete = isLessonComplete(courseId, data.id, user); | ||
complete = user ? isLessonComplete(courseId, data.id, user) : false; | ||
meta = { | ||
@@ -178,0 +178,0 @@ ...data.publicContent, |
@@ -41,3 +41,3 @@ import { isLessonComplete } from './helpers' | ||
markdown = data.privateContent.markdown | ||
complete = isLessonComplete(courseId, data.id, user) | ||
complete = user ? isLessonComplete(courseId, data.id, user) : false | ||
meta = { | ||
@@ -44,0 +44,0 @@ ...data.publicContent, |
{ | ||
"name": "@coursekit/client", | ||
"description": "CourseKit client library", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "dist/library.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/library.mjs", |
@@ -37,3 +37,3 @@ # CourseKit JavaScript Client | ||
import { CourseKitClient } from '@coursekit/client' | ||
const ck = new CourseKit({ schoolId: '...' }) | ||
const ck = new CourseKitClient({ schoolId: '...' }) | ||
``` | ||
@@ -124,3 +124,3 @@ | ||
```javascript | ||
const { status, courses } = await ck.loadCourse(courseId) | ||
const { status, courses } = await ck.loadCourseSummaries() | ||
if (status === 401) { | ||
@@ -127,0 +127,0 @@ console.log(courses[0].enrolled) // null |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45645