Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firestitch/date

Package Overview
Dependencies
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firestitch/date - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

2

package.json
{
"name": "@firestitch/date",
"version": "0.1.11",
"version": "0.1.12",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -13,3 +13,2 @@ "use strict";

var pipes_1 = require("./pipes");
var pipes_2 = require("./pipes");
var FsDateModule = (function () {

@@ -32,3 +31,4 @@ function FsDateModule() {

pipes_1.FsDatePipe,
pipes_2.FsDateAgoPipe
pipes_1.FsDateAgoPipe,
pipes_1.FsDateFormatPipe
],

@@ -38,3 +38,4 @@ entryComponents: [],

pipes_1.FsDatePipe,
pipes_2.FsDateAgoPipe
pipes_1.FsDateAgoPipe,
pipes_1.FsDateFormatPipe
],

@@ -41,0 +42,0 @@ providers: [],

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"FsDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":4},{"__symbolic":"reference","module":"@firestitch/common","name":"FsCommonModule","line":9,"character":4}],"exports":[{"__symbolic":"reference","module":"./pipes","name":"FsDatePipe","line":12,"character":4},{"__symbolic":"reference","module":"./pipes","name":"FsDateAgoPipe","line":13,"character":4}],"entryComponents":[],"declarations":[{"__symbolic":"reference","module":"./pipes","name":"FsDatePipe","line":18,"character":4},{"__symbolic":"reference","module":"./pipes","name":"FsDateAgoPipe","line":19,"character":4}],"providers":[]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"FsDateModule"}}}}}}}]
[{"__symbolic":"module","version":4,"metadata":{"FsDateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":4},{"__symbolic":"reference","module":"@firestitch/common","name":"FsCommonModule","line":8,"character":4}],"exports":[{"__symbolic":"reference","module":"./pipes","name":"FsDatePipe","line":11,"character":4},{"__symbolic":"reference","module":"./pipes","name":"FsDateAgoPipe","line":12,"character":4},{"__symbolic":"reference","module":"./pipes","name":"FsDateFormatPipe","line":13,"character":4}],"entryComponents":[],"declarations":[{"__symbolic":"reference","module":"./pipes","name":"FsDatePipe","line":18,"character":4},{"__symbolic":"reference","module":"./pipes","name":"FsDateAgoPipe","line":19,"character":4},{"__symbolic":"reference","module":"./pipes","name":"FsDateFormatPipe","line":20,"character":4}],"providers":[]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"FsDateModule"}}}}}}}]

