canvas-lms-mcp 2.4.1 → 2.4.2

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.
@@ -6,13 +6,13 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkXOOL7BGYcjs = require('../chunk-XOOL7BGY.cjs');
9
+ var _chunkBCKOQCPPcjs = require('../chunk-BCKOQCPP.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunk4WO2YU77cjs = require('../chunk-4WO2YU77.cjs');
15
+ var _chunkWKYLHAWEcjs = require('../chunk-WKYLHAWE.cjs');
16
16
 
17
17
 
18
18
 
@@ -25,5 +25,5 @@ var _chunk4WO2YU77cjs = require('../chunk-4WO2YU77.cjs');
25
25
 
26
26
 
27
27
 
28
- exports.CANVAS_MAX_ID = _chunkXOOL7BGYcjs.CANVAS_MAX_ID; exports.CanvasApiError = _chunk4WO2YU77cjs.CanvasApiError; exports.CanvasClient = _chunkXOOL7BGYcjs.CanvasClient; exports.CanvasHttpClient = _chunk4WO2YU77cjs.CanvasHttpClient; exports.MAX_SAFE_CANVAS_NUMBER_ID = _chunkXOOL7BGYcjs.MAX_SAFE_CANVAS_NUMBER_ID; exports.appendCanvasQuery = _chunk4WO2YU77cjs.appendCanvasQuery; exports.canvasIdInput = _chunkXOOL7BGYcjs.canvasIdInput; exports.canvasIdList = _chunkXOOL7BGYcjs.canvasIdList; exports.compareCanvasIds = _chunkXOOL7BGYcjs.compareCanvasIds; exports.normalizeCanvasIdInput = _chunkXOOL7BGYcjs.normalizeCanvasIdInput; exports.toCanvasQuery = _chunk4WO2YU77cjs.toCanvasQuery;
28
+ exports.CANVAS_MAX_ID = _chunkBCKOQCPPcjs.CANVAS_MAX_ID; exports.CanvasApiError = _chunkWKYLHAWEcjs.CanvasApiError; exports.CanvasClient = _chunkBCKOQCPPcjs.CanvasClient; exports.CanvasHttpClient = _chunkWKYLHAWEcjs.CanvasHttpClient; exports.MAX_SAFE_CANVAS_NUMBER_ID = _chunkBCKOQCPPcjs.MAX_SAFE_CANVAS_NUMBER_ID; exports.appendCanvasQuery = _chunkWKYLHAWEcjs.appendCanvasQuery; exports.canvasIdInput = _chunkBCKOQCPPcjs.canvasIdInput; exports.canvasIdList = _chunkBCKOQCPPcjs.canvasIdList; exports.compareCanvasIds = _chunkBCKOQCPPcjs.compareCanvasIds; exports.normalizeCanvasIdInput = _chunkBCKOQCPPcjs.normalizeCanvasIdInput; exports.toCanvasQuery = _chunkWKYLHAWEcjs.toCanvasQuery;
29
29
  //# sourceMappingURL=index.cjs.map
@@ -6,13 +6,13 @@ import {
6
6
  canvasIdList,
7
7
  compareCanvasIds,
8
8
  normalizeCanvasIdInput
9
- } from "../chunk-WWDLUO5I.js";
9
+ } from "../chunk-YFRSDHBN.js";
10
10
  import {
11
11
  CanvasApiError,
12
12
  CanvasHttpClient,
13
13
  appendCanvasQuery,
14
14
  toCanvasQuery
15
- } from "../chunk-ZXVMZIRT.js";
15
+ } from "../chunk-KP5VF6M5.js";
16
16
  export {
17
17
  CANVAS_MAX_ID,
18
18
  CanvasApiError,
@@ -25,11 +25,11 @@ import {
25
25
  compareCanvasIds,
26
26
  mapWithConcurrency,
27
27
  normalizeCanvasIdInput
28
- } from "./chunk-WWDLUO5I.js";
28
+ } from "./chunk-YFRSDHBN.js";
29
29
  import {
30
30
  CanvasApiError,
31
31
  version
32
- } from "./chunk-ZXVMZIRT.js";
32
+ } from "./chunk-KP5VF6M5.js";
33
33
 
