@hyperbytes/wappler-2fa-code-generator 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
1
  all details are at:
2
2
 
3
- https://community.wappler.io/t/server-connect-custom-module-node-generate-2fa-style-code/57052
3
+ https://community.wappler.io/t/server-connect-custom-module-node-generate-2fa-style-code/57052
4
+
5
+ improved parsing of dynamic inputs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbytes/wappler-2fa-code-generator",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Generate 2FA style code from character salt with optional repeats and user defined code length",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1,7 +1,7 @@
1
1
  // JavaScript Document
2
2
  exports.code_generator = async function (options) {
3
3
  // retrieves a file via remote http request and saves the file to the local server
4
-
4
+ options = this.parse(options);
5
5
  let salt = this.parse(options.salt);
6
6
  let repeats = this.parse(options.repeats);
7
7
  let length = this.parse(options.length);