ical-generator 9.0.1-develop.8 → 10.0.0-develop.1
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.
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +19 -19
- package/src/alarm.ts +1 -1
- package/src/attendee.ts +2 -8
- package/src/event.ts +1 -1
- package/src/tools.ts +3 -0
- package/src/types.ts +1 -1
package/package.json
CHANGED
|
@@ -5,47 +5,47 @@
|
|
|
5
5
|
},
|
|
6
6
|
"description": "ical-generator is a small piece of code which generates ical calendar files",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@date-fns/tz": "^1.
|
|
9
|
-
"@eslint/js": "^9.
|
|
8
|
+
"@date-fns/tz": "^1.4.1",
|
|
9
|
+
"@eslint/js": "^9.36.0",
|
|
10
10
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
11
11
|
"@qiwi/semantic-release-gh-pages-plugin": "^5.4.3",
|
|
12
|
-
"@sebbo2002/semantic-release-jsr": "^3.0.
|
|
12
|
+
"@sebbo2002/semantic-release-jsr": "^3.0.1",
|
|
13
13
|
"@semantic-release/changelog": "^6.0.3",
|
|
14
14
|
"@semantic-release/exec": "^7.1.0",
|
|
15
15
|
"@semantic-release/git": "^10.0.1",
|
|
16
16
|
"@semantic-release/npm": "^12.0.2",
|
|
17
17
|
"@touch4it/ical-timezones": "^1.9.0",
|
|
18
18
|
"@types/express": "^5.0.3",
|
|
19
|
-
"@types/luxon": "^3.
|
|
19
|
+
"@types/luxon": "^3.7.1",
|
|
20
20
|
"@types/mocha": "^10.0.10",
|
|
21
21
|
"c8": "^10.1.3",
|
|
22
|
-
"dayjs": "^1.11.
|
|
23
|
-
"eslint": "^9.
|
|
24
|
-
"eslint-config-prettier": "^10.1.
|
|
25
|
-
"eslint-plugin-jsonc": "^2.
|
|
26
|
-
"eslint-plugin-perfectionist": "^4.15.
|
|
22
|
+
"dayjs": "^1.11.18",
|
|
23
|
+
"eslint": "^9.36.0",
|
|
24
|
+
"eslint-config-prettier": "^10.1.8",
|
|
25
|
+
"eslint-plugin-jsonc": "^2.21.0",
|
|
26
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
27
27
|
"esm": "^3.2.25",
|
|
28
28
|
"husky": "^9.1.7",
|
|
29
29
|
"license-checker": "^25.0.1",
|
|
30
|
-
"luxon": "^3.7.
|
|
31
|
-
"mocha": "^11.7.
|
|
32
|
-
"mochawesome": "^7.1.
|
|
30
|
+
"luxon": "^3.7.2",
|
|
31
|
+
"mocha": "^11.7.4",
|
|
32
|
+
"mochawesome": "^7.1.4",
|
|
33
33
|
"moment": "^2.30.1",
|
|
34
34
|
"moment-timezone": "^0.6.0",
|
|
35
35
|
"nyc": "^17.1.0",
|
|
36
36
|
"prettier": "^3.6.2",
|
|
37
37
|
"rrule": "^2.8.1",
|
|
38
|
-
"semantic-release": "^24.2.
|
|
38
|
+
"semantic-release": "^24.2.9",
|
|
39
39
|
"semantic-release-license": "^1.0.2",
|
|
40
40
|
"source-map-support": "^0.5.21",
|
|
41
41
|
"tsup": "^8.5.0",
|
|
42
|
-
"tsx": "^4.20.
|
|
43
|
-
"typedoc": "^0.28.
|
|
44
|
-
"typescript": "^5.
|
|
45
|
-
"typescript-eslint": "^8.
|
|
42
|
+
"tsx": "^4.20.6",
|
|
43
|
+
"typedoc": "^0.28.13",
|
|
44
|
+
"typescript": "^5.9.3",
|
|
45
|
+
"typescript-eslint": "^8.45.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": "20 || >=
|
|
48
|
+
"node": "20 || 22 || >=24"
|
|
49
49
|
},
|
|
50
50
|
"exports": {
|
|
51
51
|
"import": "./dist/index.js",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"test": "mocha"
|
|
132
132
|
},
|
|
133
133
|
"type": "module",
|
|
134
|
-
"version": "
|
|
134
|
+
"version": "10.0.0-develop.1"
|
|
135
135
|
}
|
package/src/alarm.ts
CHANGED
|
@@ -269,7 +269,7 @@ export default class ICalAlarm {
|
|
|
269
269
|
return data;
|
|
270
270
|
}
|
|
271
271
|
if (typeof data === 'string') {
|
|
272
|
-
data =
|
|
272
|
+
data = checkNameAndMail('data', data);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
const attendee = new ICalAttendee(data, this);
|
package/src/attendee.ts
CHANGED
|
@@ -189,10 +189,7 @@ export default class ICalAttendee {
|
|
|
189
189
|
this.data.delegatedFrom = null;
|
|
190
190
|
} else if (typeof delegatedFrom === 'string') {
|
|
191
191
|
this.data.delegatedFrom = new ICalAttendee(
|
|
192
|
-
|
|
193
|
-
email: delegatedFrom,
|
|
194
|
-
...checkNameAndMail('delegatedFrom', delegatedFrom),
|
|
195
|
-
},
|
|
192
|
+
checkNameAndMail('delegatedFrom', delegatedFrom),
|
|
196
193
|
this.parent,
|
|
197
194
|
);
|
|
198
195
|
} else if (delegatedFrom instanceof ICalAttendee) {
|
|
@@ -250,10 +247,7 @@ export default class ICalAttendee {
|
|
|
250
247
|
|
|
251
248
|
if (typeof delegatedTo === 'string') {
|
|
252
249
|
this.data.delegatedTo = new ICalAttendee(
|
|
253
|
-
|
|
254
|
-
email: delegatedTo,
|
|
255
|
-
...checkNameAndMail('delegatedTo', delegatedTo),
|
|
256
|
-
},
|
|
250
|
+
checkNameAndMail('delegatedTo', delegatedTo),
|
|
257
251
|
this.parent,
|
|
258
252
|
);
|
|
259
253
|
} else if (delegatedTo instanceof ICalAttendee) {
|
package/src/event.ts
CHANGED
|
@@ -593,7 +593,7 @@ export default class ICalEvent {
|
|
|
593
593
|
return data;
|
|
594
594
|
}
|
|
595
595
|
if (typeof data === 'string') {
|
|
596
|
-
data =
|
|
596
|
+
data = checkNameAndMail('data', data);
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
const attendee = new ICalAttendee(data, this);
|
package/src/tools.ts
CHANGED