caldav-adapter 9.1.0 → 9.2.0

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.
@@ -12,7 +12,10 @@ const setDAVHeader = function (ctx) {
12
12
  // 'extended-mkcol',
13
13
  'calendar-access',
14
14
  'calendar-schedule',
15
- 'calendar-auto-schedule'
15
+ 'calendar-auto-schedule',
16
+ /* https://www.rfc-editor.org/rfc/rfc8607.html */
17
+ 'calendar-managed-attachments',
18
+ 'calendar-managed-attachments-no-recurrence'
16
19
  /* https://github.com/apple/ccs-calendarserver/blob/master/doc/Extensions/caldav-proxy.txt */
17
20
  // 'calendar-proxy',
18
21
  // 'calendarserver-sharing',
package/common/tags.js CHANGED
@@ -424,6 +424,37 @@ module.exports = function (options) {
424
424
  };
425
425
  }
426
426
  }
427
+ },
428
+ /* RFC 8607 Managed Attachments */
429
+ 'max-attachment-size': {
430
+ doc: 'https://www.rfc-editor.org/rfc/rfc8607.html#section-5.1',
431
+ async resp({ resource }) {
432
+ if (resource === 'calendar') {
433
+ return {
434
+ [buildTag(cal, 'max-attachment-size')]: '10485760'
435
+ };
436
+ }
437
+ }
438
+ },
439
+ 'max-attachments-per-resource': {
440
+ doc: 'https://www.rfc-editor.org/rfc/rfc8607.html#section-5.2',
441
+ async resp({ resource }) {
442
+ if (resource === 'calendar') {
443
+ return {
444
+ [buildTag(cal, 'max-attachments-per-resource')]: '10'
445
+ };
446
+ }
447
+ }
448
+ },
449
+ 'managed-attachments-server-URL': {
450
+ doc: 'https://www.rfc-editor.org/rfc/rfc8607.html#section-5.3',
451
+ async resp({ resource }) {
452
+ if (resource === 'calendar') {
453
+ return {
454
+ [buildTag(cal, 'managed-attachments-server-URL')]: ''
455
+ };
456
+ }
457
+ }
427
458
  }
428
459
  },
429
460
  [cs]: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "caldav-adapter",
3
3
  "description": "CalDAV server for Node.js and Koa. Modernized and maintained for Forward Email.",
4
- "version": "9.1.0",
4
+ "version": "9.2.0",
5
5
  "author": "Sanders DeNardi and Forward Email LLC",
6
6
  "contributors": [
7
7
  "Sanders DeNardi <sedenardi@gmail.com> (http://www.sandersdenardi.com/)",