UNPKG

1.01 kBSource Map (JSON)View Raw
1{"version":3,"file":"utc.pipe.js","sourceRoot":"","sources":["utc.pipe.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAAoD;AACpD,+BAAiC;AAEjC,4FAA4F;AAC5F,IAAM,iBAAiB,GAAyC,MAAO,CAAC,OAAO,IAAI,MAAM,CAAC;AAG1F;IAAA;IAIA,CAAC;IAHC,2BAAS,GAAT,UAAU,KAA6C;QACrD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC;IAC7B,CAAC;IAHU,OAAO;QADnB,WAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;OACX,OAAO,CAInB;IAAD,cAAC;CAAA,AAJD,IAIC;AAJY,0BAAO","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\nimport * as moment from 'moment';\r\n\r\n// under systemjs, moment is actually exported as the default export, so we account for that\r\nconst momentConstructor: (value?: any) => moment.Moment = (<any>moment).default || moment;\r\n\r\n@Pipe({ name: 'amUtc' })\r\nexport class UtcPipe implements PipeTransform {\r\n transform(value: Date | moment.Moment | string | number): moment.Moment {\r\n return moment(value).utc();\r\n }\r\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
\No newline at end of file