UNPKG

craydent-xml-to-json

Version:
26 lines (25 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /*/---------------------------------------------------------/*/ /*/ Craydent LLC node-v0.9.0 /*/ /*/ Copyright 2011 (http://craydent.com/about) /*/ /*/ Dual licensed under the MIT or GPL Version 2 licenses. /*/ /*/ (http://craydent.com/license) /*/ /*/---------------------------------------------------------/*/ /*/---------------------------------------------------------/*/ //#region imports //@ts-ignore const __common_1 = require("./private/__common"); const XmlToJson = require("./protected/_xmltojson"); //#endregion typeDefs if (!__common_1.$c.MODULES_LOADED[__common_1.info.name]) { __common_1.scope.eval = str => eval(str); const __logModule = require('./private/__logModule').default; __logModule(__common_1.info.name); const ext = require('./protected/_ext').default; const prototypes = require('./__prototypes'); ext(String, 'xmlToJson', prototypes._xmlToJson, true); typeof XMLDocument != 'undefined' && ext(XMLDocument, "xmlToJson", prototypes._xmlToJson, true); __common_1.$c.xmlToJson = XmlToJson.default; } exports.default = __common_1.$c;