@byu-oit/canvas-sdk
Advanced tools
Comparing version 0.1.7 to 0.1.8
11
index.js
@@ -31,2 +31,3 @@ 'use strict'; | ||
canvas.getToken = function() { | ||
shuffle(canvas.tokens); | ||
let largestLimitRemainingToken; | ||
@@ -156,2 +157,10 @@ for(const token of canvas.tokens) { | ||
return canvas; | ||
}; | ||
}; | ||
function shuffle(a) { | ||
for (let i = a.length - 1; i > 0; i--) { | ||
const j = Math.floor(Math.random() * (i + 1)); | ||
[a[i], a[j]] = [a[j], a[i]]; | ||
} | ||
return a; | ||
} |
{ | ||
"name": "@byu-oit/canvas-sdk", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A wrapper around Instructure's Canvas API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
50098
819