ngx-matomo-client
Version:
Matomo (fka. Piwik) client for Angular applications
13 lines • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.readIntoSourceFile = readIntoSourceFile;
exports.escapeLiteral = escapeLiteral;
const ts = require("typescript");
function readIntoSourceFile(host, modulePath) {
const sourceText = host.readText(modulePath);
return ts.createSourceFile(modulePath, sourceText, ts.ScriptTarget.Latest, true);
}
function escapeLiteral(str) {
return str.replace(new RegExp('\\\\', 'g'), '\\\\').replace(new RegExp(`'`, 'g'), "\\'");
}
//# sourceMappingURL=file.js.map