@hebcal/icalendar 5.0.6 → 5.1.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/README.md +1 -1
- package/dist/icalendar.d.ts +99 -0
- package/dist/index.cjs +426 -450
- package/dist/index.mjs +426 -450
- package/dist/pkgVersion.d.ts +1 -0
- package/package.json +25 -17
- package/icalendar.d.ts +0 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "5.1.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/icalendar",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ical",
|
|
@@ -15,12 +15,11 @@
|
|
|
15
15
|
"exports": {
|
|
16
16
|
"import": "./dist/index.mjs",
|
|
17
17
|
"require": "./dist/index.cjs",
|
|
18
|
-
"types": "./icalendar.d.ts"
|
|
18
|
+
"types": "./dist/icalendar.d.ts"
|
|
19
19
|
},
|
|
20
|
-
"typings": "icalendar.d.ts",
|
|
20
|
+
"typings": "dist/icalendar.d.ts",
|
|
21
21
|
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
"icalendar.d.ts"
|
|
22
|
+
"dist"
|
|
24
23
|
],
|
|
25
24
|
"repository": {
|
|
26
25
|
"type": "git",
|
|
@@ -30,29 +29,38 @@
|
|
|
30
29
|
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
|
|
31
30
|
},
|
|
32
31
|
"dependencies": {
|
|
33
|
-
"@hebcal/core": "^5.
|
|
34
|
-
"@hebcal/rest-api": "^5.0.
|
|
35
|
-
"murmurhash3": "^0.5.0"
|
|
32
|
+
"@hebcal/core": "^5.4.6",
|
|
33
|
+
"@hebcal/rest-api": "^5.0.5",
|
|
34
|
+
"murmurhash3": "^0.5.0",
|
|
35
|
+
"tslib": "^2.6.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:rollup": "rollup -c",
|
|
39
|
-
"build:version": "node ./version.cjs package.json src/pkgVersion.
|
|
39
|
+
"build:version": "node ./version.cjs package.json src/pkgVersion.ts",
|
|
40
40
|
"build": "npm run build:version && npm run build:rollup",
|
|
41
41
|
"prepare": "npm run build",
|
|
42
42
|
"pretest": "npm run build",
|
|
43
|
-
"readme": "npx jsdoc2md dist/index.
|
|
44
|
-
"
|
|
43
|
+
"readme": "npx jsdoc2md dist/index.ts",
|
|
44
|
+
"coverage": "jest --coverage",
|
|
45
|
+
"test": "jest"
|
|
45
46
|
},
|
|
46
47
|
"license": "BSD-2-Clause",
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
49
|
+
"@babel/preset-env": "^7.24.7",
|
|
50
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
51
|
+
"@hebcal/learning": "^5.0.8",
|
|
52
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
50
53
|
"@rollup/plugin-json": "^6.1.0",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
54
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
55
|
+
"@types/jest": "^29.5.12",
|
|
56
|
+
"eslint": "^8.57.0",
|
|
53
57
|
"eslint-config-google": "^0.14.0",
|
|
54
|
-
"
|
|
58
|
+
"gts": "^5.3.1",
|
|
59
|
+
"jest": "^29.7.0",
|
|
60
|
+
"jsdoc": "^4.0.3",
|
|
55
61
|
"jsdoc-to-markdown": "^8.0.1",
|
|
56
|
-
"rollup": "^4.
|
|
62
|
+
"rollup": "^4.18.0",
|
|
63
|
+
"ts-jest": "^29.1.5",
|
|
64
|
+
"typescript": "^5.5.3"
|
|
57
65
|
}
|
|
58
66
|
}
|
package/icalendar.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="node"/>
|
|
2
|
-
import {Event, CalOptions} from '@hebcal/core';
|
|
3
|
-
declare module '@hebcal/icalendar' {
|
|
4
|
-
/**
|
|
5
|
-
* @returns multi-line result, delimited by \r\n
|
|
6
|
-
*/
|
|
7
|
-
export function eventToIcal(e: Event, options: CalOptions): string;
|
|
8
|
-
/**
|
|
9
|
-
* Renders an array of events as a full RFC 2445 iCalendar string
|
|
10
|
-
* @returns multi-line result, delimited by \r\n
|
|
11
|
-
*/
|
|
12
|
-
export function eventsToIcalendar(events: Event[], options: CalOptions): Promise<string>;
|
|
13
|
-
/**
|
|
14
|
-
* Generates an RFC 2445 iCalendar string from an array of IcalEvents
|
|
15
|
-
* @returns multi-line result, delimited by \r\n
|
|
16
|
-
*/
|
|
17
|
-
export function icalEventsToString(icals: IcalEvent[], options: CalOptions): Promise<string>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Represents an RFC 2445 iCalendar VEVENT
|
|
21
|
-
*/
|
|
22
|
-
export class IcalEvent {
|
|
23
|
-
/**
|
|
24
|
-
* Builds an IcalEvent object from a Hebcal Event
|
|
25
|
-
*/
|
|
26
|
-
constructor(ev: Event, options: CalOptions);
|
|
27
|
-
toString(): string;
|
|
28
|
-
getLines(): string[];
|
|
29
|
-
getLongLines(): string[];
|
|
30
|
-
static escape(str: string): string;
|
|
31
|
-
static formatYYYYMMDD(dt: Date): string;
|
|
32
|
-
static makeDtstamp(dt: Date): string;
|
|
33
|
-
static version(): string;
|
|
34
|
-
static fold(line: string): string;
|
|
35
|
-
}
|
|
36
|
-
}
|