@hebcal/rest-api 3.19.4 → 4.1.0
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 -69
- package/dist/bundle.js +523 -111
- package/dist/bundle.min.js +3 -2
- package/dist/index.js +523 -109
- package/dist/index.mjs +523 -85
- package/package.json +7 -6
- package/rest-api.d.ts +3 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/rest-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"url": "https://github.com/hebcal/hebcal-rest-api/issues"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@hebcal/core": "^3.42.
|
|
25
|
-
"@hebcal/leyning": "^
|
|
24
|
+
"@hebcal/core": "^3.42.2",
|
|
25
|
+
"@hebcal/leyning": "^6.0.0",
|
|
26
|
+
"@hebcal/triennial": "^1.0.0"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"build": "rollup -c",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"verbose": true
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@babel/core": "^7.18.
|
|
47
|
+
"@babel/core": "^7.18.13",
|
|
47
48
|
"@babel/preset-env": "^7.18.10",
|
|
48
49
|
"@babel/register": "^7.18.9",
|
|
49
50
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -52,11 +53,11 @@
|
|
|
52
53
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
53
54
|
"ava": "^4.3.1",
|
|
54
55
|
"core-js": "^3.24.1",
|
|
55
|
-
"eslint": "^8.
|
|
56
|
+
"eslint": "^8.22.0",
|
|
56
57
|
"eslint-config-google": "^0.14.0",
|
|
57
58
|
"jsdoc": "^3.6.11",
|
|
58
59
|
"jsdoc-to-markdown": "^7.1.1",
|
|
59
|
-
"rollup": "^2.
|
|
60
|
+
"rollup": "^2.78.1",
|
|
60
61
|
"rollup-plugin-terser": "^7.0.2"
|
|
61
62
|
}
|
|
62
63
|
}
|
package/rest-api.d.ts
CHANGED
|
@@ -35,12 +35,11 @@ declare module '@hebcal/rest-api' {
|
|
|
35
35
|
*/
|
|
36
36
|
export function shouldRenderBrief(ev: Event): boolean;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* Extends `CalOptions` with
|
|
39
|
+
* `lang` - language such as 'he' (default 'en-US')
|
|
40
|
+
* `evPubDate` - if true, use event time as pubDate (false uses lastBuildDate)
|
|
40
41
|
*/
|
|
41
|
-
export function eventsToRss(events: Event[], location: Location, mainUrl: string, selfUrl: string, lang?: string, evPubDate?: boolean): string;
|
|
42
42
|
export function eventsToRss2(events: Event[], options: CalOptions): string;
|
|
43
|
-
export function eventToRssItem(ev: Event, evPubDate: boolean, lastBuildDate: string, dayFormat: Intl.DateTimeFormat, location: Location, baseUrl: string, options?: CalOptions): string;
|
|
44
43
|
export function eventToRssItem2(ev: Event, options: CalOptions): string;
|
|
45
44
|
export function getDownloadFilename(options: CalOptions): string;
|
|
46
45
|
export function pad2(number: number): string;
|
|
@@ -50,22 +49,10 @@ declare module '@hebcal/rest-api' {
|
|
|
50
49
|
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
51
50
|
*/
|
|
52
51
|
export function makeAnchor(s: string): string;
|
|
53
|
-
/**
|
|
54
|
-
* Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
|
|
55
|
-
* @deprecated
|
|
56
|
-
*/
|
|
57
|
-
export function timeZoneOffsetStr(tzid: string, date: Date): string;
|
|
58
52
|
/**
|
|
59
53
|
* Returns just the date portion as YYYY-MM-DD
|
|
60
54
|
*/
|
|
61
55
|
export function toISOString(d: Date): string;
|
|
62
|
-
/**
|
|
63
|
-
* Returns a string like "2018-09-01T12:30:00-05:00'"
|
|
64
|
-
* @deprecated
|
|
65
|
-
* @param timeStr - must be formatted with only hours and minutes, like "17:12"
|
|
66
|
-
* @param tzid - like "America/New_York"
|
|
67
|
-
*/
|
|
68
|
-
export function toISOStringWithTimezone(date: Date, timeStr: string, tzid: string): string;
|
|
69
56
|
/**
|
|
70
57
|
* Returns a category and subcategory name
|
|
71
58
|
*/
|