Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@byu-oit/canvas-sdk

Package Overview
Dependencies
Maintainers
12
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byu-oit/canvas-sdk - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

2

package.json
{
"name": "@byu-oit/canvas-sdk",
"version": "0.1.14",
"version": "0.1.15",
"description": "A wrapper around Instructure's Canvas API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -39,2 +39,6 @@ 'use strict';

users.getEnrollments = async function(sisUserId) {
return await canvas.requestAll(`users/sis_user_id:${sisUserId}/enrollments`);
};
users.add = async function(name, sortableName, email, sisUserId, loginId) {

@@ -41,0 +45,0 @@ const options = {

@@ -115,2 +115,4 @@ 'use strict';

assert.strictEqual((sections[0].students[0].sis_user_id), SIS_USER_ID);
const enrollments = await canvas.users.getEnrollments(SIS_USER_ID);
assert.strictEqual(enrollments.length, 1);
let enrollment = await canvas.sections.getEnrollment(SIS_SECTION_ID, SIS_USER_ID);

@@ -117,0 +119,0 @@ assert.strictEqual(enrollment.sis_user_id, SIS_USER_ID);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc