flow-parser 0.143.0 → 0.146.0

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.
Files changed (3) hide show
  1. package/README.md +5 -2
  2. package/flow_parser.js +9224 -8913
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -34,11 +34,14 @@ flow.parse('1+1', {});
34
34
 
35
35
  The second argument to `flow.parse` is the options object. Currently supported options:
36
36
 
37
+ * `all_comments` (boolean, default `true`) - include a list of all comments from the whole program
38
+ * `comments` (boolean, default `true`) - attach comments to AST nodes (`leadingComments` and `trailingComments`)
37
39
  * `enums` (boolean, default `false`) - enable parsing of Flow enums
38
- * `esproposal_decorators` (boolean, default `false`) - enable parsing of decorators
39
40
  * `esproposal_class_instance_fields` (boolean, default `false`) - enable parsing of class instance fields
40
41
  * `esproposal_class_static_fields` (boolean, default `false`) - enable parsing of class static fields
42
+ * `esproposal_decorators` (boolean, default `false`) - enable parsing of decorators
41
43
  * `esproposal_export_star_as` (boolean, default `false`) - enable parsing of `export * as` syntax
42
- * `esproposal_optional_chaining` (boolean, default `false`) - enable parsing of optional chaining (`?.`)
43
44
  * `esproposal_nullish_coalescing` (boolean, default `false`) - enable parsing of nullish coalescing (`??`)
45
+ * `esproposal_optional_chaining` (boolean, default `false`) - enable parsing of optional chaining (`?.`)
44
46
  * `types` (boolean, default `true`) - enable parsing of Flow types
47
+ * `use_strict` (boolean, default `false`) - treat the file as strict, without needing a "use strict" directive