This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 81968d4a5e Update javascript.adoc
     new 77498a197b Merge pull request #3442 from Mattang-Dan/patch-54
81968d4a5e is described below

commit 81968d4a5eae8f08a7bceabc60ad71c7a32f6a89
Author: Mattang-Dan <[email protected]>
AuthorDate: Tue Nov 21 09:56:27 2023 -0800

    Update javascript.adoc
---
 .../modules/ROOT/pages/pipeline/transforms/javascript.adoc         | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/javascript.adoc 
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/javascript.adoc
index f92175badf..3e0a0cc3b4 100644
--- 
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/javascript.adoc
+++ 
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/javascript.adoc
@@ -56,7 +56,7 @@ image:transforms/javascript-dialog.png[Javascript Transform 
Dialog, width="90%"]
 == Troubleshooting
 * Hop uses an older version of JavaScript (Rhino engine) which is ECMA 5 and a 
bit of ECMA 6. See Rhino ES2015/ES6, ES2016 and ES2017 support at 
https://mozilla.github.io/rhino/compat/engines.html
 * The Get variables button may not always work, so enter variables manually.
-* The JavaScript transform runs better with less whitespace and less line 
continuations, especially when using GraphQL. You may want to avoid multi-line 
expressions or statements.
+* The JavaScript transform runs better with less whitespace and less line 
continuations, especially when using GraphQL. Avoid multi-line expressions or 
statements.
 * Ensure you select the correct Type for the outgoing JavaScript fields.
 
 == Examples
@@ -80,10 +80,7 @@ var output_json = [];
 
 for (var key in input_json) {
     var value = input_json[key];
-    output_json.push({
-        field1: key,
-        field2: value
-    });
+    output_json.push({field1: key, field2: value });
 }
 
 var flattened_json = JSON.stringify(output_json);

Reply via email to