[Pkg-javascript-commits] [node-escodegen] 01/06: New upstream version 1.9.0+dfsg
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Mar 9 19:54:54 UTC 2018
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-escodegen.
commit bf221f586a7f25f5e58cd5b478fa60396e59777d
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Fri Mar 9 16:56:43 2018 +0100
New upstream version 1.9.0+dfsg
---
.travis.yml | 5 ++---
escodegen.js | 5 ++++-
gulpfile.js | 2 +-
package.json | 20 ++++++++++----------
test/ast.js | 22 +++++++++++++++++++++-
test/comment/try-block-line-comment.expected.js | 6 ++----
test/compare/floating-point.expected.js | 1 +
test/compare/floating-point.js | 1 +
8 files changed, 42 insertions(+), 20 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 9c8593d..921e6c8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,6 @@
sudo: false
language: node_js
node_js:
- - "0.10"
- - "0.12"
- - iojs
- "4"
+ - "6"
+ - "8"
diff --git a/escodegen.js b/escodegen.js
index 6202819..e2bad86 100644
--- a/escodegen.js
+++ b/escodegen.js
@@ -1942,7 +1942,7 @@
esutils.code.isDecimalDigit(fragment.charCodeAt(fragment.length - 1)) &&
!(fragment.length >= 2 && fragment.charCodeAt(0) === 48) // '0'
) {
- result.push('.');
+ result.push(' ');
}
}
result.push('.');
@@ -2331,6 +2331,9 @@
return expr.value ? 'true' : 'false';
}
+ if (expr.regex) {
+ return '/' + expr.regex.pattern + '/' + expr.regex.flags;
+ }
return generateRegExp(expr.value);
},
diff --git a/gulpfile.js b/gulpfile.js
index 3e98024..590e127 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -51,7 +51,7 @@ var ESLINT_OPTION = {
'args': 'none'
}
],
- 'no-multi-spaces': false,
+ 'no-multi-spaces': 0,
'new-cap': [
2,
{
diff --git a/package.json b/package.json
index 029d604..b3aa435 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"escodegen.js",
"package.json"
],
- "version": "1.8.1",
+ "version": "1.9.0",
"engines": {
"node": ">=0.12.0"
},
@@ -31,23 +31,23 @@
"url": "http://github.com/estools/escodegen.git"
},
"dependencies": {
- "estraverse": "^1.9.1",
+ "estraverse": "^4.2.0",
"esutils": "^2.0.2",
- "esprima": "^2.7.1",
+ "esprima": "^3.1.3",
"optionator": "^0.8.1"
},
"optionalDependencies": {
- "source-map": "~0.2.0"
+ "source-map": "~0.5.6"
},
"devDependencies": {
- "acorn": "^2.7.0",
- "bluebird": "^2.3.11",
- "bower-registry-client": "^0.2.1",
- "chai": "^1.10.0",
+ "acorn": "^4.0.4",
+ "bluebird": "^3.4.7",
+ "bower-registry-client": "^1.0.0",
+ "chai": "^3.5.0",
"commonjs-everywhere": "^0.9.7",
"gulp": "^3.8.10",
- "gulp-eslint": "^0.2.0",
- "gulp-mocha": "^2.0.0",
+ "gulp-eslint": "^3.0.1",
+ "gulp-mocha": "^3.0.1",
"semver": "^5.1.0"
},
"license": "BSD-2-Clause",
diff --git a/test/ast.js b/test/ast.js
index a0f2fc7..7d88988 100644
--- a/test/ast.js
+++ b/test/ast.js
@@ -144,7 +144,27 @@ data = {
},
}],
expected: '/(?:)/i;'
- }
+ },
+ {
+ type: 'Program',
+ body: [{
+ type: 'ExpressionStatement',
+ expression: {
+ type: 'MemberExpression',
+ computed: false,
+ object: {
+ type: 'Literal',
+ value: 1,
+ raw: '1'
+ },
+ property: {
+ type: 'Identifier',
+ name: 'a'
+ }
+ }
+ }],
+ expected: '1 .a;'
+ },
]
};
diff --git a/test/comment/try-block-line-comment.expected.js b/test/comment/try-block-line-comment.expected.js
index 726ada5..d46d786 100644
--- a/test/comment/try-block-line-comment.expected.js
+++ b/test/comment/try-block-line-comment.expected.js
@@ -4,13 +4,11 @@ finally {
}
try {
} catch (e) {
-} //
-finally {
+} finally {
}
{
try {
} catch (e) {
- } //
- finally {
+ } finally {
}
}
diff --git a/test/compare/floating-point.expected.js b/test/compare/floating-point.expected.js
index f0c3126..6c6378e 100644
--- a/test/compare/floating-point.expected.js
+++ b/test/compare/floating-point.expected.js
@@ -1,2 +1,3 @@
+1 .valueOf();
1.1.valueOf();
1e+300.valueOf();
diff --git a/test/compare/floating-point.js b/test/compare/floating-point.js
index b38eebf..19dd165 100644
--- a/test/compare/floating-point.js
+++ b/test/compare/floating-point.js
@@ -1,2 +1,3 @@
+(1).valueOf();
1.1.valueOf();
(1e+300).valueOf();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-escodegen.git
More information about the Pkg-javascript-commits
mailing list