@haventech/supertype
Advanced tools
Comparing version 4.0.0 to 5.0.0-beta.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.remote = exports.property = exports.supertypeClass = void 0; | ||
var Supertype_1 = require("./Supertype"); | ||
exports.Supertype = Supertype_1.Supertype; | ||
Object.defineProperty(exports, "Supertype", { enumerable: true, get: function () { return Supertype_1.Supertype; } }); | ||
var ObjectTemplate_1 = require("./ObjectTemplate"); | ||
@@ -172,2 +173,2 @@ require("reflect-metadata"); | ||
exports.remote = remote; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWNvcmF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQXdDO0FBQS9CLGdDQUFBLFNBQVMsQ0FBQTtBQUNsQixtREFBa0Q7QUFFbEQsNEJBQTBCO0FBRTFCOzs7Ozs7OztNQVFNO0FBQ04sU0FBZ0IsY0FBYyxDQUFDLFdBQVksRUFBRSxjQUFlO0lBRXhELHNGQUFzRjtJQUN0RixvRkFBb0Y7SUFDcEYsOEZBQThGO0lBRTlGLGdDQUFnQztJQUNoQyxJQUFJLFdBQVcsQ0FBQyxTQUFTLEVBQUUsRUFBRSx3SUFBd0k7UUFDakssT0FBTyxTQUFTLENBQUMsV0FBVyxDQUFDLENBQUM7S0FDakM7SUFFRCxtQ0FBbUM7SUFDbkMsSUFBSSxLQUFLLEdBQUcsV0FBVyxDQUFDO0lBQ3hCLE9BQU8sU0FBUyxDQUFDO0lBRWpCLHNCQUFzQjtJQUN0QixTQUFTLFNBQVMsQ0FBQyxNQUFNO1FBQ3JCLGNBQWMsR0FBRyxjQUFjLElBQUksK0JBQWMsQ0FBQztRQUVsRCxNQUFNLENBQUMsU0FBUyxDQUFDLFlBQVksR0FBRyxNQUFNLENBQUM7UUFD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gICAgICAgICAgICAgICAgICAgICBkZWZpbmVQcm9wZXJ0eS5vbiwgZGVmaW5lUHJvcGVydHkudmFsaWRhdGUpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGFyZ2V0LnByb3RvdHlwZS5fX2Ftb3JwaGljcHJvcHNfX1twcm9wZXJ0eU5hbWVdID0gZGVmaW5lUHJvcGVydHk7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgZGVmaW5lUHJvcGVydHkudmFsdWUgaW4gWydzdHJpbmcnLCAnbnVtYmVyJ10gfHwgZGVmaW5lUHJvcGVydHkudmFsdWUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldC5wcm90b3R5cGUsIHByb3BlcnR5TmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IGVudW1lcmFibGU6IHRydWUsIHdyaXRhYmxlOiB0cnVlLCB2YWx1ZTogZGVmaW5lUHJvcGVydHkudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LnByb3RvdHlwZSwgcHJvcGVydHlOYW1lLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzWydfXycgKyBwcm9wZXJ0eU5hbWVdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzWydfXycgKyBwcm9wZXJ0eU5hbWVdID1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBPYmplY3RUZW1wbGF0ZS5jbG9uZShkZWZpbmVQcm9wZXJ0eS52YWx1ZSwgZGVmaW5lUHJvcGVydHkub2YgfHxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmaW5lUHJvcGVydHkudHlwZSB8fCBudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpc1snX18nICsgcHJvcGVydHlOYW1lXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXNbJ19fJyArIHByb3BlcnR5TmFtZV0gPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgaWYgKHRhcmdldC5wcm90b3R5cGUuX19leGNlcHRpb25zX18pIHtcbiAgICAgICAgICAgIG9iamVjdFRlbXBsYXRlLl9fZXhjZXB0aW9uc19fID0gb2JqZWN0VGVtcGxhdGUuX19leGNlcHRpb25zX18gfHwgW107XG4gICAgICAgICAgICBmb3IgKHZhciBleGNlcHRpb25LZXkgaW4gdGFyZ2V0LnByb3RvdHlwZS5fX2V4Y2VwdGlvbnNfXykge1xuICAgICAgICAgICAgICAgIG9iamVjdFRlbXBsYXRlLl9fZXhjZXB0aW9uc19fLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICBmdW5jOiB0YXJnZXQucHJvdG90eXBlLl9fZXhjZXB0aW9uc19fW2V4Y2VwdGlvbktleV0sXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzOiBnZXROYW1lLFxuICAgICAgICAgICAgICAgICAgICBwcm9wOiBleGNlcHRpb25LZXlcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGZ1bmN0aW9uIGRlZmluZVByb3BlcnRpZXMoKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0LnByb3RvdHlwZS5fX2Ftb3JwaGljcHJvcHNfXztcbiAgICAgICAgfVxuICAgICAgICBmdW5jdGlvbiBnZXROYW1lKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRhcmdldC50b1N0cmluZygpLm1hdGNoKC9mdW5jdGlvbiAoW14oXSopLylbMV07XG4gICAgICAgIH1cbiAgICAgICAgZnVuY3Rpb24gZ2V0RGljdGlvbmFyeSgpIHtcbiAgICAgICAgICAgIG9iamVjdFRlbXBsYXRlLmdldENsYXNzZXMoKTtcbiAgICAgICAgfVxuICAgICAgICBmdW5jdGlvbiBnZXRQYXJlbnQoKSB7XG4gICAgICAgICAgICBnZXREaWN0aW9uYXJ5KCk7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0Ll9fc2hhZG93UGFyZW50X187XG4gICAgICAgIH1cbiAgICAgICAgZnVuY3Rpb24gZ2V0Q2hpbGRyZW4oKSB7XG4gICAgICAgICAgICBnZXREaWN0aW9uYXJ5KCk7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0Ll9fc2hhZG93Q2hpbGRyZW5fXztcbiAgICAgICAgfVxuICAgIH1cbn1cblxuXG5leHBvcnQgZnVuY3Rpb24gcHJvcGVydHkocHJvcHM/KTogYW55IHtcbiAgICByZXR1cm4gZnVuY3Rpb24gKHRhcmdldCwgdGFyZ2V0S2V5KSB7XG4gICAgICAgIHByb3BzID0gcHJvcHMgfHwge307XG4gICAgICAgIHByb3BzLmVudW1lcmFibGUgPSB0cnVlO1xuICAgICAgICB0YXJnZXQuX19hbW9ycGhpY3Byb3BzX18gPSB0YXJnZXQuaGFzT3duUHJvcGVydHk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W9ycGhpY3Byb3BzX19bcHJvcGVydHlOYW1lXSA9IGRlZmluZVByb3BlcnR5O1xuICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIGRlZmluZVByb3BlcnR5LnZhbHVlIGluIFsnc3RyaW5nJywgJ251bWJlciddIHx8IGRlZmluZVByb3BlcnR5LnZhbHVlID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQucHJvdG90eXBlLCBwcm9wZXJ0eU5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBlbnVtZXJhYmxlOiB0cnVlLCB3cml0YWJsZTogdHJ1ZSwgdmFsdWU6IGRlZmluZVByb3BlcnR5LnZhbHVlIH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldC5wcm90b3R5cGUsIHByb3BlcnR5TmFtZSwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghdGhpc1snX18nICsgcHJvcGVydHlOYW1lXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpc1snX18nICsgcHJvcGVydHlOYW1lXSA9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT2JqZWN0VGVtcGxhdGUuY2xvbmUoZGVmaW5lUHJvcGVydHkudmFsdWUsIGRlZmluZVByb3BlcnR5Lm9mIHx8XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmluZVByb3BlcnR5LnR5cGUgfHwgbnVsbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXNbJ19fJyArIHByb3BlcnR5TmFtZV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzWydfXycgKyBwcm9wZXJ0eU5hbWVdID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgIGlmICh0YXJnZXQucHJvdG90eXBlLl9fZXhjZXB0aW9uc19fKSB7XG4gICAgICAgICAgICBvYmplY3RUZW1wbGF0ZS5fX2V4Y2VwdGlvbnNfXyA9IG9iamVjdFRlbXBsYXRlLl9fZXhjZXB0aW9uc19fIHx8IFtdO1xuICAgICAgICAgICAgZm9yICh2YXIgZXhjZXB0aW9uS2V5IGluIHRhcmdldC5wcm90b3R5cGUuX19leGNlcHRpb25zX18pIHtcbiAgICAgICAgICAgICAgICBvYmplY3RUZW1wbGF0ZS5fX2V4Y2VwdGlvbnNfXy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgZnVuYzogdGFyZ2V0LnByb3RvdHlwZS5fX2V4Y2VwdGlvbnNfX1tleGNlcHRpb25LZXldLFxuICAgICAgICAgICAgICAgICAgICBjbGFzczogZ2V0TmFtZSxcbiAgICAgICAgICAgICAgICAgICAgcHJvcDogZXhjZXB0aW9uS2V5XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBmdW5jdGlvbiBkZWZpbmVQcm9wZXJ0aWVzKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRhcmd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BlKSB7XG4gICAgICAgICAgICB0YXJnZXQuX19leGNlcHRpb25zX18gPSB0YXJnZXQuX19leGNlcHRpb25zX18gfHwge307XG4gICAgICAgICAgICB0YXJnZXQuX19leGNlcHRpb25zX19bdGFyZ2V0S2V5XSA9IGZ1bmN0aW9uIChjbGFzc05hbWUsIHByb3ApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gY2xhc3NOYW1lICsgJy4nICsgcHJvcCArXG4gICAgICAgICAgICAgICAgJyAtIHR5cGUgaXMgdW5kZWZpbmVkLiBDaXJjdWxhciByZWZlcmVuY2U/IFRyeSBAcHJvcGVydHkoe2dldFR5cGU6ICgpID0+IHtyZXR1cm4gJyArXG4gICAgICAgICAgICAgICAgcHJvcFswXS50b1VwcGVyQ2FzZSgpICsgcHJvcC5zdWJzdHIoMSkgKyAnfX0pJztcblxuICAgICAgICAgICAgfTtcbiAgICAgICAgfVxuICAgICAgICBpZiAocmVmbGVjdGlvblR5cGUgPT09IEFycmF5KSB7XG4gICAgICAgICAgICBwcm9wcy50eXBlID0gQXJyYXk7XG4gICAgICAgICAgICBwcm9wcy5vZiA9IHR5cGU7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBwcm9wcy50eXBlID0gdHlwZTtcbiAgICAgICAgfVxuICAgICAgICB0YXJnZXQuX19hbW9ycGhpY3Byb3BzX19bdGFyZ2V0S2V5XSA9IHByb3BzO1xuICAgIH07XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gcmVtb3RlKGRlZmluZVByb3BlcnR5KSB7XG4gICAgcmV0dXJuIGZ1bmN0aW9uICh0YXJnZXQsIHByb3BlcnR5TmFtZSwgZGVzY3JpcHRvcikge1xuICAgIH1cbn0iXX0= |
@@ -23,2 +23,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SupertypeSession = exports.amorphicStatic = void 0; | ||
var ObjectTemplate_1 = require("./ObjectTemplate"); | ||
@@ -32,14 +33,14 @@ ObjectTemplate_1.ObjectTemplate.init(); | ||
var StatsdHelper_1 = require("./StatsdHelper"); | ||
exports.StatsdHelper = StatsdHelper_1.StatsdHelper; | ||
Object.defineProperty(exports, "StatsdHelper", { enumerable: true, get: function () { return StatsdHelper_1.StatsdHelper; } }); | ||
var SupertypeLogger_1 = require("./SupertypeLogger"); | ||
exports.SupertypeLogger = SupertypeLogger_1.SupertypeLogger; | ||
Object.defineProperty(exports, "SupertypeLogger", { enumerable: true, get: function () { return SupertypeLogger_1.SupertypeLogger; } }); | ||
var SupertypeConfig_1 = require("./SupertypeConfig"); | ||
exports.SupertypeConfig = SupertypeConfig_1.SupertypeConfig; | ||
exports.BuildSupertypeConfig = SupertypeConfig_1.BuildSupertypeConfig; | ||
Object.defineProperty(exports, "SupertypeConfig", { enumerable: true, get: function () { return SupertypeConfig_1.SupertypeConfig; } }); | ||
Object.defineProperty(exports, "BuildSupertypeConfig", { enumerable: true, get: function () { return SupertypeConfig_1.BuildSupertypeConfig; } }); | ||
var Supertype_1 = require("./Supertype"); | ||
exports.Supertype = Supertype_1.Supertype; | ||
Object.defineProperty(exports, "Supertype", { enumerable: true, get: function () { return Supertype_1.Supertype; } }); | ||
var decorators_1 = require("./decorators"); | ||
exports.supertypeClass = decorators_1.supertypeClass; | ||
exports.property = decorators_1.property; | ||
exports.remote = decorators_1.remote; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJHOztBQUVILG1EQUFrRDtBQUVsRCwrQkFBYyxDQUFDLElBQUksRUFBRSxDQUFDO0FBQ3RCLGtCQUFlLCtCQUFjLENBQUM7QUFFOUIsSUFBSSxjQUFjLEdBQUcsK0JBQWMsQ0FBQyxjQUFj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iamVjdFRlbXBsYXRlLmFtb3JwaGljU3RhdGljO1xubGV0IFN1cGVydHlwZVNlc3Npb24gPSBPYmplY3RUZW1wbGF0ZS5hbW9ycGhpY1N0YXRpYztcbmV4cG9ydCB7IFN0YXRzZENsaWVudEludGVyZmFjZSB9IGZyb20gJy4vU3RhdHNkQ2xpZW50SW50ZXJmYWNlJztcbmV4cG9ydCB7IFN0YXRzZEhlbHBlciB9IGZyb20gJy4vU3RhdHNkSGVscGVyJztcblxuZXhwb3J0IHsgYW1vcnBoaWNTdGF0aWMsIFN1cGVydHlwZVNlc3Npb24gfTtcbmV4cG9ydCB7IFN1cGVydHlwZUxvZ2dlciB9IGZyb20gJy4vU3VwZXJ0eXBlTG9nZ2VyJztcbmV4cG9ydCB7IFN1cGVydHlwZUNvbmZpZywgQnVpbGRTdXBlcnR5cGVDb25maWcgfSBmcm9tICcuL1N1cGVydHlwZUNvbmZpZyc7XG5leHBvcnQgeyBTdXBlcnR5cGUgfSBmcm9tICcuL1N1cGVydHlwZSc7XG5leHBvcnQgeyBzdXBlcnR5cGVDbGFzcywgcHJvcGVydHksIHJlbW90ZSB9IGZyb20gJy4vZGVjb3JhdG9ycyc7Il19 | ||
Object.defineProperty(exports, "supertypeClass", { enumerable: true, get: function () { return decorators_1.supertypeClass; } }); | ||
Object.defineProperty(exports, "property", { enumerable: true, get: function () { return decorators_1.property; } }); | ||
Object.defineProperty(exports, "remote", { enumerable: true, get: function () { return decorators_1.remote; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJHOzs7QUFFSCxtREFBa0Q7QUFFbEQsK0JBQWMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztBQUN0QixrQk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iamVjdFRlbXBsYXRlO1xuXG5sZXQgYW1vcnBoaWNTdGF0aWMgPSBPYmplY3RUZW1wbGF0ZS5hbW9ycGhpY1N0YXRpYztcbmxldCBTdXBlcnR5cGVTZXNzaW9uID0gT2JqZWN0VGVtcGxhdGUuYW1vcnBoaWNTdGF0aWM7XG5leHBvcnQgeyBTdGF0c2RDbGllbnRJbnRlcmZhY2UgfSBmcm9tICcuL1N0YXRzZENsaWVudEludGVyZmFjZSc7XG5leHBvcnQgeyBTdGF0c2RIZWxwZXIgfSBmcm9tICcuL1N0YXRzZEhlbHBlcic7XG5cbmV4cG9ydCB7IGFtb3JwaGljU3RhdGljLCBTdXBlcnR5cGVTZXNzaW9uIH07XG5leHBvcnQgeyBTdXBlcnR5cGVMb2dnZXIgfSBmcm9tICcuL1N1cGVydHlwZUxvZ2dlcic7XG5leHBvcnQgeyBTdXBlcnR5cGVDb25maWcsIEJ1aWxkU3VwZXJ0eXBlQ29uZmlnIH0gZnJvbSAnLi9TdXBlcnR5cGVDb25maWcnO1xuZXhwb3J0IHsgU3VwZXJ0eXBlIH0gZnJvbSAnLi9TdXBlcnR5cGUnO1xuZXhwb3J0IHsgc3VwZXJ0eXBlQ2xhc3MsIHByb3BlcnR5LCByZW1vdGUgfSBmcm9tICcuL2RlY29yYXRvcnMnOyJdfQ== |
@@ -83,10 +83,11 @@ import * as serializer from './serializer'; | ||
*/ | ||
static get statsdClient(): StatsdClientInterface; | ||
/** | ||
* Sets the statsDClient reference on amorphicStatic | ||
* | ||
* @static | ||
* @type {(StatsDClient | undefined)} | ||
* @memberof ObjectTemplate | ||
*/ | ||
static statsdClient: StatsdClientInterface; | ||
* Sets the statsDClient reference on amorphicStatic | ||
* | ||
* @static | ||
* @type {(StatsDClient | undefined)} | ||
* @memberof ObjectTemplate | ||
*/ | ||
static set statsdClient(statsClient: StatsdClientInterface); | ||
/** | ||
@@ -93,0 +94,0 @@ * Purpose unknown |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromJSON = exports.fromPOJO = exports.toJSONString = void 0; | ||
/** | ||
@@ -168,2 +169,2 @@ * ObjectTemplate.toJSONString; | ||
; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7O0dBRUc7QUFDSDs7Ozs7Ozs7R0FRRztBQUNILFNBQWdCLFlBQVksQ0FBQyxHQUFHLEVBQUUsRUFBRztJQUNqQyxJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7SUFFZixJQUFJO1FBQ0EsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsRUFBRSxTQUFTLENBQUMsQ0FBQyxHQUFHLEVBQUUsS0FBSztZQUM1QyxJQUFJLEdBQUcsS0FBSyxvQkFBb0IsSUFBSSxHQUFHLEtBQUssVUFBVSxFQUFFO2dCQUNwRCxPQUFPLElBQUksQ0FBQzthQUNmO1lBQ0QsSUFBSSxLQUFLLElBQUksS0FBSyxDQUFDLFlBQVksSUFBSSxLQUFLLENBQUMsTUFBTSxFQUFFO2dCQUM3QyxJQUFJLEtBQUssQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLEVBQUU7b0JBQ3JCLEtBQUssR0FBRyxFQUFFLE1BQU0sRUFBRSxLQUFLLENBQUMsTUFBTSxDQUFDLFFBQVEsRUFBRSxFQUFFLENBQUM7aUJBQy9DO3FCQUNJO29CQUNELEtBQUssQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLFFBQVEsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFDO2lCQUMxQzthQUNKO1lBRUQsSUFBSSxFQUFFLEVBQUU7Z0JBQ0osT0FBTyxFQUFFLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFD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GVmaW5lZCcpIHtcbiAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXSA9IFtdO1xuXG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGl4ID0gMDsgaXggPCBwb2pvW3Bvam9Qcm9wXS5sZW5ndGg7ICsraXgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBhdHlwZSA9IHBvam9bcG9qb1Byb3BdW2l4XS5fX3RlbXBsYXRlX18gfHwgZGVmaW5lUHJvcC5vZjtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwb2pvW3Bvam9Qcm9wXVtpeF0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocG9qb1twb2pvUHJvcF1baXhdLl9faWRfXyAmJiBpZE1hcFtnZXRJZChwb2pvW3Bvam9Qcm9wXVtpeF0uX19pZF9fLnRvU3RyaW5nKCkpXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvYmpbcHJvcGJdW2l4XSA9IGlkTWFwW2dldElkKHBvam9bcG9qb1Byb3BdW2l4XS5fX2lkX18udG9TdHJpbmcoKSldO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXVtpeF0gPSB0aGlzLmZyb21QT0pPKHBvam9bcG9qb1Byb3BdW2l4XSwgYXR5cGUsIGRlZmluZVByb3AsIGlkTWFwLCBpZFF1YWxpZmllciwgb2JqLCBwcm9wYiwgY3JlYXRvcik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXVtpeF0gPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBvYmpbcHJvcGJdID0gW107XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAodHlwZS5pc09iamVjdFRlbXBsYXRlKSB7IC8vIFRlbXBsYXRlZCBvYmplY3RzXG4gICAgICAgICAgICAgICAgdmFyIG90eXBlID0gcG9qb1twb2pvUHJvcF0uX190ZW1wbGF0ZV9fIHx8IHR5cGU7XG4gICAgICAgICAgICAgICAgaWYgKHBvam9bcG9qb1Byb3BdLl9faWRfXyAmJiBpZE1hcFtnZXRJZChwb2pvW3Bvam9Qcm9wXS5fX2lkX18udG9TdHJpbmcoKSldKSB7XG4gICAgICAgICAgICAgICAgICAgIG9ialtwcm9wYl0gPSBpZE1hcFtnZXRJZChwb2pvW3Bvam9Qcm9wXS5fX2lkX18udG9TdHJpbmcoKSldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXSA9IHRoaXMuZnJvbVBPSk8ocG9qb1twb2pvUHJvcF0sIG90eXBlLCBkZWZpbmVQcm9wLCBpZE1hcCwgaWRRdWFsaWZpZXIsIG9iaiwgcHJvcGIsIGNyZWF0b3IpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKHR5cGUgPT0gRGF0ZSkge1xuICAgICAgICAgICAgICAgIGlmIChwb2pvW3Bvam9Qcm9wXSkge1xuICAgICAgICAgICAgICAgICAgICBvYmpbcHJvcGJdID0gbmV3IERhdGUocG9qb1twb2pvUHJvcF0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXSA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgb2JqW3Byb3BiXSA9IHBvam9bcG9qb1Byb3BdO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gRm9yIHRoZSBiZW5lZml0IG9mIHBlcnNpc3RPYmplY3RUZW1wbGF0ZVxuICAgIGlmICghY3JlYXRvciAmJiBwb2pvLl9pZCkge1xuICAgICAgICBvYmouX2lkID0gZ2V0SWQocG9qby5faWQpO1xuICAgIH1cblxuICAgIGlmICghY3JlYXRvcikge1xuICAgICAgICBwcm9wWGZlcignX19jaGFuZ2VkX18nLCBwb2pvLCBvYmopO1xuICAgICAgICBwcm9wWGZlcignX192ZXJzaW9uX18nLCBwb2pvLCBvYmopO1xuICAgIH1cblxuICAgIHByb3BYZmVyKCdfX3RvU2VydmVyX18nLCBwb2pvLCBvYmopO1xuICAgIHByb3BYZmVyKCdfX3RvQ2xpZW50X18nLCBwb2pvLCBvYmopO1xuXG4gICAgcmV0dXJuIG9iajtcbn07XG5cblxuLyoqXG4gKiBPYmplY3RUZW1wbGF0ZS5mcm9tSlNPTlxuICovXG5leHBvcnQgZnVuY3Rpb24gZnJvbUpTT04oc3RyLCB0ZW1wbGF0ZSwgaWRRdWFsaWZpZXIpIHtcbiAgICByZXR1cm4gdGhpcy5mcm9tUE9KTyhKU09OLnBhcnNlKHN0ciksIHRlbXBsYXRlLCBudWxsLCBudWxsLCBpZFF1YWxpZmllcik7XG59O1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOztHQUVHO0FBQ0g7Ozs7Ozs7O0dBUUc7QUFDSCxTQUFnQixZQUFZ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xuICogQHBhcmFtIHt1bmtub3dufSBjYiB1bmtub3duXG4gKlxuICogQHJldHVybnMge3Vua25vd259XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0b0pTT05TdHJpbmcob2JqLCBjYj8pIHtcbiAgICB2YXIgaWRNYXAgPSBbXTtcblxuICAgIHRyeSB7XG4gICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeShvYmosIGZ1bmN0aW9uIGEoa2V5LCB2YWx1ZSkge1xuICAgICAgICAgICAgaWYgKGtleSA9PT0gJ19fb2JqZWN0VGVtcGxhdGVfXycgfHwga2V5ID09PSAnYW1vcnBoaWMnKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAodmFsdWUgJiYgdmFsdWUuX190ZW1wbGF0ZV9fICYmIHZhbHVlLl9faWRfXykge1xuICAgICAgICAgICAgICAgIGlmIChpZE1hcFt2YWx1ZS5fX2lkX19dKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhbHVlID0geyBfX2lkX186IHZhbHVlLl9faWRfXy50b1N0cmluZygpIH07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZE1hcFt2YWx1ZS5fX2lkX18udG9TdHJpbmcoKV0gPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChjYikge1xuICAgICAgICAgICAgICAgIHJldHVybiBjYihrZXksIHZhbHVlKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICB9KTtcbiAgICB9XG4gICAgY2F0Y2ggKGUpIHtcbiAgICAgICAgdGhyb3cgZTtcbiAgICB9XG59XG5cbmZ1bmN0aW9uIHByb3BYZmVyKHByb3AsIHBvam8sIG9iaikge1xuICAgIGlmIChwb2pvW3Byb3BdKSB7XG4gICA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3VuZGVmaW5lZCcpID8gJ19fJyArIHByb3BiIDogcHJvcGI7XG5cbiAgICAgICAgaWYgKHR5cGUgJiYgcG9qb1twb2pvUHJvcF0gPT0gbnVsbCkge1xuICAgICAgICAgICAgb2JqW3Byb3BiXSA9IG51bGw7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSBpZiAodHlwZSAmJiB0eXBlb2YgKHBvam9bcG9qb1Byb3BdKSAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgICAgIGlmICh0eXBlID09IEFycmF5ICYmIGRlZmluZVByb3Aub2YgJiYgZGVmaW5lUHJvcC5vZi5pc09iamVjdFRlbXBsYXRlKSB7IC8vIEFycmF5IG9mIHRlbXBsYXRlZCBvYmplY3RzXG4gICAgICAgICAgICAgICAgdmFyIGFycmF5RGlyZWN0aW9ucyA9IG51bGw7XG5cbiAgICAgICAgICAgICAgICBpZiAoY3JlYXRvcikge1xuICAgICAgICAgICAgICAgICAgICBhcnJheURpcmVjdGlvbnMgPSBjcmVhdG9yKG9iaiwgcHJvcGIsIGRlZmluZVByb3Aub2YsIGlkTWFwW3Bvam8uX19pZF9fLnRvU3RyaW5nKCldLCBwb2pvLl9fdHJhbnNpZW50X18pO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgKGFycmF5RGlyZWN0aW9ucykgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgICAgICAgICAgICAgIG9ialtwcm9wYl0gPSBbXTtcblxuICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpeCA9IDA7IGl4IDwgcG9qb1twb2pvUHJvcF0ubGVuZ3RoOyArK2l4KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgYXR5cGUgPSBwb2pvW3Bvam9Qcm9wXVtpeF0uX190ZW1wbGF0ZV9fIHx8IGRlZmluZVByb3Aub2Y7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocG9qb1twb2pvUHJvcF1baXhdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHBvam9bcG9qb1Byb3BdW2l4XS5fX2lkX18gJiYgaWRNYXBbZ2V0SWQocG9qb1twb2pvUHJvcF1baXhdLl9faWRfXy50b1N0cmluZygpKV0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXVtpeF0gPSBpZE1hcFtnZXRJZChwb2pvW3Bvam9Qcm9wXVtpeF0uX19pZF9fLnRvU3RyaW5nKCkpXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9ialtwcm9wYl1baXhdID0gdGhpcy5mcm9tUE9KTyhwb2pvW3Bvam9Qcm9wXVtpeF0sIGF0eXBlLCBkZWZpbmVQcm9wLCBpZE1hcCwgaWRRdWFsaWZpZXIsIG9iaiwgcHJvcGIsIGNyZWF0b3IpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9ialtwcm9wYl1baXhdID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXSA9IFtdO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKHR5cGUuaXNPYmplY3RUZW1wbGF0ZSkgeyAvLyBUZW1wbGF0ZWQgb2JqZWN0c1xuICAgICAgICAgICAgICAgIHZhciBvdHlwZSA9IHBvam9bcG9qb1Byb3BdLl9fdGVtcGxhdGVfXyB8fCB0eXBlO1xuICAgICAgICAgICAgICAgIGlmIChwb2pvW3Bvam9Qcm9wXS5fX2lkX18gJiYgaWRNYXBbZ2V0SWQocG9qb1twb2pvUHJvcF0uX19pZF9fLnRvU3RyaW5nKCkpXSkge1xuICAgICAgICAgICAgICAgICAgICBvYmpbcHJvcGJdID0gaWRNYXBbZ2V0SWQocG9qb1twb2pvUHJvcF0uX19pZF9fLnRvU3RyaW5nKCkpXTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG9ialtwcm9wYl0gPSB0aGlzLmZyb21QT0pPKHBvam9bcG9qb1Byb3BdLCBvdHlwZSwgZGVmaW5lUHJvcCwgaWRNYXAsIGlkUXVhbGlmaWVyLCBvYmosIHByb3BiLCBjcmVhdG9yKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmICh0eXBlID09IERhdGUpIHtcbiAgICAgICAgICAgICAgICBpZiAocG9qb1twb2pvUHJvcF0pIHtcbiAgICAgICAgICAgICAgICAgICAgb2JqW3Byb3BiXSA9IG5ldyBEYXRlKHBvam9bcG9qb1Byb3BdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG9ialtwcm9wYl0gPSBudWxsO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIG9ialtwcm9wYl0gPSBwb2pvW3Bvam9Qcm9wXTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIEZvciB0aGUgYmVuZWZpdCBvZiBwZXJzaXN0T2JqZWN0VGVtcGxhdGVcbiAgICBpZiAoIWNyZWF0b3IgJiYgcG9qby5faWQpIHtcbiAgICAgICAgb2JqLl9pZCA9IGdldElkKHBvam8uX2lkKTtcbiAgICB9XG5cbiAgICBpZiAoIWNyZWF0b3IpIHtcbiAgICAgICAgcHJvcFhmZXIoJ19fY2hhbmdlZF9fJywgcG9qbywgb2JqKTtcbiAgICAgICAgcHJvcFhmZXIoJ19fdmVyc2lvbl9fJywgcG9qbywgb2JqKTtcbiAgICB9XG5cbiAgICBwcm9wWGZlcignX190b1NlcnZlcl9fJywgcG9qbywgb2JqKTtcbiAgICBwcm9wWGZlcignX190b0NsaWVudF9fJywgcG9qbywgb2JqKTtcblxuICAgIHJldHVybiBvYmo7XG59O1xuXG5cbi8qKlxuICogT2JqZWN0VGVtcGxhdGUuZnJvbUpTT05cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGZyb21KU09OKHN0ciwgdGVtcGxhdGUsIGlkUXVhbGlmaWVyKSB7XG4gICAgcmV0dXJuIHRoaXMuZnJvbVBPSk8oSlNPTi5wYXJzZShzdHIpLCB0ZW1wbGF0ZSwgbnVsbCwgbnVsbCwgaWRRdWFsaWZpZXIpO1xufTtcbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StatsdHelper = void 0; | ||
var index_1 = require("./index"); | ||
@@ -37,2 +38,2 @@ /** | ||
exports.StatsdHelper = StatsdHelper; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhdHNkSGVscGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N0YXRzZEhlbHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUEyQztBQU0zQzs7R0FFRztBQUNIO0lBQUE7SUE2QkEsQ0FBQztJQTNCRzs7OztPQUlHO0lBQ1csd0NBQTJCLEdBQXpDLFVBQTBDLE1BQWM7UUFDcEQsT0FBTyxNQUFNLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxHQUFHLE1BQU0sQ0FBQyxDQUFDLENBQUMsR0FBRyxPQUFP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mFtIHtzdHJpbmd9IHN0YXRzS2V5XG4gICAgICogQHBhcmFtIHRhZ3NcbiAgICAgKi9cbiAgICBwdWJsaWMgc3RhdGljIGNvbXB1dGVUaW1pbmdBbmRTZW5kKGhyVGltZVN0YXJ0OiBoclRpbWUsIHN0YXRzS2V5OiBzdHJpbmcsIHRhZ3M/KTogdm9pZCB7XG4gICAgICAgIGNvbnN0IHN0YXRzZENsaWVudCA9IFN1cGVydHlwZVNlc3Npb24uc3RhdHNkQ2xpZW50O1xuXG4gICAgICAgIGlmKHN0YXRzZENsaWVudFxuICAgICAgICAgICAgJiYgc3RhdHNkQ2xpZW50LnRpbWluZ1xuICAgICAgICAgICAgJiYgdHlwZW9mIHN0YXRzZENsaWVudC50aW1pbmcgPT09ICdmdW5jdGlvbicpIHtcblxuICAgICAgICAgICAgY29uc3QgdGltZXJFbmRUaW1lID0gcHJvY2Vzcy5ocnRpbWUoaHJUaW1lU3RhcnQpO1xuICAgICAgICAgICAgY29uc3QgdG90YWxUaW1lSW5NaWxsaXNlY29uZHMgPSB0aGlzLmNvbnZlcnRIUlRpbWVUb01pbGxpc2Vjb25kcyh0aW1lckVuZFRpbWUpO1xuICAgICAgICAgICAgc3RhdHNkQ2xpZW50LnRpbWluZyhzdGF0c0tleSwgdG90YWxUaW1lSW5NaWxsaXNlY29uZHMsIHRhZ3MpO1xuICAgICAgICB9XG4gICAgfVxufSJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Supertype = void 0; | ||
var ObjectTemplate_1 = require("./ObjectTemplate"); | ||
@@ -113,2 +114,2 @@ var serializer = require("./serializer"); | ||
exports.Supertype = Supertype; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VwZXJ0eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N1cGVydHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztB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oaWNHZXRQcm9wZXJ0eVZhbHVlcyhwcm9wKTtcbiAgICB9XG4gICAgX19kZXNjcmlwdGlvbnNfXyhwcm9wKXtcbiAgICAgICAgcmV0dXJuIHRoaXMuYW1vcnBoaWNHZXRQcm9wZXJ0eURlc2NyaXB0aW9ucyhwcm9wKTtcbiAgICB9XG4gICAgdG9KU09OU3RyaW5nKGNiPykge1xuICAgICAgICByZXR1cm4gdGhpcy5hbW9ycGhpY1RvSlNPTihjYilcbiAgICB9XG59Il19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BuildSupertypeConfig = exports.SupertypeConfig = void 0; | ||
var nconf = require("nconf"); | ||
@@ -108,2 +109,2 @@ function createNewNConfProvider() { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VwZXJ0eXBlQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N1cGVydHlwZUNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUErQjtBQUsvQixTQUFTLHNCQUFzQjtJQUMzQixPQUFPLElBQUksS0FBSyxDQUFDLFFBQVEsRUFBRSxDQUFDLElBQUksRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUMsQ0FBQyxDQUFDO0FBQzlELENBQUM7QUFFRDs7R0FFRztBQUNIO0lBR0k7UUFDSSxJQUFJLENBQUMsbUJBQW1CLEdBQUcsc0JBQXNCLEVBQUUsQ0FBQztJQUN4RCxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCw2QkFBRyxHQUFILFVBQUksR0FBRztRQUNILE9BQU8sSUFBSSxDQUFDLG1CQUFtQixDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUM3QyxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0gsNkJBQUcsR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b25fc2VjdXJlJywgYXBwQ29tbW9uUGF0aCwgYGNvbmZpZ19zZWN1cmUuanNvbmApO1xuICAgIGxvYWRDb25maWdGaWxlKGFwcENmZ0FwaSwgJ2NvbW1vbicsIGFwcENvbW1vblBhdGgsIGBjb25maWcuanNvbmApO1xuXG4gICAgLy8gTG9hZCB0aGUgcm9vdCB2YWx1ZXMgaGVyZSB0b29cbiAgICBpZihlbnZOYW1lKSB7XG4gICAgICAgIGxvYWRDb25maWdGaWxlKGFwcENmZ0FwaSwgJ3Jvb3RfZW52Jywgcm9vdERpciwgYGNvbmZpZ18ke2Vudk5hbWV9Lmpzb25gKTtcbiAgICB9XG5cbiAgICBsb2FkQ29uZmlnRmlsZShhcHBDZmdBcGksICdyb290X3NlY3VyZScsIHJvb3REaXIsIGBjb25maWdfc2VjdXJlLmpzb25gKTtcbiAgICBsb2FkQ29uZmlnRmlsZShhcHBDZmdBcGksICdyb290Jywgcm9vdERpciwgYGNvbmZpZy5qc29uYCk7XG5cbiAgICByZXR1cm4gY29uZmlnO1xufVxuXG5cbmZ1bmN0aW9uIGxvYWRDb25maWdGaWxlKGNvbmZpZzogbmNvbmYuUHJvdmlkZXIsIG5hbWU6IHN0cmluZywgYXBwUGF0aDogc3RyaW5nLCBmaWxlTmFtZTogc3RyaW5nKSB7XG4gICAgdHJ5IHtcbiAgICAgICAgY29uZmlnLmZpbGUobmFtZSwgYCR7YXBwUGF0aH0vJHtmaWxlTmFtZX1gKTtcbiAgICB9XG4gICAgY2F0Y2ggKGVycikge1xuICAgICAgICBjb25zb2xlLmRlYnVnKGBFcnJvciBsb2FkaW5nICR7YXBwUGF0aH0vJHtmaWxlTmFtZX0gdG8gY29uZmlnYCk7XG4gICAgfVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VwZXJ0eXBlQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N1cGV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KiBAcGFyYW0gcm9vdERpclxuICovXG5leHBvcnQgZnVuY3Rpb24gQnVpbGRTdXBlcnR5cGVDb25maWcocm9vdERpcjogc3RyaW5nKTogQXBwbGljYXRpb25OYW1lVG9Db25maWdNYXAge1xuICAgIGNvbnN0IHJvb3RDb25maWcgPSBuZXcgU3VwZXJ0eXBlQ29uZmlnKCk7XG4gICAgaWYgKCFyb290RGlyKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcihgVmFsaWQgcm9vdCBwYXRoIGV4cGVjdGVkLiByb290RGlyWyR7cm9vdERpcn1dYCk7XG4gICAgfVxuICAgIGVsc2Uge1xuICAgICAgICBjb25zdCBjb25maWdTdG9yZTogQXBwbGljYXRpb25OYW1lVG9Db25maWdNYXAgPSB7fTtcbiAgICAgICAgbGV0IGVudk5hbWUgPSByb290Q29uZmlnLmludGVybmFsQ29uZmlnU3RvcmUuZ2V0KCdBUFBfRU5WJyk7XG5cbiAgICAgICAgaWYgKGVudk5hbWUpIHtcbiAgICAgICAgICAgIGVudk5hbWUgPSBlbnZOYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZW52TmFtZSkge1xuICAgICAgICAgICAgbG9hZENvbmZpZ0ZpbGUocm9vdENvbmZpZy5pbnRlcm5hbENvbmZpZ1N0b3JlLCAncm9vdF9lbnYnLCByb290RGlyLCBgY29uZmlnXyR7ZW52TmFtZX0uanNvbmApO1xuICAgICAgICB9XG4gICAgICAgIGxvYWRDb25maWdGaWxlKHJvb3RDb25maWcuaW50ZXJuYWxDb25maWdTdG9yZSwgJ3Jvb3Rfc2VjdXJlJywgcm9vdERpciwgYGNvbmZpZ19zZWN1cmUuanNvbmApO1xuICAgICAgICBsb2FkQ29uZmlnRmlsZShyb290Q29uZmlnLmludGVybmFsQ29uZmlnU3RvcmUsICdyb290Jywgcm9vdERpciwgYGNvbmZpZy5qc29uYCk7XG5cblxuICAgICAgICBjb25maWdTdG9yZVsncm9vdCddID0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5jdGlvbiBsb2FkQ29uZmlnRmlsZShjb25maWc6IG5jb25mLlByb3ZpZGVyLCBuYW1lOiBzdHJpbmcsIGFwcFBhdGg6IHN0cmluZywgZmlsZU5hbWU6IHN0cmluZykge1xuICAgIHRyeSB7XG4gICAgICAgIGNvbmZpZy5maWxlKG5hbWUsIGAke2FwcFBhdGh9LyR7ZmlsZU5hbWV9YCk7XG4gICAgfVxuICAgIGNhdGNoIChlcnIpIHtcbiAgICAgICAgY29uc29sZS5kZWJ1ZyhgRXJyb3IgbG9hZGluZyAke2FwcFBhdGh9LyR7ZmlsZU5hbWV9IHRvIGNvbmZpZ2ApO1xuICAgIH1cbn0iXX0= |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SupertypeLogger = void 0; | ||
var levelToStr = { 60: 'fatal', 50: 'error', 40: 'warn', 30: 'info', 20: 'debug', 10: 'trace' }; | ||
@@ -26,3 +34,3 @@ var strToLevel = { 'fatal': 60, 'error': 50, 'warn': 40, 'info': 30, 'debug': 20, 'trace': 10 }; | ||
} | ||
this.log.apply(this, [60].concat(data)); | ||
this.log.apply(this, __spreadArrays([60], data)); | ||
}; | ||
@@ -34,3 +42,3 @@ SupertypeLogger.prototype.error = function () { | ||
} | ||
this.log.apply(this, [50].concat(data)); | ||
this.log.apply(this, __spreadArrays([50], data)); | ||
}; | ||
@@ -42,3 +50,3 @@ SupertypeLogger.prototype.warn = function () { | ||
} | ||
this.log.apply(this, [40].concat(data)); | ||
this.log.apply(this, __spreadArrays([40], data)); | ||
}; | ||
@@ -50,3 +58,3 @@ SupertypeLogger.prototype.info = function () { | ||
} | ||
this.log.apply(this, [30].concat(data)); | ||
this.log.apply(this, __spreadArrays([30], data)); | ||
}; | ||
@@ -58,3 +66,3 @@ SupertypeLogger.prototype.debug = function () { | ||
} | ||
this.log.apply(this, [20].concat(data)); | ||
this.log.apply(this, __spreadArrays([20], data)); | ||
}; | ||
@@ -66,3 +74,3 @@ SupertypeLogger.prototype.trace = function () { | ||
} | ||
this.log.apply(this, [10].concat(data)); | ||
this.log.apply(this, __spreadArrays([10], data)); | ||
}; | ||
@@ -120,3 +128,3 @@ /** | ||
if (this.isEnabled(levelToStr[obj.level], obj)) { | ||
this.sendToLog.apply(this, [levelToStr[obj.level], obj].concat(data)); | ||
this.sendToLog.apply(this, __spreadArrays([levelToStr[obj.level], obj], data)); | ||
} | ||
@@ -249,2 +257,2 @@ }; | ||
exports.SupertypeLogger = SupertypeLogger; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VwZXJ0eXBlTG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N1cGVydHlwZUxvZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQU0sVUFBVSxHQUFHLEVBQUUsRUFBRSxFQUFFLE9BQU8sRUFBRSxFQUFFLEVBQUUsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFBRSxFQUFFLE1BQU0sRUFBRSxFQUFFLEVBQUUsT0FBTyxFQUFFLEVBQUUsRUFBRSxPQUFPLEVBQUUsQ0FBQztBQUNsRyxJQUFNLFVBQVUsR0FBRyxFQUFFLE9BQU8sRUFBRSxFQUFFLEVBQUUsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFBRSxFQUFFLE1BQU0sRUFBRSxFQUFFLEVBQUUsT0FBTyxFQUFFLEVBQUUsRUFBRSxPQUFPLEVBQUUsRUFBRSxFQUFFLENBQUM7QUFFbEcsU0FBUyxRQUFRLENBQUMs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gICAgICAgbGV0IG1zZyA9ICcnO1xuICAgICAgICBjb25zdCBvYmo6IExvZ09iamVjdCA9IHtcbiAgICAgICAgICAgIHRpbWU6IChuZXcgRGF0ZSgpKS50b0lTT1N0cmluZygpLFxuICAgICAgICAgICAgbXNnOiAnJyxcbiAgICAgICAgICAgIGxldmVsOiAnaW5mbycsIC8vZGVmYXVsdCBpbmZvXG4gICAgICAgICAgICBfX2Ftb3JwaGljQ29udGV4dDoge31cbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCBhbW9ycGhpY0NvbnRleHQgPSB7fTtcbiAgICAgICAgLy8gQ29weSBhbW9ycGhpYyBjb250ZXh0IGludG8gdGhlIGRhdGFcbiAgICAgICAgZm9yIChjb25zdCBwcm9wIGluIHRoaXMuY29udGV4dCkge1xuICAgICAgICAgICAgb2JqW3Byb3BdID0gdGhpcy5jb250ZXh0W3Byb3BdO1xuICAgICAgICAgICAgYW1vcnBoaWNDb250ZXh0W3Byb3BdID0gdGhpcy5jb250ZXh0W3Byb3BdO1xuICAgICAgICB9XG5cbiAgICAgICAgb2JqLmxldmVsID0gbGV2ZWw7XG4gICAgICAgIG9iai5fX2Ftb3JwaGljQ29udGV4dCA9IGFtb3JwaGljQ29udGV4dDtcblxuICAgICAgICBkYXRhLmZvckVhY2goKGFyZywgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmIChpbmRleCA9PT0gMCAmJiBpc09iamVjdChhcmcpKSB7XG4gICAgICAgICAgICAgICAgZm9yIChjb25zdCBwcm9wZXIgaW4gYXJnKSB7XG4gICAgICAgICAgICAgICAgICAgIG9ialtwcm9wZXJdID0gYXJnW3Byb3Blcl07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgbXNnICs9IGAke2FyZ30gYDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKG9iai5tc2cubGVuZ3RoKSB7XG4gICAgICAgICAgICBvYmoubXNnICs9ICcgJztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChtc2cubGVuZ3RoKSB7XG4gICAgICAgICAgICBpZiAob2JqLm1vZHVsZSAmJiBvYmouYWN0aXZpdHkpIHtcbiAgICAgICAgICAgICAgICBvYmoubXNnICs9IGAke29iai5tb2R1bGV9WyR7b2JqLmFjdGl2aXR5fV0gLSBgO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBvYmoubXNnICs9IG1zZztcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChvYmoubW9kdWxlICYmIG9iai5hY3Rpdml0eSkge1xuICAgICAgICAgICAgb2JqLm1zZyArPSBgJHtvYmoubW9kdWxlfVske29iai5hY3Rpdml0eX1dYDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLmlzRW5hYmxlZChsZXZlbFRvU3RyW29iai5sZXZlbF0sIG9iaikpIHtcbiAgICAgICAgICAgIHRoaXMuc2VuZFRvTG9nKGxldmVsVG9TdHJbb2JqLmxldmVsXSwgb2JqLCAuLi5kYXRhKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXJ0Q29udGV4dChjb250ZXh0KSB7XG4gICAgICAgIHRoaXMuY29udGV4dCA9IGNvbnRleHQ7XG4gICAgfVxuXG4gICAgLy8gU2F2ZSB0aGUgcHJvcGVydGllcyBpbiB0aGUgY29udGV4dCBhbmQgcmV0dXJuIGEgbmV3IG9iamVjdCB0aGF0IGhhcyB0aGUgcHJvcGVydGllcyBvbmx5IHNvIHRoZXkgY2FuIGJlIGNsZWFyZWRcbiAgICBzZXRDb250ZXh0UHJvcHMoY29udGV4dCkge1xuICAgICAgICBjb25zdCByZXZlcnNlID0ge307XG5cbiAgICAgICAgZm9yIChjb25zdCBwcm9wIGluIGNvbnRleHQpIHtcbiAgICAgICAgICAgIHJldmVyc2VbcHJvcF0gPSB0cnVlO1xuICAgICAgICAgICAgdGhpcy5jb250ZXh0W3Byb3BdID0gY29udGV4dFtwcm9wXTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXZlcnNlO1xuICAgIH1cbiAgICAvLyBQYXJzZSBsb2cgbGV2ZWxzIHN1Y2ggYXMgd2Fybi5hY3Rpdml0eVxuICAgIHNldExldmVsKGxldmVsKSB7XG4gICAgICAgIHZhciBsZXZlbHMgPSBsZXZlbC5zcGxpdCgnOycpO1xuXG4gICAgICAgIGZvciAodmFyIGl4ID0gMDsgaXggPCBsZXZlbHMubGVuZ3RoOyArK2l4KSB7XG4gICAgICAgICAgICB2YXIgbGV2ZWxhID0gbGV2ZWxzW2l4XTtcblxuICAgICAgICAgICAgaWYgKGxldmVsYS5tYXRjaCgvOi8pKSB7XG4gICAgICAgICAgICAgICAgaWYgKGxldmVsc1tpeF0ubWF0Y2goLyguKik6KC4qKS8pKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZ3JhbnVsYXJMZXZlbHNbUmVnRXhwLiQxXSA9IHRoaXMuZ3JhbnVsYXJMZXZlbHNbUmVnRXhwLiQxXSB8fCB7fTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5ncmFudWxhckxldmVsc1tSZWdFeHAuJDFdID0gUmVnRXhwLiQyO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5sZXZlbCA9IGxldmVsc1tpeF07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5sZXZlbCA9IGxldmVsYTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIFJlbW92ZSBhbnkgcHJvcGVydGllcyByZWNvcmRlZCBieSBzZXRDb250ZXh0XG4gICAgY2xlYXJDb250ZXh0UHJvcHMoY29udGV4dFRvQ2xlYXIpIHtcbiAgICAgICAgZm9yIChjb25zdCBwc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hbWU6IDF9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5mb3JtYXREYXRlVGltZShuZXcgRGF0ZShqc29uLnRpbWUpKSArICc6ICcgK1xuICAgICAgICAgICAgbGV2ZWwudG9VcHBlckNhc2UoKSArICc6ICcgK1xuICAgICAgICAgICAgYWRkQ29sb25JZlRva2VuKHNwbGl0WzFdLm5hbWUsICc6ICcpICtcbiAgICAgICAgICAgIGFkZENvbG9uSWZUb2tlbihzcGxpdFsxXS5tc2csICc6ICcpICtcbiAgICAgICAgICAgIHh5KHNwbGl0WzBdKTtcblxuICAgICAgICBmdW5jdGlvbiBhZGRDb2xvbklmVG9rZW4gKHRva2VuLCBjb2xvbkFuZFNwYWNlKSB7XG4gICAgICAgICAgICBpZiAodG9rZW4pIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdG9rZW4gKyBjb2xvbkFuZFNwYWNlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgIH1cblxuICAgICAgICBmdW5jdGlvbiB4eShqKSB7XG4gICAgICAgICAgICB2YXIgc3RyID0gJyc7XG4gICAgICAgICAgICB2YXIgc2VwID0gJyc7XG5cbiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gaikge1xuICAgICAgICAgICAgICAgIHN0ciArPSBzZXAgKyBwcm9wICsgJz0nICsgSlNPTi5zdHJpbmdpZnkoaltwcm9wXSk7XG4gICAgICAgICAgICAgICAgc2VwID0gJyAnO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoc3RyLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gJygnICsgc3RyICsgJyknO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHNwbGl0KGpzb24sIHByb3BzKTogYW55W10ge1xuICAgICAgICBjb25zdCBhID0ge307XG4gICAgICAgIGNvbnN0IGIgPSB7fTtcblxuICAgICAgICBmb3IgKGNvbnN0IHByb3AgaW4ganNvbikge1xuICAgICAgICAgICAgKHByb3BzW3Byb3BdID8gYiA6IGEpW3Byb3BdID0ganNvbltwcm9wXTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBbYSwgYl07XG4gICAgfVxuXG4gICAgLy8gTG9nZ2luZyBpcyBlbmFibGVkIGlmIGVpdGhlciB0aGUgbGV2ZWwgdGhyZXNob2xkIGlzIG1ldCBvciB0aGUgZ3JhbnVsYXIgbGV2ZWwgbWF0Y2hlc1xuICAgIHByaXZhdGUgaXNFbmFibGVkKGxldmVsLCBvYmopIHtcbiAgICAgICAgbGV2ZWwgPSBzdHJUb0xldmVsW2xldmVsXTtcblxuICAgICAgICBpZiAobGV2ZWwgPj0gc3RyVG9MZXZlbFt0aGlzLmxldmVsXSkge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5ncmFudWxhckxldmVscykge1xuICAgICAgICAgICAgZm9yIChsZXQgbGV2ZWxyIGluIHRoaXMuZ3JhbnVsYXJMZXZlbHMpIHtcbiAgICAgICAgICAgICAgICBpZiAob2JqW2xldmVscl0gJiYgb2JqW2xldmVscl0gPT0gdGhpcy5ncmFudWxhckxldmVsc1tsZXZlbHJdKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3VwZXJ0eXBlTG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1N1cGVydHlwZUxvZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsSUFBTSxVQUFVLEdBQUcsR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GV4dDtcblxuICAgICAgICBkYXRhLmZvckVhY2goKGFyZywgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGlmIChpbmRleCA9PT0gMCAmJiBpc09iamVjdChhcmcpKSB7XG4gICAgICAgICAgICAgICAgZm9yIChjb25zdCBwcm9wZXIgaW4gYXJnKSB7XG4gICAgICAgICAgICAgICAgICAgIG9ialtwcm9wZXJdID0gYXJnW3Byb3Blcl07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgbXNnICs9IGAke2FyZ30gYDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKG9iai5tc2cubGVuZ3RoKSB7XG4gICAgICAgICAgICBvYmoubXNnICs9ICcgJztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChtc2cubGVuZ3RoKSB7XG4gICAgICAgICAgICBpZiAob2JqLm1vZHVsZSAmJiBvYmouYWN0aXZpdHkpIHtcbiAgICAgICAgICAgICAgICBvYmoubXNnICs9IGAke29iai5tb2R1bGV9WyR7b2JqLmFjdGl2aXR5fV0gLSBgO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBvYmoubXNnICs9IG1zZztcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChvYmoubW9kdWxlICYmIG9iai5hY3Rpdml0eSkge1xuICAgICAgICAgICAgb2JqLm1zZyArPSBgJHtvYmoubW9kdWxlfVske29iai5hY3Rpdml0eX1dYDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLmlzRW5hYmxlZChsZXZlbFRvU3RyW29iai5sZXZlbF0sIG9iaikpIHtcbiAgICAgICAgICAgIHRoaXMuc2VuZFRvTG9nKGxldmVsVG9TdHJbb2JqLmxldmVsXSwgb2JqLCAuLi5kYXRhKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXJ0Q29udGV4dChjb250ZXh0KSB7XG4gIC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iQyO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5sZXZlbCA9IGxldmVsc1tpeF07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5sZXZlbCA9IGxldmVsYTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIFJlbW92ZSBhbnkgcHJvcGVydGllcyByZWNvcmRlZCBieSBzZXRDb250ZXh0XG4gICAgY2xlYXJDb250ZXh0UHJvcHMoY29udGV4dFRvQ2xlYXIpIHtcbiAgICAgICAgZm9yIChjb25zdCBwcm9wIGluIGNvbnRleHRUb0NsZWFyKSB7XG4gICAgICAgICAgICBkZWxldGUgdGhpcy5jb250ZXh0W3Byb3BdO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gQ3JlYXRlIGEgbmV3IGxvZ2dlciBhbmQgY29weSBvdmVyIGl0J3MgY29udGV4dFxuICAgIGNyZWF0ZUNoaWxkTG9nZ2VyKGNvbnRleHQpOiBTdXBlcnR5cGVMb2dnZXIge1xuICAgICAgICBsZXQgY2hpbGQ6IHsgW2tleTogc3RyaW5nXTogYW55IH0gPSB7fTtcblxuICAgICAgICBmb3IgKGxldCBwcm9wIGluIHRoaXMpIHtcbiAgICAgICAgICAgIGNoaWxkW3Byb3BdID0gdGhpc1twcm9wXTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNoaWxkLmNvbnRleHQgPSBjb250ZXh0IHx8IHt9O1xuXG4gICAgICAgIGZvciAobGV0IHByb3BlciBpbiB0aGlzLmNvbnRleHQpIHtcbiAgICAgICAgICAgIGNoaWxkLmNvbnRleHRbcHJvcGVyXSA9IHRoaXMuY29udGV4dFtwcm9wZXJdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGNoaWxkIGFzIFN1cGVydHlwZ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Y2Vzc2VkIHZlcnNpb24gb2YgXCJsb2dPYmplY3RcIiBwYXJhbVxuICAgICAqL1xuICAgIHByb3RlY3RlZCBzZW5kVG9Mb2cobG9nTGV2ZWwsIGxvZ09iamVjdCwgLi4ucmF3TG9nRGF0YSkge1xuICAgICAgICBjb25zb2xlLmxvZyh0aGlzLnByZXR0eVByaW50KGxvZ0xldmVsLCBsb2dPYmplY3QpKTsgICAgIC8vIGVzbGludC1kaXNhYmxlLWxpbmUgbm8tY29uc29sZVxuICAgIH1cblxuICAgIHByZXR0eVByaW50KGxldmVsLCBqc29uKSB7XG4gICAgICAgIGxldCBzcGxpdCA9IHRoaXMuc3BsaXQoanNvbiwge3RpbWU6IDEsIG1zZzogMSwgbGV2ZWw6IDEsIG5hbWU6IDF9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5mb3JtYXREYXRlVGltZShuZXcgRGF0ZShqc29uLnRpbWUpKSArICc6ICcgK1xuICAgICAgICAgICAgbGV2ZWwudG9VcHBlckNhc2UoKSArICc6ICcgK1xuICAgICAgICAgICAgYWRkQ29sb25JZlRva2VuKHNwbGl0WzFdLm5hbWUsICc6ICcpICtcbiAgICAgICAgICAgIGFkZENvbG9uSWZUb2tlbihzcGxpdFsxXS5tc2csICc6ICcpICtcbiAgICAgICAgICAgIHh5KHNwbGl0WzBdKTtcblxuICAgICAgICBmdW5jdGlvbiBhZGRDb2xvbklmVG9rZW4gKHRva2VuLCBjb2xvbkFuZFNwYWNlKSB7XG4gICAgICAgICAgICBpZiAodG9rZW4pIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdG9rZW4gKyBjb2xvbkFuZFNwYWNlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgIH1cblxuICAgICAgICBmdW5jdGlvbiB4eShqKSB7XG4gICAgICAgICAgICB2YXIgc3RyID0gJyc7XG4gICAgICAgICAgICB2YXIgc2VwID0gJyc7XG5cbiAgICAgICAgICAgIGZvciAodmFyIHByb3AgaW4gaikge1xuICAgICAgICAgICAgICAgIHN0ciArPSBzZXAgKyBwcm9wICsgJz0nICsgSlNPTi5zdHJpbmdpZnkoaltwcm9wXSk7XG4gICAgICAgICAgICAgICAgc2VwID0gJyAnO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoc3RyLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gJygnICsgc3RyICsgJyknO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHNwbGl0KGpzb24sIHByb3BzKTogYW55W10ge1xuICAgICAgICBjb25zdCBhID0ge307XG4gICAgICAgIGNvbnN0IGIgPSB7fTtcblxuICAgICAgICBmb3IgKGNvbnN0IHByb3AgaW4ganNvbikge1xuICAgICAgICAgICAgKHByb3BzW3Byb3BdID8gYiA6IGEpW3Byb3BdID0ganNvbltwcm9wXTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBbYSwgYl07XG4gICAgfVxuXG4gICAgLy8gTG9nZ2luZyBpcyBlbmFibGVkIGlmIGVpdGhlciB0aGUgbGV2ZWwgdGhyZXNob2xkIGlzIG1ldCBvciB0aGUgZ3JhbnVsYXIgbGV2ZWwgbWF0Y2hlc1xuICAgIHByaXZhdGUgaXNFbmFibGVkKGxldmVsLCBvYmopIHtcbiAgICAgICAgbGV2ZWwgPSBzdHJUb0xldmVsW2xldmVsXTtcblxuICAgICAgICBpZiAobGV2ZWwgPj0gc3RyVG9MZXZlbFt0aGlzLmxldmVsXSkge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5ncmFudWxhckxldmVscykge1xuICAgICAgICAgICAgZm9yIChsZXQgbGV2ZWxyIGluIHRoaXMuZ3JhbnVsYXJMZXZlbHMpIHtcbiAgICAgICAgICAgICAgICBpZiAob2JqW2xldmVscl0gJiYgb2JqW2xldmVscl0gPT0gdGhpcy5ncmFudWxhckxldmVsc1tsZXZlbHJdKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0iXX0= |
{ | ||
"name": "@haventech/supertype", | ||
"description": "A type system for classical inheritence, mix-ins and composition.", | ||
"version": "4.0.0", | ||
"version": "5.0.0-beta.0", | ||
"main": "dist/index.js", | ||
@@ -15,14 +15,14 @@ "types": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@types/chai": "^3.4.34", | ||
"@types/mocha": "^2.2.39", | ||
"@types/chai": "4.3.0", | ||
"@types/mocha": "9.1.0", | ||
"@types/nconf": "^0.10.0", | ||
"@types/node": "^11.11.6", | ||
"chai": "*", | ||
"eslint": "3.7.x", | ||
"mocha": "7.1.1", | ||
"mock-fs": "4.4.1", | ||
"nyc": "^15.0.1", | ||
"sinon": "1.15.x", | ||
"ts-node": "^8.9.0", | ||
"typescript": "3.5.3" | ||
"@types/node": "16.11.22", | ||
"chai": "4.3.6", | ||
"eslint": "8.8.0", | ||
"mocha": "9.2.0", | ||
"mock-fs": "5.1.2", | ||
"nyc": "15.1.0", | ||
"sinon": "13.0.1", | ||
"ts-node": "10.5.0", | ||
"typescript": "3.9.10" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4542
371965
30
1