ast-types 0.9.5 → 0.9.6

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 (2) hide show
  1. package/def/flow.js +8 -0
  2. package/package.json +1 -1
package/def/flow.js CHANGED
@@ -35,6 +35,14 @@ module.exports = function (fork) {
35
35
  .field("value", Number)
36
36
  .field("raw", String);
37
37
 
38
+ // Babylon 6 differs in AST from Flow
39
+ // same as NumberLiteralTypeAnnotation
40
+ def("NumericLiteralTypeAnnotation")
41
+ .bases("Type")
42
+ .build("value", "raw")
43
+ .field("value", Number)
44
+ .field("raw", String);
45
+
38
46
  def("StringTypeAnnotation")
39
47
  .bases("Type")
40
48
  .build();
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "transformation",
19
19
  "syntax"
20
20
  ],
21
- "version": "0.9.5",
21
+ "version": "0.9.6",
22
22
  "homepage": "http://github.com/benjamn/ast-types",
23
23
  "repository": {
24
24
  "type": "git",