@@ -54,19 +54,19 @@ export default class UtilsModule extends OxygenModule {
54
54
* @return {Object } DecryptResult Object with getDecryptResult method
55
55
* @example <caption>[javascript] Usage example</caption>
56
56
* // to encrypt plaintext into ciphertext
57
- * const encrypt = utils.encrypt('https://www.wikipedia.org/ ');
57
+ * const encrypt = utils.encrypt('https://www.wikipedia.org');
58
58
* log.info(encrypt); // will print b757ba2c2fc50fbb511d596816ca06c4fa56f4e98ce222f30bc58d5251ed635e
59
59
*
60
60
* // to decrypt ciphertext and use it in script
61
61
* const decrypt = utils.decrypt(encrypt);
62
62
* log.info(decrypt); // will print ENCRYPTED
63
63
*
64
64
* web.init();
65
- * web.open(decrypt); // will open https://www.wikipedia.org/
65
+ * web.open(decrypt); // will open https://www.wikipedia.org
66
66
*
67
67
* // to get original plaintext use getDecryptResult
68
68
* const value = decrypt.getDecryptResult();
69
- * log.info(value); //will print https://www.wikipedia.org/
69
+ * log.info(value); //will print https://www.wikipedia.org
70
70
*/
71
71
decrypt ( text ) {
72
72
return libUtils . decrypt ( text ) ;
@@ -79,19 +79,19 @@ export default class UtilsModule extends OxygenModule {
79
79
* @return {String } Encrypted text
80
80
* @example <caption>[javascript] Usage example</caption>
81
81
* // to encrypt plaintext into ciphertext
82
- * const encrypt = utils.encrypt('https://www.wikipedia.org/ ');
82
+ * const encrypt = utils.encrypt('https://www.wikipedia.org');
83
83
* log.info(encrypt); // will print b757ba2c2fc50fbb511d596816ca06c4fa56f4e98ce222f30bc58d5251ed635e
84
84
*
85
85
* // to decrypt ciphertext and use it in script
86
86
* const decrypt = utils.decrypt(encrypt);
87
87
* log.info(decrypt); // will print ENCRYPTED
88
88
*
89
89
* web.init();
90
- * web.open(decrypt); // will open https://www.wikipedia.org/
90
+ * web.open(decrypt); // will open https://www.wikipedia.org
91
91
*
92
92
* // to get original plaintext use getDecryptResult
93
93
* const value = decrypt.getDecryptResult();
94
- * log.info(value); //will print https://www.wikipedia.org/
94
+ * log.info(value); //will print https://www.wikipedia.org
95
95
*/
96
96
encrypt ( text ) {
97
97
return libUtils . encrypt ( text ) ;
@@ -100,7 +100,7 @@ export default class UtilsModule extends OxygenModule {
100
100
* @summary Reads data from csv file
101
101
* @function readCsv
102
102
* @param {String } filePath - Absolute path to file
103
- * @param {Object= } options - Options (https://csv.js.org/parse/options/)
103
+ * @param {Object= } options - [ Options] (https://csv.js.org/parse/options/)
104
104
*/
105
105
readCsv ( filePath , options = { } ) {
106
106
const parse = require ( 'csv-parse/lib/sync' ) ;
@@ -144,7 +144,7 @@ export default class UtilsModule extends OxygenModule {
144
144
* @function writeCsv
145
145
* @param {String } filePath - Absolute path to file
146
146
* @param {Array } data - CSV data in format [{column_name_1: 'foo', column_name_2: 'bar'}]
147
- * @param {Object= } options - Options (https://github.com/anton-bot/objects-to-csv#async-todiskfilename-options)
147
+ * @param {Object= } options - [ Options] (https://github.com/anton-bot/objects-to-csv#async-todiskfilename-options)
148
148
*/
149
149
async writeCsv ( filePath , data , options = { } ) {
150
150
try {
@@ -194,7 +194,7 @@ export default class UtilsModule extends OxygenModule {
194
194
* @summary Parse XML data to JS object
195
195
* @function xmlToJson
196
196
* @param {string|Buffer } xmlDataStr - Like <root a="nice" b="very nice" ><a>wow</a></root>
197
- * @param {boolean|Object } options - Options (https://github.com/NaturalIntelligence/fast-xml-parser/blob/b0ea6358844ccca95cab02758e038c1c3321427e /docs/v4/2.XMLparseOptions.md)
197
+ * @param {boolean|Object } options - [ Options] (https://github.com/NaturalIntelligence/fast-xml-parser/blob/master /docs/v4/2.XMLparseOptions.md)
198
198
*/
199
199
xmlToJson ( xmlDataStr , options = { } ) {
200
200
try {
0 commit comments