2016-09-20 22:34:31 +02:00
|
|
|
import {Injectable} from "@angular/core";
|
2017-03-14 23:36:39 +01:00
|
|
|
import {Punycode} from "./punycode";
|
|
|
|
import {Utf8} from "./utf8";
|
|
|
|
import {QuotedPrintable} from "./quotedprintable";
|
2016-09-20 22:34:31 +02:00
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class NativeLibraryWrapperService {
|
2017-03-14 23:36:39 +01:00
|
|
|
public utf8:Utf8;
|
|
|
|
public quotedPrintable:QuotedPrintable;
|
|
|
|
public punycode:Punycode;
|
2016-09-20 22:34:31 +02:00
|
|
|
|
|
|
|
constructor() {
|
2017-03-14 23:36:39 +01:00
|
|
|
this.utf8 = require("utf8");
|
|
|
|
this.quotedPrintable = require("quoted-printable");
|
|
|
|
this.punycode = require("punycode");
|
2016-09-20 22:34:31 +02:00
|
|
|
}
|
2016-09-27 23:50:52 +02:00
|
|
|
}
|