@danielx/civet 0.5.16 → 0.5.17
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/browser.js +18 -11
- package/dist/civet +3 -4
- package/dist/main.js +18 -11
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -4970,7 +4970,7 @@ ${input.slice(result.pos)}
|
|
|
4970
4970
|
return result;
|
|
4971
4971
|
}
|
|
4972
4972
|
}
|
|
4973
|
-
var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S(NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4973
|
+
var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S($C(Samedent, $Q(_)), NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4974
4974
|
var open = $1;
|
|
4975
4975
|
var close = $5;
|
|
4976
4976
|
return [open, $2, $3, ...$4, close];
|
|
@@ -4994,7 +4994,7 @@ ${input.slice(result.pos)}
|
|
|
4994
4994
|
}
|
|
4995
4995
|
}
|
|
4996
4996
|
var ImplicitInlineObjectPropertyDelimiter$0 = $S($Q(TrailingComment), Comma);
|
|
4997
|
-
var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S(
|
|
4997
|
+
var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S($C(Samedent, $Q(_)), NamedProperty)), InsertComma), function(value) {
|
|
4998
4998
|
return value[1];
|
|
4999
4999
|
});
|
|
5000
5000
|
var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L29, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L15, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L28, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L17, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
|
|
@@ -5096,7 +5096,14 @@ ${input.slice(result.pos)}
|
|
|
5096
5096
|
value
|
|
5097
5097
|
};
|
|
5098
5098
|
});
|
|
5099
|
-
var PropertyDefinition$2 = NamedProperty
|
|
5099
|
+
var PropertyDefinition$2 = $TS($S(__, NamedProperty), function($skip, $loc, $0, $1, $2) {
|
|
5100
|
+
var ws = $1;
|
|
5101
|
+
var prop = $2;
|
|
5102
|
+
return {
|
|
5103
|
+
...prop,
|
|
5104
|
+
children: [...ws, ...prop.children]
|
|
5105
|
+
};
|
|
5106
|
+
});
|
|
5100
5107
|
var PropertyDefinition$3 = $TS($S(__, MethodDefinition), function($skip, $loc, $0, $1, $2) {
|
|
5101
5108
|
var ws = $1;
|
|
5102
5109
|
var def = $2;
|
|
@@ -5139,9 +5146,9 @@ ${input.slice(result.pos)}
|
|
|
5139
5146
|
return result;
|
|
5140
5147
|
}
|
|
5141
5148
|
}
|
|
5142
|
-
var NamedProperty$0 = $TS($S(
|
|
5143
|
-
var name = $
|
|
5144
|
-
var exp = $
|
|
5149
|
+
var NamedProperty$0 = $TS($S(PropertyName, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
5150
|
+
var name = $1;
|
|
5151
|
+
var exp = $4;
|
|
5145
5152
|
return {
|
|
5146
5153
|
type: "Property",
|
|
5147
5154
|
children: $0,
|
|
@@ -5480,7 +5487,9 @@ ${input.slice(result.pos)}
|
|
|
5480
5487
|
var AssignmentOpSymbol$15 = $T($EXPECT($L45, fail, 'AssignmentOpSymbol "?="'), function(value) {
|
|
5481
5488
|
return "??=";
|
|
5482
5489
|
});
|
|
5483
|
-
var AssignmentOpSymbol$16 = $EXPECT($L26, fail, 'AssignmentOpSymbol "="')
|
|
5490
|
+
var AssignmentOpSymbol$16 = $T($S($EXPECT($L26, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L26, fail, 'AssignmentOpSymbol "="'))), function(value) {
|
|
5491
|
+
return value[0];
|
|
5492
|
+
});
|
|
5484
5493
|
var AssignmentOpSymbol$17 = $T($S(CoffeeWordAssignmentOp), function(value) {
|
|
5485
5494
|
return value[0];
|
|
5486
5495
|
});
|
|
@@ -5846,9 +5855,7 @@ ${input.slice(result.pos)}
|
|
|
5846
5855
|
return result;
|
|
5847
5856
|
}
|
|
5848
5857
|
}
|
|
5849
|
-
var ElseClause$0 = $
|
|
5850
|
-
return [value[1], value[2], value[3]];
|
|
5851
|
-
});
|
|
5858
|
+
var ElseClause$0 = $S(Samedent, Else, Block);
|
|
5852
5859
|
var ElseClause$1 = $S($Q(TrailingComment), Else, Block);
|
|
5853
5860
|
function ElseClause(state) {
|
|
5854
5861
|
if (state.events) {
|
|
@@ -15233,7 +15240,7 @@ ${input.slice(result.pos)}
|
|
|
15233
15240
|
({ prune } = gen = require_generate());
|
|
15234
15241
|
({ SourceMap, base64Encode } = util = require_util());
|
|
15235
15242
|
defaultOptions = {};
|
|
15236
|
-
uncacheable = /* @__PURE__ */ new Set(["TrackIndented", "Samedent", "IndentedFurther", "PushIndent", "PopIndent", "Nested", "InsertIndent", "Arguments", "ArgumentsWithTrailingCallExpressions", "ApplicationStart", "CallExpression", "CallExpressionRest", "LeftHandSideExpression", "ActualAssignment", "UpdateExpression", "UnaryExpression", "BinaryOpExpression", "BinaryOpRHS", "ConditionalExpression", "ShortCircuitExpression", "ImplicitNestedBlock", "ObjectLiteral", "NestedObject", "NestedImplicitObjectLiteral", "BracedObjectLiteralContent", "NestedPropertyDefinitions", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedBlockStatement", "NestedElement", "NestedElementList", "NestedBindingElement", "NestedBindingElements", "NestedInterfaceProperty", "MemberExpression", "PrimaryExpression", "IndentedApplicationAllowed", "ExpressionWithIndentedApplicationSuppressed", "SuppressIndentedApplication", "AssignmentExpressionTail", "AssignmentExpression", "ExtendedExpression", "Expression", "MemberExpressionRest", "ElseClause", "CoffeeCommentEnabled", "SingleLineComment", "Debugger", "JSXElement", "TypedJSXElement", "JSXFragment", "TypedJSXFragment", "JSXChild", "JSXChildren", "JSXNestedChildren", "JSXMixedChildren"]);
|
|
15243
|
+
uncacheable = /* @__PURE__ */ new Set(["TrackIndented", "Samedent", "IndentedFurther", "PushIndent", "PopIndent", "Nested", "InsertIndent", "Arguments", "ArgumentsWithTrailingCallExpressions", "ApplicationStart", "CallExpression", "CallExpressionRest", "LeftHandSideExpression", "ActualAssignment", "UpdateExpression", "UnaryExpression", "BinaryOpExpression", "BinaryOpRHS", "ConditionalExpression", "ShortCircuitExpression", "InlineObjectLiteral", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "ObjectLiteral", "NestedObject", "NestedImplicitObjectLiteral", "BracedObjectLiteralContent", "NestedPropertyDefinitions", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedBlockStatement", "NestedElement", "NestedElementList", "NestedBindingElement", "NestedBindingElements", "NestedInterfaceProperty", "MemberExpression", "PrimaryExpression", "IndentedApplicationAllowed", "ExpressionWithIndentedApplicationSuppressed", "SuppressIndentedApplication", "AssignmentExpressionTail", "AssignmentExpression", "ExtendedExpression", "Expression", "MemberExpressionRest", "ElseClause", "CoffeeCommentEnabled", "SingleLineComment", "Debugger", "JSXElement", "TypedJSXElement", "JSXFragment", "TypedJSXFragment", "JSXChild", "JSXChildren", "JSXNestedChildren", "JSXMixedChildren"]);
|
|
15237
15244
|
module.exports = {
|
|
15238
15245
|
parse,
|
|
15239
15246
|
compile: function(src, options = defaultOptions) {
|
package/dist/civet
CHANGED
|
@@ -6,7 +6,7 @@ if (process.argv.includes("--version")) {
|
|
|
6
6
|
process.exit(0);
|
|
7
7
|
}
|
|
8
8
|
if (process.argv.includes("--help")) {
|
|
9
|
-
process.
|
|
9
|
+
process.stderr.write(` \u2584\u2584\xB7 \u25AA \u258C \u2590\xB7\u2584\u2584\u2584 .\u2584\u2584\u2584\u2584\u2584
|
|
10
10
|
\u2590\u2588 \u258C\u25AA\u2588\u2588 \u25AA\u2588\xB7\u2588\u258C\u2580\u2584.\u2580\xB7\u2022\u2588\u2588 _._ _,-'""\`-._
|
|
11
11
|
\u2588\u2588 \u2584\u2584\u2590\u2588\xB7\u2590\u2588\u2590\u2588\u2022\u2590\u2580\u2580\u25AA\u2584 \u2590\u2588.\u25AA (,-.\`._,'( |\\\`-/|
|
|
12
12
|
\u2590\u2588\u2588\u2588\u258C\u2590\u2588\u258C \u2588\u2588\u2588 \u2590\u2588\u2584\u2584\u258C \u2590\u2588\u258C\xB7 \`-.-' \\ )-\`( , o o)
|
|
@@ -47,15 +47,14 @@ readLines = function(rl) {
|
|
|
47
47
|
return parts.push(buffer + "\n");
|
|
48
48
|
});
|
|
49
49
|
rl.on("SIGINT", function() {
|
|
50
|
-
|
|
51
|
-
return reject();
|
|
50
|
+
return reject("^C");
|
|
52
51
|
});
|
|
53
52
|
return rl.on("close", function() {
|
|
54
53
|
return resolve(parts.join(""));
|
|
55
54
|
});
|
|
56
55
|
});
|
|
57
56
|
};
|
|
58
|
-
readLines(readline.createInterface(process.stdin)).then(function(input) {
|
|
57
|
+
readLines(readline.createInterface(process.stdin, process.stdout)).then(function(input) {
|
|
59
58
|
var ast, filename, inlineMap, js, noCache, output;
|
|
60
59
|
ast = process.argv.includes("--ast");
|
|
61
60
|
noCache = process.argv.includes("--no-cache");
|
package/dist/main.js
CHANGED
|
@@ -4969,7 +4969,7 @@ ${input.slice(result.pos)}
|
|
|
4969
4969
|
return result;
|
|
4970
4970
|
}
|
|
4971
4971
|
}
|
|
4972
|
-
var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S(NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4972
|
+
var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S($C(Samedent, $Q(_)), NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4973
4973
|
var open = $1;
|
|
4974
4974
|
var close = $5;
|
|
4975
4975
|
return [open, $2, $3, ...$4, close];
|
|
@@ -4993,7 +4993,7 @@ ${input.slice(result.pos)}
|
|
|
4993
4993
|
}
|
|
4994
4994
|
}
|
|
4995
4995
|
var ImplicitInlineObjectPropertyDelimiter$0 = $S($Q(TrailingComment), Comma);
|
|
4996
|
-
var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S(
|
|
4996
|
+
var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S($C(Samedent, $Q(_)), NamedProperty)), InsertComma), function(value) {
|
|
4997
4997
|
return value[1];
|
|
4998
4998
|
});
|
|
4999
4999
|
var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L29, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L15, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L28, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L17, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
|
|
@@ -5095,7 +5095,14 @@ ${input.slice(result.pos)}
|
|
|
5095
5095
|
value
|
|
5096
5096
|
};
|
|
5097
5097
|
});
|
|
5098
|
-
var PropertyDefinition$2 = NamedProperty
|
|
5098
|
+
var PropertyDefinition$2 = $TS($S(__, NamedProperty), function($skip, $loc, $0, $1, $2) {
|
|
5099
|
+
var ws = $1;
|
|
5100
|
+
var prop = $2;
|
|
5101
|
+
return {
|
|
5102
|
+
...prop,
|
|
5103
|
+
children: [...ws, ...prop.children]
|
|
5104
|
+
};
|
|
5105
|
+
});
|
|
5099
5106
|
var PropertyDefinition$3 = $TS($S(__, MethodDefinition), function($skip, $loc, $0, $1, $2) {
|
|
5100
5107
|
var ws = $1;
|
|
5101
5108
|
var def = $2;
|
|
@@ -5138,9 +5145,9 @@ ${input.slice(result.pos)}
|
|
|
5138
5145
|
return result;
|
|
5139
5146
|
}
|
|
5140
5147
|
}
|
|
5141
|
-
var NamedProperty$0 = $TS($S(
|
|
5142
|
-
var name = $
|
|
5143
|
-
var exp = $
|
|
5148
|
+
var NamedProperty$0 = $TS($S(PropertyName, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
5149
|
+
var name = $1;
|
|
5150
|
+
var exp = $4;
|
|
5144
5151
|
return {
|
|
5145
5152
|
type: "Property",
|
|
5146
5153
|
children: $0,
|
|
@@ -5479,7 +5486,9 @@ ${input.slice(result.pos)}
|
|
|
5479
5486
|
var AssignmentOpSymbol$15 = $T($EXPECT($L45, fail, 'AssignmentOpSymbol "?="'), function(value) {
|
|
5480
5487
|
return "??=";
|
|
5481
5488
|
});
|
|
5482
|
-
var AssignmentOpSymbol$16 = $EXPECT($L26, fail, 'AssignmentOpSymbol "="')
|
|
5489
|
+
var AssignmentOpSymbol$16 = $T($S($EXPECT($L26, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L26, fail, 'AssignmentOpSymbol "="'))), function(value) {
|
|
5490
|
+
return value[0];
|
|
5491
|
+
});
|
|
5483
5492
|
var AssignmentOpSymbol$17 = $T($S(CoffeeWordAssignmentOp), function(value) {
|
|
5484
5493
|
return value[0];
|
|
5485
5494
|
});
|
|
@@ -5845,9 +5854,7 @@ ${input.slice(result.pos)}
|
|
|
5845
5854
|
return result;
|
|
5846
5855
|
}
|
|
5847
5856
|
}
|
|
5848
|
-
var ElseClause$0 = $
|
|
5849
|
-
return [value[1], value[2], value[3]];
|
|
5850
|
-
});
|
|
5857
|
+
var ElseClause$0 = $S(Samedent, Else, Block);
|
|
5851
5858
|
var ElseClause$1 = $S($Q(TrailingComment), Else, Block);
|
|
5852
5859
|
function ElseClause(state) {
|
|
5853
5860
|
if (state.events) {
|
|
@@ -15230,7 +15237,7 @@ var util;
|
|
|
15230
15237
|
({ prune } = gen = require_generate());
|
|
15231
15238
|
({ SourceMap, base64Encode } = util = require_util());
|
|
15232
15239
|
defaultOptions = {};
|
|
15233
|
-
uncacheable = /* @__PURE__ */ new Set(["TrackIndented", "Samedent", "IndentedFurther", "PushIndent", "PopIndent", "Nested", "InsertIndent", "Arguments", "ArgumentsWithTrailingCallExpressions", "ApplicationStart", "CallExpression", "CallExpressionRest", "LeftHandSideExpression", "ActualAssignment", "UpdateExpression", "UnaryExpression", "BinaryOpExpression", "BinaryOpRHS", "ConditionalExpression", "ShortCircuitExpression", "ImplicitNestedBlock", "ObjectLiteral", "NestedObject", "NestedImplicitObjectLiteral", "BracedObjectLiteralContent", "NestedPropertyDefinitions", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedBlockStatement", "NestedElement", "NestedElementList", "NestedBindingElement", "NestedBindingElements", "NestedInterfaceProperty", "MemberExpression", "PrimaryExpression", "IndentedApplicationAllowed", "ExpressionWithIndentedApplicationSuppressed", "SuppressIndentedApplication", "AssignmentExpressionTail", "AssignmentExpression", "ExtendedExpression", "Expression", "MemberExpressionRest", "ElseClause", "CoffeeCommentEnabled", "SingleLineComment", "Debugger", "JSXElement", "TypedJSXElement", "JSXFragment", "TypedJSXFragment", "JSXChild", "JSXChildren", "JSXNestedChildren", "JSXMixedChildren"]);
|
|
15240
|
+
uncacheable = /* @__PURE__ */ new Set(["TrackIndented", "Samedent", "IndentedFurther", "PushIndent", "PopIndent", "Nested", "InsertIndent", "Arguments", "ArgumentsWithTrailingCallExpressions", "ApplicationStart", "CallExpression", "CallExpressionRest", "LeftHandSideExpression", "ActualAssignment", "UpdateExpression", "UnaryExpression", "BinaryOpExpression", "BinaryOpRHS", "ConditionalExpression", "ShortCircuitExpression", "InlineObjectLiteral", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "ObjectLiteral", "NestedObject", "NestedImplicitObjectLiteral", "BracedObjectLiteralContent", "NestedPropertyDefinitions", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedBlockStatement", "NestedElement", "NestedElementList", "NestedBindingElement", "NestedBindingElements", "NestedInterfaceProperty", "MemberExpression", "PrimaryExpression", "IndentedApplicationAllowed", "ExpressionWithIndentedApplicationSuppressed", "SuppressIndentedApplication", "AssignmentExpressionTail", "AssignmentExpression", "ExtendedExpression", "Expression", "MemberExpressionRest", "ElseClause", "CoffeeCommentEnabled", "SingleLineComment", "Debugger", "JSXElement", "TypedJSXElement", "JSXFragment", "TypedJSXFragment", "JSXChild", "JSXChildren", "JSXNestedChildren", "JSXMixedChildren"]);
|
|
15234
15241
|
module.exports = {
|
|
15235
15242
|
parse,
|
|
15236
15243
|
compile: function(src, options = defaultOptions) {
|