[Pkg-javascript-commits] [node-ast-types] 01/03: New upstream version 0.11.2

Julien Puydt julien.puydt at laposte.net
Sun Mar 4 08:02:21 UTC 2018


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-ast-types.

commit 88e60be277e805f47ad8b9143bbbb0672ac1d06b
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sun Mar 4 08:57:37 2018 +0100

    New upstream version 0.11.2
---
 def/typescript.js | 13 +++++++++++++
 package-lock.json |  2 +-
 package.json      |  2 +-
 test/run.sh       |  5 ++++-
 4 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/def/typescript.js b/def/typescript.js
index 6d77165..a93a101 100644
--- a/def/typescript.js
+++ b/def/typescript.js
@@ -110,6 +110,19 @@ module.exports = function (fork) {
       .field("types", [def("TSType")]);
   });
 
+  def("TSConditionalType")
+    .bases("TSType")
+    .build("checkType", "extendsType", "trueType", "falseType")
+    .field("checkType", def("TSType"))
+    .field("extendsType", def("TSType"))
+    .field("trueType", def("TSType"))
+    .field("falseType", def("TSType"));
+
+  def("TSInferType")
+    .bases("TSType")
+    .build("typeParameter")
+    .field("typeParameter", def("TSType"));
+
   def("TSParenthesizedType")
     .bases("TSType")
     .build("typeAnnotation")
diff --git a/package-lock.json b/package-lock.json
index 0075e5b..15fe836 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
 {
   "name": "ast-types",
-  "version": "0.11.1",
+  "version": "0.11.2",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
diff --git a/package.json b/package.json
index 9499dc4..9b7d6ba 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
     "transformation",
     "syntax"
   ],
-  "version": "0.11.1",
+  "version": "0.11.2",
   "homepage": "http://github.com/benjamn/ast-types",
   "repository": {
     "type": "git",
diff --git a/test/run.sh b/test/run.sh
index 80f8e84..83e7c4c 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -4,9 +4,12 @@ set -ex
 
 cd $(dirname $0)/data
 
+BAB_TAG=v$(node -p 'require("babylon/package.json").version')
+
 if [ ! -d babylon-typescript-fixtures ]
 then
-    git clone --depth 1 https://github.com/babel/babel.git
+    git clone --branch "$BAB_TAG" --depth 1 \
+        https://github.com/babel/babel.git
     mv babel/packages/babylon/test/fixtures/typescript \
        babylon-typescript-fixtures
     rm -rf babel

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ast-types.git



More information about the Pkg-javascript-commits mailing list