ical-generator 4.0.0-develop.1 → 4.0.0-develop.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.
package/package.json CHANGED
@@ -16,12 +16,14 @@
16
16
  "@touch4it/ical-timezones": "^1.9.0",
17
17
  "@types/luxon": "^3.2.0",
18
18
  "@types/mocha": "^10.0.1",
19
- "@types/node": "^18.13.0",
19
+ "@types/node": "^18.15.3",
20
20
  "@typescript-eslint/eslint-plugin": "^5.54.1",
21
21
  "@typescript-eslint/parser": "^5.54.1",
22
+ "c8": "^7.11.3",
22
23
  "dayjs": "^1.11.7",
23
24
  "eslint": "^8.35.0",
24
25
  "eslint-plugin-jsonc": "^2.6.0",
26
+ "esm": "^3.2.25",
25
27
  "license-checker": "^25.0.1",
26
28
  "luxon": "^3.3.0",
27
29
  "mocha": "^10.2.0",
@@ -40,7 +42,7 @@
40
42
  "typescript": "^4.9.5"
41
43
  },
42
44
  "engines": {
43
- "node": ">=12.0.0"
45
+ "node": "^14.8.0 || >=16.0.0"
44
46
  },
45
47
  "files": [
46
48
  "/src",
@@ -66,6 +68,7 @@
66
68
  "typings": "./dist/index.d.ts",
67
69
  "name": "ical-generator",
68
70
  "exports": {
71
+ "types": "./dist/index.d.ts",
69
72
  "import": "./dist/index.mjs",
70
73
  "require": "./dist/index.js"
71
74
  },
@@ -117,9 +120,9 @@
117
120
  },
118
121
  "runkitExampleFilename": "examples/example-runkit.js",
119
122
  "scripts": {
120
- "build": "rm -rf ./dist/ && tsup src/index.ts --format esm,cjs --dts --sourcemap --minify && cp ./dist/index.d.ts ./dist/index.d.mts",
123
+ "build": "tsup",
121
124
  "build-all": "./.github/workflows/build.sh",
122
- "coverage": "nyc mocha",
125
+ "coverage": "c8 mocha",
123
126
  "develop": "ts-node ./src/bin/start.ts",
124
127
  "example": "node ./dist/examples/push.js",
125
128
  "license-check": "license-checker --production --summary",
@@ -127,5 +130,5 @@
127
130
  "start": "node ./dist/bin/start.js",
128
131
  "test": "mocha"
129
132
  },
130
- "version": "4.0.0-develop.1"
133
+ "version": "4.0.0-develop.2"
131
134
  }
package/src/calendar.ts CHANGED
@@ -651,9 +651,6 @@ export default class ICalCalendar {
651
651
  * Generates a blob to use for downloads or to generate a download URL.
652
652
  * Only supported in browsers supporting the Blob API.
653
653
  *
654
- * Unfortunately, because node.js has no Blob implementation (they have Buffer
655
- * instead), this method is currently untested. Sorry Dave…
656
- *
657
654
  * @since 1.9.0
658
655
  */
659
656
  toBlob(): Blob {
@@ -665,9 +662,6 @@ export default class ICalCalendar {
665
662
  * Returns a URL to download the ical file. Uses the Blob object internally,
666
663
  * so it's only supported in browsers supporting the Blob API.
667
664
  *
668
- * Unfortunately, because node.js has no Blob implementation (they have Buffer
669
- * instead), this can't be tested right now. Sorry Dave…
670
- *
671
665
  * @since 1.9.0
672
666
  */
673
667
  toURL(): string {