@dynatrace/cordova-plugin
Version:
This plugin gives you the ability to use the Dynatrace instrumentation in your hybrid application (Cordova, Ionic, ..). It uses the Mobile Agent, the JavaScript Agent. The Mobile Agent will give you all device specific values containing lifecycle informat
22 lines (21 loc) • 821 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sanitizePath = exports.logPluginVersion = void 0;
var path_1 = require("path");
var Logger_1 = require("../logger/Logger");
var logPluginVersion = function (packageJson) {
if (packageJson !== undefined && packageJson.version !== undefined) {
Logger_1.Logger.getInstance().logInfo('Dynatrace Cordova Plugin - Version ' + packageJson.version);
}
else {
Logger_1.Logger.getInstance().logWarning('Dynatrace Cordova Plugin - Version NOT READABLE');
}
};
exports.logPluginVersion = logPluginVersion;
var sanitizePath = function (path) {
if (path == null || (0, path_1.isAbsolute)(path)) {
return path;
}
return (0, path_1.join)(process.cwd(), path);
};
exports.sanitizePath = sanitizePath;