34
34
  // src/server.ts
35
35
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -10144,4 +10144,4 @@ export {
10144
10144
  createSharedPseudonymizer,
10145
10145
  createCanvasMCPServer
10146
10146
  };
10147
- //# sourceMappingURL=chunk-3S6F3DYX.js.map
10147
+ //# sourceMappingURL=chunk-3TED6SUG.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk4WO2YU77cjs = require('./chunk-4WO2YU77.cjs');
4
+ var _chunkWKYLHAWEcjs = require('./chunk-WKYLHAWE.cjs');
5
5
 
6
6
  // src/canvas/courses.ts
7
7
  var DEFAULT_LIST_INCLUDE = ["term"];
@@ -283,7 +283,7 @@ var RubricsModule = class {
283
283
  headers: { "Content-Type": "application/x-www-form-urlencoded" }
284
284
  });
285
285
  if (result.error === true) {
286
- throw new (0, _chunk4WO2YU77cjs.CanvasApiError)(
286
+ throw new (0, _chunkWKYLHAWEcjs.CanvasApiError)(
287
287
  _optionalChain([result, 'access', _2 => _2.messages, 'optionalAccess', _3 => _3.join, 'call', _4 => _4("; ")]) || "Canvas rejected the rubric",
288
288
  422,
289
289
  endpoint
@@ -1512,7 +1512,7 @@ var NewQuizzesModule = class {
1512
1512
  `/api/quiz/v1/courses/${courseId}/accommodations/${userId}`
1513
1513
  );
1514
1514
  } catch (err) {
1515
- if (err instanceof _chunk4WO2YU77cjs.CanvasApiError && err.status === 404) return null;
1515
+ if (err instanceof _chunkWKYLHAWEcjs.CanvasApiError && err.status === 404) return null;
1516
1516
  throw err;
1517
1517
  }
1518
1518
  }
@@ -2011,7 +2011,7 @@ var CanvasClient = class {
2011
2011
 
2012
2012
 
2013
2013
  constructor(config) {
2014
- this.client = new (0, _chunk4WO2YU77cjs.CanvasHttpClient)(config);
2014
+ this.client = new (0, _chunkWKYLHAWEcjs.CanvasHttpClient)(config);
2015
2015
  this.courses = new CoursesModule(this.client);
2016
2016
  this.assignments = new AssignmentsModule(this.client);
2017
2017
  this.submissions = new SubmissionsModule(this.client);
@@ -2060,4 +2060,4 @@ var CanvasClient = class {
2060
2060
 
2061
2061
 
2062
2062
  exports.mapWithConcurrency = mapWithConcurrency; exports.SEARCH_CONTENT_TYPES = SEARCH_CONTENT_TYPES; exports.OUTCOME_CONTEXT_TYPES = OUTCOME_CONTEXT_TYPES; exports.OUTCOME_DETAIL_LEVELS = OUTCOME_DETAIL_LEVELS; exports.OUTCOME_ROLLUP_AGGREGATE_STATS = OUTCOME_ROLLUP_AGGREGATE_STATS; exports.OUTCOME_ROLLUP_SORT_BY = OUTCOME_ROLLUP_SORT_BY; exports.OUTCOME_SORT_ORDER = OUTCOME_SORT_ORDER; exports.OUTCOME_EXCLUDE_OPTIONS = OUTCOME_EXCLUDE_OPTIONS; exports.CANVAS_MAX_ID = CANVAS_MAX_ID; exports.MAX_SAFE_CANVAS_NUMBER_ID = MAX_SAFE_CANVAS_NUMBER_ID; exports.canvasIdInput = canvasIdInput; exports.canvasIdList = canvasIdList; exports.compareCanvasIds = compareCanvasIds; exports.normalizeCanvasIdInput = normalizeCanvasIdInput; exports.CanvasClient = CanvasClient;
2063
- //# sourceMappingURL=chunk-XOOL7BGY.cjs.map
2063
+ //# sourceMappingURL=chunk-BCKOQCPP.cjs.map