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.15 to 0.1.16

2

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

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

@@ -44,5 +44,15 @@ 'use strict';

accounts.getAdmins = async function(accountId = 1) {
return await canvas.request('GET', `accounts/${accountId}/admins`);
return await canvas.requestAll(`accounts/${accountId}/admins`);
};
accounts.isAdmin = async function(sisUserId) {
const admins = await accounts.getAdmins();
for(let admin of admins) {
if(admin.user.sis_user_id === sisUserId) {
return true;
}
}
return false;
};
accounts.delete = async function(sisAccountId) {

@@ -49,0 +59,0 @@ const newId = uuid();

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