flow-parser 0.330.0 → 0.332.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.
@@ -580,6 +580,7 @@ function mapStatementList(stmts, options) {
580
580
  type: 'ExportSpecifier',
581
581
  exported: (0, _astNodeMutationHelpers.shallowCloneNode)(componentOrRef),
582
582
  local: (0, _astNodeMutationHelpers.shallowCloneNode)(componentOrRef),
583
+ exportKind: 'value',
583
584
  loc: node.loc,
584
585
  range: node.range,
585
586
  parent: EMPTY_PARENT
@@ -779,6 +779,7 @@ function mapStatementList(
779
779
  type: 'ExportSpecifier',
780
780
  exported: shallowCloneNode(componentOrRef),
781
781
  local: shallowCloneNode(componentOrRef),
782
+ exportKind: 'value',
782
783
  loc: node.loc,
783
784
  range: node.range,
784
785
  parent: EMPTY_PARENT,
@@ -127,6 +127,8 @@ function mapRecordDeclaration(genID, node) {
127
127
  computed: false,
128
128
  static: false,
129
129
  decorators: [],
130
+ override: false,
131
+ tsAccessibility: null,
130
132
  value: {
131
133
  type: 'FunctionExpression',
132
134
  id: null,
@@ -194,6 +196,8 @@ function mapRecordDeclaration(genID, node) {
194
196
  computed: false,
195
197
  declare: false,
196
198
  optional: false,
199
+ override: false,
200
+ tsAccessibility: null,
197
201
  ...(0, _Builders.etc)(),
198
202
  parent: _Builders.EMPTY_PARENT
199
203
  }));
@@ -171,6 +171,8 @@ function mapRecordDeclaration(
171
171
  computed: false,
172
172
  static: false,
173
173
  decorators: [],
174
+ override: false,
175
+ tsAccessibility: null,
174
176
  value: {
175
177
  type: 'FunctionExpression',
176
178
  id: null,
@@ -237,6 +239,8 @@ function mapRecordDeclaration(
237
239
  computed: false,
238
240
  declare: false,
239
241
  optional: false,
242
+ override: false,
243
+ tsAccessibility: null,
240
244
  ...etc(),
241
245
  parent: EMPTY_PARENT,
242
246
  }));
@@ -160,7 +160,7 @@ module.exports = {
160
160
  ObjectTypeCallProperty: ['value'],
161
161
  ObjectTypeIndexer: ['id', 'key', 'value', 'variance'],
162
162
  ObjectTypeInternalSlot: ['id', 'value'],
163
- ObjectTypeMappedTypeProperty: ['keyTparam', 'propType', 'sourceType', 'variance'],
163
+ ObjectTypeMappedTypeProperty: ['keyTparam', 'propType', 'sourceType', 'nameType', 'variance'],
164
164
  ObjectTypePrivateField: ['key'],
165
165
  ObjectTypeProperty: ['key', 'value', 'variance'],
166
166
  ObjectTypeSpreadProperty: ['argument'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-parser",
3
- "version": "0.330.0",
3
+ "version": "0.332.0",
4
4
  "description": "JavaScript parser written in OCaml. Produces ESTree AST",
5
5
  "homepage": "https://flow.org",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  "test": "node test/run_tests.js"
24
24
  },
25
25
  "dependencies": {
26
- "flow-estree": "0.330.0"
26
+ "flow-estree": "0.332.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/generator": "7.7.4",