@danielx/civet 0.4.22 → 0.4.23
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 +44 -2
- package/dist/main.js +44 -2
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -610,6 +610,7 @@ ${input.slice(result.pos)}
|
|
|
610
610
|
UnquotedSpecifier,
|
|
611
611
|
ImportedBinding,
|
|
612
612
|
ExportDeclaration,
|
|
613
|
+
ExportVarDec,
|
|
613
614
|
ExportFromClause,
|
|
614
615
|
NamedExports,
|
|
615
616
|
ExportSpecifier,
|
|
@@ -817,6 +818,7 @@ ${input.slice(result.pos)}
|
|
|
817
818
|
InsertSpace,
|
|
818
819
|
InsertDot,
|
|
819
820
|
InsertBreak,
|
|
821
|
+
InsertVar,
|
|
820
822
|
CoffeeBinaryExistentialEnabled,
|
|
821
823
|
CoffeeBooleansEnabled,
|
|
822
824
|
CoffeeClassesEnabled,
|
|
@@ -7204,7 +7206,7 @@ ${input.slice(result.pos)}
|
|
|
7204
7206
|
}
|
|
7205
7207
|
var ExportDeclaration$0 = $S(Export, __, $EXPECT($L84, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
|
|
7206
7208
|
var ExportDeclaration$1 = $S(Export, __, ExportFromClause, __, FromClause);
|
|
7207
|
-
var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement));
|
|
7209
|
+
var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement, ExportVarDec));
|
|
7208
7210
|
function ExportDeclaration(state) {
|
|
7209
7211
|
if (state.events) {
|
|
7210
7212
|
const result = state.events.enter?.("ExportDeclaration", state);
|
|
@@ -7223,6 +7225,25 @@ ${input.slice(result.pos)}
|
|
|
7223
7225
|
return result;
|
|
7224
7226
|
}
|
|
7225
7227
|
}
|
|
7228
|
+
var ExportVarDec$0 = $S(InsertVar, VariableDeclarationList);
|
|
7229
|
+
function ExportVarDec(state) {
|
|
7230
|
+
if (state.events) {
|
|
7231
|
+
const result = state.events.enter?.("ExportVarDec", state);
|
|
7232
|
+
if (result)
|
|
7233
|
+
return result.cache;
|
|
7234
|
+
}
|
|
7235
|
+
if (state.tokenize) {
|
|
7236
|
+
const result = $TOKEN("ExportVarDec", state, ExportVarDec$0(state));
|
|
7237
|
+
if (state.events)
|
|
7238
|
+
state.events.exit?.("ExportVarDec", state, result);
|
|
7239
|
+
return result;
|
|
7240
|
+
} else {
|
|
7241
|
+
const result = ExportVarDec$0(state);
|
|
7242
|
+
if (state.events)
|
|
7243
|
+
state.events.exit?.("ExportVarDec", state, result);
|
|
7244
|
+
return result;
|
|
7245
|
+
}
|
|
7246
|
+
}
|
|
7226
7247
|
var ExportFromClause$0 = $S(Star, $E($S(__, As, __, ModuleExportName)));
|
|
7227
7248
|
var ExportFromClause$1 = NamedExports;
|
|
7228
7249
|
function ExportFromClause(state) {
|
|
@@ -7286,7 +7307,7 @@ ${input.slice(result.pos)}
|
|
|
7286
7307
|
return result;
|
|
7287
7308
|
}
|
|
7288
7309
|
}
|
|
7289
|
-
var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), ImplicitInlineObjectPropertyDelimiter);
|
|
7310
|
+
var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
|
|
7290
7311
|
function ImplicitExportSpecifier(state) {
|
|
7291
7312
|
if (state.events) {
|
|
7292
7313
|
const result = state.events.enter?.("ImplicitExportSpecifier", state);
|
|
@@ -11737,6 +11758,27 @@ ${input.slice(result.pos)}
|
|
|
11737
11758
|
return result;
|
|
11738
11759
|
}
|
|
11739
11760
|
}
|
|
11761
|
+
var InsertVar$0 = $TV($EXPECT($L0, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
|
|
11762
|
+
return { $loc, token: "var " };
|
|
11763
|
+
});
|
|
11764
|
+
function InsertVar(state) {
|
|
11765
|
+
if (state.events) {
|
|
11766
|
+
const result = state.events.enter?.("InsertVar", state);
|
|
11767
|
+
if (result)
|
|
11768
|
+
return result.cache;
|
|
11769
|
+
}
|
|
11770
|
+
if (state.tokenize) {
|
|
11771
|
+
const result = $TOKEN("InsertVar", state, InsertVar$0(state));
|
|
11772
|
+
if (state.events)
|
|
11773
|
+
state.events.exit?.("InsertVar", state, result);
|
|
11774
|
+
return result;
|
|
11775
|
+
} else {
|
|
11776
|
+
const result = InsertVar$0(state);
|
|
11777
|
+
if (state.events)
|
|
11778
|
+
state.events.exit?.("InsertVar", state, result);
|
|
11779
|
+
return result;
|
|
11780
|
+
}
|
|
11781
|
+
}
|
|
11740
11782
|
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
|
|
11741
11783
|
if (module.config.coffeeBinaryExistential)
|
|
11742
11784
|
return;
|
package/dist/main.js
CHANGED
|
@@ -609,6 +609,7 @@ ${input.slice(result.pos)}
|
|
|
609
609
|
UnquotedSpecifier,
|
|
610
610
|
ImportedBinding,
|
|
611
611
|
ExportDeclaration,
|
|
612
|
+
ExportVarDec,
|
|
612
613
|
ExportFromClause,
|
|
613
614
|
NamedExports,
|
|
614
615
|
ExportSpecifier,
|
|
@@ -816,6 +817,7 @@ ${input.slice(result.pos)}
|
|
|
816
817
|
InsertSpace,
|
|
817
818
|
InsertDot,
|
|
818
819
|
InsertBreak,
|
|
820
|
+
InsertVar,
|
|
819
821
|
CoffeeBinaryExistentialEnabled,
|
|
820
822
|
CoffeeBooleansEnabled,
|
|
821
823
|
CoffeeClassesEnabled,
|
|
@@ -7203,7 +7205,7 @@ ${input.slice(result.pos)}
|
|
|
7203
7205
|
}
|
|
7204
7206
|
var ExportDeclaration$0 = $S(Export, __, $EXPECT($L84, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
|
|
7205
7207
|
var ExportDeclaration$1 = $S(Export, __, ExportFromClause, __, FromClause);
|
|
7206
|
-
var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement));
|
|
7208
|
+
var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement, ExportVarDec));
|
|
7207
7209
|
function ExportDeclaration(state) {
|
|
7208
7210
|
if (state.events) {
|
|
7209
7211
|
const result = state.events.enter?.("ExportDeclaration", state);
|
|
@@ -7222,6 +7224,25 @@ ${input.slice(result.pos)}
|
|
|
7222
7224
|
return result;
|
|
7223
7225
|
}
|
|
7224
7226
|
}
|
|
7227
|
+
var ExportVarDec$0 = $S(InsertVar, VariableDeclarationList);
|
|
7228
|
+
function ExportVarDec(state) {
|
|
7229
|
+
if (state.events) {
|
|
7230
|
+
const result = state.events.enter?.("ExportVarDec", state);
|
|
7231
|
+
if (result)
|
|
7232
|
+
return result.cache;
|
|
7233
|
+
}
|
|
7234
|
+
if (state.tokenize) {
|
|
7235
|
+
const result = $TOKEN("ExportVarDec", state, ExportVarDec$0(state));
|
|
7236
|
+
if (state.events)
|
|
7237
|
+
state.events.exit?.("ExportVarDec", state, result);
|
|
7238
|
+
return result;
|
|
7239
|
+
} else {
|
|
7240
|
+
const result = ExportVarDec$0(state);
|
|
7241
|
+
if (state.events)
|
|
7242
|
+
state.events.exit?.("ExportVarDec", state, result);
|
|
7243
|
+
return result;
|
|
7244
|
+
}
|
|
7245
|
+
}
|
|
7225
7246
|
var ExportFromClause$0 = $S(Star, $E($S(__, As, __, ModuleExportName)));
|
|
7226
7247
|
var ExportFromClause$1 = NamedExports;
|
|
7227
7248
|
function ExportFromClause(state) {
|
|
@@ -7285,7 +7306,7 @@ ${input.slice(result.pos)}
|
|
|
7285
7306
|
return result;
|
|
7286
7307
|
}
|
|
7287
7308
|
}
|
|
7288
|
-
var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), ImplicitInlineObjectPropertyDelimiter);
|
|
7309
|
+
var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
|
|
7289
7310
|
function ImplicitExportSpecifier(state) {
|
|
7290
7311
|
if (state.events) {
|
|
7291
7312
|
const result = state.events.enter?.("ImplicitExportSpecifier", state);
|
|
@@ -11736,6 +11757,27 @@ ${input.slice(result.pos)}
|
|
|
11736
11757
|
return result;
|
|
11737
11758
|
}
|
|
11738
11759
|
}
|
|
11760
|
+
var InsertVar$0 = $TV($EXPECT($L0, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
|
|
11761
|
+
return { $loc, token: "var " };
|
|
11762
|
+
});
|
|
11763
|
+
function InsertVar(state) {
|
|
11764
|
+
if (state.events) {
|
|
11765
|
+
const result = state.events.enter?.("InsertVar", state);
|
|
11766
|
+
if (result)
|
|
11767
|
+
return result.cache;
|
|
11768
|
+
}
|
|
11769
|
+
if (state.tokenize) {
|
|
11770
|
+
const result = $TOKEN("InsertVar", state, InsertVar$0(state));
|
|
11771
|
+
if (state.events)
|
|
11772
|
+
state.events.exit?.("InsertVar", state, result);
|
|
11773
|
+
return result;
|
|
11774
|
+
} else {
|
|
11775
|
+
const result = InsertVar$0(state);
|
|
11776
|
+
if (state.events)
|
|
11777
|
+
state.events.exit?.("InsertVar", state, result);
|
|
11778
|
+
return result;
|
|
11779
|
+
}
|
|
11780
|
+
}
|
|
11739
11781
|
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
|
|
11740
11782
|
if (module2.config.coffeeBinaryExistential)
|
|
11741
11783
|
return;
|