@danielx/civet 0.10.4 → 0.10.5
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/CHANGELOG.md +5 -0
- package/dist/babel-plugin.js +1 -1
- package/dist/babel-plugin.mjs +1 -1
- package/dist/browser.js +42 -31
- package/dist/civet +1 -1
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/dist/esbuild-plugin.js +1 -1
- package/dist/esm.mjs +1 -1
- package/dist/main.js +47 -34
- package/dist/main.mjs +46 -33
- package/dist/node-worker.mjs +1 -1
- package/dist/unplugin/astro.js +1 -1
- package/dist/unplugin/astro.mjs +1 -1
- package/dist/unplugin/esbuild.js +1 -1
- package/dist/unplugin/esbuild.mjs +1 -1
- package/dist/unplugin/farm.js +1 -1
- package/dist/unplugin/farm.mjs +1 -1
- package/dist/unplugin/rolldown.js +1 -1
- package/dist/unplugin/rolldown.mjs +1 -1
- package/dist/unplugin/rollup.js +1 -1
- package/dist/unplugin/rollup.mjs +1 -1
- package/dist/unplugin/rspack.js +1 -1
- package/dist/unplugin/rspack.mjs +1 -1
- package/dist/unplugin/unplugin.js +2 -2
- package/dist/unplugin/unplugin.mjs +2 -2
- package/dist/unplugin/vite.js +1 -1
- package/dist/unplugin/vite.mjs +1 -1
- package/dist/unplugin/webpack.js +1 -1
- package/dist/unplugin/webpack.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ This changelog is generated automatically by [`build/changelog.civet`](build/cha
|
|
|
4
4
|
For each version of Civet, it lists and links to all incorporated PRs,
|
|
5
5
|
as well as a full diff and commit list.
|
|
6
6
|
|
|
7
|
+
## 0.10.5 (2025-06-30, [diff](https://github.com/DanielXMoore/Civet/compare/v0.10.4...v0.10.5), [commits](https://github.com/DanielXMoore/Civet/commits/v0.10.5))
|
|
8
|
+
* `this` and `@` are valid types (within classes) [[#1743](https://github.com/DanielXMoore/Civet/pull/1743)]
|
|
9
|
+
* Fix CoffeeScript comments getting treated as `length` shorthand [[#1750](https://github.com/DanielXMoore/Civet/pull/1750)]
|
|
10
|
+
* update lsp typescript [[#1753](https://github.com/DanielXMoore/Civet/pull/1753)]
|
|
11
|
+
|
|
7
12
|
## 0.10.4 (2025-05-17, [diff](https://github.com/DanielXMoore/Civet/compare/v0.10.3...v0.10.4), [commits](https://github.com/DanielXMoore/Civet/commits/v0.10.4))
|
|
8
13
|
* Fix implicit returns in IIFEs with "civet -implicitReturns" [[#1737](https://github.com/DanielXMoore/Civet/pull/1737)]
|
|
9
14
|
* Typed pinned arguments such as `(^x: T) =>`; forbid implicit object literals in pinned patterns [[#1736](https://github.com/DanielXMoore/Civet/pull/1736)]
|
package/dist/babel-plugin.js
CHANGED
|
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
|
-
// unplugin-civet
|
|
19
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/babel-plugin.civet.jsx
|
|
20
20
|
var babel_plugin_civet_exports = {};
|
|
21
21
|
__export(babel_plugin_civet_exports, {
|
|
22
22
|
default: () => babel_plugin_civet_default
|
package/dist/babel-plugin.mjs
CHANGED
package/dist/browser.js
CHANGED
|
@@ -400,7 +400,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
|
|
403
|
-
// unplugin-civet
|
|
403
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/browser.civet.jsx
|
|
404
404
|
var browser_civet_exports = {};
|
|
405
405
|
__export(browser_civet_exports, {
|
|
406
406
|
ParseError: () => import_lib2.ParseError,
|
|
@@ -422,7 +422,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
422
422
|
// source/parser.hera
|
|
423
423
|
var import_lib2 = __toESM(require_machine());
|
|
424
424
|
|
|
425
|
-
// unplugin-civet
|
|
425
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
426
426
|
var lib_civet_exports = {};
|
|
427
427
|
__export(lib_civet_exports, {
|
|
428
428
|
addPostfixStatement: () => addPostfixStatement,
|
|
@@ -502,7 +502,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
502
502
|
wrapTypeInPromise: () => wrapTypeInPromise
|
|
503
503
|
});
|
|
504
504
|
|
|
505
|
-
// unplugin-civet
|
|
505
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/util.civet.jsx
|
|
506
506
|
function len(arr, length) {
|
|
507
507
|
return arr.length === length;
|
|
508
508
|
}
|
|
@@ -1238,7 +1238,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1238
1238
|
return result;
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
|
-
// unplugin-civet
|
|
1241
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/traversal.civet.jsx
|
|
1242
1242
|
function gatherRecursiveWithinFunction(node, predicate) {
|
|
1243
1243
|
return gatherRecursive(node, predicate, isFunction);
|
|
1244
1244
|
}
|
|
@@ -1312,7 +1312,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1312
1312
|
return predicate(node) && nodes.push(node), nodes;
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
|
-
// unplugin-civet
|
|
1315
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/ref.civet.jsx
|
|
1316
1316
|
var range = (start, end) => {
|
|
1317
1317
|
let length = end - start;
|
|
1318
1318
|
if (length <= 0) return [];
|
|
@@ -1388,7 +1388,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
|
|
1391
|
-
// unplugin-civet
|
|
1391
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/binding.civet.jsx
|
|
1392
1392
|
function adjustAtBindings(statements, asThis = !1) {
|
|
1393
1393
|
for (let ref1 = gatherRecursiveAll(statements, ($1) => $1.type === "AtBindingProperty"), i1 = 0, len3 = ref1.length; i1 < len3; i1++) {
|
|
1394
1394
|
let binding = ref1[i1], { ref } = binding;
|
|
@@ -1586,12 +1586,12 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1586
1586
|
return pattern;
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
|
-
// unplugin-civet
|
|
1589
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
1590
1590
|
init_browser_shim();
|
|
1591
1591
|
init_browser_shim();
|
|
1592
1592
|
init_browser_shim();
|
|
1593
1593
|
|
|
1594
|
-
// unplugin-civet
|
|
1594
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/helper.civet.jsx
|
|
1595
1595
|
var preludeVar = "var ";
|
|
1596
1596
|
function ts(children) {
|
|
1597
1597
|
return {
|
|
@@ -1927,7 +1927,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
|
-
// unplugin-civet
|
|
1930
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/generate.civet.jsx
|
|
1931
1931
|
function stringify(node) {
|
|
1932
1932
|
try {
|
|
1933
1933
|
return JSON.stringify(removeParentPointers(node));
|
|
@@ -1995,7 +1995,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
1997
|
|
|
1998
|
-
// unplugin-civet
|
|
1998
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
1999
1999
|
function expressionizeComptime(statement) {
|
|
2000
2000
|
let { expressions } = statement.block, expression = wrapIIFE(expressions, hasAwait(expressions));
|
|
2001
2001
|
return makeNode({
|
|
@@ -2229,7 +2229,7 @@ ${js}`
|
|
|
2229
2229
|
return recurse(value);
|
|
2230
2230
|
}
|
|
2231
2231
|
|
|
2232
|
-
// unplugin-civet
|
|
2232
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/function.civet.jsx
|
|
2233
2233
|
var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
2234
2234
|
function getTypeArguments(args) {
|
|
2235
2235
|
for (; typeof args == "object" && args != null && "args" in args; )
|
|
@@ -3258,7 +3258,7 @@ ${js}`
|
|
|
3258
3258
|
).length > 1 && (fn.ampersandBlock = !1), fn;
|
|
3259
3259
|
}
|
|
3260
3260
|
|
|
3261
|
-
// unplugin-civet
|
|
3261
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/block.civet.jsx
|
|
3262
3262
|
function blockWithPrefix(prefixStatements, block) {
|
|
3263
3263
|
if (prefixStatements && prefixStatements.length) {
|
|
3264
3264
|
let expressions = [...prefixStatements, ...block.expressions];
|
|
@@ -3408,7 +3408,7 @@ ${js}`
|
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
3410
|
|
|
3411
|
-
// unplugin-civet
|
|
3411
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/op.civet.jsx
|
|
3412
3412
|
var precedenceOrder = [
|
|
3413
3413
|
["||", "??"],
|
|
3414
3414
|
["^^"],
|
|
@@ -3602,7 +3602,7 @@ ${js}`
|
|
|
3602
3602
|
}
|
|
3603
3603
|
}
|
|
3604
3604
|
|
|
3605
|
-
// unplugin-civet
|
|
3605
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pattern-matching.civet.jsx
|
|
3606
3606
|
function processPatternTest(lhs, patterns) {
|
|
3607
3607
|
let { ref, refAssignmentComma } = maybeRefAssignment(lhs, "m"), conditionExpression = flatJoin(patterns.map(($1) => getPatternConditions($1, ref)).map(($2) => flatJoin($2, " && ")), " || ");
|
|
3608
3608
|
return makeLeftHandSideExpression(makeNode({
|
|
@@ -4006,7 +4006,7 @@ ${js}`
|
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
4008
|
|
|
4009
|
-
// unplugin-civet
|
|
4009
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/declaration.civet.jsx
|
|
4010
4010
|
function len2(arr, length) {
|
|
4011
4011
|
return arr.length === length;
|
|
4012
4012
|
}
|
|
@@ -4415,7 +4415,7 @@ ${js}`
|
|
|
4415
4415
|
return [extendsToken, insertTrimmingSpace(ws, " "), wrapped];
|
|
4416
4416
|
}
|
|
4417
4417
|
|
|
4418
|
-
// unplugin-civet
|
|
4418
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/unary.civet.jsx
|
|
4419
4419
|
function processUnaryExpression(pre, exp, post) {
|
|
4420
4420
|
if (!(pre.length || post))
|
|
4421
4421
|
return exp;
|
|
@@ -4526,7 +4526,7 @@ ${js}`
|
|
|
4526
4526
|
return processUnaryExpression(pre, args, post);
|
|
4527
4527
|
}
|
|
4528
4528
|
|
|
4529
|
-
// unplugin-civet
|
|
4529
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pipe.civet.jsx
|
|
4530
4530
|
function constructInvocation(fn, arg) {
|
|
4531
4531
|
let expr = fn.expr;
|
|
4532
4532
|
for (; expr.type === "ParenthesizedExpression"; )
|
|
@@ -4687,7 +4687,7 @@ ${js}`
|
|
|
4687
4687
|
}
|
|
4688
4688
|
}
|
|
4689
4689
|
|
|
4690
|
-
// unplugin-civet
|
|
4690
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/for.civet.jsx
|
|
4691
4691
|
function processRangeExpression(start, ws1, range2, end) {
|
|
4692
4692
|
ws1 = [ws1, range2.children[0]];
|
|
4693
4693
|
let ws2 = range2.children[1], comma = { $loc: range2.$loc, token: "," }, ref;
|
|
@@ -5010,7 +5010,7 @@ ${js}`
|
|
|
5010
5010
|
};
|
|
5011
5011
|
}
|
|
5012
5012
|
|
|
5013
|
-
// unplugin-civet
|
|
5013
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/auto-dec.civet.jsx
|
|
5014
5014
|
var concatAssign2 = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
5015
5015
|
function findDecs(statements) {
|
|
5016
5016
|
let declarationNames = gatherNodes(statements, ($) => $.type === "Declaration").flatMap((d) => d.names), globals = getConfig().globals || [];
|
|
@@ -5092,7 +5092,7 @@ ${js}`
|
|
|
5092
5092
|
scopes.pop();
|
|
5093
5093
|
}
|
|
5094
5094
|
|
|
5095
|
-
// unplugin-civet
|
|
5095
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/string.civet.jsx
|
|
5096
5096
|
function getIndentLevel(str, tab) {
|
|
5097
5097
|
if (tab != null && tab != 1) {
|
|
5098
5098
|
let tabs = str.match(/\t/g), numTabs = tabs ? tabs.length : 0;
|
|
@@ -5202,7 +5202,7 @@ ${js}`
|
|
|
5202
5202
|
return JSON.stringify(str);
|
|
5203
5203
|
}
|
|
5204
5204
|
|
|
5205
|
-
// unplugin-civet
|
|
5205
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
5206
5206
|
var xor = (a, b) => a ? !b && a : b;
|
|
5207
5207
|
function addPostfixStatement(statement, ws, post) {
|
|
5208
5208
|
let expressions = [
|
|
@@ -6646,6 +6646,7 @@ ${js}`
|
|
|
6646
6646
|
AccessModifier,
|
|
6647
6647
|
FieldDefinition,
|
|
6648
6648
|
ThisLiteral,
|
|
6649
|
+
BasicThisLiteral,
|
|
6649
6650
|
HashThis,
|
|
6650
6651
|
LengthShorthand,
|
|
6651
6652
|
AtThis,
|
|
@@ -8475,9 +8476,7 @@ ${js}`
|
|
|
8475
8476
|
function FieldDefinition(ctx, state2) {
|
|
8476
8477
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "FieldDefinition", FieldDefinition$$);
|
|
8477
8478
|
}
|
|
8478
|
-
var ThisLiteral$0 = (0, import_lib2.$
|
|
8479
|
-
return { type: "Identifier", name: "this", children: [value[0]] };
|
|
8480
|
-
}), ThisLiteral$1 = HashThis, ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
8479
|
+
var ThisLiteral$0 = HashThis, ThisLiteral$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
8481
8480
|
var at = $1, id = $2;
|
|
8482
8481
|
return {
|
|
8483
8482
|
type: "MemberExpression",
|
|
@@ -8494,10 +8493,16 @@ ${js}`
|
|
|
8494
8493
|
}],
|
|
8495
8494
|
thisShorthand: !0
|
|
8496
8495
|
};
|
|
8497
|
-
}), ThisLiteral$
|
|
8496
|
+
}), ThisLiteral$2 = BasicThisLiteral, ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2];
|
|
8498
8497
|
function ThisLiteral(ctx, state2) {
|
|
8499
8498
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ThisLiteral", ThisLiteral$$);
|
|
8500
8499
|
}
|
|
8500
|
+
var BasicThisLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)(This), function(value) {
|
|
8501
|
+
return { type: "Identifier", name: "this", children: [value[0]] };
|
|
8502
|
+
}), BasicThisLiteral$1 = AtThis, BasicThisLiteral$$ = [BasicThisLiteral$0, BasicThisLiteral$1];
|
|
8503
|
+
function BasicThisLiteral(ctx, state2) {
|
|
8504
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "BasicThisLiteral", BasicThisLiteral$$);
|
|
8505
|
+
}
|
|
8501
8506
|
var HashThis$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(AtThis), LengthShorthand, (0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$Y)((0, import_lib2.$S)(_, (0, import_lib2.$E)((0, import_lib2.$S)(Not, __)), ActualIn)), (0, import_lib2.$EXPECT)($L0, 'HashThis ""')))), function($skip, $loc, $0, $1, $2, $3) {
|
|
8502
8507
|
var at = $1, id = $2, beforeIn = $3;
|
|
8503
8508
|
return beforeIn != null && at == null ? ['"', id.name, '"'] : {
|
|
@@ -8528,7 +8533,7 @@ ${js}`
|
|
|
8528
8533
|
function HashThis(ctx, state2) {
|
|
8529
8534
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HashThis", HashThis$$);
|
|
8530
8535
|
}
|
|
8531
|
-
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Hash, NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8536
|
+
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(CoffeeCommentEnabled), Hash, NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
8532
8537
|
let id = "length";
|
|
8533
8538
|
return {
|
|
8534
8539
|
type: "Identifier",
|
|
@@ -15042,7 +15047,13 @@ ${js}`
|
|
|
15042
15047
|
raw: [$2.name, ...$3.map(([dot, id]) => dot.token + id.name)].join(""),
|
|
15043
15048
|
args
|
|
15044
15049
|
};
|
|
15045
|
-
}), TypeIdentifier
|
|
15050
|
+
}), TypeIdentifier$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), BasicThisLiteral), function($skip, $loc, $0, $1, $2) {
|
|
15051
|
+
return {
|
|
15052
|
+
type: "TypeIdentifier",
|
|
15053
|
+
children: $0,
|
|
15054
|
+
raw: $2.name
|
|
15055
|
+
};
|
|
15056
|
+
}), TypeIdentifier$$ = [TypeIdentifier$0, TypeIdentifier$1, TypeIdentifier$2];
|
|
15046
15057
|
function TypeIdentifier(ctx, state2) {
|
|
15047
15058
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeIdentifier", TypeIdentifier$$);
|
|
15048
15059
|
}
|
|
@@ -16114,7 +16125,7 @@ ${js}`
|
|
|
16114
16125
|
"unscopables"
|
|
16115
16126
|
];
|
|
16116
16127
|
|
|
16117
|
-
// unplugin-civet
|
|
16128
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/sourcemap.civet.jsx
|
|
16118
16129
|
var sourcemap_civet_exports = {};
|
|
16119
16130
|
__export(sourcemap_civet_exports, {
|
|
16120
16131
|
SourceMap: () => SourceMap,
|
|
@@ -16283,7 +16294,7 @@ ${js}`
|
|
|
16283
16294
|
return [lastMapping[2], lastMapping[3]];
|
|
16284
16295
|
};
|
|
16285
16296
|
|
|
16286
|
-
// unplugin-civet
|
|
16297
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/state-cache.civet.jsx
|
|
16287
16298
|
var StateCache = class {
|
|
16288
16299
|
cache = /* @__PURE__ */ new Map();
|
|
16289
16300
|
get(key) {
|
|
@@ -16306,7 +16317,7 @@ ${js}`
|
|
|
16306
16317
|
}
|
|
16307
16318
|
};
|
|
16308
16319
|
|
|
16309
|
-
// unplugin-civet
|
|
16320
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
16310
16321
|
var { SourceMap: SourceMap2 } = sourcemap_civet_exports;
|
|
16311
16322
|
var ParseErrors = class extends Error {
|
|
16312
16323
|
name = "ParseErrors";
|
|
@@ -16456,7 +16467,7 @@ ${counts}`;
|
|
|
16456
16467
|
return err instanceof import_lib2.ParseError || err instanceof ParseErrors;
|
|
16457
16468
|
};
|
|
16458
16469
|
|
|
16459
|
-
// unplugin-civet
|
|
16470
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/browser.civet.jsx
|
|
16460
16471
|
async function runScripts(type = "text/civet") {
|
|
16461
16472
|
let scripts = window.document.querySelectorAll(`script[type=${JSON.stringify(type)}]`);
|
|
16462
16473
|
for (let i1 = 0, len3 = scripts.length; i1 < len3; i1++) {
|
package/dist/civet
CHANGED
|
@@ -29,7 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
));
|
|
30
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
31
|
|
|
32
|
-
// unplugin-civet
|
|
32
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/cli.civet.jsx
|
|
33
33
|
var cli_civet_exports = {};
|
|
34
34
|
__export(cli_civet_exports, {
|
|
35
35
|
cli: () => cli,
|
package/dist/config.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/config.civet.jsx
|
|
30
30
|
var config_civet_exports = {};
|
|
31
31
|
__export(config_civet_exports, {
|
|
32
32
|
default: () => config_civet_default,
|
package/dist/config.mjs
CHANGED
package/dist/esbuild-plugin.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/esbuild-plugin.civet.jsx
|
|
30
30
|
var esbuild_plugin_civet_exports = {};
|
|
31
31
|
__export(esbuild_plugin_civet_exports, {
|
|
32
32
|
default: () => esbuild_plugin_civet_default
|
package/dist/esm.mjs
CHANGED
package/dist/main.js
CHANGED
|
@@ -483,7 +483,7 @@ ${body}`;
|
|
|
483
483
|
}
|
|
484
484
|
});
|
|
485
485
|
|
|
486
|
-
// unplugin-civet
|
|
486
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
487
487
|
var main_civet_exports = {};
|
|
488
488
|
__export(main_civet_exports, {
|
|
489
489
|
ParseError: () => import_lib2.ParseError,
|
|
@@ -504,7 +504,7 @@ module.exports = __toCommonJS(main_civet_exports);
|
|
|
504
504
|
// source/parser.hera
|
|
505
505
|
var import_lib2 = __toESM(require_machine());
|
|
506
506
|
|
|
507
|
-
// unplugin-civet
|
|
507
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
508
508
|
var lib_civet_exports = {};
|
|
509
509
|
__export(lib_civet_exports, {
|
|
510
510
|
addPostfixStatement: () => addPostfixStatement,
|
|
@@ -584,7 +584,7 @@ __export(lib_civet_exports, {
|
|
|
584
584
|
wrapTypeInPromise: () => wrapTypeInPromise
|
|
585
585
|
});
|
|
586
586
|
|
|
587
|
-
// unplugin-civet
|
|
587
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/util.civet.jsx
|
|
588
588
|
function len(arr, length) {
|
|
589
589
|
return arr.length === length;
|
|
590
590
|
}
|
|
@@ -1585,7 +1585,7 @@ function flatJoin(array, separator) {
|
|
|
1585
1585
|
return result;
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
|
-
// unplugin-civet
|
|
1588
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/traversal.civet.jsx
|
|
1589
1589
|
function gatherRecursiveWithinFunction(node, predicate) {
|
|
1590
1590
|
return gatherRecursive(node, predicate, isFunction);
|
|
1591
1591
|
}
|
|
@@ -1694,7 +1694,7 @@ function gatherRecursiveAll(node, predicate) {
|
|
|
1694
1694
|
return nodes;
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
|
-
// unplugin-civet
|
|
1697
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/ref.civet.jsx
|
|
1698
1698
|
var range = (start, end) => {
|
|
1699
1699
|
const length = end - start;
|
|
1700
1700
|
if (length <= 0) return [];
|
|
@@ -1789,7 +1789,7 @@ function populateRefs(statements) {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
|
-
// unplugin-civet
|
|
1792
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/binding.civet.jsx
|
|
1793
1793
|
function adjustAtBindings(statements, asThis = false) {
|
|
1794
1794
|
for (let ref1 = gatherRecursiveAll(statements, ($1) => $1.type === "AtBindingProperty"), i1 = 0, len3 = ref1.length; i1 < len3; i1++) {
|
|
1795
1795
|
const binding = ref1[i1];
|
|
@@ -2056,12 +2056,12 @@ function gatherBindingPatternTypeSuffix(pattern) {
|
|
|
2056
2056
|
return pattern;
|
|
2057
2057
|
}
|
|
2058
2058
|
|
|
2059
|
-
// unplugin-civet
|
|
2059
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
2060
2060
|
var import_node_path = require("node:path");
|
|
2061
2061
|
var import_node_module = require("node:module");
|
|
2062
2062
|
var import_node_vm = __toESM(require("node:vm"));
|
|
2063
2063
|
|
|
2064
|
-
// unplugin-civet
|
|
2064
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/helper.civet.jsx
|
|
2065
2065
|
var preludeVar = "var ";
|
|
2066
2066
|
function ts(children) {
|
|
2067
2067
|
return {
|
|
@@ -2378,7 +2378,7 @@ function extractPreludeFor(node) {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
|
-
// unplugin-civet
|
|
2381
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/generate.civet.jsx
|
|
2382
2382
|
function stringify(node) {
|
|
2383
2383
|
try {
|
|
2384
2384
|
return JSON.stringify(removeParentPointers(node));
|
|
@@ -2488,7 +2488,7 @@ function prune(node) {
|
|
|
2488
2488
|
return node;
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
|
-
// unplugin-civet
|
|
2491
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
2492
2492
|
function expressionizeComptime(statement) {
|
|
2493
2493
|
const { expressions } = statement.block;
|
|
2494
2494
|
const expression = wrapIIFE(expressions, hasAwait(expressions));
|
|
@@ -2809,7 +2809,7 @@ function serialize(value, context) {
|
|
|
2809
2809
|
return recurse(value);
|
|
2810
2810
|
}
|
|
2811
2811
|
|
|
2812
|
-
// unplugin-civet
|
|
2812
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/function.civet.jsx
|
|
2813
2813
|
var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
2814
2814
|
function getTypeArguments(args) {
|
|
2815
2815
|
while (typeof args === "object" && args != null && "args" in args) {
|
|
@@ -4242,7 +4242,7 @@ function makeAmpersandFunction(rhs) {
|
|
|
4242
4242
|
return fn;
|
|
4243
4243
|
}
|
|
4244
4244
|
|
|
4245
|
-
// unplugin-civet
|
|
4245
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/block.civet.jsx
|
|
4246
4246
|
function blockWithPrefix(prefixStatements, block) {
|
|
4247
4247
|
if (prefixStatements && prefixStatements.length) {
|
|
4248
4248
|
const expressions = [...prefixStatements, ...block.expressions];
|
|
@@ -4463,7 +4463,7 @@ function blockContainingStatement(exp) {
|
|
|
4463
4463
|
};
|
|
4464
4464
|
}
|
|
4465
4465
|
|
|
4466
|
-
// unplugin-civet
|
|
4466
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/op.civet.jsx
|
|
4467
4467
|
var precedenceOrder = [
|
|
4468
4468
|
["||", "??"],
|
|
4469
4469
|
["^^"],
|
|
@@ -4799,7 +4799,7 @@ function expandChainedComparisons([first, binops]) {
|
|
|
4799
4799
|
}
|
|
4800
4800
|
}
|
|
4801
4801
|
|
|
4802
|
-
// unplugin-civet
|
|
4802
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pattern-matching.civet.jsx
|
|
4803
4803
|
function processPatternTest(lhs, patterns) {
|
|
4804
4804
|
const { ref, refAssignmentComma } = maybeRefAssignment(lhs, "m");
|
|
4805
4805
|
const conditionExpression = flatJoin(patterns.map(($1) => getPatternConditions($1, ref)).map(($2) => flatJoin($2, " && ")), " || ");
|
|
@@ -5318,7 +5318,7 @@ function aliasBinding(p, ref) {
|
|
|
5318
5318
|
}
|
|
5319
5319
|
}
|
|
5320
5320
|
|
|
5321
|
-
// unplugin-civet
|
|
5321
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/declaration.civet.jsx
|
|
5322
5322
|
function len2(arr, length) {
|
|
5323
5323
|
return arr.length === length;
|
|
5324
5324
|
}
|
|
@@ -5872,7 +5872,7 @@ function convertWithClause(withClause, extendsClause) {
|
|
|
5872
5872
|
return [extendsToken, insertTrimmingSpace(ws, " "), wrapped];
|
|
5873
5873
|
}
|
|
5874
5874
|
|
|
5875
|
-
// unplugin-civet
|
|
5875
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/unary.civet.jsx
|
|
5876
5876
|
function processUnaryExpression(pre, exp, post) {
|
|
5877
5877
|
if (!(pre.length || post)) {
|
|
5878
5878
|
return exp;
|
|
@@ -6034,7 +6034,7 @@ function processUnaryNestedExpression(pre, args, post) {
|
|
|
6034
6034
|
return processUnaryExpression(pre, args, post);
|
|
6035
6035
|
}
|
|
6036
6036
|
|
|
6037
|
-
// unplugin-civet
|
|
6037
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pipe.civet.jsx
|
|
6038
6038
|
function constructInvocation(fn, arg) {
|
|
6039
6039
|
let expr = fn.expr;
|
|
6040
6040
|
while (expr.type === "ParenthesizedExpression") {
|
|
@@ -6257,7 +6257,7 @@ function processPipelineExpressions(statements) {
|
|
|
6257
6257
|
}
|
|
6258
6258
|
}
|
|
6259
6259
|
|
|
6260
|
-
// unplugin-civet
|
|
6260
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/for.civet.jsx
|
|
6261
6261
|
function processRangeExpression(start, ws1, range2, end) {
|
|
6262
6262
|
ws1 = [ws1, range2.children[0]];
|
|
6263
6263
|
const ws2 = range2.children[1];
|
|
@@ -6702,7 +6702,7 @@ function processForInOf($0) {
|
|
|
6702
6702
|
};
|
|
6703
6703
|
}
|
|
6704
6704
|
|
|
6705
|
-
// unplugin-civet
|
|
6705
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/auto-dec.civet.jsx
|
|
6706
6706
|
var concatAssign2 = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
6707
6707
|
function findDecs(statements) {
|
|
6708
6708
|
const declarations = gatherNodes(statements, ($) => $.type === "Declaration");
|
|
@@ -6848,7 +6848,7 @@ function createVarDecs(block, scopes, pushVar) {
|
|
|
6848
6848
|
scopes.pop();
|
|
6849
6849
|
}
|
|
6850
6850
|
|
|
6851
|
-
// unplugin-civet
|
|
6851
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/string.civet.jsx
|
|
6852
6852
|
function getIndentLevel(str, tab) {
|
|
6853
6853
|
if (tab != null && tab != 1) {
|
|
6854
6854
|
const tabs = str.match(/\t/g);
|
|
@@ -7016,7 +7016,7 @@ function quoteString(str) {
|
|
|
7016
7016
|
return JSON.stringify(str);
|
|
7017
7017
|
}
|
|
7018
7018
|
|
|
7019
|
-
// unplugin-civet
|
|
7019
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
7020
7020
|
var xor = (a, b) => a ? !b && a : b;
|
|
7021
7021
|
function addPostfixStatement(statement, ws, post) {
|
|
7022
7022
|
const expressions = [
|
|
@@ -9011,6 +9011,7 @@ var grammar = {
|
|
|
9011
9011
|
AccessModifier,
|
|
9012
9012
|
FieldDefinition,
|
|
9013
9013
|
ThisLiteral,
|
|
9014
|
+
BasicThisLiteral,
|
|
9014
9015
|
HashThis,
|
|
9015
9016
|
LengthShorthand,
|
|
9016
9017
|
AtThis,
|
|
@@ -11548,11 +11549,8 @@ var FieldDefinition$$ = [FieldDefinition$0, FieldDefinition$1, FieldDefinition$2
|
|
|
11548
11549
|
function FieldDefinition(ctx, state2) {
|
|
11549
11550
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "FieldDefinition", FieldDefinition$$);
|
|
11550
11551
|
}
|
|
11551
|
-
var ThisLiteral$0 =
|
|
11552
|
-
|
|
11553
|
-
});
|
|
11554
|
-
var ThisLiteral$1 = HashThis;
|
|
11555
|
-
var ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
11552
|
+
var ThisLiteral$0 = HashThis;
|
|
11553
|
+
var ThisLiteral$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
11556
11554
|
var at = $1;
|
|
11557
11555
|
var id = $2;
|
|
11558
11556
|
return {
|
|
@@ -11571,11 +11569,19 @@ var ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_
|
|
|
11571
11569
|
thisShorthand: true
|
|
11572
11570
|
};
|
|
11573
11571
|
});
|
|
11574
|
-
var ThisLiteral$
|
|
11575
|
-
var ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2
|
|
11572
|
+
var ThisLiteral$2 = BasicThisLiteral;
|
|
11573
|
+
var ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2];
|
|
11576
11574
|
function ThisLiteral(ctx, state2) {
|
|
11577
11575
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ThisLiteral", ThisLiteral$$);
|
|
11578
11576
|
}
|
|
11577
|
+
var BasicThisLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)(This), function(value) {
|
|
11578
|
+
return { "type": "Identifier", "name": "this", "children": [value[0]] };
|
|
11579
|
+
});
|
|
11580
|
+
var BasicThisLiteral$1 = AtThis;
|
|
11581
|
+
var BasicThisLiteral$$ = [BasicThisLiteral$0, BasicThisLiteral$1];
|
|
11582
|
+
function BasicThisLiteral(ctx, state2) {
|
|
11583
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "BasicThisLiteral", BasicThisLiteral$$);
|
|
11584
|
+
}
|
|
11579
11585
|
var HashThis$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(AtThis), LengthShorthand, (0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$Y)((0, import_lib2.$S)(_, (0, import_lib2.$E)((0, import_lib2.$S)(Not, __)), ActualIn)), (0, import_lib2.$EXPECT)($L0, 'HashThis ""')))), function($skip, $loc, $0, $1, $2, $3) {
|
|
11580
11586
|
var at = $1;
|
|
11581
11587
|
var id = $2;
|
|
@@ -11612,7 +11618,7 @@ var HashThis$$ = [HashThis$0, HashThis$1, HashThis$2];
|
|
|
11612
11618
|
function HashThis(ctx, state2) {
|
|
11613
11619
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HashThis", HashThis$$);
|
|
11614
11620
|
}
|
|
11615
|
-
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Hash, NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11621
|
+
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(CoffeeCommentEnabled), Hash, NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
11616
11622
|
const id = "length";
|
|
11617
11623
|
return {
|
|
11618
11624
|
type: "Identifier",
|
|
@@ -19904,7 +19910,14 @@ var TypeIdentifier$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.
|
|
|
19904
19910
|
args
|
|
19905
19911
|
};
|
|
19906
19912
|
});
|
|
19907
|
-
var TypeIdentifier
|
|
19913
|
+
var TypeIdentifier$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), BasicThisLiteral), function($skip, $loc, $0, $1, $2) {
|
|
19914
|
+
return {
|
|
19915
|
+
type: "TypeIdentifier",
|
|
19916
|
+
children: $0,
|
|
19917
|
+
raw: $2.name
|
|
19918
|
+
};
|
|
19919
|
+
});
|
|
19920
|
+
var TypeIdentifier$$ = [TypeIdentifier$0, TypeIdentifier$1, TypeIdentifier$2];
|
|
19908
19921
|
function TypeIdentifier(ctx, state2) {
|
|
19909
19922
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeIdentifier", TypeIdentifier$$);
|
|
19910
19923
|
}
|
|
@@ -21185,7 +21198,7 @@ var wellKnownSymbols = [
|
|
|
21185
21198
|
"unscopables"
|
|
21186
21199
|
];
|
|
21187
21200
|
|
|
21188
|
-
// unplugin-civet
|
|
21201
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/sourcemap.civet.jsx
|
|
21189
21202
|
var sourcemap_civet_exports = {};
|
|
21190
21203
|
__export(sourcemap_civet_exports, {
|
|
21191
21204
|
SourceMap: () => SourceMap,
|
|
@@ -21499,7 +21512,7 @@ var remapPosition = function(position, sourcemapLines) {
|
|
|
21499
21512
|
}
|
|
21500
21513
|
};
|
|
21501
21514
|
|
|
21502
|
-
// unplugin-civet
|
|
21515
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/state-cache.civet.jsx
|
|
21503
21516
|
var StateCache = class {
|
|
21504
21517
|
cache = /* @__PURE__ */ new Map();
|
|
21505
21518
|
get(key) {
|
|
@@ -21539,7 +21552,7 @@ var StateCache = class {
|
|
|
21539
21552
|
}
|
|
21540
21553
|
};
|
|
21541
21554
|
|
|
21542
|
-
// unplugin-civet
|
|
21555
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/worker-pool.civet.jsx
|
|
21543
21556
|
var WorkerPool = class {
|
|
21544
21557
|
idle;
|
|
21545
21558
|
spawned;
|
|
@@ -21635,7 +21648,7 @@ var WorkerPool = class {
|
|
|
21635
21648
|
}
|
|
21636
21649
|
};
|
|
21637
21650
|
|
|
21638
|
-
// unplugin-civet
|
|
21651
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
21639
21652
|
var { SourceMap: SourceMap2 } = sourcemap_civet_exports;
|
|
21640
21653
|
var ParseErrors = class extends Error {
|
|
21641
21654
|
name = "ParseErrors";
|
package/dist/main.mjs
CHANGED
|
@@ -485,7 +485,7 @@ ${body}`;
|
|
|
485
485
|
// source/parser.hera
|
|
486
486
|
var import_lib2 = __toESM(require_machine());
|
|
487
487
|
|
|
488
|
-
// unplugin-civet
|
|
488
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
489
489
|
var lib_civet_exports = {};
|
|
490
490
|
__export(lib_civet_exports, {
|
|
491
491
|
addPostfixStatement: () => addPostfixStatement,
|
|
@@ -565,7 +565,7 @@ __export(lib_civet_exports, {
|
|
|
565
565
|
wrapTypeInPromise: () => wrapTypeInPromise
|
|
566
566
|
});
|
|
567
567
|
|
|
568
|
-
// unplugin-civet
|
|
568
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/util.civet.jsx
|
|
569
569
|
function len(arr, length) {
|
|
570
570
|
return arr.length === length;
|
|
571
571
|
}
|
|
@@ -1566,7 +1566,7 @@ function flatJoin(array, separator) {
|
|
|
1566
1566
|
return result;
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
-
// unplugin-civet
|
|
1569
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/traversal.civet.jsx
|
|
1570
1570
|
function gatherRecursiveWithinFunction(node, predicate) {
|
|
1571
1571
|
return gatherRecursive(node, predicate, isFunction);
|
|
1572
1572
|
}
|
|
@@ -1675,7 +1675,7 @@ function gatherRecursiveAll(node, predicate) {
|
|
|
1675
1675
|
return nodes;
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
|
-
// unplugin-civet
|
|
1678
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/ref.civet.jsx
|
|
1679
1679
|
var range = (start, end) => {
|
|
1680
1680
|
const length = end - start;
|
|
1681
1681
|
if (length <= 0) return [];
|
|
@@ -1770,7 +1770,7 @@ function populateRefs(statements) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
-
// unplugin-civet
|
|
1773
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/binding.civet.jsx
|
|
1774
1774
|
function adjustAtBindings(statements, asThis = false) {
|
|
1775
1775
|
for (let ref1 = gatherRecursiveAll(statements, ($1) => $1.type === "AtBindingProperty"), i1 = 0, len3 = ref1.length; i1 < len3; i1++) {
|
|
1776
1776
|
const binding = ref1[i1];
|
|
@@ -2037,12 +2037,12 @@ function gatherBindingPatternTypeSuffix(pattern) {
|
|
|
2037
2037
|
return pattern;
|
|
2038
2038
|
}
|
|
2039
2039
|
|
|
2040
|
-
// unplugin-civet
|
|
2040
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
2041
2041
|
import { resolve, dirname } from "node:path";
|
|
2042
2042
|
import { createRequire } from "node:module";
|
|
2043
2043
|
import vm from "node:vm";
|
|
2044
2044
|
|
|
2045
|
-
// unplugin-civet
|
|
2045
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/helper.civet.jsx
|
|
2046
2046
|
var preludeVar = "var ";
|
|
2047
2047
|
function ts(children) {
|
|
2048
2048
|
return {
|
|
@@ -2359,7 +2359,7 @@ function extractPreludeFor(node) {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
|
-
// unplugin-civet
|
|
2362
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/generate.civet.jsx
|
|
2363
2363
|
function stringify(node) {
|
|
2364
2364
|
try {
|
|
2365
2365
|
return JSON.stringify(removeParentPointers(node));
|
|
@@ -2469,7 +2469,7 @@ function prune(node) {
|
|
|
2469
2469
|
return node;
|
|
2470
2470
|
}
|
|
2471
2471
|
|
|
2472
|
-
// unplugin-civet
|
|
2472
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
2473
2473
|
function expressionizeComptime(statement) {
|
|
2474
2474
|
const { expressions } = statement.block;
|
|
2475
2475
|
const expression = wrapIIFE(expressions, hasAwait(expressions));
|
|
@@ -2790,7 +2790,7 @@ function serialize(value, context) {
|
|
|
2790
2790
|
return recurse(value);
|
|
2791
2791
|
}
|
|
2792
2792
|
|
|
2793
|
-
// unplugin-civet
|
|
2793
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/function.civet.jsx
|
|
2794
2794
|
var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
2795
2795
|
function getTypeArguments(args) {
|
|
2796
2796
|
while (typeof args === "object" && args != null && "args" in args) {
|
|
@@ -4223,7 +4223,7 @@ function makeAmpersandFunction(rhs) {
|
|
|
4223
4223
|
return fn;
|
|
4224
4224
|
}
|
|
4225
4225
|
|
|
4226
|
-
// unplugin-civet
|
|
4226
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/block.civet.jsx
|
|
4227
4227
|
function blockWithPrefix(prefixStatements, block) {
|
|
4228
4228
|
if (prefixStatements && prefixStatements.length) {
|
|
4229
4229
|
const expressions = [...prefixStatements, ...block.expressions];
|
|
@@ -4444,7 +4444,7 @@ function blockContainingStatement(exp) {
|
|
|
4444
4444
|
};
|
|
4445
4445
|
}
|
|
4446
4446
|
|
|
4447
|
-
// unplugin-civet
|
|
4447
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/op.civet.jsx
|
|
4448
4448
|
var precedenceOrder = [
|
|
4449
4449
|
["||", "??"],
|
|
4450
4450
|
["^^"],
|
|
@@ -4780,7 +4780,7 @@ function expandChainedComparisons([first, binops]) {
|
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
4782
|
|
|
4783
|
-
// unplugin-civet
|
|
4783
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pattern-matching.civet.jsx
|
|
4784
4784
|
function processPatternTest(lhs, patterns) {
|
|
4785
4785
|
const { ref, refAssignmentComma } = maybeRefAssignment(lhs, "m");
|
|
4786
4786
|
const conditionExpression = flatJoin(patterns.map(($1) => getPatternConditions($1, ref)).map(($2) => flatJoin($2, " && ")), " || ");
|
|
@@ -5299,7 +5299,7 @@ function aliasBinding(p, ref) {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
5301
|
|
|
5302
|
-
// unplugin-civet
|
|
5302
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/declaration.civet.jsx
|
|
5303
5303
|
function len2(arr, length) {
|
|
5304
5304
|
return arr.length === length;
|
|
5305
5305
|
}
|
|
@@ -5853,7 +5853,7 @@ function convertWithClause(withClause, extendsClause) {
|
|
|
5853
5853
|
return [extendsToken, insertTrimmingSpace(ws, " "), wrapped];
|
|
5854
5854
|
}
|
|
5855
5855
|
|
|
5856
|
-
// unplugin-civet
|
|
5856
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/unary.civet.jsx
|
|
5857
5857
|
function processUnaryExpression(pre, exp, post) {
|
|
5858
5858
|
if (!(pre.length || post)) {
|
|
5859
5859
|
return exp;
|
|
@@ -6015,7 +6015,7 @@ function processUnaryNestedExpression(pre, args, post) {
|
|
|
6015
6015
|
return processUnaryExpression(pre, args, post);
|
|
6016
6016
|
}
|
|
6017
6017
|
|
|
6018
|
-
// unplugin-civet
|
|
6018
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pipe.civet.jsx
|
|
6019
6019
|
function constructInvocation(fn, arg) {
|
|
6020
6020
|
let expr = fn.expr;
|
|
6021
6021
|
while (expr.type === "ParenthesizedExpression") {
|
|
@@ -6238,7 +6238,7 @@ function processPipelineExpressions(statements) {
|
|
|
6238
6238
|
}
|
|
6239
6239
|
}
|
|
6240
6240
|
|
|
6241
|
-
// unplugin-civet
|
|
6241
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/for.civet.jsx
|
|
6242
6242
|
function processRangeExpression(start, ws1, range2, end) {
|
|
6243
6243
|
ws1 = [ws1, range2.children[0]];
|
|
6244
6244
|
const ws2 = range2.children[1];
|
|
@@ -6683,7 +6683,7 @@ function processForInOf($0) {
|
|
|
6683
6683
|
};
|
|
6684
6684
|
}
|
|
6685
6685
|
|
|
6686
|
-
// unplugin-civet
|
|
6686
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/auto-dec.civet.jsx
|
|
6687
6687
|
var concatAssign2 = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
6688
6688
|
function findDecs(statements) {
|
|
6689
6689
|
const declarations = gatherNodes(statements, ($) => $.type === "Declaration");
|
|
@@ -6829,7 +6829,7 @@ function createVarDecs(block, scopes, pushVar) {
|
|
|
6829
6829
|
scopes.pop();
|
|
6830
6830
|
}
|
|
6831
6831
|
|
|
6832
|
-
// unplugin-civet
|
|
6832
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/string.civet.jsx
|
|
6833
6833
|
function getIndentLevel(str, tab) {
|
|
6834
6834
|
if (tab != null && tab != 1) {
|
|
6835
6835
|
const tabs = str.match(/\t/g);
|
|
@@ -6997,7 +6997,7 @@ function quoteString(str) {
|
|
|
6997
6997
|
return JSON.stringify(str);
|
|
6998
6998
|
}
|
|
6999
6999
|
|
|
7000
|
-
// unplugin-civet
|
|
7000
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
7001
7001
|
var xor = (a, b) => a ? !b && a : b;
|
|
7002
7002
|
function addPostfixStatement(statement, ws, post) {
|
|
7003
7003
|
const expressions = [
|
|
@@ -8992,6 +8992,7 @@ var grammar = {
|
|
|
8992
8992
|
AccessModifier,
|
|
8993
8993
|
FieldDefinition,
|
|
8994
8994
|
ThisLiteral,
|
|
8995
|
+
BasicThisLiteral,
|
|
8995
8996
|
HashThis,
|
|
8996
8997
|
LengthShorthand,
|
|
8997
8998
|
AtThis,
|
|
@@ -11529,11 +11530,8 @@ var FieldDefinition$$ = [FieldDefinition$0, FieldDefinition$1, FieldDefinition$2
|
|
|
11529
11530
|
function FieldDefinition(ctx, state2) {
|
|
11530
11531
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "FieldDefinition", FieldDefinition$$);
|
|
11531
11532
|
}
|
|
11532
|
-
var ThisLiteral$0 =
|
|
11533
|
-
|
|
11534
|
-
});
|
|
11535
|
-
var ThisLiteral$1 = HashThis;
|
|
11536
|
-
var ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
11533
|
+
var ThisLiteral$0 = HashThis;
|
|
11534
|
+
var ThisLiteral$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
11537
11535
|
var at = $1;
|
|
11538
11536
|
var id = $2;
|
|
11539
11537
|
return {
|
|
@@ -11552,11 +11550,19 @@ var ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_
|
|
|
11552
11550
|
thisShorthand: true
|
|
11553
11551
|
};
|
|
11554
11552
|
});
|
|
11555
|
-
var ThisLiteral$
|
|
11556
|
-
var ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2
|
|
11553
|
+
var ThisLiteral$2 = BasicThisLiteral;
|
|
11554
|
+
var ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2];
|
|
11557
11555
|
function ThisLiteral(ctx, state2) {
|
|
11558
11556
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ThisLiteral", ThisLiteral$$);
|
|
11559
11557
|
}
|
|
11558
|
+
var BasicThisLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)(This), function(value) {
|
|
11559
|
+
return { "type": "Identifier", "name": "this", "children": [value[0]] };
|
|
11560
|
+
});
|
|
11561
|
+
var BasicThisLiteral$1 = AtThis;
|
|
11562
|
+
var BasicThisLiteral$$ = [BasicThisLiteral$0, BasicThisLiteral$1];
|
|
11563
|
+
function BasicThisLiteral(ctx, state2) {
|
|
11564
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "BasicThisLiteral", BasicThisLiteral$$);
|
|
11565
|
+
}
|
|
11560
11566
|
var HashThis$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(AtThis), LengthShorthand, (0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$Y)((0, import_lib2.$S)(_, (0, import_lib2.$E)((0, import_lib2.$S)(Not, __)), ActualIn)), (0, import_lib2.$EXPECT)($L0, 'HashThis ""')))), function($skip, $loc, $0, $1, $2, $3) {
|
|
11561
11567
|
var at = $1;
|
|
11562
11568
|
var id = $2;
|
|
@@ -11593,7 +11599,7 @@ var HashThis$$ = [HashThis$0, HashThis$1, HashThis$2];
|
|
|
11593
11599
|
function HashThis(ctx, state2) {
|
|
11594
11600
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HashThis", HashThis$$);
|
|
11595
11601
|
}
|
|
11596
|
-
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Hash, NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11602
|
+
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(CoffeeCommentEnabled), Hash, NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
11597
11603
|
const id = "length";
|
|
11598
11604
|
return {
|
|
11599
11605
|
type: "Identifier",
|
|
@@ -19885,7 +19891,14 @@ var TypeIdentifier$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.
|
|
|
19885
19891
|
args
|
|
19886
19892
|
};
|
|
19887
19893
|
});
|
|
19888
|
-
var TypeIdentifier
|
|
19894
|
+
var TypeIdentifier$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), BasicThisLiteral), function($skip, $loc, $0, $1, $2) {
|
|
19895
|
+
return {
|
|
19896
|
+
type: "TypeIdentifier",
|
|
19897
|
+
children: $0,
|
|
19898
|
+
raw: $2.name
|
|
19899
|
+
};
|
|
19900
|
+
});
|
|
19901
|
+
var TypeIdentifier$$ = [TypeIdentifier$0, TypeIdentifier$1, TypeIdentifier$2];
|
|
19889
19902
|
function TypeIdentifier(ctx, state2) {
|
|
19890
19903
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeIdentifier", TypeIdentifier$$);
|
|
19891
19904
|
}
|
|
@@ -21166,7 +21179,7 @@ var wellKnownSymbols = [
|
|
|
21166
21179
|
"unscopables"
|
|
21167
21180
|
];
|
|
21168
21181
|
|
|
21169
|
-
// unplugin-civet
|
|
21182
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/sourcemap.civet.jsx
|
|
21170
21183
|
var sourcemap_civet_exports = {};
|
|
21171
21184
|
__export(sourcemap_civet_exports, {
|
|
21172
21185
|
SourceMap: () => SourceMap,
|
|
@@ -21480,7 +21493,7 @@ var remapPosition = function(position, sourcemapLines) {
|
|
|
21480
21493
|
}
|
|
21481
21494
|
};
|
|
21482
21495
|
|
|
21483
|
-
// unplugin-civet
|
|
21496
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/state-cache.civet.jsx
|
|
21484
21497
|
var StateCache = class {
|
|
21485
21498
|
cache = /* @__PURE__ */ new Map();
|
|
21486
21499
|
get(key) {
|
|
@@ -21520,7 +21533,7 @@ var StateCache = class {
|
|
|
21520
21533
|
}
|
|
21521
21534
|
};
|
|
21522
21535
|
|
|
21523
|
-
// unplugin-civet
|
|
21536
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/worker-pool.civet.jsx
|
|
21524
21537
|
var WorkerPool = class {
|
|
21525
21538
|
idle;
|
|
21526
21539
|
spawned;
|
|
@@ -21622,7 +21635,7 @@ var WorkerPool = class {
|
|
|
21622
21635
|
}
|
|
21623
21636
|
};
|
|
21624
21637
|
|
|
21625
|
-
// unplugin-civet
|
|
21638
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
21626
21639
|
var { SourceMap: SourceMap2 } = sourcemap_civet_exports;
|
|
21627
21640
|
var ParseErrors = class extends Error {
|
|
21628
21641
|
name = "ParseErrors";
|
package/dist/node-worker.mjs
CHANGED
package/dist/unplugin/astro.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/astro.civet.jsx
|
|
30
30
|
var astro_civet_exports = {};
|
|
31
31
|
__export(astro_civet_exports, {
|
|
32
32
|
default: () => astro_civet_default
|
package/dist/unplugin/astro.mjs
CHANGED
package/dist/unplugin/esbuild.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/esbuild.civet.jsx
|
|
30
30
|
var esbuild_civet_exports = {};
|
|
31
31
|
__export(esbuild_civet_exports, {
|
|
32
32
|
default: () => esbuild_civet_default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// unplugin-civet
|
|
1
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/esbuild.civet.jsx
|
|
2
2
|
import civetUnplugin from "./unplugin.mjs";
|
|
3
3
|
var esbuild_civet_default = civetUnplugin.esbuild;
|
|
4
4
|
export {
|
package/dist/unplugin/farm.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/farm.civet.jsx
|
|
30
30
|
var farm_civet_exports = {};
|
|
31
31
|
__export(farm_civet_exports, {
|
|
32
32
|
default: () => farm_civet_default
|
package/dist/unplugin/farm.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rolldown.civet.jsx
|
|
30
30
|
var rolldown_civet_exports = {};
|
|
31
31
|
__export(rolldown_civet_exports, {
|
|
32
32
|
default: () => rolldown_civet_default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// unplugin-civet
|
|
1
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rolldown.civet.jsx
|
|
2
2
|
import civetUnplugin from "./unplugin.mjs";
|
|
3
3
|
var rolldown_civet_default = civetUnplugin.rolldown;
|
|
4
4
|
export {
|
package/dist/unplugin/rollup.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rollup.civet.jsx
|
|
30
30
|
var rollup_civet_exports = {};
|
|
31
31
|
__export(rollup_civet_exports, {
|
|
32
32
|
default: () => rollup_civet_default
|
package/dist/unplugin/rollup.mjs
CHANGED
package/dist/unplugin/rspack.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rspack.civet.jsx
|
|
30
30
|
var rspack_civet_exports = {};
|
|
31
31
|
__export(rspack_civet_exports, {
|
|
32
32
|
default: () => rspack_civet_default
|
package/dist/unplugin/rspack.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
|
|
30
30
|
var unplugin_civet_exports = {};
|
|
31
31
|
__export(unplugin_civet_exports, {
|
|
32
32
|
default: () => unplugin_civet_default,
|
|
@@ -46,7 +46,7 @@ var import_os = __toESM(require("os"));
|
|
|
46
46
|
// source/unplugin/constants.mjs
|
|
47
47
|
var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
|
|
48
48
|
|
|
49
|
-
// unplugin-civet
|
|
49
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
|
|
50
50
|
var DiagnosticCategory = {};
|
|
51
51
|
DiagnosticCategory[DiagnosticCategory["Warning"] = 0] = "Warning";
|
|
52
52
|
DiagnosticCategory[DiagnosticCategory["Error"] = 1] = "Error";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// unplugin-civet
|
|
1
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
|
|
2
2
|
import { createUnplugin } from "unplugin";
|
|
3
3
|
import civet, { lib, SourceMap } from "@danielx/civet";
|
|
4
4
|
import { findInDir, loadConfig } from "@danielx/civet/config";
|
|
@@ -14,7 +14,7 @@ import os from "os";
|
|
|
14
14
|
// source/unplugin/constants.mjs
|
|
15
15
|
var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
|
|
16
16
|
|
|
17
|
-
// unplugin-civet
|
|
17
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
|
|
18
18
|
var DiagnosticCategory = {};
|
|
19
19
|
DiagnosticCategory[DiagnosticCategory["Warning"] = 0] = "Warning";
|
|
20
20
|
DiagnosticCategory[DiagnosticCategory["Error"] = 1] = "Error";
|
package/dist/unplugin/vite.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/vite.civet.jsx
|
|
30
30
|
var vite_civet_exports = {};
|
|
31
31
|
__export(vite_civet_exports, {
|
|
32
32
|
default: () => vite_civet_default
|
package/dist/unplugin/vite.mjs
CHANGED
package/dist/unplugin/webpack.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// unplugin-civet
|
|
29
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/webpack.civet.jsx
|
|
30
30
|
var webpack_civet_exports = {};
|
|
31
31
|
__export(webpack_civet_exports, {
|
|
32
32
|
default: () => webpack_civet_default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// unplugin-civet
|
|
1
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/unplugin/webpack.civet.jsx
|
|
2
2
|
import civetUnplugin from "./unplugin.mjs";
|
|
3
3
|
var webpack_civet_default = civetUnplugin.webpack;
|
|
4
4
|
export {
|