{"tiddlers": {
"$:/plugins/yaisog/debug-log-filter/history": {
    "created": "20230119163517889",
    "text": "* ''0.9.1'' -- 2023-01-25 -- license corrected, alias XXX added\n* ''0.9'' -- 2023-01-19 -- initial release\n",
    "title": "$:/plugins/yaisog/debug-log-filter/history",
    "modified": "20230125181259129",
    "tags": "",
    "type": "text/vnd.tiddlywiki"
},

"$:/plugins/yaisog/debug-log-filter/license": {
    "created": "20230119163517890",
    "text": "Distributed under an MIT license.\n\nCopyright (c) 2023 [[Yaisog Bonegnasher|https://github.com/yaisog]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<",
    "title": "$:/plugins/yaisog/debug-log-filter/license",
    "modified": "20230125180826164",
    "tags": "",
    "type": "text/vnd.tiddlywiki"
},

"$:/plugins/yaisog/debug-log-filter/readme": {
    "created": "20230119163517891",
    "text": "|!purpose |prints a table of the input titles to the console; if optional parameter `V` is specified, also prints the value of the variable with that name |\n|!input |a selection of titles |\n|!suffix |`T` (optional) the title for the console logging group|\n|!parameter |`V` name of a variable |\n|!output |the original input titles |\n\n\nThe `debug-log` operator can be used to output debugging information to the ~JavaScript console supported by most browsers. This can be useful because otherwise it is difficult to observe what is going on inside a filter run. The operator logs its input at the current position within the filter expression and therefore can be sensible to use in multiple places, e.g. to compare the input and output of another operator.\n\n`debug-log` also logs empty tiddler titles in its input list.\n\nThe suffix `T` is used as the title for the console logging group. This can be useful to distinguish the output of multiple `debug-log` operators within a filter expression. The title `T` cannot contain whitespace.\n\nAt the end of debugging, all `debug-log` operators should be removed from the filter expression, in order not to flood the console window with unneeded data.\n\n---\n\nHat tip to Mario Pietsch for the suffix idea.",
    "title": "$:/plugins/yaisog/debug-log-filter/readme",
    "modified": "20230125180844791",
    "tags": "",
    "type": "text/vnd.tiddlywiki"
},

"$:/plugins/yaisog/modules/filters/debug-log.js": {
    "created": "20230119163424014",
    "text": "/*\\\ntitle: $:/yaisog/modules/filters/debug-log.js\ntype: application/javascript\nmodule-type: filteroperator\nFilter operator for logging the current list and an optional variable value to the console\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports[\"debug-log\"] = function(source,operator,options) {\n\tvar results = [],\n\t    data = {},\n\t    logTitle = operator.suffix || \"debug-log\";\n\t\n\tif (operator.operand) {\n\t\tdata[operator.operand] = (options.widget && options.widget.getVariable(operator.operand,{defaultValue:\"\"}));\n\t}\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tconsole.group(logTitle);\n\t$tw.utils.logTable(results);\n\tif (operator.operand) {\n\t\t$tw.utils.logTable(data);\n\t}\n\tconsole.groupEnd();\n\t\n\treturn results;\n};\n\nexports[\"XXX\"] = exports[\"debug-log\"];\n\n})();\n",
    "title": "$:/plugins/yaisog/modules/filters/debug-log.js",
    "type": "application/javascript",
    "module-type": "filteroperator",
    "modified": "20230125181122669"
}}
}