canvaslms-cli 1.4.4 → 1.4.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.
@@ -23,7 +23,7 @@ export async function uploadSingleFileToCanvas(courseId, assignmentId, filePath)
23
23
 
24
24
  // Step 1: Get upload URL from Canvas
25
25
  const uploadParams = [
26
- `name=${encodeURIComponent(fileName)}`,
26
+ `name=${fileName}`,
27
27
  `size=${fileContent.length}`,
28
28
  'parent_folder_path=/assignments'
29
29
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvaslms-cli",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "A command line tool for interacting with Canvas LMS API",
5
5
  "keywords": [
6
6
  "canvas",
@@ -49,6 +49,7 @@
49
49
  "dependencies": {
50
50
  "adm-zip": "^0.5.16",
51
51
  "axios": "^1.6.0",
52
+ "canvaslms-cli": "^1.4.4",
52
53
  "chalk": "^5.4.1",
53
54
  "commander": "^11.1.0",
54
55
  "form-data": "^4.0.3"
package/src/index.js CHANGED
@@ -23,7 +23,7 @@ const program = new Command();
23
23
  program
24
24
  .name('canvas')
25
25
  .description('Canvas API Command Line Tool')
26
- .version('1.3.3');
26
+ .version('1.4.5');
27
27
 
28
28
  // List command to show enrolled courses
29
29
  program