diff --git a/.eslintrc.json b/.eslintrc.json index a91cfd2..45492de 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,7 +32,6 @@ "zonesdb.js", "generator.js", "set-release.js", - "npm_dist/", "dist/" ], "rules": {} diff --git a/.gitattributes b/.gitattributes index 0c828da..2999dc2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,3 @@ package-lock.json linguist-generated=true -diff dist/* linguist-generated=true -diff -npm_dist/**/* linguist-generated=true -diff demo_assets/*/*.min.* linguist-generated=true -diff \ No newline at end of file diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f37df8e..962c266 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,7 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm run build-npm + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_SECRET}} diff --git a/.gitignore b/.gitignore index b70a9c9..9e1c460 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,6 @@ ZonesVzic vzic *.o *~ + +# dist. +dist/ diff --git a/Gruntfile.js b/Gruntfile.js index 84a5972..ee9b65d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -45,7 +45,6 @@ module.exports = function (grunt) { // cleans old built files clean: { oldBuildFiles: [ - 'npm_dist/', 'dist/', 'demo_assets/css/*.min.css', 'demo_assets/css/*.min.css.map', @@ -79,30 +78,30 @@ module.exports = function (grunt) { }, mjs_dist: { src: 'src/tzlib.js', - dest: 'npm_dist/mjs/index.js', + dest: 'dist/mjs/index.js', options: { process: (content) => prepareFinalFile(content, 'export') }, }, cjs_dist: { src: 'src/tzlib.js', - dest: 'npm_dist/cjs/index.js', + dest: 'dist/cjs/index.js', options: { process: (content) => prepareFinalFile(content, 'module.exports =') }, }, }, 'file-creator': { 'package.json ES Module': { - 'npm_dist/mjs/package.json': function (fs, fd, done) { + 'dist/mjs/package.json': function (fs, fd, done) { fs.writeSync(fd, '{ "type": "module" }'); done(); }, }, 'package.json commonJS': { - 'npm_dist/cjs/package.json': function (fs, fd, done) { + 'dist/cjs/package.json': function (fs, fd, done) { fs.writeSync(fd, '{ "type": "commonjs" }'); done(); }, }, '.eslintrc.json commonJS': { - 'npm_dist/cjs/.eslintrc.json': function (fs, fd, done) { + 'dist/cjs/.eslintrc.json': function (fs, fd, done) { fs.writeSync( fd, '{ "extends": "../../.eslintrc.json", "env": { "node": true }, "plugins": ["commonjs"] }' @@ -116,14 +115,14 @@ module.exports = function (grunt) { options: { compress: true, mangle: true, - sourceMap: true, + sourceMap: false, output: { comments: 'some', }, }, newBuild: { files: { - 'dist/tzlib.min.js': ['dist/tzlib.js'], + 'dist/tzlib.js': ['dist/tzlib.js'], 'demo_assets/js/demopage.min.js': ['demo_assets/js/demopage.js'], }, }, @@ -139,6 +138,5 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-version'); // Register task(s) - grunt.registerTask('default', ['clean', 'cssmin', 'copy:plain_dist', 'uglify']); - grunt.registerTask('npm', ['clean', 'cssmin', 'copy', 'file-creator', 'uglify']); + grunt.registerTask('default', ['clean', 'cssmin', 'copy', 'file-creator', 'uglify']); }; diff --git a/Readme.md b/Readme.md index 47c804f..3eedd63 100644 --- a/Readme.md +++ b/Readme.md @@ -170,6 +170,7 @@ Licensed under [Apache-2.0](LICENSE). ## ⚡ Changelog (without minor changes and fixes) +- v1.5 : new dist structure - v1.4 : further minification via data mapping - v1.3 : bundle size optimization and API - v1.2 : providing tzblock as array with separate tzid diff --git a/demo_assets/js/demopage.min.js b/demo_assets/js/demopage.min.js index 700e415..e3a21d4 100644 --- a/demo_assets/js/demopage.min.js +++ b/demo_assets/js/demopage.min.js @@ -1,2 +1 @@ -const lightModeButtonHeader=document.getElementById("light-mode-switch-header"),lightModeButtonFooter=document.getElementById("light-mode-switch-footer"),cval=document.cookie.match("(^|;)\\s*atcb-light-mode\\s*=\\s*([^;]+)")?.pop()||"";function toggle_atcb_light_mode(){document.body.classList.toggle("atcb-dark");var t=document.body.classList.contains("atcb-dark")?"dark":"light";const e=new Date;e.setTime(e.getTime()+7776e6),document.cookie="atcb-light-mode="+t+";expires="+e.toUTCString()}""==cval?window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.toggle("atcb-dark"):"dark"==cval&&document.body.classList.toggle("atcb-dark"),lightModeButtonHeader.addEventListener("click",toggle_atcb_light_mode),lightModeButtonFooter.addEventListener("click",toggle_atcb_light_mode);const tzNames=tzlib_get_timezones();let inputValue="";const today=new Date,currentIsoDate=today.toISOString().replace(/:\d{2}.\d{3}Z$/g,""),currentDate=currentIsoDate.split("T"),input=document.getElementById("tz-input"),tzInput=new Autocomplete("#autocomplete",{search:e=>(inputValue=e).length<1?[]:tzNames.filter(t=>t.toLowerCase().includes(e.toLowerCase())),onUpdate:t=>{!(!inputValue||0!==t.length)?(autocomplete.classList.add("no-results"),input.setAttribute("aria-describedby","no-results")):(autocomplete.classList.remove("no-results"),input.removeAttribute("aria-describedby"))},onSubmit:t=>{let e=tzlib_get_ical_block(""+t)[0],o=tzlib_get_offset(""+t,currentDate[0],currentDate[1]);""==e&&(e="Given timezone not valid.",o=e),document.getElementById("tz-output").textContent=e,document.getElementById("tz-offset-output").textContent="Current Offset: "+o,document.getElementById("tz-input").blur(),document.getElementById("tz-output-wrapper").style.display="block"},autoSelect:!0,debounceTime:100});input.addEventListener("focus",()=>{input.classList.add("focused")}),input.addEventListener("blur",()=>{input.classList.remove("focused")}); -//# sourceMappingURL=demopage.min.js.map \ No newline at end of file +const lightModeButtonHeader=document.getElementById("light-mode-switch-header"),lightModeButtonFooter=document.getElementById("light-mode-switch-footer"),cval=document.cookie.match("(^|;)\\s*atcb-light-mode\\s*=\\s*([^;]+)")?.pop()||"";function toggle_atcb_light_mode(){document.body.classList.toggle("atcb-dark");var t=document.body.classList.contains("atcb-dark")?"dark":"light";const e=new Date;e.setTime(e.getTime()+7776e6),document.cookie="atcb-light-mode="+t+";expires="+e.toUTCString()}""==cval?window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.toggle("atcb-dark"):"dark"==cval&&document.body.classList.toggle("atcb-dark"),lightModeButtonHeader.addEventListener("click",toggle_atcb_light_mode),lightModeButtonFooter.addEventListener("click",toggle_atcb_light_mode);const tzNames=tzlib_get_timezones();let inputValue="";const today=new Date,currentIsoDate=today.toISOString().replace(/:\d{2}.\d{3}Z$/g,""),currentDate=currentIsoDate.split("T"),input=document.getElementById("tz-input"),tzInput=new Autocomplete("#autocomplete",{search:e=>(inputValue=e).length<1?[]:tzNames.filter(t=>t.toLowerCase().includes(e.toLowerCase())),onUpdate:t=>{!(!inputValue||0!==t.length)?(autocomplete.classList.add("no-results"),input.setAttribute("aria-describedby","no-results")):(autocomplete.classList.remove("no-results"),input.removeAttribute("aria-describedby"))},onSubmit:t=>{let e=tzlib_get_ical_block(""+t)[0],o=tzlib_get_offset(""+t,currentDate[0],currentDate[1]);""==e&&(e="Given timezone not valid.",o=e),document.getElementById("tz-output").textContent=e,document.getElementById("tz-offset-output").textContent="Current Offset: "+o,document.getElementById("tz-input").blur(),document.getElementById("tz-output-wrapper").style.display="block"},autoSelect:!0,debounceTime:100});input.addEventListener("focus",()=>{input.classList.add("focused")}),input.addEventListener("blur",()=>{input.classList.remove("focused")}); \ No newline at end of file diff --git a/demo_assets/js/demopage.min.js.map b/demo_assets/js/demopage.min.js.map deleted file mode 100644 index ebe3a43..0000000 --- a/demo_assets/js/demopage.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"demopage.min.js","sources":["demopage.js"],"names":["lightModeButtonHeader","document","getElementById","lightModeButtonFooter","cval","cookie","match","pop","toggle_atcb_light_mode","body","classList","toggle","newCval","contains","d","Date","setTime","getTime","toUTCString","window","matchMedia","matches","addEventListener","tzNames","tzlib_get_timezones","let","inputValue","today","currentIsoDate","toISOString","replace","currentDate","split","input","tzInput","Autocomplete","search","length","filter","tzName","toLowerCase","includes","onUpdate","results","autocomplete","add","setAttribute","remove","removeAttribute","onSubmit","tzBlock","tzlib_get_ical_block","result","tzOffsetBlock","tzlib_get_offset","textContent","blur","style","display","autoSelect","debounceTime"],"mappings":"AAcA,MAAMA,sBAAwBC,SAASC,eAAe,0BAA0B,EAC1EC,sBAAwBF,SAASC,eAAe,0BAA0B,EAC1EE,KAAOH,SAASI,OAAOC,MAAM,0CAA0C,GAAGC,IAAI,GAAK,GAezF,SAASC,yBACPP,SAASQ,KAAKC,UAAUC,OAAO,WAAW,EAE1C,IAAMC,EAAUX,SAASQ,KAAKC,UAAUG,SAAS,WAAW,EAAI,OAAS,QACzE,MAAMC,EAAI,IAAIC,KACdD,EAAEE,QAAQF,EAAEG,QAAQ,EAAI,MAAwB,EAChDhB,SAASI,OAAS,mBAAqBO,EAAU,YAAcE,EAAEI,YAAY,CAC/E,CApBY,IAARd,KACEe,OAAOC,WAAW,8BAA8B,EAAEC,SACpDpB,SAASQ,KAAKC,UAAUC,OAAO,WAAW,EAGhC,QAARP,MACFH,SAASQ,KAAKC,UAAUC,OAAO,WAAW,EAI9CX,sBAAsBsB,iBAAiB,QAASd,sBAAsB,EACtEL,sBAAsBmB,iBAAiB,QAASd,sBAAsB,EAatE,MAAMe,QAAUC,oBAAoB,EACpCC,IAAIC,WAAa,GACjB,MAAMC,MAAQ,IAAIZ,KACZa,eAAiBD,MAAME,YAAY,EAAEC,QAAQ,kBAAmB,EAAE,EAClEC,YAAcH,eAAeI,MAAM,GAAG,EACtCC,MAAQhC,SAASC,eAAe,UAAU,EAE1CgC,QAAU,IAAIC,aAAa,gBAAiB,CAChDC,OAAQ,IACNV,WAAaO,GACHI,OAAS,EACV,GAEFd,QAAQe,OAAO,GACbC,EAAOC,YAAY,EAAEC,SAASR,EAAMO,YAAY,CAAC,CACzD,EAGHE,SAAU,IACchB,EAAAA,CAAAA,YAAiC,IAAnBiB,EAAQN,SAE1CO,aAAalC,UAAUmC,IAAI,YAAY,EACvCZ,MAAMa,aAAa,mBAAoB,YAAY,IAEnDF,aAAalC,UAAUqC,OAAO,YAAY,EAC1Cd,MAAMe,gBAAgB,kBAAkB,EAE5C,EAEAC,SAAU,IACRxB,IAAIyB,EAAUC,qBAAqB,GAAGC,CAAQ,EAAE,GAC5CC,EAAgBC,iBAAiB,GAAGF,EAAUrB,YAAY,GAAIA,YAAY,EAAE,EACjE,IAAXmB,IACFA,EAAU,4BACVG,EAAgBH,GAElBjD,SAASC,eAAe,WAAW,EAAEqD,YAAcL,EACnDjD,SAASC,eAAe,kBAAkB,EAAEqD,YAAc,mBAAqBF,EAC/EpD,SAASC,eAAe,UAAU,EAAEsD,KAAK,EACzCvD,SAASC,eAAe,mBAAmB,EAAEuD,MAAMC,QAAU,OAC/D,EAEAC,WAAY,CAAA,EAEZC,aAAc,GAChB,CAAC,EAED3B,MAAMX,iBAAiB,QAAS,KAC9BW,MAAMvB,UAAUmC,IAAI,SAAS,CAC/B,CAAC,EACDZ,MAAMX,iBAAiB,OAAQ,KAC7BW,MAAMvB,UAAUqC,OAAO,SAAS,CAClC,CAAC"} \ No newline at end of file diff --git a/dist/tzlib.js b/dist/tzlib.js deleted file mode 100644 index e9c416d..0000000 --- a/dist/tzlib.js +++ /dev/null @@ -1,209 +0,0 @@ -/*! - * @preserve - * - * ++++++++++++++++++++++++++++++++++++++ - * Add to Calendar TimeZones iCal Library - * ++++++++++++++++++++++++++++++++++++++ - * - * Version: 1.4.2 - * Creator: Jens Kuerschner (https://jenskuerschner.de) - * Project: https://github.com/add2cal/timezones-ical-library - * License: Apache-2.0 - * - */ -const tzlibVersion = '1.4.2'; -const tzlibZonesDB = {"Africa":{"Abidjan":["",0],"Accra":["Africa/Abidjan",0],"Addis_Ababa":["Africa/Nairobi",1],"Algiers":["",2],"Asmara":["Africa/Nairobi",1],"Asmera":["Africa/Nairobi",1],"Bamako":["Africa/Abidjan",0],"Bangui":["Africa/Lagos",3],"Banjul":["Africa/Abidjan",0],"Bissau":["",0],"Blantyre":["Africa/Maputo",4],"Brazzaville":["Africa/Lagos",3],"Bujumbura":["Africa/Maputo",4],"Cairo":["",5],"Casablanca":["",6],"Ceuta":["",7],"Conakry":["Africa/Abidjan",0],"Dakar":["Africa/Abidjan",0],"Dar_es_Salaam":["Africa/Nairobi",1],"Djibouti":["Africa/Nairobi",1],"Douala":["Africa/Lagos",3],"El_Aaiun":["",6],"Freetown":["Africa/Abidjan",0],"Gaborone":["Africa/Maputo",4],"Harare":["Africa/Maputo",4],"Johannesburg":["",8],"Juba":["",4],"Kampala":["Africa/Nairobi",1],"Khartoum":["",4],"Kigali":["Africa/Maputo",4],"Kinshasa":["Africa/Lagos",3],"Lagos":["",3],"Libreville":["Africa/Lagos",3],"Lome":["Africa/Abidjan",0],"Luanda":["Africa/Lagos",3],"Lubumbashi":["Africa/Maputo",4],"Lusaka":["Africa/Maputo",4],"Malabo":["Africa/Lagos",3],"Maputo":["",4],"Maseru":["Africa/Johannesburg",8],"Mbabane":["Africa/Johannesburg",8],"Mogadishu":["Africa/Nairobi",1],"Monrovia":["",0],"Nairobi":["",1],"Ndjamena":["",3],"Niamey":["Africa/Lagos",3],"Nouakchott":["Africa/Abidjan",0],"Ouagadougou":["Africa/Abidjan",0],"Porto-Novo":["Africa/Lagos",3],"Sao_Tome":["",0],"Timbuktu":["Africa/Abidjan",0],"Tripoli":["",5],"Tunis":["",2],"Windhoek":["",4]},"America":{"Adak":["",9],"Anchorage":["",10],"Anguilla":["America/Puerto_Rico",11],"Antigua":["America/Puerto_Rico",11],"Araguaina":["",12],"Argentina":{"Buenos_Aires":["",12],"Catamarca":["",12],"ComodRivadavia":["America/Argentina/Catamarca",12],"Cordoba":["",12],"Jujuy":["",12],"La_Rioja":["",12],"Mendoza":["",12],"Rio_Gallegos":["",12],"Salta":["",12],"San_Juan":["",12],"San_Luis":["",12],"Tucuman":["",12],"Ushuaia":["",12]},"Aruba":["America/Puerto_Rico",11],"Asuncion":["",13],"Atikokan":["America/Panama",14],"Atka":["America/Adak",9],"Bahia_Banderas":["",15],"Bahia":["",12],"Barbados":["",11],"Belem":["",12],"Belize":["",16],"Blanc-Sablon":["America/Puerto_Rico",11],"Boa_Vista":["",17],"Bogota":["",18],"Boise":["",19],"Buenos_Aires":["America/Argentina/Buenos_Aires",12],"Cambridge_Bay":["",19],"Campo_Grande":["",17],"Cancun":["",14],"Caracas":["",17],"Catamarca":["America/Argentina/Catamarca",12],"Cayenne":["",12],"Cayman":["America/Panama",14],"Chicago":["",20],"Chihuahua":["",21],"Coral_Harbour":["America/Panama",14],"Cordoba":["America/Argentina/Cordoba",12],"Costa_Rica":["",16],"Creston":["America/Phoenix",22],"Cuiaba":["",17],"Curacao":["America/Puerto_Rico",11],"Danmarkshavn":["",0],"Dawson_Creek":["",22],"Dawson":["",22],"Denver":["",19],"Detroit":["",23],"Dominica":["America/Puerto_Rico",11],"Edmonton":["",19],"Eirunepe":["",18],"El_Salvador":["",16],"Ensenada":["America/Tijuana",24],"Fort_Nelson":["",22],"Fort_Wayne":["America/Indiana/Indianapolis",23],"Fortaleza":["",12],"Glace_Bay":["",25],"Godthab":["America/Nuuk",26],"Goose_Bay":["",27],"Grand_Turk":["",28],"Grenada":["America/Puerto_Rico",11],"Guadeloupe":["America/Puerto_Rico",11],"Guatemala":["",16],"Guayaquil":["",18],"Guyana":["",17],"Halifax":["",25],"Havana":["",29],"Hermosillo":["",22],"Indiana":{"Indianapolis":["",23],"Knox":["",20],"Marengo":["",23],"Petersburg":["",23],"Tell_City":["",20],"Vevay":["",23],"Vincennes":["",23],"Winamac":["",28]},"Indianapolis":["America/Indiana/Indianapolis",23],"Inuvik":["",19],"Iqaluit":["",23],"Jamaica":["",14],"Jujuy":["America/Argentina/Jujuy",12],"Juneau":["",10],"Kentucky":{"Louisville":["",23],"Monticello":["",23]},"Knox_IN":["America/Indiana/Knox",20],"Kralendijk":["America/Puerto_Rico",11],"La_Paz":["",17],"Lima":["",18],"Los_Angeles":["",24],"Louisville":["America/Kentucky/Louisville",23],"Lower_Princes":["America/Puerto_Rico",11],"Maceio":["",12],"Managua":["",16],"Manaus":["",17],"Marigot":["America/Puerto_Rico",11],"Martinique":["",11],"Matamoros":["",20],"Mazatlan":["",21],"Mendoza":["America/Argentina/Mendoza",12],"Menominee":["",20],"Merida":["",30],"Metlakatla":["",10],"Mexico_City":["",30],"Miquelon":["",31],"Moncton":["",25],"Monterrey":["",30],"Montevideo":["",12],"Montreal":["America/Toronto",23],"Montserrat":["America/Puerto_Rico",11],"Nassau":["America/Toronto",23],"New_York":["",23],"Nipigon":["",23],"Nome":["",10],"Noronha":["",32],"North_Dakota":{"Beulah":["",20],"Center":["",20],"New_Salem":["",20]},"Nuuk":["",26],"Ojinaga":["",19],"Panama":["",14],"Pangnirtung":["",23],"Paramaribo":["",12],"Phoenix":["",22],"Port_of_Spain":["America/Puerto_Rico",11],"Port-au-Prince":["",23],"Porto_Acre":["America/Rio_Branco",18],"Porto_Velho":["",17],"Puerto_Rico":["",11],"Punta_Arenas":["",12],"Rainy_River":["",20],"Rankin_Inlet":["",20],"Recife":["",12],"Regina":["",16],"Resolute":["",33],"Rio_Branco":["",18],"Rosario":["America/Argentina/Cordoba",12],"Santa_Isabel":["America/Tijuana",24],"Santarem":["",12],"Santiago":["",34],"Santo_Domingo":["",11],"Sao_Paulo":["",12],"Scoresbysund":["",35],"Shiprock":["America/Denver",19],"Sitka":["",10],"St_Barthelemy":["America/Puerto_Rico",11],"St_Johns":["",36],"St_Kitts":["America/Puerto_Rico",11],"St_Lucia":["America/Puerto_Rico",11],"St_Thomas":["America/Puerto_Rico",11],"St_Vincent":["America/Puerto_Rico",11],"Swift_Current":["",16],"Tegucigalpa":["",16],"Thule":["",25],"Thunder_Bay":["",23],"Tijuana":["",24],"Toronto":["",23],"Tortola":["America/Puerto_Rico",11],"Vancouver":["",24],"Virgin":["America/Puerto_Rico",11],"Whitehorse":["",22],"Winnipeg":["",20],"Yakutat":["",10],"Yellowknife":["",19]},"Antarctica":{"Casey":["",37],"Davis":["",38],"DumontDUrville":["Pacific/Port_Moresby",39],"Macquarie":["",40],"Mawson":["",41],"McMurdo":["Pacific/Auckland",42],"Palmer":["",12],"Rothera":["",12],"South_Pole":["Pacific/Auckland",42],"Syowa":["Asia/Riyadh",43],"Troll":["",44],"Vostok":["Asia/Urumqi",45]},"Arctic":{"Longyearbyen":["Europe/Berlin",7]},"Asia":{"Aden":["Asia/Riyadh",43],"Almaty":["",45],"Amman":["",43],"Anadyr":["",46],"Aqtau":["",41],"Aqtobe":["",41],"Ashgabat":["",41],"Ashkhabad":["Asia/Ashgabat",41],"Atyrau":["",41],"Baghdad":["",43],"Bahrain":["Asia/Qatar",43],"Baku":["",47],"Bangkok":["",38],"Barnaul":["",38],"Beirut":["",48],"Bishkek":["",45],"Brunei":["Asia/Kuching",49],"Calcutta":["Asia/Kolkata",50],"Chita":["",51],"Choibalsan":["",49],"Chongqing":["Asia/Shanghai",52],"Chungking":["Asia/Shanghai",52],"Colombo":["",53],"Dacca":["Asia/Dhaka",45],"Damascus":["",43],"Dhaka":["",45],"Dili":["",51],"Dubai":["",47],"Dushanbe":["",41],"Famagusta":["",54],"Gaza":["",55],"Harbin":["Asia/Shanghai",52],"Hebron":["",55],"Ho_Chi_Minh":["",38],"Hong_Kong":["",56],"Hovd":["",38],"Irkutsk":["",49],"Istanbul":["Europe/Istanbul",43],"Jakarta":["",57],"Jayapura":["",58],"Jerusalem":["",59],"Kabul":["",60],"Kamchatka":["",46],"Karachi":["",61],"Kashgar":["Asia/Urumqi",45],"Kathmandu":["",62],"Katmandu":["Asia/Kathmandu",62],"Khandyga":["",51],"Kolkata":["",50],"Krasnoyarsk":["",38],"Kuala_Lumpur":["Asia/Singapore",49],"Kuching":["",49],"Kuwait":["Asia/Riyadh",43],"Macao":["Asia/Macau",52],"Macau":["",52],"Magadan":["",37],"Makassar":["",63],"Manila":["",64],"Muscat":["Asia/Dubai",47],"Nicosia":["",65],"Novokuznetsk":["",38],"Novosibirsk":["",38],"Omsk":["",45],"Oral":["",41],"Phnom_Penh":["Asia/Bangkok",38],"Pontianak":["",57],"Pyongyang":["",66],"Qatar":["",43],"Qostanay":["",45],"Qyzylorda":["",41],"Rangoon":["Asia/Yangon",67],"Riyadh":["",43],"Saigon":["Asia/Ho_Chi_Minh",38],"Sakhalin":["",37],"Samarkand":["",41],"Seoul":["",66],"Shanghai":["",52],"Singapore":["",49],"Srednekolymsk":["",37],"Taipei":["",52],"Tashkent":["",41],"Tbilisi":["",47],"Tehran":["",68],"Tel_Aviv":["Asia/Jerusalem",59],"Thimbu":["Asia/Thimphu",45],"Thimphu":["",45],"Tokyo":["",69],"Tomsk":["",38],"Ujung_Pandang":["Asia/Makassar",63],"Ulaanbaatar":["",49],"Ulan_Bator":["Asia/Ulaanbaatar",49],"Urumqi":["",45],"Ust-Nera":["",39],"Vientiane":["Asia/Bangkok",38],"Vladivostok":["",39],"Yakutsk":["",51],"Yangon":["",67],"Yekaterinburg":["",41],"Yerevan":["",47]},"Atlantic":{"Azores":["",35],"Bermuda":["",25],"Canary":["",70],"Cape_Verde":["",71],"Faeroe":["Atlantic/Faroe",70],"Faroe":["",70],"Jan_Mayen":["Europe/Berlin",7],"Madeira":["",70],"Reykjavik":["Africa/Abidjan",0],"South_Georgia":["",32],"St_Helena":["Africa/Abidjan",0],"Stanley":["",12]},"Australia":{"ACT":["Australia/Sydney",40],"Adelaide":["",72],"Brisbane":["",73],"Broken_Hill":["",72],"Canberra":["Australia/Sydney",40],"Currie":["Australia/Hobart",74],"Darwin":["",75],"Eucla":["",76],"Hobart":["",74],"LHI":["Australia/Lord_Howe",77],"Lindeman":["",73],"Lord_Howe":["",77],"Melbourne":["",40],"North":["Australia/Darwin",75],"NSW":["Australia/Sydney",40],"Perth":["",78],"Queensland":["Australia/Brisbane",73],"South":["Australia/Adelaide",72],"Sydney":["",40],"Tasmania":["Australia/Hobart",74],"Victoria":["Australia/Melbourne",40],"West":["Australia/Perth",78],"Yancowinna":["Australia/Broken_Hill",72]},"Brazil":{"Acre":["America/Rio_Branco",18],"DeNoronha":["America/Noronha",32],"East":["America/Sao_Paulo",12],"West":["America/Manaus",17]},"Canada":{"Atlantic":["America/Halifax",25],"Central":["America/Winnipeg",20],"Eastern":["America/Toronto",23],"Mountain":["America/Edmonton",19],"Newfoundland":["America/St_Johns",36],"Pacific":["America/Vancouver",24],"Saskatchewan":["America/Regina",16],"Yukon":["America/Whitehorse",22]},"CET":["",7],"Chile":{"Continental":["America/Santiago",34],"EasterIsland":["Pacific/Easter",79]},"CST6CDT":["",20],"Cuba":["America/Havana",29],"EET":["",54],"Egypt":["Africa/Cairo",5],"Eire":["Europe/Dublin",80],"EST":["",14],"EST5EDT":["",23],"Etc":{"GMT-0":["Etc/GMT",0],"GMT-1":["",6],"GMT-10":["",39],"GMT-11":["",37],"GMT-12":["",46],"GMT-13":["",81],"GMT-14":["",82],"GMT-2":["",83],"GMT-3":["",43],"GMT-4":["",47],"GMT-5":["",41],"GMT-6":["",45],"GMT-7":["",38],"GMT-8":["",49],"GMT-9":["",51],"GMT":["",0],"GMT+0":["Etc/GMT",0],"GMT+1":["",71],"GMT+10":["",84],"GMT+11":["",85],"GMT+12":["",86],"GMT+2":["",32],"GMT+3":["",12],"GMT+4":["",17],"GMT+5":["",18],"GMT+6":["",87],"GMT+7":["",88],"GMT+8":["",89],"GMT+9":["",90],"GMT0":["Etc/GMT",0],"Greenwich":["Etc/GMT",0],"UCT":["Etc/UTC",91],"Universal":["Etc/UTC",91],"UTC":["",91],"Zulu":["Etc/UTC",91]},"Europe":{"Amsterdam":["Europe/Brussels",7],"Andorra":["",7],"Astrakhan":["",47],"Athens":["",54],"Belfast":["Europe/London",92],"Belgrade":["",7],"Berlin":["",7],"Bratislava":["Europe/Prague",7],"Brussels":["",7],"Bucharest":["",54],"Budapest":["",7],"Busingen":["Europe/Zurich",7],"Chisinau":["",93],"Copenhagen":["Europe/Berlin",7],"Dublin":["",80],"Gibraltar":["",7],"Guernsey":["Europe/London",92],"Helsinki":["",54],"Isle_of_Man":["Europe/London",92],"Istanbul":["",43],"Jersey":["Europe/London",92],"Kaliningrad":["",5],"Kiev":["Europe/Kyiv",65],"Kirov":["",43],"Kyiv":["",65],"Lisbon":["",94],"Ljubljana":["Europe/Belgrade",7],"London":["",92],"Luxembourg":["Europe/Brussels",7],"Madrid":["",7],"Malta":["",7],"Mariehamn":["Europe/Helsinki",54],"Minsk":["",43],"Monaco":["Europe/Paris",7],"Moscow":["",95],"Nicosia":["Asia/Nicosia",65],"Oslo":["Europe/Berlin",7],"Paris":["",7],"Podgorica":["Europe/Belgrade",7],"Prague":["",7],"Riga":["",54],"Rome":["",7],"Samara":["",47],"San_Marino":["Europe/Rome",7],"Sarajevo":["Europe/Belgrade",7],"Saratov":["",47],"Simferopol":["",95],"Skopje":["Europe/Belgrade",7],"Sofia":["",54],"Stockholm":["Europe/Berlin",7],"Tallinn":["",54],"Tirane":["",7],"Tiraspol":["Europe/Chisinau",93],"Ulyanovsk":["",47],"Uzhgorod":["Europe/Kyiv",65],"Vaduz":["Europe/Zurich",7],"Vatican":["Europe/Rome",7],"Vienna":["",7],"Vilnius":["",54],"Volgograd":["",43],"Warsaw":["",7],"Zagreb":["Europe/Belgrade",7],"Zaporozhye":["Europe/Kyiv",65],"Zurich":["",7]},"GB-Eire":["Europe/London",92],"GB":["Europe/London",92],"GMT-0":["Etc/GMT",0],"GMT":["Etc/GMT",0],"GMT+0":["Etc/GMT",0],"GMT0":["Etc/GMT",0],"Greenwich":["Etc/GMT",0],"Hongkong":["Asia/Hong_Kong",56],"HST":["",96],"Iceland":["Africa/Abidjan",0],"Indian":{"Antananarivo":["Africa/Nairobi",1],"Chagos":["",45],"Christmas":["Asia/Bangkok",38],"Cocos":["Asia/Yangon",67],"Comoro":["Africa/Nairobi",1],"Kerguelen":["Indian/Maldives",41],"Mahe":["Asia/Dubai",47],"Maldives":["",41],"Mauritius":["",47],"Mayotte":["Africa/Nairobi",1],"Reunion":["Asia/Dubai",47]},"Iran":["Asia/Tehran",68],"Israel":["Asia/Jerusalem",59],"Jamaica":["America/Jamaica",14],"Japan":["Asia/Tokyo",69],"Kwajalein":["Pacific/Kwajalein",46],"Libya":["Africa/Tripoli",5],"MET":["",97],"Mexico":{"BajaNorte":["America/Tijuana",24],"BajaSur":["America/Mazatlan",21],"General":["America/Mexico_City",30]},"MST":["",22],"MST7MDT":["",19],"Navajo":["America/Denver",19],"NZ-CHAT":["Pacific/Chatham",98],"NZ":["Pacific/Auckland",42],"Pacific":{"Apia":["",81],"Auckland":["",42],"Bougainville":["",37],"Chatham":["",98],"Chuuk":["Pacific/Port_Moresby",39],"Easter":["",79],"Efate":["",37],"Enderbury":["Pacific/Kanton",81],"Fakaofo":["",81],"Fiji":["",99],"Funafuti":["Pacific/Tarawa",46],"Galapagos":["",87],"Gambier":["",90],"Guadalcanal":["",37],"Guam":["",100],"Honolulu":["",96],"Johnston":["Pacific/Honolulu",96],"Kanton":["",81],"Kiritimati":["",82],"Kosrae":["",37],"Kwajalein":["",46],"Majuro":["Pacific/Tarawa",46],"Marquesas":["",101],"Midway":["Pacific/Pago_Pago",102],"Nauru":["",46],"Niue":["",85],"Norfolk":["",103],"Noumea":["",37],"Pago_Pago":["",102],"Palau":["",51],"Pitcairn":["",89],"Pohnpei":["Pacific/Guadalcanal",37],"Ponape":["Pacific/Guadalcanal",37],"Port_Moresby":["",39],"Rarotonga":["",84],"Saipan":["Pacific/Guam",100],"Samoa":["Pacific/Pago_Pago",102],"Tahiti":["",84],"Tarawa":["",46],"Tongatapu":["",81],"Truk":["Pacific/Port_Moresby",39],"Wake":["Pacific/Tarawa",46],"Wallis":["Pacific/Tarawa",46],"Yap":["Pacific/Port_Moresby",39]},"Poland":["Europe/Warsaw",7],"Portugal":["Europe/Lisbon",94],"PRC":["Asia/Shanghai",52],"PST8PDT":["",24],"ROC":["Asia/Taipei",52],"ROK":["Asia/Seoul",66],"Singapore":["Asia/Singapore",49],"Turkey":["Europe/Istanbul",43],"UCT":["Etc/UTC",91],"Universal":["Etc/UTC",91],"US":{"Alaska":["America/Anchorage",10],"Aleutian":["America/Adak",9],"Arizona":["America/Phoenix",22],"Central":["America/Chicago",20],"East-Indiana":["America/Indiana/Indianapolis",23],"Eastern":["America/New_York",23],"Hawaii":["Pacific/Honolulu",96],"Indiana-Starke":["America/Indiana/Knox",20],"Michigan":["America/Detroit",23],"Mountain":["America/Denver",19],"Pacific":["America/Los_Angeles",24],"Samoa":["Pacific/Pago_Pago",102]},"UTC":["Etc/UTC",91],"W-SU":["Europe/Moscow",95],"WET":["",70],"Zulu":["Etc/UTC",91]}; const tzlibZonesDetailsDB = ["20221015T115821ZGMT+0000+000019700101T000000","20221015T115821ZEAT+0300+030019700101T000000","20221015T115821ZCET+0100+010019700101T000000","20221015T115821ZWAT+0100+010019700101T000000","20221015T115821ZCAT+0200+020019700101T000000","20221015T115821ZEET+0200+020019700101T000000","20221015T115821Z+01+0100+010019700101T000000","20221015T115821ZCEST+0100+020019700329T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUCET+0200+010019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZSAST+0200+020019700101T000000","20221015T115821ZHDT-1000-090019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUHST-0900-100019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZAKDT-0900-080019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUAKST-0800-090019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZAST-0400-040019700101T000000","20221015T115821Z-03-0300-030019700101T000000","20221015T115821Z-03-0400-030019701004T000000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU-04-0300-040019700322T000000FREQ=YEARLY;BYMONTH=3;BYDAY=4SU","20221015T115821ZEST-0500-050019700101T000000","20221015T115821ZCST-0500-060019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SUCDT-0600-050019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821ZCST-0600-060019700101T000000","20221015T115821Z-04-0400-040019700101T000000","20221015T115821Z-05-0500-050019700101T000000","20221015T115821ZMDT-0700-060019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUMST-0600-070019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZCDT-0600-050019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUCST-0500-060019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZMDT-0700-060019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUMST-0600-070019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZMST-0700-070019700101T000000","20221015T115821ZEDT-0500-040019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUEST-0400-050019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZPDT-0800-070019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUPST-0700-080019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZADT-0400-030019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUAST-0300-040019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821Z-02-0300-020019700328T220000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA-03-0200-030019701024T230000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA","20221015T115821ZAST-0300-040019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUADT-0400-030019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821ZEST-0400-050019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUEDT-0500-040019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821ZCST-0400-050019701101T010000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUCDT-0500-040019700308T000000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821ZCDT-0600-050019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUCST-0500-060019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z-02-0300-020019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU-03-0200-030019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821Z-02-0200-020019700101T000000","20221015T115821ZCST-0500-060019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUCDT-0600-050019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821Z-04-0300-040019700405T000000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU-03-0400-030019700906T000000FREQ=YEARLY;BYMONTH=9;BYDAY=1SU","20221015T115821Z+00-0100+000019700329T000000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU-01+0000-010019701025T010000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZNST-0230-033019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUNDT-0330-023019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821Z+11+1100+110019700101T000000","20221015T115821Z+07+0700+070019700101T000000","20221015T115821Z+10+1000+100019700101T000000","20221015T115821ZAEST+1100+100019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUAEDT+1000+110019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU","20221015T115821Z+05+0500+050019700101T000000","20221015T115821ZNZDT+1200+130019700927T020000FREQ=YEARLY;BYMONTH=9;BYDAY=-1SUNZST+1300+120019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821Z+03+0300+030019700101T000000","20221015T115821Z+02+0000+020019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU+00+0200+000019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+06+0600+060019700101T000000","20221015T115821Z+12+1200+120019700101T000000","20221015T115821Z+04+0400+040019700101T000000","20221015T115821ZEEST+0200+030019700329T000000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUEET+0300+020019701025T000000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+08+0800+080019700101T000000","20221015T115821ZIST+0530+053019700101T000000","20221015T115821Z+09+0900+090019700101T000000","20221015T115821ZCST+0800+080019700101T000000","20221015T115821Z+0530+0530+053019700101T000000","20221015T115821ZEEST+0200+030019700329T030000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUEET+0300+020019701025T040000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZEET+0300+020019701024T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SAEEST+0200+030019700328T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA","20221015T115821ZHKT+0800+080019700101T000000","20221015T115821ZWIB+0700+070019700101T000000","20221015T115821ZWIT+0900+090019700101T000000","20221015T115821ZIDT+0200+030019700327T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1FRIST+0300+020019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+0430+0430+043019700101T000000","20221015T115821ZPKT+0500+050019700101T000000","20221015T115821Z+0545+0545+054519700101T000000","20221015T115821ZWITA+0800+080019700101T000000","20221015T115821ZPST+0800+080019700101T000000","20221015T115821ZEET+0300+020019701025T040000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SUEEST+0200+030019700329T030000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU","20221015T115821ZKST+0900+090019700101T000000","20221015T115821Z+0630+0630+063019700101T000000","20221015T115821Z+0330+0330+033019700101T000000","20221015T115821ZJST+0900+090019700101T000000","20221015T115821ZWEST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUWET+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z-01-0100-010019700101T000000","20221015T115821ZACST+1030+093019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUACDT+0930+103019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU","20221015T115821ZAEST+1000+100019700101T000000","20221015T115821ZAEDT+1000+110019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SUAEST+1100+100019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821ZACST+0930+093019700101T000000","20221015T115821Z+0845+0845+084519700101T000000","20221015T115821Z+1030+1100+103019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU+11+1030+110019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU","20221015T115821ZAWST+0800+080019700101T000000","20221015T115821Z-06-0500-060019700404T220000FREQ=YEARLY;BYMONTH=4;BYDAY=1SA-05-0600-050019700905T220000FREQ=YEARLY;BYMONTH=9;BYDAY=1SA","20221015T115821ZIST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUGMT+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+13+1300+130019700101T000000","20221015T115821Z+14+1400+140019700101T000000","20221015T115821Z+02+0200+020019700101T000000","20221015T115821Z-10-1000-100019700101T000000","20221015T115821Z-11-1100-110019700101T000000","20221015T115821Z-12-1200-120019700101T000000","20221015T115821Z-06-0600-060019700101T000000","20221015T115821Z-07-0700-070019700101T000000","20221015T115821Z-08-0800-080019700101T000000","20221015T115821Z-09-0900-090019700101T000000","20221015T115821ZUTC+0000+000019700101T000000","20221015T115821ZBST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUGMT+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZEEST+0200+030019700329T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUEET+0300+020019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZWET+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SUWEST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU","20221015T115821ZMSK+0300+030019700101T000000","20221015T115821ZHST-1000-100019700101T000000","20221015T115821ZMEST+0100+020019700329T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUMET+0200+010019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+1345+1245+134519700927T024500FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU+1245+1345+124519700405T034500FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821Z+13+1200+130019701108T020000FREQ=YEARLY;BYMONTH=11;BYDAY=2SU+12+1300+120019700118T030000FREQ=YEARLY;BYMONTH=1;BYDAY=-2SU","20221015T115821ZChST+1000+100019700101T000000","20221015T115821Z-0930-0930-093019700101T000000","20221015T115821ZSST-1100-110019700101T000000","20221015T115821Z+12+1100+120019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU+11+1200+110019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU"]; function tzlib_get_content(tzName) { - const nameParts = tzName.split('/'); - if ( - (nameParts.length === 3 && - (!tzlibZonesDB[`${nameParts[0]}`] || - !tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`] || - !tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`][`${nameParts[2]}`])) || - (nameParts.length === 2 && - (!tzlibZonesDB[`${nameParts[0]}`] || !tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`])) || - (nameParts.length === 1 && !tzlibZonesDB[`${nameParts[0]}`]) - ) { - console.error('Given timezone not valid.'); - return ''; - } - if (nameParts.length === 3) { - return [ - tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`][`${nameParts[2]}`][0], - tzlib_enrich_data(tzlibZonesDetailsDB[tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`][`${nameParts[2]}`][1]]), - ]; - } - if (nameParts.length === 2) { - return [ - tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`][0], - tzlib_enrich_data(tzlibZonesDetailsDB[tzlibZonesDB[`${nameParts[0]}`][`${nameParts[1]}`][1]]), - ]; - } - return [tzlibZonesDB[`${nameParts[0]}`][0], tzlib_enrich_data(tzlibZonesDetailsDB[tzlibZonesDB[`${nameParts[0]}`][1]])]; -} -function tzlib_enrich_data(string) { - const shortenerMap = { - "
":"", - "TZNAME:":"", - "TZOFFSETFROM:":"", - "TZOFFSETTO:":"", - "DTSTART:":"", - "RRULE:":"", - "BEGIN:DAYLIGHT":"", - "END:DAYLIGHT":"", - "BEGIN:STANDARD":"", - "END:STANDARD":"" - } - for (const [key, value] of Object.entries(shortenerMap)) { - string = string.replaceAll(value, key); - } - return string; -} -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function tzlib_get_ical_block(tzName, jsonType = false) { - const tzBlock = tzlib_get_content(tzName); - if (tzBlock[1] == null || tzBlock[1] == '') { - return ''; - } - const location = (function () { - if (tzBlock[0] == '') { - return tzName; - } else { - return tzBlock[0]; - } - })(); - const tzidLine = 'TZID=' + location; - const output = [ - 'BEGIN:VTIMEZONE\r\nTZID:' + - location + - '\r\nX-LIC-LOCATION:' + - location + - '\r\nLAST-MODIFIED:' + - tzBlock[1].replace(/[^\w_\-:,;=+/
]/g, '').replace(/
/g, '\r\n') + - 'END:VTIMEZONE', - tzidLine, - ]; - if (jsonType) { - return JSON.stringify(output); - } - return output; -} -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function tzlib_get_offset(tzName, isoDate, isoTime) { - const tzBlock = tzlib_get_content(tzName); - if (tzBlock[1] == null || tzBlock[1] == '') { - return ''; - } - if (!isoDate.match(/^\d{4}-\d{2}-\d{2}$/)) { - console.error('offset calculation failed: date misspelled [-> YYYY-MM-DD]'); - return ''; - } - if (!isoTime.match(/^\d{2}:\d{2}$/)) { - console.error('offset calculation failed: time misspelled [-> hh:mm]'); - return ''; - } - if (!tzBlock[1].match(/BEGIN:DAYLIGHT/i)) { - return tzBlock[1].match(/TZOFFSETTO:([+|-]\d{4})/i)[1]; - } - const dateString = isoDate + 'T' + isoTime + ':00'; - const date = new Date(dateString); - const dateYear = date.getFullYear(); - const dateMonth = date.getMonth() + 1; - const dateDay = date.getDate(); - const dateHour = date.getHours(); - const timezoneData = tzBlock[1].replace(/[^\w_\-:,;=+/
]/g, '').split('
'); - const tzBreakpoints = { 1: {}, 2: {} }; - let breakpointCount = 0; - for (let i = 0; i < timezoneData.length; i++) { - if (timezoneData[`${i}`].startsWith('TZOFFSETTO')) { - breakpointCount++; - tzBreakpoints[`${breakpointCount}`].offset = timezoneData[`${i}`].split(':')[1]; - } - if (timezoneData[`${i}`].startsWith('DTSTART')) { - tzBreakpoints[`${breakpointCount}`].hour = parseInt(timezoneData[`${i}`].substr(17, 2)); - } - if (timezoneData[`${i}`].startsWith('RRULE')) { - let rruleParts = timezoneData[`${i}`].split(';'); - let rruleMonth = parseInt(rruleParts[1].split('=')[1]); - tzBreakpoints[`${breakpointCount}`].month = parseInt(rruleMonth); - tzBreakpoints[`${breakpointCount}`].day = rruleParts[2].split('=')[1]; - } - } - if (tzBreakpoints[1].month > tzBreakpoints[2].month) { - [tzBreakpoints[1], tzBreakpoints[2]] = [tzBreakpoints[2], tzBreakpoints[1]]; - } - if (dateMonth != tzBreakpoints[1].month && dateMonth != tzBreakpoints[2].month) { - if (dateMonth < tzBreakpoints[1].month || dateMonth > tzBreakpoints[2].month) { - return tzBreakpoints[2].offset; - } else { - return tzBreakpoints[1].offset; - } - } - const theCase = (function () { - return Object.keys(tzBreakpoints).find((key) => tzBreakpoints[`${key}`].month == dateMonth); - })(); - const helperArrayWeekdays = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA']; - const numberDays = new Date(dateYear, dateMonth, 0).getDate(); - let weekdayCount = new Date(dateYear, dateMonth - 1, 1).getDay(); - const weekdays = { SU: {}, MO: {}, TU: {}, WE: {}, TH: {}, FR: {}, SA: {} }; - for (let d = 1; d <= numberDays; d++) { - const occurence = Object.keys(weekdays[helperArrayWeekdays[`${weekdayCount}`]]).length + 1; - weekdays[helperArrayWeekdays[`${weekdayCount}`]][`${occurence}`] = d; - weekdayCount++; - if (weekdayCount == 7) { - weekdayCount = 0; - } - } - const actualDay = (function () { - if (tzBreakpoints[`${theCase}`].day[0] == '-') { - const breakpointWeekday = tzBreakpoints[`${theCase}`].day.substr(2, 2); - const dayIndex = - Object.keys(weekdays[`${breakpointWeekday}`]).length + - 1 - - parseInt(tzBreakpoints[`${theCase}`].day[1]); - return weekdays[`${breakpointWeekday}`][`${dayIndex}`]; - } else { - const breakpointWeekday = tzBreakpoints[`${theCase}`].day.substr(1, 2); - return weekdays[`${breakpointWeekday}`][tzBreakpoints[`${theCase}`].day[0]]; - } - })(); - if (dateDay > actualDay || (dateDay == actualDay && dateHour >= tzBreakpoints[`${theCase}`].hour)) { - return tzBreakpoints[`${theCase}`].offset; - } - const fallbackCase = (function () { - if (theCase == 1) { - return 2; - } else { - return 1; - } - })(); - return tzBreakpoints[`${fallbackCase}`].offset; -} -let tzlibZoneNames = []; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function tzlib_get_timezones(jsonType = false) { - if (tzlibZoneNames.length == 0) { - tzlibZoneNames = (function () { - let namesArr = []; - for (const [key, value] of Object.entries(tzlibZonesDB)) { - if (typeof value === 'object' && !Array.isArray(value)) { - for (const [key2, value2] of Object.entries(value)) { - if (typeof value2 === 'object' && !Array.isArray(value2)) { - for (const [key3] of Object.entries(value2)) { - namesArr.push(key + '/' + key2 + '/' + key3); - } - } else { - namesArr.push(key + '/' + key2); - } - } - } else { - namesArr.push(key); - } - } - return namesArr; - })(); - } - if (jsonType) { - return JSON.stringify(tzlibZoneNames); - } - return tzlibZoneNames; -} diff --git a/dist/tzlib.min.js b/dist/tzlib.min.js deleted file mode 100644 index 5bf7328..0000000 --- a/dist/tzlib.min.js +++ /dev/null @@ -1,15 +0,0 @@ -/*! - * @preserve - * - * ++++++++++++++++++++++++++++++++++++++ - * Add to Calendar TimeZones iCal Library - * ++++++++++++++++++++++++++++++++++++++ - * - * Version: 1.4.2 - * Creator: Jens Kuerschner (https://jenskuerschner.de) - * Project: https://github.com/add2cal/timezones-ical-library - * License: Apache-2.0 - * - */ -const tzlibVersion="1.4.2",tzlibZonesDB={Africa:{Abidjan:["",0],Accra:["Africa/Abidjan",0],Addis_Ababa:["Africa/Nairobi",1],Algiers:["",2],Asmara:["Africa/Nairobi",1],Asmera:["Africa/Nairobi",1],Bamako:["Africa/Abidjan",0],Bangui:["Africa/Lagos",3],Banjul:["Africa/Abidjan",0],Bissau:["",0],Blantyre:["Africa/Maputo",4],Brazzaville:["Africa/Lagos",3],Bujumbura:["Africa/Maputo",4],Cairo:["",5],Casablanca:["",6],Ceuta:["",7],Conakry:["Africa/Abidjan",0],Dakar:["Africa/Abidjan",0],Dar_es_Salaam:["Africa/Nairobi",1],Djibouti:["Africa/Nairobi",1],Douala:["Africa/Lagos",3],El_Aaiun:["",6],Freetown:["Africa/Abidjan",0],Gaborone:["Africa/Maputo",4],Harare:["Africa/Maputo",4],Johannesburg:["",8],Juba:["",4],Kampala:["Africa/Nairobi",1],Khartoum:["",4],Kigali:["Africa/Maputo",4],Kinshasa:["Africa/Lagos",3],Lagos:["",3],Libreville:["Africa/Lagos",3],Lome:["Africa/Abidjan",0],Luanda:["Africa/Lagos",3],Lubumbashi:["Africa/Maputo",4],Lusaka:["Africa/Maputo",4],Malabo:["Africa/Lagos",3],Maputo:["",4],Maseru:["Africa/Johannesburg",8],Mbabane:["Africa/Johannesburg",8],Mogadishu:["Africa/Nairobi",1],Monrovia:["",0],Nairobi:["",1],Ndjamena:["",3],Niamey:["Africa/Lagos",3],Nouakchott:["Africa/Abidjan",0],Ouagadougou:["Africa/Abidjan",0],"Porto-Novo":["Africa/Lagos",3],Sao_Tome:["",0],Timbuktu:["Africa/Abidjan",0],Tripoli:["",5],Tunis:["",2],Windhoek:["",4]},America:{Adak:["",9],Anchorage:["",10],Anguilla:["America/Puerto_Rico",11],Antigua:["America/Puerto_Rico",11],Araguaina:["",12],Argentina:{Buenos_Aires:["",12],Catamarca:["",12],ComodRivadavia:["America/Argentina/Catamarca",12],Cordoba:["",12],Jujuy:["",12],La_Rioja:["",12],Mendoza:["",12],Rio_Gallegos:["",12],Salta:["",12],San_Juan:["",12],San_Luis:["",12],Tucuman:["",12],Ushuaia:["",12]},Aruba:["America/Puerto_Rico",11],Asuncion:["",13],Atikokan:["America/Panama",14],Atka:["America/Adak",9],Bahia_Banderas:["",15],Bahia:["",12],Barbados:["",11],Belem:["",12],Belize:["",16],"Blanc-Sablon":["America/Puerto_Rico",11],Boa_Vista:["",17],Bogota:["",18],Boise:["",19],Buenos_Aires:["America/Argentina/Buenos_Aires",12],Cambridge_Bay:["",19],Campo_Grande:["",17],Cancun:["",14],Caracas:["",17],Catamarca:["America/Argentina/Catamarca",12],Cayenne:["",12],Cayman:["America/Panama",14],Chicago:["",20],Chihuahua:["",21],Coral_Harbour:["America/Panama",14],Cordoba:["America/Argentina/Cordoba",12],Costa_Rica:["",16],Creston:["America/Phoenix",22],Cuiaba:["",17],Curacao:["America/Puerto_Rico",11],Danmarkshavn:["",0],Dawson_Creek:["",22],Dawson:["",22],Denver:["",19],Detroit:["",23],Dominica:["America/Puerto_Rico",11],Edmonton:["",19],Eirunepe:["",18],El_Salvador:["",16],Ensenada:["America/Tijuana",24],Fort_Nelson:["",22],Fort_Wayne:["America/Indiana/Indianapolis",23],Fortaleza:["",12],Glace_Bay:["",25],Godthab:["America/Nuuk",26],Goose_Bay:["",27],Grand_Turk:["",28],Grenada:["America/Puerto_Rico",11],Guadeloupe:["America/Puerto_Rico",11],Guatemala:["",16],Guayaquil:["",18],Guyana:["",17],Halifax:["",25],Havana:["",29],Hermosillo:["",22],Indiana:{Indianapolis:["",23],Knox:["",20],Marengo:["",23],Petersburg:["",23],Tell_City:["",20],Vevay:["",23],Vincennes:["",23],Winamac:["",28]},Indianapolis:["America/Indiana/Indianapolis",23],Inuvik:["",19],Iqaluit:["",23],Jamaica:["",14],Jujuy:["America/Argentina/Jujuy",12],Juneau:["",10],Kentucky:{Louisville:["",23],Monticello:["",23]},Knox_IN:["America/Indiana/Knox",20],Kralendijk:["America/Puerto_Rico",11],La_Paz:["",17],Lima:["",18],Los_Angeles:["",24],Louisville:["America/Kentucky/Louisville",23],Lower_Princes:["America/Puerto_Rico",11],Maceio:["",12],Managua:["",16],Manaus:["",17],Marigot:["America/Puerto_Rico",11],Martinique:["",11],Matamoros:["",20],Mazatlan:["",21],Mendoza:["America/Argentina/Mendoza",12],Menominee:["",20],Merida:["",30],Metlakatla:["",10],Mexico_City:["",30],Miquelon:["",31],Moncton:["",25],Monterrey:["",30],Montevideo:["",12],Montreal:["America/Toronto",23],Montserrat:["America/Puerto_Rico",11],Nassau:["America/Toronto",23],New_York:["",23],Nipigon:["",23],Nome:["",10],Noronha:["",32],North_Dakota:{Beulah:["",20],Center:["",20],New_Salem:["",20]},Nuuk:["",26],Ojinaga:["",19],Panama:["",14],Pangnirtung:["",23],Paramaribo:["",12],Phoenix:["",22],Port_of_Spain:["America/Puerto_Rico",11],"Port-au-Prince":["",23],Porto_Acre:["America/Rio_Branco",18],Porto_Velho:["",17],Puerto_Rico:["",11],Punta_Arenas:["",12],Rainy_River:["",20],Rankin_Inlet:["",20],Recife:["",12],Regina:["",16],Resolute:["",33],Rio_Branco:["",18],Rosario:["America/Argentina/Cordoba",12],Santa_Isabel:["America/Tijuana",24],Santarem:["",12],Santiago:["",34],Santo_Domingo:["",11],Sao_Paulo:["",12],Scoresbysund:["",35],Shiprock:["America/Denver",19],Sitka:["",10],St_Barthelemy:["America/Puerto_Rico",11],St_Johns:["",36],St_Kitts:["America/Puerto_Rico",11],St_Lucia:["America/Puerto_Rico",11],St_Thomas:["America/Puerto_Rico",11],St_Vincent:["America/Puerto_Rico",11],Swift_Current:["",16],Tegucigalpa:["",16],Thule:["",25],Thunder_Bay:["",23],Tijuana:["",24],Toronto:["",23],Tortola:["America/Puerto_Rico",11],Vancouver:["",24],Virgin:["America/Puerto_Rico",11],Whitehorse:["",22],Winnipeg:["",20],Yakutat:["",10],Yellowknife:["",19]},Antarctica:{Casey:["",37],Davis:["",38],DumontDUrville:["Pacific/Port_Moresby",39],Macquarie:["",40],Mawson:["",41],McMurdo:["Pacific/Auckland",42],Palmer:["",12],Rothera:["",12],South_Pole:["Pacific/Auckland",42],Syowa:["Asia/Riyadh",43],Troll:["",44],Vostok:["Asia/Urumqi",45]},Arctic:{Longyearbyen:["Europe/Berlin",7]},Asia:{Aden:["Asia/Riyadh",43],Almaty:["",45],Amman:["",43],Anadyr:["",46],Aqtau:["",41],Aqtobe:["",41],Ashgabat:["",41],Ashkhabad:["Asia/Ashgabat",41],Atyrau:["",41],Baghdad:["",43],Bahrain:["Asia/Qatar",43],Baku:["",47],Bangkok:["",38],Barnaul:["",38],Beirut:["",48],Bishkek:["",45],Brunei:["Asia/Kuching",49],Calcutta:["Asia/Kolkata",50],Chita:["",51],Choibalsan:["",49],Chongqing:["Asia/Shanghai",52],Chungking:["Asia/Shanghai",52],Colombo:["",53],Dacca:["Asia/Dhaka",45],Damascus:["",43],Dhaka:["",45],Dili:["",51],Dubai:["",47],Dushanbe:["",41],Famagusta:["",54],Gaza:["",55],Harbin:["Asia/Shanghai",52],Hebron:["",55],Ho_Chi_Minh:["",38],Hong_Kong:["",56],Hovd:["",38],Irkutsk:["",49],Istanbul:["Europe/Istanbul",43],Jakarta:["",57],Jayapura:["",58],Jerusalem:["",59],Kabul:["",60],Kamchatka:["",46],Karachi:["",61],Kashgar:["Asia/Urumqi",45],Kathmandu:["",62],Katmandu:["Asia/Kathmandu",62],Khandyga:["",51],Kolkata:["",50],Krasnoyarsk:["",38],Kuala_Lumpur:["Asia/Singapore",49],Kuching:["",49],Kuwait:["Asia/Riyadh",43],Macao:["Asia/Macau",52],Macau:["",52],Magadan:["",37],Makassar:["",63],Manila:["",64],Muscat:["Asia/Dubai",47],Nicosia:["",65],Novokuznetsk:["",38],Novosibirsk:["",38],Omsk:["",45],Oral:["",41],Phnom_Penh:["Asia/Bangkok",38],Pontianak:["",57],Pyongyang:["",66],Qatar:["",43],Qostanay:["",45],Qyzylorda:["",41],Rangoon:["Asia/Yangon",67],Riyadh:["",43],Saigon:["Asia/Ho_Chi_Minh",38],Sakhalin:["",37],Samarkand:["",41],Seoul:["",66],Shanghai:["",52],Singapore:["",49],Srednekolymsk:["",37],Taipei:["",52],Tashkent:["",41],Tbilisi:["",47],Tehran:["",68],Tel_Aviv:["Asia/Jerusalem",59],Thimbu:["Asia/Thimphu",45],Thimphu:["",45],Tokyo:["",69],Tomsk:["",38],Ujung_Pandang:["Asia/Makassar",63],Ulaanbaatar:["",49],Ulan_Bator:["Asia/Ulaanbaatar",49],Urumqi:["",45],"Ust-Nera":["",39],Vientiane:["Asia/Bangkok",38],Vladivostok:["",39],Yakutsk:["",51],Yangon:["",67],Yekaterinburg:["",41],Yerevan:["",47]},Atlantic:{Azores:["",35],Bermuda:["",25],Canary:["",70],Cape_Verde:["",71],Faeroe:["Atlantic/Faroe",70],Faroe:["",70],Jan_Mayen:["Europe/Berlin",7],Madeira:["",70],Reykjavik:["Africa/Abidjan",0],South_Georgia:["",32],St_Helena:["Africa/Abidjan",0],Stanley:["",12]},Australia:{ACT:["Australia/Sydney",40],Adelaide:["",72],Brisbane:["",73],Broken_Hill:["",72],Canberra:["Australia/Sydney",40],Currie:["Australia/Hobart",74],Darwin:["",75],Eucla:["",76],Hobart:["",74],LHI:["Australia/Lord_Howe",77],Lindeman:["",73],Lord_Howe:["",77],Melbourne:["",40],North:["Australia/Darwin",75],NSW:["Australia/Sydney",40],Perth:["",78],Queensland:["Australia/Brisbane",73],South:["Australia/Adelaide",72],Sydney:["",40],Tasmania:["Australia/Hobart",74],Victoria:["Australia/Melbourne",40],West:["Australia/Perth",78],Yancowinna:["Australia/Broken_Hill",72]},Brazil:{Acre:["America/Rio_Branco",18],DeNoronha:["America/Noronha",32],East:["America/Sao_Paulo",12],West:["America/Manaus",17]},Canada:{Atlantic:["America/Halifax",25],Central:["America/Winnipeg",20],Eastern:["America/Toronto",23],Mountain:["America/Edmonton",19],Newfoundland:["America/St_Johns",36],Pacific:["America/Vancouver",24],Saskatchewan:["America/Regina",16],Yukon:["America/Whitehorse",22]},CET:["",7],Chile:{Continental:["America/Santiago",34],EasterIsland:["Pacific/Easter",79]},CST6CDT:["",20],Cuba:["America/Havana",29],EET:["",54],Egypt:["Africa/Cairo",5],Eire:["Europe/Dublin",80],EST:["",14],EST5EDT:["",23],Etc:{"GMT-0":["Etc/GMT",0],"GMT-1":["",6],"GMT-10":["",39],"GMT-11":["",37],"GMT-12":["",46],"GMT-13":["",81],"GMT-14":["",82],"GMT-2":["",83],"GMT-3":["",43],"GMT-4":["",47],"GMT-5":["",41],"GMT-6":["",45],"GMT-7":["",38],"GMT-8":["",49],"GMT-9":["",51],GMT:["",0],"GMT+0":["Etc/GMT",0],"GMT+1":["",71],"GMT+10":["",84],"GMT+11":["",85],"GMT+12":["",86],"GMT+2":["",32],"GMT+3":["",12],"GMT+4":["",17],"GMT+5":["",18],"GMT+6":["",87],"GMT+7":["",88],"GMT+8":["",89],"GMT+9":["",90],GMT0:["Etc/GMT",0],Greenwich:["Etc/GMT",0],UCT:["Etc/UTC",91],Universal:["Etc/UTC",91],UTC:["",91],Zulu:["Etc/UTC",91]},Europe:{Amsterdam:["Europe/Brussels",7],Andorra:["",7],Astrakhan:["",47],Athens:["",54],Belfast:["Europe/London",92],Belgrade:["",7],Berlin:["",7],Bratislava:["Europe/Prague",7],Brussels:["",7],Bucharest:["",54],Budapest:["",7],Busingen:["Europe/Zurich",7],Chisinau:["",93],Copenhagen:["Europe/Berlin",7],Dublin:["",80],Gibraltar:["",7],Guernsey:["Europe/London",92],Helsinki:["",54],Isle_of_Man:["Europe/London",92],Istanbul:["",43],Jersey:["Europe/London",92],Kaliningrad:["",5],Kiev:["Europe/Kyiv",65],Kirov:["",43],Kyiv:["",65],Lisbon:["",94],Ljubljana:["Europe/Belgrade",7],London:["",92],Luxembourg:["Europe/Brussels",7],Madrid:["",7],Malta:["",7],Mariehamn:["Europe/Helsinki",54],Minsk:["",43],Monaco:["Europe/Paris",7],Moscow:["",95],Nicosia:["Asia/Nicosia",65],Oslo:["Europe/Berlin",7],Paris:["",7],Podgorica:["Europe/Belgrade",7],Prague:["",7],Riga:["",54],Rome:["",7],Samara:["",47],San_Marino:["Europe/Rome",7],Sarajevo:["Europe/Belgrade",7],Saratov:["",47],Simferopol:["",95],Skopje:["Europe/Belgrade",7],Sofia:["",54],Stockholm:["Europe/Berlin",7],Tallinn:["",54],Tirane:["",7],Tiraspol:["Europe/Chisinau",93],Ulyanovsk:["",47],Uzhgorod:["Europe/Kyiv",65],Vaduz:["Europe/Zurich",7],Vatican:["Europe/Rome",7],Vienna:["",7],Vilnius:["",54],Volgograd:["",43],Warsaw:["",7],Zagreb:["Europe/Belgrade",7],Zaporozhye:["Europe/Kyiv",65],Zurich:["",7]},"GB-Eire":["Europe/London",92],GB:["Europe/London",92],"GMT-0":["Etc/GMT",0],GMT:["Etc/GMT",0],"GMT+0":["Etc/GMT",0],GMT0:["Etc/GMT",0],Greenwich:["Etc/GMT",0],Hongkong:["Asia/Hong_Kong",56],HST:["",96],Iceland:["Africa/Abidjan",0],Indian:{Antananarivo:["Africa/Nairobi",1],Chagos:["",45],Christmas:["Asia/Bangkok",38],Cocos:["Asia/Yangon",67],Comoro:["Africa/Nairobi",1],Kerguelen:["Indian/Maldives",41],Mahe:["Asia/Dubai",47],Maldives:["",41],Mauritius:["",47],Mayotte:["Africa/Nairobi",1],Reunion:["Asia/Dubai",47]},Iran:["Asia/Tehran",68],Israel:["Asia/Jerusalem",59],Jamaica:["America/Jamaica",14],Japan:["Asia/Tokyo",69],Kwajalein:["Pacific/Kwajalein",46],Libya:["Africa/Tripoli",5],MET:["",97],Mexico:{BajaNorte:["America/Tijuana",24],BajaSur:["America/Mazatlan",21],General:["America/Mexico_City",30]},MST:["",22],MST7MDT:["",19],Navajo:["America/Denver",19],"NZ-CHAT":["Pacific/Chatham",98],NZ:["Pacific/Auckland",42],Pacific:{Apia:["",81],Auckland:["",42],Bougainville:["",37],Chatham:["",98],Chuuk:["Pacific/Port_Moresby",39],Easter:["",79],Efate:["",37],Enderbury:["Pacific/Kanton",81],Fakaofo:["",81],Fiji:["",99],Funafuti:["Pacific/Tarawa",46],Galapagos:["",87],Gambier:["",90],Guadalcanal:["",37],Guam:["",100],Honolulu:["",96],Johnston:["Pacific/Honolulu",96],Kanton:["",81],Kiritimati:["",82],Kosrae:["",37],Kwajalein:["",46],Majuro:["Pacific/Tarawa",46],Marquesas:["",101],Midway:["Pacific/Pago_Pago",102],Nauru:["",46],Niue:["",85],Norfolk:["",103],Noumea:["",37],Pago_Pago:["",102],Palau:["",51],Pitcairn:["",89],Pohnpei:["Pacific/Guadalcanal",37],Ponape:["Pacific/Guadalcanal",37],Port_Moresby:["",39],Rarotonga:["",84],Saipan:["Pacific/Guam",100],Samoa:["Pacific/Pago_Pago",102],Tahiti:["",84],Tarawa:["",46],Tongatapu:["",81],Truk:["Pacific/Port_Moresby",39],Wake:["Pacific/Tarawa",46],Wallis:["Pacific/Tarawa",46],Yap:["Pacific/Port_Moresby",39]},Poland:["Europe/Warsaw",7],Portugal:["Europe/Lisbon",94],PRC:["Asia/Shanghai",52],PST8PDT:["",24],ROC:["Asia/Taipei",52],ROK:["Asia/Seoul",66],Singapore:["Asia/Singapore",49],Turkey:["Europe/Istanbul",43],UCT:["Etc/UTC",91],Universal:["Etc/UTC",91],US:{Alaska:["America/Anchorage",10],Aleutian:["America/Adak",9],Arizona:["America/Phoenix",22],Central:["America/Chicago",20],"East-Indiana":["America/Indiana/Indianapolis",23],Eastern:["America/New_York",23],Hawaii:["Pacific/Honolulu",96],"Indiana-Starke":["America/Indiana/Knox",20],Michigan:["America/Detroit",23],Mountain:["America/Denver",19],Pacific:["America/Los_Angeles",24],Samoa:["Pacific/Pago_Pago",102]},UTC:["Etc/UTC",91],"W-SU":["Europe/Moscow",95],WET:["",70],Zulu:["Etc/UTC",91]},tzlibZonesDetailsDB=["20221015T115821ZGMT+0000+000019700101T000000","20221015T115821ZEAT+0300+030019700101T000000","20221015T115821ZCET+0100+010019700101T000000","20221015T115821ZWAT+0100+010019700101T000000","20221015T115821ZCAT+0200+020019700101T000000","20221015T115821ZEET+0200+020019700101T000000","20221015T115821Z+01+0100+010019700101T000000","20221015T115821ZCEST+0100+020019700329T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUCET+0200+010019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZSAST+0200+020019700101T000000","20221015T115821ZHDT-1000-090019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUHST-0900-100019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZAKDT-0900-080019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUAKST-0800-090019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZAST-0400-040019700101T000000","20221015T115821Z-03-0300-030019700101T000000","20221015T115821Z-03-0400-030019701004T000000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU-04-0300-040019700322T000000FREQ=YEARLY;BYMONTH=3;BYDAY=4SU","20221015T115821ZEST-0500-050019700101T000000","20221015T115821ZCST-0500-060019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SUCDT-0600-050019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821ZCST-0600-060019700101T000000","20221015T115821Z-04-0400-040019700101T000000","20221015T115821Z-05-0500-050019700101T000000","20221015T115821ZMDT-0700-060019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUMST-0600-070019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZCDT-0600-050019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUCST-0500-060019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZMDT-0700-060019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUMST-0600-070019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZMST-0700-070019700101T000000","20221015T115821ZEDT-0500-040019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUEST-0400-050019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZPDT-0800-070019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUPST-0700-080019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821ZADT-0400-030019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SUAST-0300-040019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821Z-02-0300-020019700328T220000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA-03-0200-030019701024T230000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA","20221015T115821ZAST-0300-040019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUADT-0400-030019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821ZEST-0400-050019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUEDT-0500-040019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821ZCST-0400-050019701101T010000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUCDT-0500-040019700308T000000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821ZCDT-0600-050019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUCST-0500-060019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z-02-0300-020019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU-03-0200-030019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SU","20221015T115821Z-02-0200-020019700101T000000","20221015T115821ZCST-0500-060019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUCDT-0600-050019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821Z-04-0300-040019700405T000000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU-03-0400-030019700906T000000FREQ=YEARLY;BYMONTH=9;BYDAY=1SU","20221015T115821Z+00-0100+000019700329T000000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU-01+0000-010019701025T010000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZNST-0230-033019701101T020000FREQ=YEARLY;BYMONTH=11;BYDAY=1SUNDT-0330-023019700308T020000FREQ=YEARLY;BYMONTH=3;BYDAY=2SU","20221015T115821Z+11+1100+110019700101T000000","20221015T115821Z+07+0700+070019700101T000000","20221015T115821Z+10+1000+100019700101T000000","20221015T115821ZAEST+1100+100019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUAEDT+1000+110019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU","20221015T115821Z+05+0500+050019700101T000000","20221015T115821ZNZDT+1200+130019700927T020000FREQ=YEARLY;BYMONTH=9;BYDAY=-1SUNZST+1300+120019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821Z+03+0300+030019700101T000000","20221015T115821Z+02+0000+020019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU+00+0200+000019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+06+0600+060019700101T000000","20221015T115821Z+12+1200+120019700101T000000","20221015T115821Z+04+0400+040019700101T000000","20221015T115821ZEEST+0200+030019700329T000000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUEET+0300+020019701025T000000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+08+0800+080019700101T000000","20221015T115821ZIST+0530+053019700101T000000","20221015T115821Z+09+0900+090019700101T000000","20221015T115821ZCST+0800+080019700101T000000","20221015T115821Z+0530+0530+053019700101T000000","20221015T115821ZEEST+0200+030019700329T030000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUEET+0300+020019701025T040000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZEET+0300+020019701024T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SAEEST+0200+030019700328T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA","20221015T115821ZHKT+0800+080019700101T000000","20221015T115821ZWIB+0700+070019700101T000000","20221015T115821ZWIT+0900+090019700101T000000","20221015T115821ZIDT+0200+030019700327T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1FRIST+0300+020019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+0430+0430+043019700101T000000","20221015T115821ZPKT+0500+050019700101T000000","20221015T115821Z+0545+0545+054519700101T000000","20221015T115821ZWITA+0800+080019700101T000000","20221015T115821ZPST+0800+080019700101T000000","20221015T115821ZEET+0300+020019701025T040000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SUEEST+0200+030019700329T030000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU","20221015T115821ZKST+0900+090019700101T000000","20221015T115821Z+0630+0630+063019700101T000000","20221015T115821Z+0330+0330+033019700101T000000","20221015T115821ZJST+0900+090019700101T000000","20221015T115821ZWEST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUWET+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z-01-0100-010019700101T000000","20221015T115821ZACST+1030+093019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SUACDT+0930+103019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU","20221015T115821ZAEST+1000+100019700101T000000","20221015T115821ZAEDT+1000+110019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SUAEST+1100+100019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821ZACST+0930+093019700101T000000","20221015T115821Z+0845+0845+084519700101T000000","20221015T115821Z+1030+1100+103019700405T020000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU+11+1030+110019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU","20221015T115821ZAWST+0800+080019700101T000000","20221015T115821Z-06-0500-060019700404T220000FREQ=YEARLY;BYMONTH=4;BYDAY=1SA-05-0600-050019700905T220000FREQ=YEARLY;BYMONTH=9;BYDAY=1SA","20221015T115821ZIST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUGMT+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+13+1300+130019700101T000000","20221015T115821Z+14+1400+140019700101T000000","20221015T115821Z+02+0200+020019700101T000000","20221015T115821Z-10-1000-100019700101T000000","20221015T115821Z-11-1100-110019700101T000000","20221015T115821Z-12-1200-120019700101T000000","20221015T115821Z-06-0600-060019700101T000000","20221015T115821Z-07-0700-070019700101T000000","20221015T115821Z-08-0800-080019700101T000000","20221015T115821Z-09-0900-090019700101T000000","20221015T115821ZUTC+0000+000019700101T000000","20221015T115821ZBST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUGMT+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZEEST+0200+030019700329T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUEET+0300+020019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821ZWET+0100+000019701025T020000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SUWEST+0000+010019700329T010000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU","20221015T115821ZMSK+0300+030019700101T000000","20221015T115821ZHST-1000-100019700101T000000","20221015T115821ZMEST+0100+020019700329T020000FREQ=YEARLY;BYMONTH=3;BYDAY=-1SUMET+0200+010019701025T030000FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU","20221015T115821Z+1345+1245+134519700927T024500FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU+1245+1345+124519700405T034500FREQ=YEARLY;BYMONTH=4;BYDAY=1SU","20221015T115821Z+13+1200+130019701108T020000FREQ=YEARLY;BYMONTH=11;BYDAY=2SU+12+1300+120019700118T030000FREQ=YEARLY;BYMONTH=1;BYDAY=-2SU","20221015T115821ZChST+1000+100019700101T000000","20221015T115821Z-0930-0930-093019700101T000000","20221015T115821ZSST-1100-110019700101T000000","20221015T115821Z+12+1100+120019701004T020000FREQ=YEARLY;BYMONTH=10;BYDAY=1SU+11+1200+110019700405T030000FREQ=YEARLY;BYMONTH=4;BYDAY=1SU"];function tzlib_get_content(n){n=n.split("/");return(3!==n.length||tzlibZonesDB[""+n[0]]&&tzlibZonesDB[""+n[0]][""+n[1]]&&tzlibZonesDB[""+n[0]][""+n[1]][""+n[2]])&&(2!==n.length||tzlibZonesDB[""+n[0]]&&tzlibZonesDB[""+n[0]][""+n[1]])&&(1!==n.length||tzlibZonesDB[""+n[0]])?3===n.length?[tzlibZonesDB[""+n[0]][""+n[1]][""+n[2]][0],tzlib_enrich_data(tzlibZonesDetailsDB[tzlibZonesDB[""+n[0]][""+n[1]][""+n[2]][1]])]:2===n.length?[tzlibZonesDB[""+n[0]][""+n[1]][0],tzlib_enrich_data(tzlibZonesDetailsDB[tzlibZonesDB[""+n[0]][""+n[1]][1]])]:[tzlibZonesDB[""+n[0]][0],tzlib_enrich_data(tzlibZonesDetailsDB[tzlibZonesDB[""+n[0]][1]])]:(console.error("Given timezone not valid."),"")}function tzlib_enrich_data(n){var a,o;for([a,o]of Object.entries({"
":"","TZNAME:":"","TZOFFSETFROM:":"","TZOFFSETTO:":"","DTSTART:":"","RRULE:":"","BEGIN:DAYLIGHT":"","END:DAYLIGHT":"","BEGIN:STANDARD":"","END:STANDARD":""}))n=n.replaceAll(o,a);return n}function tzlib_get_ical_block(n,a=!1){const o=tzlib_get_content(n);var e;return null==o[1]||""==o[1]?"":(e="TZID="+(n=""==o[0]?n:o[0]),n=["BEGIN:VTIMEZONE\r\nTZID:"+n+"\r\nX-LIC-LOCATION:"+n+"\r\nLAST-MODIFIED:"+o[1].replace(/[^\w_\-:,;=+/
]/g,"").replace(/
/g,"\r\n")+"END:VTIMEZONE",e],a?JSON.stringify(n):n)}function tzlib_get_offset(n,a,o){const e=tzlib_get_content(n);if(null==e[1]||""==e[1])return"";if(!a.match(/^\d{4}-\d{2}-\d{2}$/))return console.error("offset calculation failed: date misspelled [-> YYYY-MM-DD]"),"";if(!o.match(/^\d{2}:\d{2}$/))return console.error("offset calculation failed: time misspelled [-> hh:mm]"),"";if(!e[1].match(/BEGIN:DAYLIGHT/i))return e[1].match(/TZOFFSETTO:([+|-]\d{4})/i)[1];const t=new Date(a+"T"+o+":00");n=t.getFullYear();const i=t.getMonth()+1;a=t.getDate(),o=t.getHours();const s=e[1].replace(/[^\w_\-:,;=+/
]/g,"").split("
"),r={1:{},2:{}};let T=0;for(let a=0;ar[2].month&&([r[1],r[2]]=[r[2],r[1]]),i!=r[1].month&&i!=r[2].month)return(ir[2].month?r[2]:r[1]).offset;const Y=Object.keys(r).find(n=>r[""+n].month==i);var c=["SU","MO","TU","WE","TH","FR","SA"],u=new Date(n,i,0).getDate();let l=new Date(n,i-1,1).getDay();const E={SU:{},MO:{},TU:{},WE:{},TH:{},FR:{},SA:{}};for(let n=1;n<=u;n++){var b=Object.keys(E[c[""+l]]).length+1;E[c[""+l]][""+b]=n,7==++l&&(l=0)}var f,n="-"==r[""+Y].day[0]?(f=r[""+Y].day.substr(2,2),n=Object.keys(E[""+f]).length+1-parseInt(r[""+Y].day[1]),E[""+f][""+n]):(f=r[""+Y].day.substr(1,2),E[""+f][r[""+Y].day[0]]);return(n=r[""+Y].hour?r[""+Y]:(f=1==Y?2:1,r[""+f])).offset}let tzlibZoneNames=[];function tzlib_get_timezones(n=!1){return 0==tzlibZoneNames.length&&(tzlibZoneNames=function(){let n=[];for(var[a,o]of Object.entries(tzlibZonesDB))if("object"!=typeof o||Array.isArray(o))n.push(a);else for(var[e,t]of Object.entries(o))if("object"!=typeof t||Array.isArray(t))n.push(a+"/"+e);else for(var[i]of Object.entries(t))n.push(a+"/"+e+"/"+i);return n}()),n?JSON.stringify(tzlibZoneNames):tzlibZoneNames} -//# sourceMappingURL=tzlib.min.js.map \ No newline at end of file diff --git a/dist/tzlib.min.js.map b/dist/tzlib.min.js.map deleted file mode 100644 index 25807e9..0000000 --- a/dist/tzlib.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tzlib.min.js","sources":["tzlib.js"],"names":["tzlibVersion","tzlibZonesDB","Africa","Abidjan","Accra","Addis_Ababa","Algiers","Asmara","Asmera","Bamako","Bangui","Banjul","Bissau","Blantyre","Brazzaville","Bujumbura","Cairo","Casablanca","Ceuta","Conakry","Dakar","Dar_es_Salaam","Djibouti","Douala","El_Aaiun","Freetown","Gaborone","Harare","Johannesburg","Juba","Kampala","Khartoum","Kigali","Kinshasa","Lagos","Libreville","Lome","Luanda","Lubumbashi","Lusaka","Malabo","Maputo","Maseru","Mbabane","Mogadishu","Monrovia","Nairobi","Ndjamena","Niamey","Nouakchott","Ouagadougou","Porto-Novo","Sao_Tome","Timbuktu","Tripoli","Tunis","Windhoek","America","Adak","Anchorage","Anguilla","Antigua","Araguaina","Argentina","Buenos_Aires","Catamarca","ComodRivadavia","Cordoba","Jujuy","La_Rioja","Mendoza","Rio_Gallegos","Salta","San_Juan","San_Luis","Tucuman","Ushuaia","Aruba","Asuncion","Atikokan","Atka","Bahia_Banderas","Bahia","Barbados","Belem","Belize","Blanc-Sablon","Boa_Vista","Bogota","Boise","Cambridge_Bay","Campo_Grande","Cancun","Caracas","Cayenne","Cayman","Chicago","Chihuahua","Coral_Harbour","Costa_Rica","Creston","Cuiaba","Curacao","Danmarkshavn","Dawson_Creek","Dawson","Denver","Detroit","Dominica","Edmonton","Eirunepe","El_Salvador","Ensenada","Fort_Nelson","Fort_Wayne","Fortaleza","Glace_Bay","Godthab","Goose_Bay","Grand_Turk","Grenada","Guadeloupe","Guatemala","Guayaquil","Guyana","Halifax","Havana","Hermosillo","Indiana","Indianapolis","Knox","Marengo","Petersburg","Tell_City","Vevay","Vincennes","Winamac","Inuvik","Iqaluit","Jamaica","Juneau","Kentucky","Louisville","Monticello","Knox_IN","Kralendijk","La_Paz","Lima","Los_Angeles","Lower_Princes","Maceio","Managua","Manaus","Marigot","Martinique","Matamoros","Mazatlan","Menominee","Merida","Metlakatla","Mexico_City","Miquelon","Moncton","Monterrey","Montevideo","Montreal","Montserrat","Nassau","New_York","Nipigon","Nome","Noronha","North_Dakota","Beulah","Center","New_Salem","Nuuk","Ojinaga","Panama","Pangnirtung","Paramaribo","Phoenix","Port_of_Spain","Port-au-Prince","Porto_Acre","Porto_Velho","Puerto_Rico","Punta_Arenas","Rainy_River","Rankin_Inlet","Recife","Regina","Resolute","Rio_Branco","Rosario","Santa_Isabel","Santarem","Santiago","Santo_Domingo","Sao_Paulo","Scoresbysund","Shiprock","Sitka","St_Barthelemy","St_Johns","St_Kitts","St_Lucia","St_Thomas","St_Vincent","Swift_Current","Tegucigalpa","Thule","Thunder_Bay","Tijuana","Toronto","Tortola","Vancouver","Virgin","Whitehorse","Winnipeg","Yakutat","Yellowknife","Antarctica","Casey","Davis","DumontDUrville","Macquarie","Mawson","McMurdo","Palmer","Rothera","South_Pole","Syowa","Troll","Vostok","Arctic","Longyearbyen","Asia","Aden","Almaty","Amman","Anadyr","Aqtau","Aqtobe","Ashgabat","Ashkhabad","Atyrau","Baghdad","Bahrain","Baku","Bangkok","Barnaul","Beirut","Bishkek","Brunei","Calcutta","Chita","Choibalsan","Chongqing","Chungking","Colombo","Dacca","Damascus","Dhaka","Dili","Dubai","Dushanbe","Famagusta","Gaza","Harbin","Hebron","Ho_Chi_Minh","Hong_Kong","Hovd","Irkutsk","Istanbul","Jakarta","Jayapura","Jerusalem","Kabul","Kamchatka","Karachi","Kashgar","Kathmandu","Katmandu","Khandyga","Kolkata","Krasnoyarsk","Kuala_Lumpur","Kuching","Kuwait","Macao","Macau","Magadan","Makassar","Manila","Muscat","Nicosia","Novokuznetsk","Novosibirsk","Omsk","Oral","Phnom_Penh","Pontianak","Pyongyang","Qatar","Qostanay","Qyzylorda","Rangoon","Riyadh","Saigon","Sakhalin","Samarkand","Seoul","Shanghai","Singapore","Srednekolymsk","Taipei","Tashkent","Tbilisi","Tehran","Tel_Aviv","Thimbu","Thimphu","Tokyo","Tomsk","Ujung_Pandang","Ulaanbaatar","Ulan_Bator","Urumqi","Ust-Nera","Vientiane","Vladivostok","Yakutsk","Yangon","Yekaterinburg","Yerevan","Atlantic","Azores","Bermuda","Canary","Cape_Verde","Faeroe","Faroe","Jan_Mayen","Madeira","Reykjavik","South_Georgia","St_Helena","Stanley","Australia","ACT","Adelaide","Brisbane","Broken_Hill","Canberra","Currie","Darwin","Eucla","Hobart","LHI","Lindeman","Lord_Howe","Melbourne","North","NSW","Perth","Queensland","South","Sydney","Tasmania","Victoria","West","Yancowinna","Brazil","Acre","DeNoronha","East","Canada","Central","Eastern","Mountain","Newfoundland","Pacific","Saskatchewan","Yukon","CET","Chile","Continental","EasterIsland","CST6CDT","Cuba","EET","Egypt","Eire","EST","EST5EDT","Etc","GMT-0","GMT-1","GMT-10","GMT-11","GMT-12","GMT-13","GMT-14","GMT-2","GMT-3","GMT-4","GMT-5","GMT-6","GMT-7","GMT-8","GMT-9","GMT","GMT+0","GMT+1","GMT+10","GMT+11","GMT+12","GMT+2","GMT+3","GMT+4","GMT+5","GMT+6","GMT+7","GMT+8","GMT+9","GMT0","Greenwich","UCT","Universal","UTC","Zulu","Europe","Amsterdam","Andorra","Astrakhan","Athens","Belfast","Belgrade","Berlin","Bratislava","Brussels","Bucharest","Budapest","Busingen","Chisinau","Copenhagen","Dublin","Gibraltar","Guernsey","Helsinki","Isle_of_Man","Jersey","Kaliningrad","Kiev","Kirov","Kyiv","Lisbon","Ljubljana","London","Luxembourg","Madrid","Malta","Mariehamn","Minsk","Monaco","Moscow","Oslo","Paris","Podgorica","Prague","Riga","Rome","Samara","San_Marino","Sarajevo","Saratov","Simferopol","Skopje","Sofia","Stockholm","Tallinn","Tirane","Tiraspol","Ulyanovsk","Uzhgorod","Vaduz","Vatican","Vienna","Vilnius","Volgograd","Warsaw","Zagreb","Zaporozhye","Zurich","GB-Eire","GB","Hongkong","HST","Iceland","Indian","Antananarivo","Chagos","Christmas","Cocos","Comoro","Kerguelen","Mahe","Maldives","Mauritius","Mayotte","Reunion","Iran","Israel","Japan","Kwajalein","Libya","MET","Mexico","BajaNorte","BajaSur","General","MST","MST7MDT","Navajo","NZ-CHAT","NZ","Apia","Auckland","Bougainville","Chatham","Chuuk","Easter","Efate","Enderbury","Fakaofo","Fiji","Funafuti","Galapagos","Gambier","Guadalcanal","Guam","Honolulu","Johnston","Kanton","Kiritimati","Kosrae","Majuro","Marquesas","Midway","Nauru","Niue","Norfolk","Noumea","Pago_Pago","Palau","Pitcairn","Pohnpei","Ponape","Port_Moresby","Rarotonga","Saipan","Samoa","Tahiti","Tarawa","Tongatapu","Truk","Wake","Wallis","Yap","Poland","Portugal","PRC","PST8PDT","ROC","ROK","Turkey","US","Alaska","Aleutian","Arizona","East-Indiana","Hawaii","Indiana-Starke","Michigan","W-SU","WET","tzlibZonesDetailsDB","tzlib_get_content","tzName","nameParts","split","length","tzlib_enrich_data","console","error","string","key","value","Object","entries","
","TZNAME:","TZOFFSETFROM:","TZOFFSETTO:","DTSTART:","RRULE:","BEGIN:DAYLIGHT","END:DAYLIGHT","BEGIN:STANDARD","END:STANDARD","replaceAll","tzlib_get_ical_block","jsonType","tzBlock","tzidLine","location","output","replace","JSON","stringify","tzlib_get_offset","isoDate","isoTime","match","date","Date","dateYear","getFullYear","dateMonth","getMonth","dateDay","getDate","dateHour","getHours","timezoneData","tzBreakpoints","1","2","let","breakpointCount","i","startsWith","offset","hour","parseInt","substr","rruleParts","rruleMonth","month","day","theCase","keys","find","helperArrayWeekdays","numberDays","weekdayCount","getDay","weekdays","SU","MO","TU","WE","TH","FR","SA","d","occurence","fallbackCase","actualDay","breakpointWeekday","dayIndex","tzlibZoneNames","tzlib_get_timezones","namesArr","Array","isArray","push","key2","value2","key3"],"mappings":";;;;;;;;;;;;GAaA;MAAMA,aAAe,QACfC,aAAe,CAACC,OAAS,CAACC,QAAU,CAAC,GAAG,GAAGC,MAAQ,CAAC,iBAAiB,GAAGC,YAAc,CAAC,iBAAiB,GAAGC,QAAU,CAAC,GAAG,GAAGC,OAAS,CAAC,iBAAiB,GAAGC,OAAS,CAAC,iBAAiB,GAAGC,OAAS,CAAC,iBAAiB,GAAGC,OAAS,CAAC,eAAe,GAAGC,OAAS,CAAC,iBAAiB,GAAGC,OAAS,CAAC,GAAG,GAAGC,SAAW,CAAC,gBAAgB,GAAGC,YAAc,CAAC,eAAe,GAAGC,UAAY,CAAC,gBAAgB,GAAGC,MAAQ,CAAC,GAAG,GAAGC,WAAa,CAAC,GAAG,GAAGC,MAAQ,CAAC,GAAG,GAAGC,QAAU,CAAC,iBAAiB,GAAGC,MAAQ,CAAC,iBAAiB,GAAGC,cAAgB,CAAC,iBAAiB,GAAGC,SAAW,CAAC,iBAAiB,GAAGC,OAAS,CAAC,eAAe,GAAGC,SAAW,CAAC,GAAG,GAAGC,SAAW,CAAC,iBAAiB,GAAGC,SAAW,CAAC,gBAAgB,GAAGC,OAAS,CAAC,gBAAgB,GAAGC,aAAe,CAAC,GAAG,GAAGC,KAAO,CAAC,GAAG,GAAGC,QAAU,CAAC,iBAAiB,GAAGC,SAAW,CAAC,GAAG,GAAGC,OAAS,CAAC,gBAAgB,GAAGC,SAAW,CAAC,eAAe,GAAGC,MAAQ,CAAC,GAAG,GAAGC,WAAa,CAAC,eAAe,GAAGC,KAAO,CAAC,iBAAiB,GAAGC,OAAS,CAAC,eAAe,GAAGC,WAAa,CAAC,gBAAgB,GAAGC,OAAS,CAAC,gBAAgB,GAAGC,OAAS,CAAC,eAAe,GAAGC,OAAS,CAAC,GAAG,GAA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js index 597f6ed..56eda9f 100644 --- a/generator.js +++ b/generator.js @@ -3,7 +3,7 @@ * Add to Calendar TimeZones iCal Library * ++++++++++++++++++++++++++++++++++++++ * - * Version: 1.4.2 + * Version: 1.5.0 * Creator: Jens Kuerschner (https://jenskuerschner.de) * Project: https://github.com/add2cal/timezones-ical-library * License: Apache-2.0 diff --git a/index.html b/index.html index 6a3f4c1..ae60ee7 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@ - + @@ -263,15 +263,15 @@

Background story

This page is hosted via "GitHub Pages". It includes some very basic analytics, that still preserves your anonymity and does not use any cookies. However, mind that the GitHub privacy policy applies additionally (click here for details).

-
v1.4.2
+
v1.5.0
- + - + diff --git a/package-lock.json b/package-lock.json index 2141a4f..132f439 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "timezones-ical-library", - "version": "1.4.2", + "version": "1.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "timezones-ical-library", - "version": "1.4.2", + "version": "1.5.0", "license": "Apache-2.0", "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.40.1", - "@typescript-eslint/parser": "^5.40.1", - "eslint": "^8.25.0", + "@typescript-eslint/eslint-plugin": "^5.42.1", + "@typescript-eslint/parser": "^5.42.1", + "eslint": "^8.27.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-commonjs": "^1.0.2", "eslint-plugin-security": "^1.5.0", @@ -24,7 +24,7 @@ "grunt-file-creator": "^0.1.3", "grunt-version": "^3.0.0", "prettier": "^2.7.1", - "stylelint": "^14.14.0", + "stylelint": "^14.14.1", "stylelint-config-prettier": "^9.0.3", "stylelint-config-standard": "^29.0.0" }, @@ -200,14 +200,14 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.6.tgz", - "integrity": "sha512-U/piU+VwXZsIgwnl+N+nRK12jCpHdc3s0UAc6zc1+HUgiESJxClpvYao/x9JwaN7onNeVb7kTlxlAvuEoaJ3ig==", + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", + "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" }, "engines": { "node": ">=10.10.0" @@ -292,22 +292,23 @@ "dev": true }, "node_modules/@types/semver": { - "version": "7.3.12", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.12.tgz", - "integrity": "sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==", + "version": "7.3.13", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.1.tgz", - "integrity": "sha512-FsWboKkWdytGiXT5O1/R9j37YgcjO8MKHSUmWnIEjVaz0krHkplPnYi7mwdb+5+cs0toFNQb0HIrN7zONdIEWg==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.1.tgz", + "integrity": "sha512-LyR6x784JCiJ1j6sH5Y0K6cdExqCCm8DJUTcwG5ThNXJj/G8o5E56u5EdG4SLy+bZAwZBswC+GYn3eGdttBVCg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.40.1", - "@typescript-eslint/type-utils": "5.40.1", - "@typescript-eslint/utils": "5.40.1", + "@typescript-eslint/scope-manager": "5.42.1", + "@typescript-eslint/type-utils": "5.42.1", + "@typescript-eslint/utils": "5.42.1", "debug": "^4.3.4", "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", "regexpp": "^3.2.0", "semver": "^7.3.7", "tsutils": "^3.21.0" @@ -330,14 +331,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.40.1.tgz", - "integrity": "sha512-IK6x55va5w4YvXd4b3VrXQPldV9vQTxi5ov+g4pMANsXPTXOcfjx08CRR1Dfrcc51syPtXHF5bgLlMHYFrvQtg==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.42.1.tgz", + "integrity": "sha512-kAV+NiNBWVQDY9gDJDToTE/NO8BHi4f6b7zTsVAJoTkmB/zlfOpiEVBzHOKtlgTndCKe8vj9F/PuolemZSh50Q==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.40.1", - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/typescript-estree": "5.40.1", + "@typescript-eslint/scope-manager": "5.42.1", + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/typescript-estree": "5.42.1", "debug": "^4.3.4" }, "engines": { @@ -357,13 +358,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.40.1.tgz", - "integrity": "sha512-jkn4xsJiUQucI16OLCXrLRXDZ3afKhOIqXs4R3O+M00hdQLKR58WuyXPZZjhKLFCEP2g+TXdBRtLQ33UfAdRUg==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.42.1.tgz", + "integrity": "sha512-QAZY/CBP1Emx4rzxurgqj3rUinfsh/6mvuKbLNMfJMMKYLRBfweus8brgXF8f64ABkIZ3zdj2/rYYtF8eiuksQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/visitor-keys": "5.40.1" + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/visitor-keys": "5.42.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -374,13 +375,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.40.1.tgz", - "integrity": "sha512-DLAs+AHQOe6n5LRraXiv27IYPhleF0ldEmx6yBqBgBLaNRKTkffhV1RPsjoJBhVup2zHxfaRtan8/YRBgYhU9Q==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.42.1.tgz", + "integrity": "sha512-WWiMChneex5w4xPIX56SSnQQo0tEOy5ZV2dqmj8Z371LJ0E+aymWD25JQ/l4FOuuX+Q49A7pzh/CGIQflxMVXg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.40.1", - "@typescript-eslint/utils": "5.40.1", + "@typescript-eslint/typescript-estree": "5.42.1", + "@typescript-eslint/utils": "5.42.1", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -401,9 +402,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.40.1.tgz", - "integrity": "sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.42.1.tgz", + "integrity": "sha512-Qrco9dsFF5lhalz+lLFtxs3ui1/YfC6NdXu+RAGBa8uSfn01cjO7ssCsjIsUs484vny9Xm699FSKwpkCcqwWwA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -414,13 +415,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.1.tgz", - "integrity": "sha512-5QTP/nW5+60jBcEPfXy/EZL01qrl9GZtbgDZtDPlfW5zj/zjNrdI2B5zMUHmOsfvOr2cWqwVdWjobCiHcedmQA==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.1.tgz", + "integrity": "sha512-qElc0bDOuO0B8wDhhW4mYVgi/LZL+igPwXtV87n69/kYC/7NG3MES0jHxJNCr4EP7kY1XVsRy8C/u3DYeTKQmw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/visitor-keys": "5.40.1", + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/visitor-keys": "5.42.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -441,16 +442,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.40.1.tgz", - "integrity": "sha512-a2TAVScoX9fjryNrW6BZRnreDUszxqm9eQ9Esv8n5nXApMW0zeANUYlwh/DED04SC/ifuBvXgZpIK5xeJHQ3aw==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.42.1.tgz", + "integrity": "sha512-Gxvf12xSp3iYZd/fLqiQRD4uKZjDNR01bQ+j8zvhPjpsZ4HmvEFL/tC4amGNyxN9Rq+iqvpHLhlqx6KTxz9ZyQ==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.40.1", - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/typescript-estree": "5.40.1", + "@typescript-eslint/scope-manager": "5.42.1", + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/typescript-estree": "5.42.1", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" @@ -489,12 +490,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.1.tgz", - "integrity": "sha512-A2DGmeZ+FMja0geX5rww+DpvILpwo1OsiQs0M+joPWJYsiEFBLsH0y1oFymPNul6Z5okSmHpP4ivkc2N0Cgfkw==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.1.tgz", + "integrity": "sha512-LOQtSF4z+hejmpUvitPlc4hA7ERGoj2BVkesOcG91HCn8edLGUXbTrErmutmPbl8Bo9HjAvOO/zBKQHExXNA2A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.40.1", + "@typescript-eslint/types": "5.42.1", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -934,14 +935,15 @@ } }, "node_modules/eslint": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.25.0.tgz", - "integrity": "sha512-DVlJOZ4Pn50zcKW5bYH7GQK/9MsoQG2d5eDH0ebEkE8PbgzTTmtt/VTH9GGJ4BfeZCpBLqFfvsjX35UacUL83A==", + "version": "8.27.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", + "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.10.5", + "@humanwhocodes/config-array": "^0.11.6", "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -957,14 +959,14 @@ "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", - "glob-parent": "^6.0.1", + "glob-parent": "^6.0.2", "globals": "^13.15.0", - "globby": "^11.1.0", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", @@ -2336,6 +2338,15 @@ "node": ">=0.12.0" } }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-plain-obj": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", @@ -2458,9 +2469,9 @@ } }, "node_modules/known-css-properties": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.25.0.tgz", - "integrity": "sha512-b0/9J1O9Jcyik1GC6KC42hJ41jKwdO/Mq8Mdo5sYN+IuRTXs2YFHZC3kZSx6ueusqa95x3wLYe/ytKjbAfGixA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", + "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", "dev": true }, "node_modules/levn": { @@ -2796,6 +2807,12 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, "node_modules/nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -3788,9 +3805,9 @@ "dev": true }, "node_modules/stylelint": { - "version": "14.14.0", - "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.14.0.tgz", - "integrity": "sha512-yUI+4xXfPHVnueYddSQ/e1GuEA/2wVhWQbGj16AmWLtQJtn28lVxfS4b0CsWyVRPgd3Auzi0NXOthIEUhtQmmA==", + "version": "14.14.1", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.14.1.tgz", + "integrity": "sha512-Jnftu+lSD8cSpcV/+Z2nfgfgFpTIS1FcujezXPngtoIQ6wtwutL22MsNE0dJuMiM1h1790g2qIjAyUZCMrX4sw==", "dev": true, "dependencies": { "@csstools/selector-specificity": "^2.0.2", @@ -3810,13 +3827,13 @@ "import-lazy": "^4.0.0", "imurmurhash": "^0.1.4", "is-plain-object": "^5.0.0", - "known-css-properties": "^0.25.0", + "known-css-properties": "^0.26.0", "mathml-tag-names": "^2.1.3", "meow": "^9.0.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", "picocolors": "^1.0.0", - "postcss": "^8.4.17", + "postcss": "^8.4.18", "postcss-media-query-parser": "^0.2.3", "postcss-resolve-nested-selector": "^0.1.1", "postcss-safe-parser": "^6.0.0", @@ -3828,7 +3845,7 @@ "style-search": "^0.1.0", "supports-hyperlinks": "^2.3.0", "svg-tags": "^1.0.0", - "table": "^6.8.0", + "table": "^6.8.1", "v8-compile-cache": "^2.3.0", "write-file-atomic": "^4.0.2" }, @@ -4016,9 +4033,9 @@ "dev": true }, "node_modules/table": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.0.tgz", - "integrity": "sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", "dev": true, "dependencies": { "ajv": "^8.0.1", @@ -4462,14 +4479,14 @@ } }, "@humanwhocodes/config-array": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.6.tgz", - "integrity": "sha512-U/piU+VwXZsIgwnl+N+nRK12jCpHdc3s0UAc6zc1+HUgiESJxClpvYao/x9JwaN7onNeVb7kTlxlAvuEoaJ3ig==", + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", + "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", "dev": true, "requires": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" } }, "@humanwhocodes/module-importer": { @@ -4535,75 +4552,76 @@ "dev": true }, "@types/semver": { - "version": "7.3.12", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.12.tgz", - "integrity": "sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==", + "version": "7.3.13", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.1.tgz", - "integrity": "sha512-FsWboKkWdytGiXT5O1/R9j37YgcjO8MKHSUmWnIEjVaz0krHkplPnYi7mwdb+5+cs0toFNQb0HIrN7zONdIEWg==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.1.tgz", + "integrity": "sha512-LyR6x784JCiJ1j6sH5Y0K6cdExqCCm8DJUTcwG5ThNXJj/G8o5E56u5EdG4SLy+bZAwZBswC+GYn3eGdttBVCg==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.40.1", - "@typescript-eslint/type-utils": "5.40.1", - "@typescript-eslint/utils": "5.40.1", + "@typescript-eslint/scope-manager": "5.42.1", + "@typescript-eslint/type-utils": "5.42.1", + "@typescript-eslint/utils": "5.42.1", "debug": "^4.3.4", "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", "regexpp": "^3.2.0", "semver": "^7.3.7", "tsutils": "^3.21.0" } }, "@typescript-eslint/parser": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.40.1.tgz", - "integrity": "sha512-IK6x55va5w4YvXd4b3VrXQPldV9vQTxi5ov+g4pMANsXPTXOcfjx08CRR1Dfrcc51syPtXHF5bgLlMHYFrvQtg==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.42.1.tgz", + "integrity": "sha512-kAV+NiNBWVQDY9gDJDToTE/NO8BHi4f6b7zTsVAJoTkmB/zlfOpiEVBzHOKtlgTndCKe8vj9F/PuolemZSh50Q==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.40.1", - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/typescript-estree": "5.40.1", + "@typescript-eslint/scope-manager": "5.42.1", + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/typescript-estree": "5.42.1", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.40.1.tgz", - "integrity": "sha512-jkn4xsJiUQucI16OLCXrLRXDZ3afKhOIqXs4R3O+M00hdQLKR58WuyXPZZjhKLFCEP2g+TXdBRtLQ33UfAdRUg==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.42.1.tgz", + "integrity": "sha512-QAZY/CBP1Emx4rzxurgqj3rUinfsh/6mvuKbLNMfJMMKYLRBfweus8brgXF8f64ABkIZ3zdj2/rYYtF8eiuksQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/visitor-keys": "5.40.1" + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/visitor-keys": "5.42.1" } }, "@typescript-eslint/type-utils": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.40.1.tgz", - "integrity": "sha512-DLAs+AHQOe6n5LRraXiv27IYPhleF0ldEmx6yBqBgBLaNRKTkffhV1RPsjoJBhVup2zHxfaRtan8/YRBgYhU9Q==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.42.1.tgz", + "integrity": "sha512-WWiMChneex5w4xPIX56SSnQQo0tEOy5ZV2dqmj8Z371LJ0E+aymWD25JQ/l4FOuuX+Q49A7pzh/CGIQflxMVXg==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "5.40.1", - "@typescript-eslint/utils": "5.40.1", + "@typescript-eslint/typescript-estree": "5.42.1", + "@typescript-eslint/utils": "5.42.1", "debug": "^4.3.4", "tsutils": "^3.21.0" } }, "@typescript-eslint/types": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.40.1.tgz", - "integrity": "sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.42.1.tgz", + "integrity": "sha512-Qrco9dsFF5lhalz+lLFtxs3ui1/YfC6NdXu+RAGBa8uSfn01cjO7ssCsjIsUs484vny9Xm699FSKwpkCcqwWwA==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.1.tgz", - "integrity": "sha512-5QTP/nW5+60jBcEPfXy/EZL01qrl9GZtbgDZtDPlfW5zj/zjNrdI2B5zMUHmOsfvOr2cWqwVdWjobCiHcedmQA==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.1.tgz", + "integrity": "sha512-qElc0bDOuO0B8wDhhW4mYVgi/LZL+igPwXtV87n69/kYC/7NG3MES0jHxJNCr4EP7kY1XVsRy8C/u3DYeTKQmw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/visitor-keys": "5.40.1", + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/visitor-keys": "5.42.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -4612,16 +4630,16 @@ } }, "@typescript-eslint/utils": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.40.1.tgz", - "integrity": "sha512-a2TAVScoX9fjryNrW6BZRnreDUszxqm9eQ9Esv8n5nXApMW0zeANUYlwh/DED04SC/ifuBvXgZpIK5xeJHQ3aw==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.42.1.tgz", + "integrity": "sha512-Gxvf12xSp3iYZd/fLqiQRD4uKZjDNR01bQ+j8zvhPjpsZ4HmvEFL/tC4amGNyxN9Rq+iqvpHLhlqx6KTxz9ZyQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.40.1", - "@typescript-eslint/types": "5.40.1", - "@typescript-eslint/typescript-estree": "5.40.1", + "@typescript-eslint/scope-manager": "5.42.1", + "@typescript-eslint/types": "5.42.1", + "@typescript-eslint/typescript-estree": "5.42.1", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" @@ -4646,12 +4664,12 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "5.40.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.1.tgz", - "integrity": "sha512-A2DGmeZ+FMja0geX5rww+DpvILpwo1OsiQs0M+joPWJYsiEFBLsH0y1oFymPNul6Z5okSmHpP4ivkc2N0Cgfkw==", + "version": "5.42.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.1.tgz", + "integrity": "sha512-LOQtSF4z+hejmpUvitPlc4hA7ERGoj2BVkesOcG91HCn8edLGUXbTrErmutmPbl8Bo9HjAvOO/zBKQHExXNA2A==", "dev": true, "requires": { - "@typescript-eslint/types": "5.40.1", + "@typescript-eslint/types": "5.42.1", "eslint-visitor-keys": "^3.3.0" } }, @@ -4979,14 +4997,15 @@ "dev": true }, "eslint": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.25.0.tgz", - "integrity": "sha512-DVlJOZ4Pn50zcKW5bYH7GQK/9MsoQG2d5eDH0ebEkE8PbgzTTmtt/VTH9GGJ4BfeZCpBLqFfvsjX35UacUL83A==", + "version": "8.27.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", + "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.10.5", + "@humanwhocodes/config-array": "^0.11.6", "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -5002,14 +5021,14 @@ "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", - "glob-parent": "^6.0.1", + "glob-parent": "^6.0.2", "globals": "^13.15.0", - "globby": "^11.1.0", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", @@ -6035,6 +6054,12 @@ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, "is-plain-obj": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", @@ -6133,9 +6158,9 @@ "dev": true }, "known-css-properties": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.25.0.tgz", - "integrity": "sha512-b0/9J1O9Jcyik1GC6KC42hJ41jKwdO/Mq8Mdo5sYN+IuRTXs2YFHZC3kZSx6ueusqa95x3wLYe/ytKjbAfGixA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", + "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", "dev": true }, "levn": { @@ -6383,6 +6408,12 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -7088,9 +7119,9 @@ "dev": true }, "stylelint": { - "version": "14.14.0", - "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.14.0.tgz", - "integrity": "sha512-yUI+4xXfPHVnueYddSQ/e1GuEA/2wVhWQbGj16AmWLtQJtn28lVxfS4b0CsWyVRPgd3Auzi0NXOthIEUhtQmmA==", + "version": "14.14.1", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.14.1.tgz", + "integrity": "sha512-Jnftu+lSD8cSpcV/+Z2nfgfgFpTIS1FcujezXPngtoIQ6wtwutL22MsNE0dJuMiM1h1790g2qIjAyUZCMrX4sw==", "dev": true, "requires": { "@csstools/selector-specificity": "^2.0.2", @@ -7110,13 +7141,13 @@ "import-lazy": "^4.0.0", "imurmurhash": "^0.1.4", "is-plain-object": "^5.0.0", - "known-css-properties": "^0.25.0", + "known-css-properties": "^0.26.0", "mathml-tag-names": "^2.1.3", "meow": "^9.0.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", "picocolors": "^1.0.0", - "postcss": "^8.4.17", + "postcss": "^8.4.18", "postcss-media-query-parser": "^0.2.3", "postcss-resolve-nested-selector": "^0.1.1", "postcss-safe-parser": "^6.0.0", @@ -7128,7 +7159,7 @@ "style-search": "^0.1.0", "supports-hyperlinks": "^2.3.0", "svg-tags": "^1.0.0", - "table": "^6.8.0", + "table": "^6.8.1", "v8-compile-cache": "^2.3.0", "write-file-atomic": "^4.0.2" }, @@ -7260,9 +7291,9 @@ "dev": true }, "table": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.0.tgz", - "integrity": "sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", "dev": true, "requires": { "ajv": "^8.0.1", diff --git a/package.json b/package.json index 083ac8d..5c537a4 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,24 @@ { "name": "timezones-ical-library", - "version": "1.4.2", + "version": "1.5.0", "engines": { "node": ">=14.20.0" }, "description": "Easy direct access to the most recent official timezone information for iCalendar files via JavaScript", - "main": "npm_dist/cjs/index.js", - "module": "npm_dist/mjs/index.js", + "main": "dist/cjs/index.js", + "module": "dist/mjs/index.js", "exports": { ".": { - "import": "./npm_dist/mjs/index.js", - "require": "./npm_dist/cjs/index.js" + "import": "./dist/mjs/index.js", + "require": "./dist/cjs/index.js" } }, + "files": [ + "dist", + "test" + ], "types": "index.d.ts", - "jsdelivr": "./dist/tzlib.min.js", + "jsdelivr": "./dist/tzlib.js", "repository": { "type": "git", "url": "https://github.com/add2cal/timezones-ical-library.git" @@ -62,13 +66,12 @@ "prettier:fix": "npm run prettier -- --write", "format": "npm run eslint:fix && npm run prettier:fix && npm run stylelint:fix", "test": "node test/tests.js", - "build-npm": "npx grunt npm", "build": "npx grunt" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.40.1", - "@typescript-eslint/parser": "^5.40.1", - "eslint": "^8.25.0", + "@typescript-eslint/eslint-plugin": "^5.42.1", + "@typescript-eslint/parser": "^5.42.1", + "eslint": "^8.27.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-commonjs": "^1.0.2", "eslint-plugin-security": "^1.5.0", @@ -81,7 +84,7 @@ "grunt-file-creator": "^0.1.3", "grunt-version": "^3.0.0", "prettier": "^2.7.1", - "stylelint": "^14.14.0", + "stylelint": "^14.14.1", "stylelint-config-prettier": "^9.0.3", "stylelint-config-standard": "^29.0.0" } diff --git a/src/tzlib.js b/src/tzlib.js index 26aec64..b5f5a9f 100644 --- a/src/tzlib.js +++ b/src/tzlib.js @@ -5,14 +5,14 @@ * Add to Calendar TimeZones iCal Library * ++++++++++++++++++++++++++++++++++++++ * - * Version: 1.4.2 + * Version: 1.5.0 * Creator: Jens Kuerschner (https://jenskuerschner.de) * Project: https://github.com/add2cal/timezones-ical-library * License: Apache-2.0 * */ -const tzlibVersion = '1.4.2'; +const tzlibVersion = '1.5.0'; // DEFINING THE DB DATA - WILL GET RE-WRITTEN WITH THE ACTUAL DATA ON BUILD let tzlibZonesDB, diff --git a/test/load-commonjs.cjs b/test/load-commonjs.cjs index ea4b0f6..f30d971 100644 --- a/test/load-commonjs.cjs +++ b/test/load-commonjs.cjs @@ -1,5 +1,5 @@ // simple check to see if we can require the commonJS script -const requireTest = require('../npm_dist/cjs/index.js'); +const requireTest = require('../dist/cjs/index.js'); requireTest.tzlib_get_ical_block('Europe/Berlin'); requireTest.tzlib_get_offset('Europe/Berlin', '2023-04-15', '15:45'); requireTest.tzlib_get_timezones(); diff --git a/test/load-module.mjs b/test/load-module.mjs index b35a8a8..e505672 100644 --- a/test/load-module.mjs +++ b/test/load-module.mjs @@ -1,5 +1,5 @@ // simple check to see if we can import the ES Module -import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from '../npm_dist/mjs/index.js'; +import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from '../dist/mjs/index.js'; tzlib_get_ical_block('Europe/Berlin'); tzlib_get_offset('Europe/Berlin', '2023-04-15', '15:45'); tzlib_get_timezones(); diff --git a/test/tests.js b/test/tests.js index 3c78b30..3bc016f 100644 --- a/test/tests.js +++ b/test/tests.js @@ -3,7 +3,7 @@ const execSync = require('child_process').execSync; try { - execSync('npm run build-npm', { stdio: [0, 1, 2] }); + execSync('npm run build', { stdio: [0, 1, 2] }); try { execSync('node test/load-module.mjs', { stdio: [0, 1, 2] }); @@ -22,7 +22,7 @@ try { } const fs = require('fs'); - const dirToDrop = 'npm_dist'; + const dirToDrop = 'dist'; fs.rm(dirToDrop, { recursive: true }, (error) => { if (error) { throw error;