Skip to content

Commit

Permalink
chore: upgrade plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Apr 16, 2024
1 parent b0e4d79 commit 391270b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tiddlers/$__plugins_flibbles_relink.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"module-type": "relinkfilteroperator"
},
"$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js": {
"text": "/*\\\nmodule-type: relinkfilteroperator\n\nwouldchange: Generator.\n\nGiven each input title, it returns all the tiddlers that would be changed if the currentTiddler were to be renamed to the operand.\n\nimpossible: filters all source titles for ones that encounter errors on failure.\n\nTHESE ARE INTERNAL FILTER OPERATOR AND ARE NOT INTENDED TO BE USED BY USERS.\n\n\\*/\n\nvar language = require(\"$:/plugins/flibbles/relink/js/language.js\");\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\n\nexports.wouldchange = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tindexer = utils.getIndexer(options.wiki);\n\tif (from !== to) {\n\t\tvar records = indexer.relinkLookup(from, to, options);\n\t\treturn Object.keys(records);\n\t} else {\n\t\treturn [];\n\t}\n};\n\nexports.impossible = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tresults = [];\n\tif (from !== to) {\n\t\tvar indexer = utils.getIndexer(options.wiki),\n\t\t\trecords = indexer.relinkLookup(from, to, options);\n\t\tsource(function(tiddler, title) {\n\t\t\tvar fields = records[title];\n\t\t\tif (fields) {\n\t\t\t\tfor (var field in fields) {\n\t\t\t\t\tif (fields[field].impossible) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n",
"text": "/*\\\nmodule-type: relinkfilteroperator\n\nwouldchange: Generator.\n\nGiven each input title, it returns all the tiddlers that would be changed if the currentTiddler were to be renamed to the operand.\n\nimpossible: filters all source titles for ones that encounter errors on failure.\n\nTHESE ARE INTERNAL FILTER OPERATOR AND ARE NOT INTENDED TO BE USED BY USERS.\n\n\\*/\n\nvar language = require(\"$:/plugins/flibbles/relink/js/language.js\");\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\n\nexports.wouldchange = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tindexer = utils.getIndexer(options.wiki);\n\tif (from !== to) {\n\t\tvar records = indexer.relinkLookup(from, to, options);\n\t\treturn Object.keys(records);\n\t} else {\n\t\treturn [];\n\t}\n};\n\nexports.impossible = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tresults = [];\n\tif (to && from !== to) {\n\t\tvar indexer = utils.getIndexer(options.wiki),\n\t\t\trecords = indexer.relinkLookup(from, to, options);\n\t\tsource(function(tiddler, title) {\n\t\t\tvar fields = records[title];\n\t\t\tif (fields) {\n\t\t\t\tfor (var field in fields) {\n\t\t\t\t\tif (fields[field].impossible) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n",
"module-type": "relinkfilteroperator",
"title": "$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js",
"type": "application/javascript"
Expand Down
2 changes: 1 addition & 1 deletion tiddlers/$__plugins_flibbles_relink.json.meta
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ plugin-type: plugin
source: https://github.com/flibbles/tw5-relink
title: $:/plugins/flibbles/relink
type: application/json
version: 2.4.2
version: 2.4.3
Loading

0 comments on commit 391270b

Please sign in to comment.