calendar-link
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -0,1 +1,9 @@ | ||
## v2.8.0 (2024-12-23) | ||
[📝 Release notes](https://github.com/AnandChowdhary/calendar-link/releases/tag/v2.8.0) · [💻 Compare](https://github.com/AnandChowdhary/calendar-link/compare/v2.7.0...v2.8.0) · [🔖 Tag](https://github.com/AnandChowdhary/calendar-link/tree/v2.8.0) · 🗄️ Archive ([zip](https://github.com/AnandChowdhary/calendar-link/archive/v2.8.0.zip) · [tar.gz](https://github.com/AnandChowdhary/calendar-link/archive/v2.8.0.tar.gz)) | ||
### ✨ New features | ||
- [`581db9f`](https://github.com/AnandChowdhary/calendar-link/commit/581db9f) Add status X-MICROSOFT for allDay support | ||
## v2.7.0 (2024-07-31) | ||
@@ -2,0 +10,0 @@ |
@@ -9,5 +9,16 @@ "use strict"; | ||
const utc_1 = __importDefault(require("dayjs/plugin/utc")); | ||
const query_string_1 = require("query-string"); | ||
const utils_1 = require("./utils"); | ||
dayjs_1.default.extend(utc_1.default); | ||
function stringify(input) { | ||
const params = new URLSearchParams(); | ||
Object.keys(input) | ||
.sort() | ||
.forEach((key) => { | ||
const value = input[key]; | ||
if (value != null) { | ||
params.append(key, value); | ||
} | ||
}); | ||
return params.toString().replace(/\+/g, "%20"); | ||
} | ||
function formatTimes({ startTime, endTime }, dateTimeFormat) { | ||
@@ -57,3 +68,3 @@ const format = utils_1.TimeFormats[dateTimeFormat]; | ||
} | ||
return `https://calendar.google.com/calendar/render?${(0, query_string_1.stringify)(details)}`; | ||
return `https://calendar.google.com/calendar/render?${stringify(details)}`; | ||
}; | ||
@@ -74,3 +85,3 @@ exports.google = google; | ||
}; | ||
return `https://outlook.live.com/calendar/0/action/compose?${(0, query_string_1.stringify)(details)}`; | ||
return `https://outlook.live.com/calendar/0/action/compose?${stringify(details)}`; | ||
}; | ||
@@ -91,3 +102,3 @@ exports.outlook = outlook; | ||
}; | ||
return `https://outlook.live.com/calendar/0/deeplink/compose?${(0, query_string_1.stringify)(details)}`; | ||
return `https://outlook.live.com/calendar/0/deeplink/compose?${stringify(details)}`; | ||
}; | ||
@@ -108,3 +119,3 @@ exports.outlookMobile = outlookMobile; | ||
}; | ||
return `https://outlook.office.com/calendar/0/action/compose?${(0, query_string_1.stringify)(details)}`; | ||
return `https://outlook.office.com/calendar/0/action/compose?${stringify(details)}`; | ||
}; | ||
@@ -125,3 +136,3 @@ exports.office365 = office365; | ||
}; | ||
return `https://outlook.office.com/calendar/0/deeplink/compose?${(0, query_string_1.stringify)(details)}`; | ||
return `https://outlook.office.com/calendar/0/deeplink/compose?${stringify(details)}`; | ||
}; | ||
@@ -141,3 +152,3 @@ exports.office365Mobile = office365Mobile; | ||
}; | ||
return `https://calendar.yahoo.com/?${(0, query_string_1.stringify)(details)}`; | ||
return `https://calendar.yahoo.com/?${stringify(details)}`; | ||
}; | ||
@@ -157,3 +168,3 @@ exports.yahoo = yahoo; | ||
}; | ||
return `https://calendar.aol.com/?${(0, query_string_1.stringify)(details)}`; | ||
return `https://calendar.aol.com/?${stringify(details)}`; | ||
}; | ||
@@ -173,3 +184,3 @@ exports.aol = aol; | ||
} | ||
return `https://teams.microsoft.com/l/meeting/new?${(0, query_string_1.stringify)(details)}`; | ||
return `https://teams.microsoft.com/l/meeting/new?${stringify(details)}`; | ||
}; | ||
@@ -226,2 +237,12 @@ exports.msTeams = msTeams; | ||
}, | ||
...(event.allDay ? [ | ||
{ | ||
key: "X-MICROSOFT-CDO-ALLDAYEVENT", | ||
value: "TRUE" | ||
}, | ||
{ | ||
key: "X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT", | ||
value: "TRUE" | ||
} | ||
] : []), | ||
{ | ||
@@ -248,2 +269,6 @@ key: "RRULE", | ||
{ | ||
key: "STATUS", | ||
value: event.status, | ||
}, | ||
{ | ||
key: "UID", | ||
@@ -250,0 +275,0 @@ value: Math.floor(Math.random() * 100000).toString().replace(".", ""), |
@@ -57,2 +57,3 @@ "use strict"; | ||
allDay: true, | ||
status: "CONFIRMED", | ||
}; | ||
@@ -59,0 +60,0 @@ const link = service(event); |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t||self).calendarLink={})}(this,function(t){function e(){return e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(this,arguments)}function r(t){var e={exports:{}};return t(e,e.exports),e.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var n=r(function(t,e){t.exports=function(){var t="millisecond",e="second",r="minute",n="hour",i="day",a="week",o="month",s="quarter",u="year",c="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},y={s:h,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+h(n,2,"0")+":"+h(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,o),a=r-i<0,s=e.clone().add(n+(a?-1:1),o);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return{M:o,y:u,w:a,d:i,D:c,h:n,m:r,s:e,ms:t,Q:s}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},p="en",m={};m[p]=d;var g=function(t){return t instanceof O},$=function(t,e,r){var n;if(!t)return p;if("string"==typeof t)m[t]&&(n=t),e&&(m[t]=e,n=t);else{var i=t.name;m[i]=t,n=i}return!r&&n&&(p=n),n||!r&&p},v=function(t,e){if(g(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new O(r)},D=y;D.l=$,D.i=g,D.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function d(t){this.$L=$(t.locale,null,!0),this.parse(t)}var h=d.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(l);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return D},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},h.isAfter=function(t,e){return v(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<v(t)},h.$g=function(t,e,r){return D.u(t)?this[e]:this.set(r,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,s){var l=this,f=!!D.u(s)||s,d=D.p(t),h=function(t,e){var r=D.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return f?r:r.endOf(i)},y=function(t,e){return D.w(l.toDate()[t].apply(l.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},p=this.$W,m=this.$M,g=this.$D,$="set"+(this.$u?"UTC":"");switch(d){case u:return f?h(1,0):h(31,11);case o:return f?h(1,m):h(0,m+1);case a:var v=this.$locale().weekStart||0,O=(p<v?p+7:p)-v;return h(f?g-O:g+(6-O),m);case i:case c:return y($+"Hours",0);case n:return y($+"Minutes",1);case r:return y($+"Seconds",2);case e:return y($+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(a,s){var l,f=D.p(a),d="set"+(this.$u?"UTC":""),h=(l={},l[i]=d+"Date",l[c]=d+"Date",l[o]=d+"Month",l[u]=d+"FullYear",l[n]=d+"Hours",l[r]=d+"Minutes",l[e]=d+"Seconds",l[t]=d+"Milliseconds",l)[f],y=f===i?this.$D+(s-this.$W):s;if(f===o||f===u){var p=this.clone().set(c,1);p.$d[h](y),p.init(),this.$d=p.set(c,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](y);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[D.p(t)]()},h.add=function(t,s){var c,l=this;t=Number(t);var f=D.p(s),d=function(e){var r=v(l);return D.w(r.date(r.date()+Math.round(e*t)),l)};if(f===o)return this.set(o,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===i)return d(1);if(f===a)return d(7);var h=(c={},c[r]=6e4,c[n]=36e5,c[e]=1e3,c)[f]||1,y=this.$d.getTime()+t*h;return D.w(y,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=D.z(this),i=this.$locale(),a=this.$H,o=this.$m,s=this.$M,u=i.weekdays,c=i.months,l=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].substr(0,a)},d=function(t){return D.s(a%12||12,t,"0")},h=i.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:D.s(s+1,2,"0"),MMM:l(i.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:l(i.weekdaysMin,this.$W,u,2),ddd:l(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:D.s(a,2,"0"),h:d(1),hh:d(2),a:h(a,o,!0),A:h(a,o,!1),m:String(o),mm:D.s(o,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:n};return r.replace(f,function(t,e){return e||y[t]||n.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,c,l){var f,d=D.p(c),h=v(t),y=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,m=D.m(this,h);return m=(f={},f[u]=m/12,f[o]=m,f[s]=m/3,f[a]=(p-y)/6048e5,f[i]=(p-y)/864e5,f[n]=p/36e5,f[r]=p/6e4,f[e]=p/1e3,f)[d]||p,l?m:D.a(m)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return m[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=$(t,e,!0);return n&&(r.$L=n),r},h.clone=function(){return D.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),T=O.prototype;return v.prototype=T,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W",i],["$M",o],["$y",u],["$D",c]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,O,v),t.$i=!0),v},v.locale=$,v.isDayjs=g,v.unix=function(t){return v(1e3*t)},v.en=m[p],v.Ls=m,v.p={},v}()}),i=r(function(t,e){t.exports=function(t,e,r){var n=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),"minute"):e},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var a=n.init;n.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else a.call(this)};var o=n.utcOffset;n.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?o.call(this):this.$offset;var n=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=n,i.$u=0===t,i;if(0!==t){var a=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(n+a,"minute")).$offset=n,i.$x.$localOffset=a}else i=this.utc();return i};var s=n.format;n.format=function(t){return s.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var u=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var c=n.diff;n.diff=function(t,e,n){if(t&&this.$u===t.$u)return c.call(this,t,e,n);var i=this.local(),a=r(t).local();return c.call(i,a,e,n)}}}),a="%[a-f0-9]{2}",o=new RegExp(a,"gi"),s=new RegExp("("+a+")+","gi");function u(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;var r=t.slice(0,e=e||1),n=t.slice(e);return Array.prototype.concat.call([],u(r),u(n))}function c(t){try{return decodeURIComponent(t)}catch(n){for(var e=t.match(o),r=1;r<e.length;r++)e=(t=u(e,r).join("")).match(o);return t}}var l=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},r=s.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var n=c(r[0]);n!==r[0]&&(e[r[0]]=n)}r=s.exec(t)}e["%C2"]="�";for(var i=Object.keys(e),a=0;a<i.length;a++){var o=i[a];t=t.replace(new RegExp(o,"g"),e[o])}return t}(t)}},f=(t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]},d=function(t,e){for(var r={},n=Object.keys(t),i=Array.isArray(e),a=0;a<n.length;a++){var o=n[a],s=t[o];(i?-1!==e.indexOf(o):e(o,s,t))&&(r[o]=s)}return r},h=r(function(t,e){function r(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function n(t,e){return e.encode?e.strict?encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`):encodeURIComponent(t):t}function i(t,e){return e.decode?l(t):t}function a(t){return Array.isArray(t)?t.sort():"object"==typeof t?a(Object.keys(t)).sort((t,e)=>Number(t)-Number(e)).map(e=>t[e]):t}function o(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function s(t){const e=(t=o(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function u(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function c(t,e){r((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const n=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),n[t=t.replace(/\[\]$/,"")]=e?void 0!==n[t]?[].concat(n[t],r):[r]:r};case"comma":case"separator":return(e,r,n)=>{const a="string"==typeof r&&r.includes(t.arrayFormatSeparator),o="string"==typeof r&&!a&&i(r,t).includes(t.arrayFormatSeparator);r=o?i(r,t):r;const s=a||o?r.split(t.arrayFormatSeparator).map(e=>i(e,t)):null===r?r:i(r,t);n[e]=s};default:return(t,e,r)=>{r[t]=void 0!==r[t]?[].concat(r[t],e):e}}}(e),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;for(const r of t.split("&")){if(""===r)continue;let[t,a]=f(e.decode?r.replace(/\+/g," "):r,"=");a=void 0===a?null:["comma","separator"].includes(e.arrayFormat)?a:i(a,e),n(i(t,e),a,o)}for(const t of Object.keys(o)){const r=o[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=u(r[t],e);else o[t]=u(r,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce((t,e)=>{const r=o[e];return t[e]=Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?a(r):r,t},Object.create(null))}e.extract=s,e.parse=c,e.stringify=(t,e)=>{if(!t)return"";r((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const i=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],a=function(t){switch(t.arrayFormat){case"index":return e=>(r,i)=>{const a=r.length;return void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:null===i?[...r,[n(e,t),"[",a,"]"].join("")]:[...r,[n(e,t),"[",n(a,t),"]=",n(i,t)].join("")]};case"bracket":return e=>(r,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:null===i?[...r,[n(e,t),"[]"].join("")]:[...r,[n(e,t),"[]=",n(i,t)].join("")];case"comma":case"separator":return e=>(r,i)=>null==i||0===i.length?r:0===r.length?[[n(e,t),"=",n(i,t)].join("")]:[[r,n(i,t)].join(t.arrayFormatSeparator)];default:return e=>(r,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:null===i?[...r,n(e,t)]:[...r,[n(e,t),"=",n(i,t)].join("")]}}(e),o={};for(const e of Object.keys(t))i(e)||(o[e]=t[e]);const s=Object.keys(o);return!1!==e.sort&&s.sort(e.sort),s.map(r=>{const i=t[r];return void 0===i?"":null===i?n(r,e):Array.isArray(i)?i.reduce(a(r),[]).join("&"):n(r,e)+"="+n(i,e)}).filter(t=>t.length>0).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=f(t,"#");return Object.assign({url:r.split("?")[0]||"",query:c(s(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:i(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0},r);const i=o(t.url).split("?")[0]||"",a=e.extract(t.url),s=e.parse(a,{sort:!1}),u=Object.assign(s,t.query);let c=e.stringify(u,r);c&&(c=`?${c}`);let l=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(l=`#${n(t.fragmentIdentifier,r)}`),`${i}${c}${l}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);const{url:i,query:a,fragmentIdentifier:o}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:d(a,r),fragmentIdentifier:o},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}}),y={dateTimeLocal:"YYYY-MM-DD[T]HH:mm:ss",dateTimeUTC:"YYYYMMDD[T]HHmmss[Z]",allDay:"YYYYMMDD"};function p(t,e){var r=t.endTime,n=y[e];return{start:t.startTime.format(n),end:r.format(n)}}n.extend(i);var m=function(t,r){void 0===r&&(r=!0);var i=t.start,a=t.end,o=t.duration,s=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||(i[r]=t[r]);return i}(t,["start","end","duration"]),u=r?n(i).utc():n(i),c=a?r?n(a).utc():n(a):function(){if(t.allDay)return u.add(1,"day");if(o&&2==o.length){var e=Number(o[0]);return u.add(e,o[1])}return r?n().utc():n()}();return e({},s,{startTime:u,endTime:c})};t.aol=function(t){var e=m(t),r=p(e,e.allDay?"allDay":"dateTimeUTC");return"https://calendar.aol.com/?"+h.stringify({v:60,title:e.title,st:r.start,et:r.end,desc:e.description,in_loc:e.location,dur:!!e.allDay&&"allday"})},t.eventify=m,t.google=function(t){var e=m(t),r=p(e,e.allDay?"allDay":"dateTimeUTC"),n={action:"TEMPLATE",text:e.title,details:e.description,location:e.location,trp:e.busy,dates:r.start+"/"+r.end,recur:e.rRule?"RRULE:"+e.rRule:void 0};return e.guests&&e.guests.length&&(n.add=e.guests.join()),"https://calendar.google.com/calendar/render?"+h.stringify(n)},t.ics=function(t){var e=m(t),r=(e.description||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),i=(e.location||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),a=p(e,e.allDay?"allDay":"dateTimeUTC"),o=a.start,s=a.end,u=n(new Date).utc().format(y.dateTimeUTC),c=[{key:"BEGIN",value:"VCALENDAR"},{key:"VERSION",value:"2.0"},{key:"PRODID",value:e.title},{key:"BEGIN",value:"VEVENT"},{key:"URL",value:e.url},{key:"DTSTART",value:o},{key:"DTEND",value:s},{key:"DTSTAMP",value:u},{key:"RRULE",value:e.rRule},{key:"SUMMARY",value:e.title},{key:"DESCRIPTION",value:r},{key:"LOCATION",value:i},{key:"ORGANIZER",value:e.organizer},{key:"UID",value:Math.floor(1e5*Math.random()).toString().replace(".","")},{key:"END",value:"VEVENT"},{key:"END",value:"VCALENDAR"}],l="";return c.forEach(function(t){if(t.value)if("ORGANIZER"==t.key){var e=t.value;l+=t.key+";"+encodeURIComponent("CN="+e.name+":MAILTO:"+e.email+"\r\n")}else l+=t.key+":"+encodeURIComponent(t.value+"\r\n")}),"data:text/calendar;charset=utf8,"+l},t.msTeams=function(t){var e=m(t),r={subject:e.title,content:e.description,startTime:e.startTime.toISOString(),endTime:e.endTime.toISOString()};return e.guests&&e.guests.length&&(r.attendees=e.guests.join()),"https://teams.microsoft.com/l/meeting/new?"+h.stringify(r)},t.office365=function(t){var e=m(t,!1),r=p(e,"dateTimeLocal");return"https://outlook.office.com/calendar/0/action/compose?"+h.stringify({path:"/calendar/action/compose",rru:"addevent",startdt:r.start,enddt:r.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.office365Mobile=function(t){var e=m(t,!1),r=p(e,"dateTimeLocal");return"https://outlook.office.com/calendar/0/deeplink/compose?"+h.stringify({path:"/calendar/action/compose",rru:"addevent",startdt:r.start,enddt:r.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.outlook=function(t){var e=m(t,!1),r=p(e,"dateTimeLocal");return"https://outlook.live.com/calendar/0/action/compose?"+h.stringify({path:"/calendar/action/compose",rru:"addevent",startdt:r.start,enddt:r.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.outlookMobile=function(t){var e=m(t,!1),r=p(e,"dateTimeLocal");return"https://outlook.live.com/calendar/0/deeplink/compose?"+h.stringify({path:"/calendar/action/compose",rru:"addevent",startdt:r.start,enddt:r.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.yahoo=function(t){var e=m(t),r=p(e,e.allDay?"allDay":"dateTimeUTC");return"https://calendar.yahoo.com/?"+h.stringify({v:60,title:e.title,st:r.start,et:r.end,desc:e.description,in_loc:e.location,dur:!!e.allDay&&"allday"})}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t||self).calendarLink={})}(this,function(t){function e(){return e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.apply(this,arguments)}function n(t){var e={exports:{}};return t(e,e.exports),e.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var r=n(function(t,e){t.exports=function(){var t="millisecond",e="second",n="minute",r="hour",i="day",a="week",s="month",o="quarter",u="year",l="date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,s),a=n-i<0,o=e.clone().add(r+(a?-1:1),s);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:u,w:a,d:i,D:l,h:r,m:n,s:e,ms:t,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",y={};y[$]=d;var v=function(t){return t instanceof T},p=function(t,e,n){var r;if(!t)return $;if("string"==typeof t)y[t]&&(r=t),e&&(y[t]=e,r=t);else{var i=t.name;y[i]=t,r=i}return!n&&r&&($=r),r||!n&&$},D=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new T(n)},g=m;g.l=p,g.i=v,g.w=function(t,e){return D(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function d(t){this.$L=p(t.locale,null,!0),this.parse(t)}var h=d.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return g},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=D(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return D(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<D(t)},h.$g=function(t,e,n){return g.u(t)?this[e]:this.set(n,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,o){var c=this,f=!!g.u(o)||o,d=g.p(t),h=function(t,e){var n=g.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return f?n:n.endOf(i)},m=function(t,e){return g.w(c.toDate()[t].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},$=this.$W,y=this.$M,v=this.$D,p="set"+(this.$u?"UTC":"");switch(d){case u:return f?h(1,0):h(31,11);case s:return f?h(1,y):h(0,y+1);case a:var D=this.$locale().weekStart||0,T=($<D?$+7:$)-D;return h(f?v-T:v+(6-T),y);case i:case l:return m(p+"Hours",0);case r:return m(p+"Minutes",1);case n:return m(p+"Seconds",2);case e:return m(p+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(a,o){var c,f=g.p(a),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c[l]=d+"Date",c[s]=d+"Month",c[u]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[f],m=f===i?this.$D+(o-this.$W):o;if(f===s||f===u){var $=this.clone().set(l,1);$.$d[h](m),$.init(),this.$d=$.set(l,Math.min(this.$D,$.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[g.p(t)]()},h.add=function(t,o){var l,c=this;t=Number(t);var f=g.p(o),d=function(e){var n=D(c);return g.w(n.date(n.date()+Math.round(e*t)),c)};if(f===s)return this.set(s,this.$M+t);if(f===u)return this.set(u,this.$y+t);if(f===i)return d(1);if(f===a)return d(7);var h=(l={},l[n]=6e4,l[r]=36e5,l[e]=1e3,l)[f]||1,m=this.$d.getTime()+t*h;return g.w(m,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=g.z(this),i=this.$locale(),a=this.$H,s=this.$m,o=this.$M,u=i.weekdays,l=i.months,c=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].substr(0,a)},d=function(t){return g.s(a%12||12,t,"0")},h=i.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:g.s(o+1,2,"0"),MMM:c(i.monthsShort,o,l,3),MMMM:c(l,o),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,u,2),ddd:c(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:g.s(a,2,"0"),h:d(1),hh:d(2),a:h(a,s,!0),A:h(a,s,!1),m:String(s),mm:g.s(s,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:r};return n.replace(f,function(t,e){return e||m[t]||r.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,l,c){var f,d=g.p(l),h=D(t),m=6e4*(h.utcOffset()-this.utcOffset()),$=this-h,y=g.m(this,h);return y=(f={},f[u]=y/12,f[s]=y,f[o]=y/3,f[a]=($-m)/6048e5,f[i]=($-m)/864e5,f[r]=$/36e5,f[n]=$/6e4,f[e]=$/1e3,f)[d]||$,c?y:g.a(y)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return y[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=p(t,e,!0);return r&&(n.$L=r),n},h.clone=function(){return g.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),M=T.prototype;return D.prototype=M,[["$ms",t],["$s",e],["$m",n],["$H",r],["$W",i],["$M",s],["$y",u],["$D",l]].forEach(function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),D.extend=function(t,e){return t.$i||(t(e,T,D),t.$i=!0),D},D.locale=p,D.isDayjs=v,D.unix=function(t){return D(1e3*t)},D.en=y[$],D.Ls=y,D.p={},D}()}),i=n(function(t,e){t.exports=function(t,e,n){var r=e.prototype;n.utc=function(t){return new e({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=n(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),"minute"):e},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var a=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else a.call(this)};var s=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?s.call(this):this.$offset;var r=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=r,i.$u=0===t,i;if(0!==t){var a=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(r+a,"minute")).$offset=r,i.$x.$localOffset=a}else i=this.utc();return i};var o=r.format;r.format=function(t){return o.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return l.call(this,t,e,r);var i=this.local(),a=n(t).local();return l.call(i,a,e,r)}}}),a={dateTimeLocal:"YYYY-MM-DD[T]HH:mm:ss",dateTimeUTC:"YYYYMMDD[T]HHmmss[Z]",allDay:"YYYYMMDD"};function s(t){var e=new URLSearchParams;return Object.keys(t).sort().forEach(function(n){var r=t[n];null!=r&&e.append(n,r)}),e.toString().replace(/\+/g,"%20")}function o(t,e){var n=t.endTime,r=a[e];return{start:t.startTime.format(r),end:n.format(r)}}r.extend(i);var u=function(t,n){void 0===n&&(n=!0);var i=t.start,a=t.end,s=t.duration,o=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(i[n]=t[n]);return i}(t,["start","end","duration"]),u=n?r(i).utc():r(i),l=a?n?r(a).utc():r(a):function(){if(t.allDay)return u.add(1,"day");if(s&&2==s.length){var e=Number(s[0]);return u.add(e,s[1])}return n?r().utc():r()}();return e({},o,{startTime:u,endTime:l})};t.aol=function(t){var e=u(t),n=o(e,e.allDay?"allDay":"dateTimeUTC");return"https://calendar.aol.com/?"+s({v:60,title:e.title,st:n.start,et:n.end,desc:e.description,in_loc:e.location,dur:!!e.allDay&&"allday"})},t.eventify=u,t.google=function(t){var e=u(t),n=o(e,e.allDay?"allDay":"dateTimeUTC"),r={action:"TEMPLATE",text:e.title,details:e.description,location:e.location,trp:e.busy,dates:n.start+"/"+n.end,recur:e.rRule?"RRULE:"+e.rRule:void 0};return e.guests&&e.guests.length&&(r.add=e.guests.join()),"https://calendar.google.com/calendar/render?"+s(r)},t.ics=function(t){var e=u(t),n=(e.description||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),i=(e.location||"").replace(/,/gm,",").replace(/;/gm,";").replace(/\r\n/gm,"\n").replace(/\n/gm,"\\n").replace(/(\\n)[\s\t]+/gm,"\\n"),s=o(e,e.allDay?"allDay":"dateTimeUTC"),l=s.start,c=s.end,f=r(new Date).utc().format(a.dateTimeUTC),d=[{key:"BEGIN",value:"VCALENDAR"},{key:"VERSION",value:"2.0"},{key:"PRODID",value:e.title},{key:"BEGIN",value:"VEVENT"},{key:"URL",value:e.url},{key:"DTSTART",value:l},{key:"DTEND",value:c},{key:"DTSTAMP",value:f}].concat(e.allDay?[{key:"X-MICROSOFT-CDO-ALLDAYEVENT",value:"TRUE"},{key:"X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT",value:"TRUE"}]:[],[{key:"RRULE",value:e.rRule},{key:"SUMMARY",value:e.title},{key:"DESCRIPTION",value:n},{key:"LOCATION",value:i},{key:"ORGANIZER",value:e.organizer},{key:"STATUS",value:e.status},{key:"UID",value:Math.floor(1e5*Math.random()).toString().replace(".","")},{key:"END",value:"VEVENT"},{key:"END",value:"VCALENDAR"}]),h="";return d.forEach(function(t){if(t.value)if("ORGANIZER"==t.key){var e=t.value;h+=t.key+";"+encodeURIComponent("CN="+e.name+":MAILTO:"+e.email+"\r\n")}else h+=t.key+":"+encodeURIComponent(t.value+"\r\n")}),"data:text/calendar;charset=utf8,"+h},t.msTeams=function(t){var e=u(t),n={subject:e.title,content:e.description,startTime:e.startTime.toISOString(),endTime:e.endTime.toISOString()};return e.guests&&e.guests.length&&(n.attendees=e.guests.join()),"https://teams.microsoft.com/l/meeting/new?"+s(n)},t.office365=function(t){var e=u(t,!1),n=o(e,"dateTimeLocal");return"https://outlook.office.com/calendar/0/action/compose?"+s({path:"/calendar/action/compose",rru:"addevent",startdt:n.start,enddt:n.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.office365Mobile=function(t){var e=u(t,!1),n=o(e,"dateTimeLocal");return"https://outlook.office.com/calendar/0/deeplink/compose?"+s({path:"/calendar/action/compose",rru:"addevent",startdt:n.start,enddt:n.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.outlook=function(t){var e=u(t,!1),n=o(e,"dateTimeLocal");return"https://outlook.live.com/calendar/0/action/compose?"+s({path:"/calendar/action/compose",rru:"addevent",startdt:n.start,enddt:n.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.outlookMobile=function(t){var e=u(t,!1),n=o(e,"dateTimeLocal");return"https://outlook.live.com/calendar/0/deeplink/compose?"+s({path:"/calendar/action/compose",rru:"addevent",startdt:n.start,enddt:n.end,subject:e.title,body:e.description,location:e.location,allday:e.allDay||!1})},t.yahoo=function(t){var e=u(t),n=o(e,e.allDay?"allDay":"dateTimeUTC");return"https://calendar.yahoo.com/?"+s({v:60,title:e.title,st:n.start,et:n.end,desc:e.description,in_loc:e.location,dur:!!e.allDay&&"allday"})}}); | ||
//# sourceMappingURL=index.umd.js.map |
@@ -15,2 +15,3 @@ import * as dayjs from "dayjs"; | ||
url?: string; | ||
status?: 'CONFIRMED' | 'TENTATIVE' | 'CANCELLED'; | ||
} | ||
@@ -17,0 +18,0 @@ interface CalendarEventOrganizer { |
{ | ||
"name": "calendar-link", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "📅 Calendar link generator for popular services, like Google, Outlook, and Yahoo.", | ||
@@ -64,5 +64,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"dayjs": "^1.9.3", | ||
"query-string": "^6.13.6" | ||
"dayjs": "^1.9.3" | ||
} | ||
} |
@@ -6,5 +6,5 @@ # 📅 Calendar Link | ||
| - | - | | ||
| Build | [![Node CI](https://github.com/AnandChowdhary/calendar-link/workflows/Node%20CI/badge.svg)](https://github.com/AnandChowdhary/calendar-link/actions?query=workflow%3A%22Node+CI%22) [![Dependencies](https://img.shields.io/librariesio/github/AnandChowdhary/calendar-link)](https://libraries.io/github/AnandChowdhary/calendar-link) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/AnandChowdhary/calendar-link)](https://github.com/AnandChowdhary/calendar-link/releases) [![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/AnandChowdhary/calendar-link)](https://snyk.io/test/github/AnandChowdhary/calendar-link) | | ||
| Health | [![License](https://img.shields.io/github/license/anandchowdhary/calendar-link.svg)](https://github.com/AnandChowdhary/calendar-link/blob/master/LICENSE) [![Coverage](https://img.shields.io/coveralls/github/AnandChowdhary/calendar-link)](https://coveralls.io/github/AnandChowdhary/calendar-link) [![Pull Request Labeler](https://github.com/AnandChowdhary/calendar-link/workflows/Pull%20Request%20Labeler/badge.svg)](https://github.com/AnandChowdhary/calendar-link/actions?query=workflow%3A%22Pull+Request+Labeler%22) | | ||
| Community | ![NPM type definitions](https://img.shields.io/npm/types/calendar-link.svg) [![NPM](https://img.shields.io/npm/v/calendar-link.svg)](https://www.npmjs.com/package/calendar-link) [![All contributors](https://img.shields.io/badge/all_contributors-2-orange.svg)](#contributors) | | ||
| Build | ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/AnandChowdhary/calendar-link/node.yml) [![Dependencies](https://img.shields.io/librariesio/github/AnandChowdhary/calendar-link)](https://libraries.io/github/AnandChowdhary/calendar-link) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/AnandChowdhary/calendar-link)](https://github.com/AnandChowdhary/calendar-link/releases) | | ||
| Health | [![License](https://img.shields.io/github/license/anandchowdhary/calendar-link.svg)](https://github.com/AnandChowdhary/calendar-link/blob/master/LICENSE) [![Coverage](https://img.shields.io/coveralls/github/AnandChowdhary/calendar-link)](https://coveralls.io/github/AnandChowdhary/calendar-link) | | ||
| Community | ![NPM type definitions](https://img.shields.io/npm/types/calendar-link.svg) [![NPM](https://img.shields.io/npm/v/calendar-link.svg)](https://www.npmjs.com/package/calendar-link) ![GitHub contributors](https://img.shields.io/github/contributors/AnandChowdhary/calendar-link) | | ||
<!-- prettier-ignore-end --> | ||
@@ -67,4 +67,8 @@ | ||
## Compatibility | ||
This package uses [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) (Node.js >= 10, 97%+ browsers), but if you need to include a polyfill, you can include [url-search-params-polyfill](https://www.npmjs.com/package/url-search-params-polyfill) first. | ||
## License | ||
MIT © [Anand Chowdhary](https://anandchowdhary.com/?utm_source=github&utm_medium=calendar-link&utm_campaign=readme) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1
73
159119
581
- Removedquery-string@^6.13.6
- Removeddecode-uri-component@0.2.2(transitive)
- Removedfilter-obj@1.1.0(transitive)
- Removedquery-string@6.14.1(transitive)
- Removedsplit-on-first@1.1.0(transitive)
- Removedstrict-uri-encode@2.0.0(transitive)