ical-generator 6.0.1-develop.9 → 6.0.2-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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/calendar.ts +2 -10
package/package.json
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"luxon": "^3.4.4",
|
|
28
28
|
"mocha": "^10.2.0",
|
|
29
29
|
"mochawesome": "^7.1.3",
|
|
30
|
-
"moment": "^2.
|
|
31
|
-
"moment-timezone": "^0.5.
|
|
30
|
+
"moment": "^2.30.1",
|
|
31
|
+
"moment-timezone": "^0.5.44",
|
|
32
32
|
"nyc": "^15.1.0",
|
|
33
33
|
"rrule": "^2.8.1",
|
|
34
34
|
"semantic-release": "^22.0.12",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"source-map-support": "^0.5.21",
|
|
37
37
|
"ts-node": "^10.9.2",
|
|
38
38
|
"tsup": "^8.0.1",
|
|
39
|
-
"typedoc": "^0.25.
|
|
39
|
+
"typedoc": "^0.25.6",
|
|
40
40
|
"typescript": "^5.3.3"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"test": "mocha"
|
|
126
126
|
},
|
|
127
127
|
"type": "module",
|
|
128
|
-
"version": "6.0.
|
|
128
|
+
"version": "6.0.2-develop.1"
|
|
129
129
|
}
|
package/src/calendar.ts
CHANGED
|
@@ -169,21 +169,13 @@ export default class ICalCalendar {
|
|
|
169
169
|
return this.data.prodId;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
if (typeof prodId === 'string' && prodIdRegEx.test(prodId)) {
|
|
172
|
+
if (typeof prodId === 'string') {
|
|
175
173
|
this.data.prodId = prodId;
|
|
176
174
|
return this;
|
|
177
175
|
}
|
|
178
|
-
if (typeof prodId === 'string') {
|
|
179
|
-
throw new Error(
|
|
180
|
-
'`prodId` isn\'t formated correctly. See https://sebbo2002.github.io/ical-generator/develop/reference/'+
|
|
181
|
-
'classes/ICalCalendar.html#prodId'
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
176
|
|
|
185
177
|
if (typeof prodId !== 'object') {
|
|
186
|
-
throw new Error('`prodid` needs to be a
|
|
178
|
+
throw new Error('`prodid` needs to be a string or an object!');
|
|
187
179
|
}
|
|
188
180
|
|
|
189
181
|
if (!prodId.company) {
|