@tslite/printer 1.16.1 → 1.17.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.
- package/dist/_namespaces/ts.js +0 -11
- package/package.json +3 -3
package/dist/_namespaces/ts.js
CHANGED
|
@@ -1003,8 +1003,6 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
1003
1003
|
return emitSpreadExpression(node);
|
|
1004
1004
|
case SyntaxKind.OmittedExpression:
|
|
1005
1005
|
return;
|
|
1006
|
-
case SyntaxKind.AsExpression:
|
|
1007
|
-
return emitAsExpression(node);
|
|
1008
1006
|
case SyntaxKind.MetaProperty:
|
|
1009
1007
|
return emitMetaProperty(node);
|
|
1010
1008
|
// JSX
|
|
@@ -1519,15 +1517,6 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
1519
1517
|
emitTokenWithComment(SyntaxKind.DotDotDotToken, node.pos, writePunctuation, node);
|
|
1520
1518
|
emitExpression(node.expression);
|
|
1521
1519
|
}
|
|
1522
|
-
function emitAsExpression(node) {
|
|
1523
|
-
emitExpression(node.expression);
|
|
1524
|
-
if (node.type) {
|
|
1525
|
-
writeSpace();
|
|
1526
|
-
writeKeyword("as");
|
|
1527
|
-
writeSpace();
|
|
1528
|
-
emit(node.type);
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
1520
|
function emitMetaProperty(node) {
|
|
1532
1521
|
writeToken(node.keywordToken, node.pos, writePunctuation);
|
|
1533
1522
|
writePunctuation(".");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tslite/printer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "The tsc 3.9.10 printer, copied from the tag and cut down to the TSLite Language: prints a parse tree node, a list or a file as text, with the writers it prints through",
|
|
5
5
|
"author": "Anderson D. Rosa <andersondrosa@outlook.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"NOTICE"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tslite/parser": "1.
|
|
21
|
+
"@tslite/parser": "1.17.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tslite/oracle": "0.1.
|
|
24
|
+
"@tslite/oracle": "0.1.3"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|