@@ -367,3 +367,2 @@ (function webpackUniversalModuleDefinition(root, factory) {

var pipes_1 = __webpack_require__("./pipes/index.ts");
var pipes_2 = __webpack_require__("./pipes/index.ts");
var FsDateModule = (function () {

@@ -386,3 +385,4 @@ function FsDateModule() {

pipes_1.FsDatePipe,
pipes_2.FsDateAgoPipe
pipes_1.FsDateAgoPipe,
pipes_1.FsDateFormatPipe
],

@@ -392,3 +392,4 @@ entryComponents: [],

pipes_1.FsDatePipe,
pipes_2.FsDateAgoPipe
pipes_1.FsDateAgoPipe,
pipes_1.FsDateFormatPipe
],

@@ -395,0 +396,0 @@ providers: [],

@@ -1,1 +0,1 @@

!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define("@firestitch/date",[],a):"object"==typeof exports?exports["@firestitch/date"]=a():e["@firestitch/date"]=a()}("undefined"!=typeof self?self:this,function(){return function(e){function a(t){if(n[t])return n[t].exports;var u=n[t]={i:t,l:!1,exports:{}};return e[t].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var n={};return a.m=e,a.c=n,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},a.p="",a(a.s="./index.ts")}({"./constants/index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./constants/timezones.ts")),t(n("./constants/seconds.ts"))},"./constants/seconds.ts":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SECONDS={YEAR:31536e3,MONTH:86400*30.417,DAY:86400,HOUR:3600,MINUTE:60}},"./constants/timezones.ts":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TIMEZONES=[{name:"A",value:"1"},{name:"ACDT",value:"10:30"},{name:"ACST",value:"9:30"},{name:"ADT",value:"-3"},{name:"ADT",value:"-3"},{name:"AEDT",value:"11"},{name:"AEST",value:"10"},{name:"AFT",value:"4:30"},{name:"AKDT",value:"-8"},{name:"AKST",value:"-9"},{name:"ALMT",value:"6"},{name:"AMST",value:"5"},{name:"AMST",value:"-3"},{name:"AMT",value:"4"},{name:"AMT",value:"-4"},{name:"ANAST",value:"12"},{name:"ANAT",value:"12"},{name:"AQTT",value:"5"},{name:"ART",value:"-3"},{name:"AST",value:"3"},{name:"AST",value:"-4"},{name:"AWDT",value:"9"},{name:"AWST",value:"8"},{name:"AZOST",value:"0"},{name:"AZOT",value:"-1"},{name:"AZST",value:"5"},{name:"AZT",value:"4"},{name:"B",value:"2"},{name:"BNT",value:"8"},{name:"BOT",value:"-4"},{name:"BRST",value:"-2"},{name:"BRT",value:"-3"},{name:"BST",value:"6"},{name:"BST",value:"1"},{name:"BTT",value:"6"},{name:"C",value:"3"},{name:"CAST",value:"8"},{name:"CAT",value:"2"},{name:"CCT",value:"6:30"},{name:"CDT",value:"-4"},{name:"CDT",value:"-5"},{name:"CEST",value:"2"},{name:"CET",value:"1"},{name:"CHADT",value:"13:45"},{name:"CHAST",value:"12:45"},{name:"CKT",value:"-10"},{name:"CLST",value:"-3"},{name:"CLT",value:"-4"},{name:"COT",value:"-5"},{name:"CST",value:"8"},{name:"CST",value:"-6"},{name:"CST",value:"-5"},{name:"CVT",value:"-1"},{name:"CXT",value:"7"},{name:"ChST",value:"10"},{name:"D",value:"4"},{name:"DAVT",value:"7"},{name:"E",value:"5"},{name:"EASST",value:"-5"},{name:"EAST",value:"-6"},{name:"EAT",value:"3"},{name:"EAT",value:"3"},{name:"ECT",value:"-5"},{name:"EDT",value:"-4"},{name:"EEST",value:"3"},{name:"EET",value:"2"},{name:"EGST",value:"0"},{name:"EGT",value:"-1"},{name:"EST",value:"-5"},{name:"ET",value:"-5"},{name:"F",value:"6"},{name:"FJST",value:"13"},{name:"FJT",value:"12"},{name:"FKST",value:"-3"},{name:"FKT",value:"-4"},{name:"FNT",value:"-2"},{name:"G",value:"7"},{name:"GALT",value:"-6"},{name:"GAMT",value:"-9"},{name:"GET",value:"4"},{name:"GFT",value:"-3"},{name:"GILT",value:"12"},{name:"GMT",value:"0"},{name:"GST",value:"4"},{name:"GYT",value:"-4"},{name:"H",value:"8"},{name:"HAA",value:"-3"},{name:"HAC",value:"-5"},{name:"HADT",value:"-9"},{name:"HAE",value:"-4"},{name:"HAP",value:"-7"},{name:"HAR",value:"-6"},{name:"HAST",value:"-10"},{name:"HAT",value:"-2:30"},{name:"HAY",value:"-8"},{name:"HKT",value:"8"},{name:"HLV",value:"-4:30"},{name:"HNA",value:"-4"},{name:"HNC",value:"-6"},{name:"HNE",value:"-5"},{name:"HNP",value:"-8"},{name:"HNR",value:"-7"},{name:"HNT",value:"-3:30"},{name:"HNY",value:"-9"},{name:"HOVT",value:"7"},{name:"I",value:"9"},{name:"ICT",value:"7"},{name:"IDT",value:"3"},{name:"IOT",value:"6"},{name:"IRDT",value:"4:30"},{name:"IRKST",value:"9"},{name:"IRKT",value:"9"},{name:"IRST",value:"3:30"},{name:"IST",value:"2"},{name:"IST",value:"5:30"},{name:"IST",value:"1"},{name:"JST",value:"9"},{name:"K",value:"10"},{name:"KGT",value:"6"},{name:"KRAST",value:"8"},{name:"KRAT",value:"8"},{name:"KST",value:"9"},{name:"KUYT",value:"4"},{name:"L",value:"11"},{name:"LHDT",value:"11"},{name:"LHST",value:"10:30"},{name:"LINT",value:"14"},{name:"M",value:"12"},{name:"MAGST",value:"12"},{name:"MAGT",value:"12"},{name:"MART",value:"-9:30"},{name:"MAWT",value:"5"},{name:"MDT",value:"-6"},{name:"MESZ",value:"2"},{name:"MEZ",value:"1"},{name:"MHT",value:"12"},{name:"MMT",value:"6:30"},{name:"MSD",value:"4"},{name:"MSK",value:"4"},{name:"MST",value:"-7"},{name:"MUT",value:"4"},{name:"MVT",value:"5"},{name:"MYT",value:"8"},{name:"N",value:"-1"},{name:"NCT",value:"11"},{name:"NDT",value:"-2:30"},{name:"NFT",value:"11:30"},{name:"NOVST",value:"7"},{name:"NOVT",value:"6"},{name:"NPT",value:"5:45"},{name:"NST",value:"-3:30"},{name:"NUT",value:"-11"},{name:"NZDT",value:"13"},{name:"NZST",value:"12"},{name:"O",value:"-2"},{name:"OMSST",value:"7"},{name:"OMST",value:"7"},{name:"P",value:"-3"},{name:"PDT",value:"-7"},{name:"PET",value:"-5"},{name:"PETST",value:"12"},{name:"PETT",value:"12"},{name:"PGT",value:"10"},{name:"PHOT",value:"13"},{name:"PHT",value:"8"},{name:"PKT",value:"5"},{name:"PMDT",value:"-2"},{name:"PMST",value:"-3"},{name:"PONT",value:"11"},{name:"PST",value:"-8"},{name:"PST",value:"-8"},{name:"PT",value:"-8"},{name:"PWT",value:"9"},{name:"PYST",value:"-3"},{name:"PYT",value:"-4"},{name:"Q",value:"-4"},{name:"R",value:"-5"},{name:"RET",value:"4"},{name:"S",value:"-6"},{name:"SAMT",value:"4"},{name:"SAST",value:"2"},{name:"SBT",value:"11"},{name:"SCT",value:"4"},{name:"SGT",value:"8"},{name:"SRT",value:"-3"},{name:"SST",value:"-11"},{name:"T",value:"-7"},{name:"TAHT",value:"-10"},{name:"TFT",value:"5"},{name:"TJT",value:"5"},{name:"TKT",value:"13"},{name:"TLT",value:"9"},{name:"TMT",value:"5"},{name:"TVT",value:"12"},{name:"U",value:"-8"},{name:"ULAT",value:"8"},{name:"UTC",value:"0"},{name:"UYST",value:"-2"},{name:"UYT",value:"-3"},{name:"UZT",value:"5"},{name:"V",value:"-9"},{name:"VET",value:"-4:30"},{name:"VLAST",value:"11"},{name:"VLAT",value:"11"},{name:"VUT",value:"11"},{name:"W",value:"-10"},{name:"WAST",value:"2"},{name:"WAT",value:"1"},{name:"WEST",value:"1"},{name:"WESZ",value:"1"},{name:"WET",value:"0"},{name:"WEZ",value:"0"},{name:"WFT",value:"12"},{name:"WGST",value:"-2"},{name:"WGT",value:"-3"},{name:"WIB",value:"7"},{name:"WIT",value:"9"},{name:"WITA",value:"8"},{name:"WST",value:"1"},{name:"WST",value:"13"},{name:"WT",value:"0"},{name:"X",value:"-11"},{name:"Y",value:"-12"},{name:"YAKST",value:"10"},{name:"YAKT",value:"10"},{name:"YAPT",value:"10"},{name:"YEKST",value:"6"},{name:"YEKT",value:"6"},{name:"Z",value:"0"}]},"./fs-date.module.ts":function(e,a,n){"use strict";var t=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var u=n("@angular/core"),o=n("@angular/common"),r=n("@firestitch/common"),l=n("./pipes/index.ts"),s=n("./pipes/index.ts"),m=function(){function e(){}return a=e,e.forRoot=function(){return{ngModule:a}},e=a=t([u.NgModule({imports:[o.CommonModule,r.FsCommonModule],exports:[l.FsDatePipe,s.FsDateAgoPipe],entryComponents:[],declarations:[l.FsDatePipe,s.FsDateAgoPipe],providers:[]})],e);var a}();a.FsDateModule=m},"./functions/ago.ts":function(e,a,n){"use strict";function t(e,a){if(void 0===a&&(a="date"),!e)return"";var n=o.round(u().diff(e,"minute",!0),0),t=o.round(u().diff(e,"hour",!0),0);return Math.abs(t)>=24?u(e).year()==u().year()?r.format(e,"date-yearless"):r.format(e,a):0==t&&0==n?"now":l.duration(n,{unit:"minute",suffix:!0,seconds:!1})}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone"),o=n("lodash"),r=n("./functions/format.ts"),l=n("./functions/duration.ts");a.ago=t},"./functions/duration.ts":function(e,a,n){"use strict";function t(e,a){if(!u.isNumber(e))return"";if("string"==typeof a){a={seconds:!!a.match(/second/),minutes:!!a.match(/minute/),hours:!!a.match(/hour/),days:!!a.match(/day/),months:!!a.match(/month/),years:!!a.match(/year/)};for(var n=0,t=0,r=a;t<r.length;t++){r[t]&&n++}a.precision=n}a=Object.assign({},a),a.unit=void 0===a.unit?"second":a.unit,a.abr=void 0===a.abr||a.abr,a.suffix=!0===a.suffix?e>0?" ago":" from now":"",a.seconds=void 0===a.seconds||a.seconds,a.minutes=void 0===a.minutes||a.minutes,a.hours=void 0===a.hours||a.hours,a.days=void 0===a.days||a.days,a.months=void 0===a.months||a.months,a.years=void 0===a.years||a.years,"minute"===a.unit?e*=60:"hour"===a.unit&&(e=60*e*60),e=Math.abs(parseInt(e));var l={years:{abr:"Y",single:"year",plural:"years",seconds:o.SECONDS.YEAR,next:"months"},months:{abr:"M",single:"month",plural:"months",seconds:o.SECONDS.MONTH,next:"days"},days:{abr:"d",single:"day",plural:"days",seconds:o.SECONDS.DAY,next:"hours"},hours:{abr:"h",single:"hour",plural:"hours",seconds:o.SECONDS.HOUR,next:"months"},minutes:{abr:"m",single:"minute",plural:"minutes",seconds:o.SECONDS.MINUTE,next:"seconds"},seconds:{abr:"s",single:"second",plural:"seconds",seconds:1,next:null}},s={years:0,months:0,days:0,hours:0,minutes:0,seconds:0},m=e;if(a.years){var i=m/o.SECONDS.YEAR;i>=1&&(s.years=Math.floor(i),m-=s.years*o.SECONDS.YEAR)}if(a.months){var v=m/o.SECONDS.MONTH;v>=1&&(s.months=Math.floor(v),m-=s.months*o.SECONDS.MONTH)}if(a.days){var f=m/o.SECONDS.DAY;f>=1&&(s.days=Math.floor(f),m-=s.days*o.SECONDS.DAY)}if(a.hours){var c=m/o.SECONDS.HOUR;c>=1&&(s.hours=Math.floor(c),m-=s.hours*o.SECONDS.HOUR)}if(a.minutes){var d=m/60;d>=1&&(s.minutes=Math.floor(d),m-=s.minutes*o.SECONDS.MINUTE)}s.seconds=Math.floor(m);var T=[],p=0;for(var S in l)l.hasOwnProperty(S)&&(a[S]&&T.push(S),p+=s[S]*l[S].seconds);var h=[];if(1===T.length){var n=void 0===a.precision?1:a.precision,y=T.join(""),M=u.round(p/l[y].seconds,n);h.push(M+(a.abr?l[y].abr:" "+(1==M?l[y].single:l[y].plural)))}else{var n=void 0===a.precision?2:a.precision;for(var O in l)if(l.hasOwnProperty(O)){if(n&&h.length>=n)continue;if(a[O]){var M=s[O];M&&h.push(M+(a.abr?l[O].abr:" "+(1==M?l[O].single:l[O].plural)))}}}if(0===h.length)for(var A in l)l.hasOwnProperty(A)&&a[A]&&(h=["0"+(a.abr?l[A].abr:" "+(1==l[A]?l[A].single:l[A].plural))]);return a.suffix&&h.push(a.suffix),h.join(" ")}Object.defineProperty(a,"__esModule",{value:!0});var u=n("lodash"),o=n("./constants/seconds.ts");a.duration=t},"./functions/format.ts":function(e,a,n){"use strict";function t(e,a){var n=o.toMomentFormat(e,a);return u(e).format(n)}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone"),o=n("./functions/tomomentformat.ts");a.format=t},"./functions/granularduration.ts":function(e,a,n){"use strict";function t(e,a){return void 0===a&&(a={}),a.seconds=void 0!==a.seconds&&a.seconds,a.months=void 0!==a.months&&a.months,a.years=void 0!==a.years&&a.years,a.precision=void 0===a.precision?3:a.precision,u.duration(e,a)}Object.defineProperty(a,"__esModule",{value:!0});var u=n("./functions/duration.ts");a.granularDuration=t},"./functions/index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./functions/ago.ts")),t(n("./functions/iso8601.ts")),t(n("./functions/duration.ts")),t(n("./functions/format.ts")),t(n("./functions/range.ts")),t(n("./functions/granularduration.ts")),t(n("./functions/tomomentformat.ts"))},"./functions/iso8601.ts":function(e,a,n){"use strict";function t(e){return e?u(e).format():""}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone");a.iso8601=t},"./functions/range.ts":function(e,a,n){"use strict";function t(e,a,n){void 0===n&&(n="date");var t=n.split("-"),r=o.toMomentFormat(e,n),l=o.toMomentFormat(a,n);if(e=u(e),a=u(a),0==e.diff(a))return e.format(r);-1!==t.indexOf("time")?e.year()==a.year()&&(l=l.replace(" YYYY","").replace(",",""),l=e.month()==a.month()&&e.day()==a.day()?l.replace(" MMMM","").replace(" MMM","").replace("dddd","").replace("ddd","").replace(" Do","").replace(" D",""):l.replace(" Do"," Do,").replace(" D"," D,")):e.year()==a.year()&&(r=r.replace(" YYYY","").replace(",",""),e.month()==a.month()&&(-1==t.indexOf("day")&&(l=l.replace(" MMMM","").replace(" MMM","")),e.day()==a.day()&&-1==t.indexOf("time")&&(r=o.toMomentFormat(e,n),l="")));var s=e.format(r);return l&&(s+=" - "+a.format(l)),s}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone"),o=n("./functions/tomomentformat.ts");a.range=t},"./functions/tomomentformat.ts":function(e,a,n){"use strict";function t(e,a){void 0===a&&(a="date");var n=a.split("-"),t="",o="";if(-1!=n.indexOf("date")){var r=void 0,l=void 0,s=void 0,m=void 0;r=-1!=n.indexOf("day")?-1!=n.indexOf("full")?"dddd":"ddd":"",l=-1!=n.indexOf("full")?" MMMM":" MMM",s=-1!=n.indexOf("dayless")?"":-1!=n.indexOf("ordinal")?" Do":" D",m=-1!=n.indexOf("yearless")?"":" YYYY",s&&m&&(m=","+m),t=r+l+s+m}if(-1!=n.indexOf("time")&&(o=-1!=n.indexOf("24")?"HH:mm":"h:mma",-1!=n.indexOf("tz")&&(o+=" ["+u.tz(e,u.tz.guess()).format("z")+"]"),-1!=n.indexOf("gmt"))){var i=(new Date).getTimezoneOffset()/60;o+=" [GMT"+(i>-.1?"+":"")+i+"]"}return t=t.trim(),o=o.trim(),t+(t&&o?" ":"")+o}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone");a.toMomentFormat=t},"./index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./fs-date.module.ts")),t(n("./pipes/index.ts")),t(n("./constants/index.ts")),t(n("./functions/index.ts"))},"./pipes/fsdate.pipe.ts":function(e,a,n){"use strict";var t=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])};return function(a,n){function t(){this.constructor=a}e(a,n),a.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}}(),u=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var o=n("@angular/core"),r=n("./pipes/fsdateformat.pipe.ts"),l=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t(a,e),a=u([o.Pipe({name:"fsDate"})],a)}(r.FsDateFormatPipe);a.FsDatePipe=l},"./pipes/fsdateago.pipe.ts":function(e,a,n){"use strict";var t=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var u=n("@angular/core"),o=n("./functions/index.ts"),r=function(){function e(){}return e.prototype.transform=function(e,a){return o.ago(e,a)},e=t([u.Pipe({name:"fsDateAgo"})],e)}();a.FsDateAgoPipe=r},"./pipes/fsdateformat.pipe.ts":function(e,a,n){"use strict";var t=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var u=n("@angular/core"),o=n("./functions/index.ts"),r=function(){function e(){}return e.prototype.transform=function(e,a){return o.format(e,a)},e=t([u.Pipe({name:"fsDateFormat"})],e)}();a.FsDateFormatPipe=r},"./pipes/index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./pipes/fsdate.pipe.ts")),t(n("./pipes/fsdateformat.pipe.ts")),t(n("./pipes/fsdateago.pipe.ts"))},"@angular/common":function(e,a){e.exports=require("@angular/common")},"@angular/core":function(e,a){e.exports=require("@angular/core")},"@firestitch/common":function(e,a){e.exports=require("@firestitch/common")},lodash:function(e,a){e.exports=require("lodash")},"moment-timezone":function(e,a){e.exports=require("moment-timezone")}})});
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define("@firestitch/date",[],a):"object"==typeof exports?exports["@firestitch/date"]=a():e["@firestitch/date"]=a()}("undefined"!=typeof self?self:this,function(){return function(e){function a(t){if(n[t])return n[t].exports;var u=n[t]={i:t,l:!1,exports:{}};return e[t].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var n={};return a.m=e,a.c=n,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},a.p="",a(a.s="./index.ts")}({"./constants/index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./constants/timezones.ts")),t(n("./constants/seconds.ts"))},"./constants/seconds.ts":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SECONDS={YEAR:31536e3,MONTH:86400*30.417,DAY:86400,HOUR:3600,MINUTE:60}},"./constants/timezones.ts":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TIMEZONES=[{name:"A",value:"1"},{name:"ACDT",value:"10:30"},{name:"ACST",value:"9:30"},{name:"ADT",value:"-3"},{name:"ADT",value:"-3"},{name:"AEDT",value:"11"},{name:"AEST",value:"10"},{name:"AFT",value:"4:30"},{name:"AKDT",value:"-8"},{name:"AKST",value:"-9"},{name:"ALMT",value:"6"},{name:"AMST",value:"5"},{name:"AMST",value:"-3"},{name:"AMT",value:"4"},{name:"AMT",value:"-4"},{name:"ANAST",value:"12"},{name:"ANAT",value:"12"},{name:"AQTT",value:"5"},{name:"ART",value:"-3"},{name:"AST",value:"3"},{name:"AST",value:"-4"},{name:"AWDT",value:"9"},{name:"AWST",value:"8"},{name:"AZOST",value:"0"},{name:"AZOT",value:"-1"},{name:"AZST",value:"5"},{name:"AZT",value:"4"},{name:"B",value:"2"},{name:"BNT",value:"8"},{name:"BOT",value:"-4"},{name:"BRST",value:"-2"},{name:"BRT",value:"-3"},{name:"BST",value:"6"},{name:"BST",value:"1"},{name:"BTT",value:"6"},{name:"C",value:"3"},{name:"CAST",value:"8"},{name:"CAT",value:"2"},{name:"CCT",value:"6:30"},{name:"CDT",value:"-4"},{name:"CDT",value:"-5"},{name:"CEST",value:"2"},{name:"CET",value:"1"},{name:"CHADT",value:"13:45"},{name:"CHAST",value:"12:45"},{name:"CKT",value:"-10"},{name:"CLST",value:"-3"},{name:"CLT",value:"-4"},{name:"COT",value:"-5"},{name:"CST",value:"8"},{name:"CST",value:"-6"},{name:"CST",value:"-5"},{name:"CVT",value:"-1"},{name:"CXT",value:"7"},{name:"ChST",value:"10"},{name:"D",value:"4"},{name:"DAVT",value:"7"},{name:"E",value:"5"},{name:"EASST",value:"-5"},{name:"EAST",value:"-6"},{name:"EAT",value:"3"},{name:"EAT",value:"3"},{name:"ECT",value:"-5"},{name:"EDT",value:"-4"},{name:"EEST",value:"3"},{name:"EET",value:"2"},{name:"EGST",value:"0"},{name:"EGT",value:"-1"},{name:"EST",value:"-5"},{name:"ET",value:"-5"},{name:"F",value:"6"},{name:"FJST",value:"13"},{name:"FJT",value:"12"},{name:"FKST",value:"-3"},{name:"FKT",value:"-4"},{name:"FNT",value:"-2"},{name:"G",value:"7"},{name:"GALT",value:"-6"},{name:"GAMT",value:"-9"},{name:"GET",value:"4"},{name:"GFT",value:"-3"},{name:"GILT",value:"12"},{name:"GMT",value:"0"},{name:"GST",value:"4"},{name:"GYT",value:"-4"},{name:"H",value:"8"},{name:"HAA",value:"-3"},{name:"HAC",value:"-5"},{name:"HADT",value:"-9"},{name:"HAE",value:"-4"},{name:"HAP",value:"-7"},{name:"HAR",value:"-6"},{name:"HAST",value:"-10"},{name:"HAT",value:"-2:30"},{name:"HAY",value:"-8"},{name:"HKT",value:"8"},{name:"HLV",value:"-4:30"},{name:"HNA",value:"-4"},{name:"HNC",value:"-6"},{name:"HNE",value:"-5"},{name:"HNP",value:"-8"},{name:"HNR",value:"-7"},{name:"HNT",value:"-3:30"},{name:"HNY",value:"-9"},{name:"HOVT",value:"7"},{name:"I",value:"9"},{name:"ICT",value:"7"},{name:"IDT",value:"3"},{name:"IOT",value:"6"},{name:"IRDT",value:"4:30"},{name:"IRKST",value:"9"},{name:"IRKT",value:"9"},{name:"IRST",value:"3:30"},{name:"IST",value:"2"},{name:"IST",value:"5:30"},{name:"IST",value:"1"},{name:"JST",value:"9"},{name:"K",value:"10"},{name:"KGT",value:"6"},{name:"KRAST",value:"8"},{name:"KRAT",value:"8"},{name:"KST",value:"9"},{name:"KUYT",value:"4"},{name:"L",value:"11"},{name:"LHDT",value:"11"},{name:"LHST",value:"10:30"},{name:"LINT",value:"14"},{name:"M",value:"12"},{name:"MAGST",value:"12"},{name:"MAGT",value:"12"},{name:"MART",value:"-9:30"},{name:"MAWT",value:"5"},{name:"MDT",value:"-6"},{name:"MESZ",value:"2"},{name:"MEZ",value:"1"},{name:"MHT",value:"12"},{name:"MMT",value:"6:30"},{name:"MSD",value:"4"},{name:"MSK",value:"4"},{name:"MST",value:"-7"},{name:"MUT",value:"4"},{name:"MVT",value:"5"},{name:"MYT",value:"8"},{name:"N",value:"-1"},{name:"NCT",value:"11"},{name:"NDT",value:"-2:30"},{name:"NFT",value:"11:30"},{name:"NOVST",value:"7"},{name:"NOVT",value:"6"},{name:"NPT",value:"5:45"},{name:"NST",value:"-3:30"},{name:"NUT",value:"-11"},{name:"NZDT",value:"13"},{name:"NZST",value:"12"},{name:"O",value:"-2"},{name:"OMSST",value:"7"},{name:"OMST",value:"7"},{name:"P",value:"-3"},{name:"PDT",value:"-7"},{name:"PET",value:"-5"},{name:"PETST",value:"12"},{name:"PETT",value:"12"},{name:"PGT",value:"10"},{name:"PHOT",value:"13"},{name:"PHT",value:"8"},{name:"PKT",value:"5"},{name:"PMDT",value:"-2"},{name:"PMST",value:"-3"},{name:"PONT",value:"11"},{name:"PST",value:"-8"},{name:"PST",value:"-8"},{name:"PT",value:"-8"},{name:"PWT",value:"9"},{name:"PYST",value:"-3"},{name:"PYT",value:"-4"},{name:"Q",value:"-4"},{name:"R",value:"-5"},{name:"RET",value:"4"},{name:"S",value:"-6"},{name:"SAMT",value:"4"},{name:"SAST",value:"2"},{name:"SBT",value:"11"},{name:"SCT",value:"4"},{name:"SGT",value:"8"},{name:"SRT",value:"-3"},{name:"SST",value:"-11"},{name:"T",value:"-7"},{name:"TAHT",value:"-10"},{name:"TFT",value:"5"},{name:"TJT",value:"5"},{name:"TKT",value:"13"},{name:"TLT",value:"9"},{name:"TMT",value:"5"},{name:"TVT",value:"12"},{name:"U",value:"-8"},{name:"ULAT",value:"8"},{name:"UTC",value:"0"},{name:"UYST",value:"-2"},{name:"UYT",value:"-3"},{name:"UZT",value:"5"},{name:"V",value:"-9"},{name:"VET",value:"-4:30"},{name:"VLAST",value:"11"},{name:"VLAT",value:"11"},{name:"VUT",value:"11"},{name:"W",value:"-10"},{name:"WAST",value:"2"},{name:"WAT",value:"1"},{name:"WEST",value:"1"},{name:"WESZ",value:"1"},{name:"WET",value:"0"},{name:"WEZ",value:"0"},{name:"WFT",value:"12"},{name:"WGST",value:"-2"},{name:"WGT",value:"-3"},{name:"WIB",value:"7"},{name:"WIT",value:"9"},{name:"WITA",value:"8"},{name:"WST",value:"1"},{name:"WST",value:"13"},{name:"WT",value:"0"},{name:"X",value:"-11"},{name:"Y",value:"-12"},{name:"YAKST",value:"10"},{name:"YAKT",value:"10"},{name:"YAPT",value:"10"},{name:"YEKST",value:"6"},{name:"YEKT",value:"6"},{name:"Z",value:"0"}]},"./fs-date.module.ts":function(e,a,n){"use strict";var t=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var u=n("@angular/core"),o=n("@angular/common"),r=n("@firestitch/common"),l=n("./pipes/index.ts"),s=function(){function e(){}return a=e,e.forRoot=function(){return{ngModule:a}},e=a=t([u.NgModule({imports:[o.CommonModule,r.FsCommonModule],exports:[l.FsDatePipe,l.FsDateAgoPipe,l.FsDateFormatPipe],entryComponents:[],declarations:[l.FsDatePipe,l.FsDateAgoPipe,l.FsDateFormatPipe],providers:[]})],e);var a}();a.FsDateModule=s},"./functions/ago.ts":function(e,a,n){"use strict";function t(e,a){if(void 0===a&&(a="date"),!e)return"";var n=o.round(u().diff(e,"minute",!0),0),t=o.round(u().diff(e,"hour",!0),0);return Math.abs(t)>=24?u(e).year()==u().year()?r.format(e,"date-yearless"):r.format(e,a):0==t&&0==n?"now":l.duration(n,{unit:"minute",suffix:!0,seconds:!1})}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone"),o=n("lodash"),r=n("./functions/format.ts"),l=n("./functions/duration.ts");a.ago=t},"./functions/duration.ts":function(e,a,n){"use strict";function t(e,a){if(!u.isNumber(e))return"";if("string"==typeof a){a={seconds:!!a.match(/second/),minutes:!!a.match(/minute/),hours:!!a.match(/hour/),days:!!a.match(/day/),months:!!a.match(/month/),years:!!a.match(/year/)};for(var n=0,t=0,r=a;t<r.length;t++){r[t]&&n++}a.precision=n}a=Object.assign({},a),a.unit=void 0===a.unit?"second":a.unit,a.abr=void 0===a.abr||a.abr,a.suffix=!0===a.suffix?e>0?" ago":" from now":"",a.seconds=void 0===a.seconds||a.seconds,a.minutes=void 0===a.minutes||a.minutes,a.hours=void 0===a.hours||a.hours,a.days=void 0===a.days||a.days,a.months=void 0===a.months||a.months,a.years=void 0===a.years||a.years,"minute"===a.unit?e*=60:"hour"===a.unit&&(e=60*e*60),e=Math.abs(parseInt(e));var l={years:{abr:"Y",single:"year",plural:"years",seconds:o.SECONDS.YEAR,next:"months"},months:{abr:"M",single:"month",plural:"months",seconds:o.SECONDS.MONTH,next:"days"},days:{abr:"d",single:"day",plural:"days",seconds:o.SECONDS.DAY,next:"hours"},hours:{abr:"h",single:"hour",plural:"hours",seconds:o.SECONDS.HOUR,next:"months"},minutes:{abr:"m",single:"minute",plural:"minutes",seconds:o.SECONDS.MINUTE,next:"seconds"},seconds:{abr:"s",single:"second",plural:"seconds",seconds:1,next:null}},s={years:0,months:0,days:0,hours:0,minutes:0,seconds:0},m=e;if(a.years){var i=m/o.SECONDS.YEAR;i>=1&&(s.years=Math.floor(i),m-=s.years*o.SECONDS.YEAR)}if(a.months){var v=m/o.SECONDS.MONTH;v>=1&&(s.months=Math.floor(v),m-=s.months*o.SECONDS.MONTH)}if(a.days){var f=m/o.SECONDS.DAY;f>=1&&(s.days=Math.floor(f),m-=s.days*o.SECONDS.DAY)}if(a.hours){var c=m/o.SECONDS.HOUR;c>=1&&(s.hours=Math.floor(c),m-=s.hours*o.SECONDS.HOUR)}if(a.minutes){var d=m/60;d>=1&&(s.minutes=Math.floor(d),m-=s.minutes*o.SECONDS.MINUTE)}s.seconds=Math.floor(m);var T=[],p=0;for(var S in l)l.hasOwnProperty(S)&&(a[S]&&T.push(S),p+=s[S]*l[S].seconds);var h=[];if(1===T.length){var n=void 0===a.precision?1:a.precision,y=T.join(""),M=u.round(p/l[y].seconds,n);h.push(M+(a.abr?l[y].abr:" "+(1==M?l[y].single:l[y].plural)))}else{var n=void 0===a.precision?2:a.precision;for(var O in l)if(l.hasOwnProperty(O)){if(n&&h.length>=n)continue;if(a[O]){var M=s[O];M&&h.push(M+(a.abr?l[O].abr:" "+(1==M?l[O].single:l[O].plural)))}}}if(0===h.length)for(var A in l)l.hasOwnProperty(A)&&a[A]&&(h=["0"+(a.abr?l[A].abr:" "+(1==l[A]?l[A].single:l[A].plural))]);return a.suffix&&h.push(a.suffix),h.join(" ")}Object.defineProperty(a,"__esModule",{value:!0});var u=n("lodash"),o=n("./constants/seconds.ts");a.duration=t},"./functions/format.ts":function(e,a,n){"use strict";function t(e,a){var n=o.toMomentFormat(e,a);return u(e).format(n)}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone"),o=n("./functions/tomomentformat.ts");a.format=t},"./functions/granularduration.ts":function(e,a,n){"use strict";function t(e,a){return void 0===a&&(a={}),a.seconds=void 0!==a.seconds&&a.seconds,a.months=void 0!==a.months&&a.months,a.years=void 0!==a.years&&a.years,a.precision=void 0===a.precision?3:a.precision,u.duration(e,a)}Object.defineProperty(a,"__esModule",{value:!0});var u=n("./functions/duration.ts");a.granularDuration=t},"./functions/index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./functions/ago.ts")),t(n("./functions/iso8601.ts")),t(n("./functions/duration.ts")),t(n("./functions/format.ts")),t(n("./functions/range.ts")),t(n("./functions/granularduration.ts")),t(n("./functions/tomomentformat.ts"))},"./functions/iso8601.ts":function(e,a,n){"use strict";function t(e){return e?u(e).format():""}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone");a.iso8601=t},"./functions/range.ts":function(e,a,n){"use strict";function t(e,a,n){void 0===n&&(n="date");var t=n.split("-"),r=o.toMomentFormat(e,n),l=o.toMomentFormat(a,n);if(e=u(e),a=u(a),0==e.diff(a))return e.format(r);-1!==t.indexOf("time")?e.year()==a.year()&&(l=l.replace(" YYYY","").replace(",",""),l=e.month()==a.month()&&e.day()==a.day()?l.replace(" MMMM","").replace(" MMM","").replace("dddd","").replace("ddd","").replace(" Do","").replace(" D",""):l.replace(" Do"," Do,").replace(" D"," D,")):e.year()==a.year()&&(r=r.replace(" YYYY","").replace(",",""),e.month()==a.month()&&(-1==t.indexOf("day")&&(l=l.replace(" MMMM","").replace(" MMM","")),e.day()==a.day()&&-1==t.indexOf("time")&&(r=o.toMomentFormat(e,n),l="")));var s=e.format(r);return l&&(s+=" - "+a.format(l)),s}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone"),o=n("./functions/tomomentformat.ts");a.range=t},"./functions/tomomentformat.ts":function(e,a,n){"use strict";function t(e,a){void 0===a&&(a="date");var n=a.split("-"),t="",o="";if(-1!=n.indexOf("date")){var r=void 0,l=void 0,s=void 0,m=void 0;r=-1!=n.indexOf("day")?-1!=n.indexOf("full")?"dddd":"ddd":"",l=-1!=n.indexOf("full")?" MMMM":" MMM",s=-1!=n.indexOf("dayless")?"":-1!=n.indexOf("ordinal")?" Do":" D",m=-1!=n.indexOf("yearless")?"":" YYYY",s&&m&&(m=","+m),t=r+l+s+m}if(-1!=n.indexOf("time")&&(o=-1!=n.indexOf("24")?"HH:mm":"h:mma",-1!=n.indexOf("tz")&&(o+=" ["+u.tz(e,u.tz.guess()).format("z")+"]"),-1!=n.indexOf("gmt"))){var i=(new Date).getTimezoneOffset()/60;o+=" [GMT"+(i>-.1?"+":"")+i+"]"}return t=t.trim(),o=o.trim(),t+(t&&o?" ":"")+o}Object.defineProperty(a,"__esModule",{value:!0});var u=n("moment-timezone");a.toMomentFormat=t},"./index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./fs-date.module.ts")),t(n("./pipes/index.ts")),t(n("./constants/index.ts")),t(n("./functions/index.ts"))},"./pipes/fsdate.pipe.ts":function(e,a,n){"use strict";var t=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])};return function(a,n){function t(){this.constructor=a}e(a,n),a.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}}(),u=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var o=n("@angular/core"),r=n("./pipes/fsdateformat.pipe.ts"),l=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t(a,e),a=u([o.Pipe({name:"fsDate"})],a)}(r.FsDateFormatPipe);a.FsDatePipe=l},"./pipes/fsdateago.pipe.ts":function(e,a,n){"use strict";var t=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var u=n("@angular/core"),o=n("./functions/index.ts"),r=function(){function e(){}return e.prototype.transform=function(e,a){return o.ago(e,a)},e=t([u.Pipe({name:"fsDateAgo"})],e)}();a.FsDateAgoPipe=r},"./pipes/fsdateformat.pipe.ts":function(e,a,n){"use strict";var t=this&&this.__decorate||function(e,a,n,t){var u,o=arguments.length,r=o<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,a,n,t);else for(var l=e.length-1;l>=0;l--)(u=e[l])&&(r=(o<3?u(r):o>3?u(a,n,r):u(a,n))||r);return o>3&&r&&Object.defineProperty(a,n,r),r};Object.defineProperty(a,"__esModule",{value:!0});var u=n("@angular/core"),o=n("./functions/index.ts"),r=function(){function e(){}return e.prototype.transform=function(e,a){return o.format(e,a)},e=t([u.Pipe({name:"fsDateFormat"})],e)}();a.FsDateFormatPipe=r},"./pipes/index.ts":function(e,a,n){"use strict";function t(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}Object.defineProperty(a,"__esModule",{value:!0}),t(n("./pipes/fsdate.pipe.ts")),t(n("./pipes/fsdateformat.pipe.ts")),t(n("./pipes/fsdateago.pipe.ts"))},"@angular/common":function(e,a){e.exports=require("@angular/common")},"@angular/core":function(e,a){e.exports=require("@angular/core")},"@firestitch/common":function(e,a){e.exports=require("@firestitch/common")},lodash:function(e,a){e.exports=require("lodash")},"moment-timezone":function(e,a){e.exports=require("moment-timezone")}})});
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FsCommonModule } from '@firestitch/common';
import { FsDatePipe } from './pipes';
import { FsDateAgoPipe } from './pipes';
import { FsDatePipe, FsDateAgoPipe, FsDateFormatPipe } from './pipes';

@@ -14,3 +13,4 @@ @NgModule({

FsDatePipe,
FsDateAgoPipe
FsDateAgoPipe,
FsDateFormatPipe
],

@@ -21,3 +21,4 @@ entryComponents: [

FsDatePipe,
FsDateAgoPipe
FsDateAgoPipe,
FsDateFormatPipe
],

@@ -24,0 +25,0 @@ providers: [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc