Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
global._xlibConfigDefaults = {};
}
lodash.defaults(global._xlibConfigDefaults, __configDefaults);
if (_xlibConfigDefaults.sourceMapSupport === true) {
/** https://www.npmjs.com/package/source-map-support
* This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
*/
var source_map_support = require("source-map-support");
//import * as source_map_support from "source-map-support";
//can be removed by webpack
if (source_map_support != null && source_map_support.install != null) {
//console.info("source map support installing");
source_map_support.install();
//console.info("source map support installed by xlib, as requested by calling module.");
}
else if (source_map_support != null && source_map_support.sourceMapSupport != null) {
//console.warn("source map support installing 2");
source_map_support.sourceMapSupport.install();
}
else {
console.warn("NO source map support installed. could not find the module. (is it no-oped?)");
console.log(JSON.stringify(source_map_support, undefined, "\t"));
}
}
///** allows embeding mocha tests (unit tests) in your code, no-oping them if mocha is not present. */
//import mockMocha = require("./internal/mockmocha");
var mockMocha = require("./internal/mockmocha");
mockMocha._initialize();
///** low-level javascript helpers, to smooth over warts in the language */
//export import * as jsHelper from "./jshelper";
//export import * as arrayHelper from "./arrayhelper";
//export import ClassBase = require("./classbase");
if (_xlibConfigDefaults.sourceMapSupport === true) {
/** https://www.npmjs.com/package/source-map-support
* This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
*/
var source_map_support = require("source-map-support");
//import * as source_map_support from "source-map-support";
//can be removed by webpack
if (source_map_support != null && source_map_support.install != null) {
//console.info("source map support installing");
source_map_support.install();
//console.info("source map support installed by xlib, as requested by calling module.");
} else if (source_map_support != null && source_map_support.sourceMapSupport != null) {
//console.warn("source map support installing 2");
source_map_support.sourceMapSupport.install();
} else {
console.warn("NO source map support installed. could not find the module. (is it no-oped?)");
console.log(JSON.stringify(source_map_support, undefined, "\t"));
}
}
///** allows embeding mocha tests (unit tests) in your code, no-oping them if mocha is not present. */
//import mockMocha = require("./internal/mockmocha");
import * as mockMocha from "./internal/mockmocha";
mockMocha._initialize();
///** low-level javascript helpers, to smooth over warts in the language */
//export import * as jsHelper from "./jshelper";
}
lodash.defaults((global as any)._xlibConfigDefaults, __configDefaults);
if (_xlibConfigDefaults.sourceMapSupport === true) {
/** https://www.npmjs.com/package/source-map-support
* This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
*/
var source_map_support = require("source-map-support");
//import * as source_map_support from "source-map-support";
//can be removed by webpack
if (source_map_support != null && source_map_support.install != null) {
//console.info("source map support installing");
source_map_support.install();
//console.info("source map support installed by xlib, as requested by calling module.");
} else if (source_map_support != null && source_map_support.sourceMapSupport != null) {
//console.warn("source map support installing 2");
source_map_support.sourceMapSupport.install();
} else {
console.warn("NO source map support installed. could not find the module. (is it no-oped?)");
console.log(JSON.stringify(source_map_support, undefined, "\t"));
}
}
///** allows embeding mocha tests (unit tests) in your code, no-oping them if mocha is not present. */
//import mockMocha = require("./internal/mockmocha");
import * as mockMocha from "./internal/mockmocha";
mockMocha._initialize();
lodash.defaults(global._xlibConfigDefaults, __configDefaults);
if (_xlibConfigDefaults.sourceMapSupport === true) {
/** https://www.npmjs.com/package/source-map-support
* This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
*/
var source_map_support = require("source-map-support");
//import * as source_map_support from "source-map-support";
//can be removed by webpack
if (source_map_support != null && source_map_support.install != null) {
//console.info("source map support installing");
source_map_support.install();
//console.info("source map support installed by xlib, as requested by calling module.");
}
else if (source_map_support != null && source_map_support.sourceMapSupport != null) {
//console.warn("source map support installing 2");
source_map_support.sourceMapSupport.install();
}
else {
console.warn("NO source map support installed. could not find the module. (is it no-oped?)");
console.log(JSON.stringify(source_map_support, undefined, "\t"));
}
}
///** allows embeding mocha tests (unit tests) in your code, no-oping them if mocha is not present. */
//import mockMocha = require("./internal/mockmocha");
var mockMocha = require("./internal/mockmocha");
mockMocha._initialize();
///** low-level javascript helpers, to smooth over warts in the language */
//export import * as jsHelper from "./jshelper";
//export import * as arrayHelper from "./arrayhelper";
//export import ClassBase = require("./classbase");
//export import * as logging from "./logging";
var jsHelper = require("./jshelper");