Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
botbuilder-dialog-loader
Advanced tools
A Library that helps to autload Microsoft Bot Framework dialogs
A Library that helps to autload Microsoft Bot Framework dialogs. Autoloads dialogs from provided folder, able to pass custom arguments for dialogs. It is supposed that every javascript file in the folder will expose only function with bot as first argument. Recommendation: match dialog id's with the dialog folder structure.
Please do not hesitate to ask or publish your proposals.
So require('botbuilder-dialog-loader')
will return a function that requires next arguments:
. bot - a UniversalBot instance;
. basePath - a path to dialogs folder;
. config - (optional) could be a function or an object.
. If function passed, than the Library will call it with every loaded javascript module. Callback arguments: relative filename, exports section of the loaded module;
. If an object passed, than the Library will interprete keys in the object as names of folders and files. Attribute values will be passed as an arguments to loaded files, in case if filename (with directory name) matches to a key i config object. Example of such object:
javascript { "folderA" : { "folderB" : { "some_dialogs" : [arg1, ..., argN] // A } }, "welcome" : ["Hello", "Wolrd!"] }
Please take a look on example folder in repository.
npm install --save botbuilder-dialog-loader
FAQs
A Library that helps to autload Microsoft Bot Framework dialogs
The npm package botbuilder-dialog-loader receives a total of 0 weekly downloads. As such, botbuilder-dialog-loader popularity was classified as not popular.
We found that botbuilder-dialog-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.