This package allows you to read and write information from a RouterOS host using the MikroTik RouterOS API protocol.
Stars
249
Forks
123
Watchers
249
Open Issues
31
Overall repository health assessment
No package.json found
This might not be a Node.js project
149
commits
Made Script::append() be able to declare "nothing" params with numeric array keys;
0eaac86View on GitHubMade Script::escapeString() not encode bytes above 0x7F, in turn allowing for script's parameter string values to be influenced by charset settings;
552361eView on GitHubAdded some more tests with mocks for otherwise untestable conditions.
8887b51View on GitHubClient::sendAsync() no longer throws an exception if a request is canceled multiple times by the returned value of a callback;
7482a6fView on GitHubReverted the script source getting addition, and in fact completely removed the concept altogether. File contents is fetched from the output of executing ":error" (which produces a !trap reply with the message in it), and this same mechanism can be used for getting output of scripts in general;
9cdb61eView on GitHubMade the rest of the CRUD Util methods throw RouterErrorException exceptions, each with its own code.
a7dd5eaView on GitHubCreated RouterErrorException and made it be thrown by various Util methods (more to come);
c36f52dView on GitHubAdded ParserException, used in Script for parser errors on complex values;
5ed1fa6View on GitHubMade Util::setMenu() work for any relative paths that resolve to the root menu;
12ac2dbView on GitHubMade Util::move()'s $destination optional, defaulting to NULL, upon which no destination is set at the API call;
3b058edView on GitHubMoved most of Script::parseValue() into the new Script::parseValueSimple(), parseValueArray() and Script::parseValueObject() methods.
a562e1fView on GitHubUtil's escapeValue(), escapeString(), parseValue(), prepareScript() and appendScript() methods are now in their own new class called "Script", with the last two now being called just prepare() and append().
49c3fadView on GitHubAdded Request::verify() and Query::verify(), which the Client runs before sending the request (fixes #8);
869a75fView on GitHub