ical-generator 10.2.1-develop.4 → 10.2.1-develop.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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/tools.ts +2 -2
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/express": "^5.0.6",
|
|
19
19
|
"@types/luxon": "^3.7.1",
|
|
20
20
|
"@types/mocha": "^10.0.10",
|
|
21
|
-
"@types/node": "^25.
|
|
21
|
+
"@types/node": "^25.9.1",
|
|
22
22
|
"c8": "^11.0.0",
|
|
23
23
|
"dayjs": "^1.11.20",
|
|
24
24
|
"eslint": "^10.3.0",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"source-map-support": "^0.5.21",
|
|
43
43
|
"temporal-polyfill": "^0.3.0",
|
|
44
44
|
"tsdown": "^0.22.0",
|
|
45
|
-
"tsx": "^4.
|
|
45
|
+
"tsx": "^4.22.3",
|
|
46
46
|
"typedoc": "^0.28.19",
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
|
-
"typescript-eslint": "^8.
|
|
48
|
+
"typescript-eslint": "^8.60.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": "20 || 22 || >=24"
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
"runkitExampleFilename": "examples/example-runkit.js",
|
|
131
131
|
"scripts": {
|
|
132
|
-
"prepare": "
|
|
132
|
+
"prepare": "husky",
|
|
133
133
|
"build": "tsdown",
|
|
134
134
|
"build-all": "./.github/workflows/build.sh",
|
|
135
135
|
"coverage": "c8 mocha",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"test": "mocha"
|
|
142
142
|
},
|
|
143
143
|
"type": "module",
|
|
144
|
-
"version": "10.2.1-develop.
|
|
144
|
+
"version": "10.2.1-develop.6"
|
|
145
145
|
}
|
package/src/tools.ts
CHANGED
|
@@ -210,8 +210,8 @@ export function checkNameAndMail(
|
|
|
210
210
|
*/
|
|
211
211
|
export function escape(str: string | unknown, inQuotes: boolean): string {
|
|
212
212
|
return String(str)
|
|
213
|
-
.replace(inQuotes ? /
|
|
214
|
-
return '\\' + match;
|
|
213
|
+
.replace(inQuotes ? /"/g : /[\\;,]/g, function (match) {
|
|
214
|
+
return inQuotes ? '' : '\\' + match;
|
|
215
215
|
})
|
|
216
216
|
.replace(/(?:\r\n|\r|\n)/g, '\\n');
|
|
217
217
|
}
|