@danielx/civet 0.10.3 → 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 +11 -0
- package/dist/babel-plugin.js +1 -1
- package/dist/babel-plugin.mjs +1 -1
- package/dist/browser.js +64 -41
- 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 +74 -44
- package/dist/main.mjs +73 -43
- package/dist/node-worker.mjs +1 -1
- package/dist/types.d.ts +2 -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 +36 -38
- package/dist/unplugin/unplugin.mjs +36 -38
- 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,17 @@ 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
|
+
|
|
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))
|
|
13
|
+
* Fix implicit returns in IIFEs with "civet -implicitReturns" [[#1737](https://github.com/DanielXMoore/Civet/pull/1737)]
|
|
14
|
+
* Typed pinned arguments such as `(^x: T) =>`; forbid implicit object literals in pinned patterns [[#1736](https://github.com/DanielXMoore/Civet/pull/1736)]
|
|
15
|
+
* Fix `outputExtension` option in unplugin, enabling `.svelte.ts`/`.svelte.js` for Svelte Runes reactive compatibility [[#1733](https://github.com/DanielXMoore/Civet/pull/1733)]
|
|
16
|
+
* Type-only class field declarations `declare field: T` [[#1741](https://github.com/DanielXMoore/Civet/pull/1741)]
|
|
17
|
+
|
|
7
18
|
## 0.10.3 (2025-04-28, [diff](https://github.com/DanielXMoore/Civet/compare/v0.10.2...v0.10.3), [commits](https://github.com/DanielXMoore/Civet/commits/v0.10.3))
|
|
8
19
|
* Explicit changelog build script shell [[#1727](https://github.com/DanielXMoore/Civet/pull/1727)]
|
|
9
20
|
* ESM loader supports civetconfig by default, and overriding configuration [[#1734](https://github.com/DanielXMoore/Civet/pull/1734)]
|
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
|
}
|
|
@@ -1164,6 +1164,8 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1164
1164
|
},
|
|
1165
1165
|
parameters,
|
|
1166
1166
|
returnType: void 0,
|
|
1167
|
+
implicitReturn: !0,
|
|
1168
|
+
// force implicit return in IIFE
|
|
1167
1169
|
children: generator.length ? [async, "function", generator, parameters] : [async, parameters]
|
|
1168
1170
|
}, fn;
|
|
1169
1171
|
generator.length ? fn = makeNode({
|
|
@@ -1236,7 +1238,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1236
1238
|
return result;
|
|
1237
1239
|
}
|
|
1238
1240
|
|
|
1239
|
-
// unplugin-civet
|
|
1241
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/traversal.civet.jsx
|
|
1240
1242
|
function gatherRecursiveWithinFunction(node, predicate) {
|
|
1241
1243
|
return gatherRecursive(node, predicate, isFunction);
|
|
1242
1244
|
}
|
|
@@ -1310,7 +1312,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1310
1312
|
return predicate(node) && nodes.push(node), nodes;
|
|
1311
1313
|
}
|
|
1312
1314
|
|
|
1313
|
-
// unplugin-civet
|
|
1315
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/ref.civet.jsx
|
|
1314
1316
|
var range = (start, end) => {
|
|
1315
1317
|
let length = end - start;
|
|
1316
1318
|
if (length <= 0) return [];
|
|
@@ -1386,7 +1388,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1386
1388
|
}
|
|
1387
1389
|
}
|
|
1388
1390
|
|
|
1389
|
-
// unplugin-civet
|
|
1391
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/binding.civet.jsx
|
|
1390
1392
|
function adjustAtBindings(statements, asThis = !1) {
|
|
1391
1393
|
for (let ref1 = gatherRecursiveAll(statements, ($1) => $1.type === "AtBindingProperty"), i1 = 0, len3 = ref1.length; i1 < len3; i1++) {
|
|
1392
1394
|
let binding = ref1[i1], { ref } = binding;
|
|
@@ -1584,12 +1586,12 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1584
1586
|
return pattern;
|
|
1585
1587
|
}
|
|
1586
1588
|
|
|
1587
|
-
// unplugin-civet
|
|
1589
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
1588
1590
|
init_browser_shim();
|
|
1589
1591
|
init_browser_shim();
|
|
1590
1592
|
init_browser_shim();
|
|
1591
1593
|
|
|
1592
|
-
// unplugin-civet
|
|
1594
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/helper.civet.jsx
|
|
1593
1595
|
var preludeVar = "var ";
|
|
1594
1596
|
function ts(children) {
|
|
1595
1597
|
return {
|
|
@@ -1925,7 +1927,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1925
1927
|
}
|
|
1926
1928
|
}
|
|
1927
1929
|
|
|
1928
|
-
// unplugin-civet
|
|
1930
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/generate.civet.jsx
|
|
1929
1931
|
function stringify(node) {
|
|
1930
1932
|
try {
|
|
1931
1933
|
return JSON.stringify(removeParentPointers(node));
|
|
@@ -1993,7 +1995,7 @@ ${body}`), super(message), this.header = header, this.body = body, this.filename
|
|
|
1993
1995
|
}
|
|
1994
1996
|
}
|
|
1995
1997
|
|
|
1996
|
-
// unplugin-civet
|
|
1998
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
1997
1999
|
function expressionizeComptime(statement) {
|
|
1998
2000
|
let { expressions } = statement.block, expression = wrapIIFE(expressions, hasAwait(expressions));
|
|
1999
2001
|
return makeNode({
|
|
@@ -2227,7 +2229,7 @@ ${js}`
|
|
|
2227
2229
|
return recurse(value);
|
|
2228
2230
|
}
|
|
2229
2231
|
|
|
2230
|
-
// unplugin-civet
|
|
2232
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/function.civet.jsx
|
|
2231
2233
|
var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
2232
2234
|
function getTypeArguments(args) {
|
|
2233
2235
|
for (; typeof args == "object" && args != null && "args" in args; )
|
|
@@ -2291,7 +2293,7 @@ ${js}`
|
|
|
2291
2293
|
}
|
|
2292
2294
|
function processReturn(f, implicitReturns) {
|
|
2293
2295
|
let { returnType } = f.signature;
|
|
2294
|
-
if (returnType && returnType.optional && convertOptionalType(returnType), !processReturnValue(f) && implicitReturns) {
|
|
2296
|
+
if (returnType && returnType.optional && convertOptionalType(returnType), !processReturnValue(f) && (implicitReturns || f.signature.implicitReturn)) {
|
|
2295
2297
|
let { signature, block } = f, { modifier, name, returnType: returnType2 } = signature, { async, generator, set } = modifier, isConstructor = f.type === "MethodDefinition" && name === "constructor", isVoid = generator || isVoidType(returnType2?.t) || async && isPromiseVoidType(returnType2?.t);
|
|
2296
2298
|
block?.type === "BlockStatement" && (isVoid || set || isConstructor ? block.bare && block.implicitlyReturned && braceBlock(block) : block.implicitlyReturned || insertReturn(block));
|
|
2297
2299
|
}
|
|
@@ -3256,7 +3258,7 @@ ${js}`
|
|
|
3256
3258
|
).length > 1 && (fn.ampersandBlock = !1), fn;
|
|
3257
3259
|
}
|
|
3258
3260
|
|
|
3259
|
-
// unplugin-civet
|
|
3261
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/block.civet.jsx
|
|
3260
3262
|
function blockWithPrefix(prefixStatements, block) {
|
|
3261
3263
|
if (prefixStatements && prefixStatements.length) {
|
|
3262
3264
|
let expressions = [...prefixStatements, ...block.expressions];
|
|
@@ -3406,7 +3408,7 @@ ${js}`
|
|
|
3406
3408
|
};
|
|
3407
3409
|
}
|
|
3408
3410
|
|
|
3409
|
-
// unplugin-civet
|
|
3411
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/op.civet.jsx
|
|
3410
3412
|
var precedenceOrder = [
|
|
3411
3413
|
["||", "??"],
|
|
3412
3414
|
["^^"],
|
|
@@ -3600,7 +3602,7 @@ ${js}`
|
|
|
3600
3602
|
}
|
|
3601
3603
|
}
|
|
3602
3604
|
|
|
3603
|
-
// unplugin-civet
|
|
3605
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pattern-matching.civet.jsx
|
|
3604
3606
|
function processPatternTest(lhs, patterns) {
|
|
3605
3607
|
let { ref, refAssignmentComma } = maybeRefAssignment(lhs, "m"), conditionExpression = flatJoin(patterns.map(($1) => getPatternConditions($1, ref)).map(($2) => flatJoin($2, " && ")), " || ");
|
|
3606
3608
|
return makeLeftHandSideExpression(makeNode({
|
|
@@ -4004,7 +4006,7 @@ ${js}`
|
|
|
4004
4006
|
}
|
|
4005
4007
|
}
|
|
4006
4008
|
|
|
4007
|
-
// unplugin-civet
|
|
4009
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/declaration.civet.jsx
|
|
4008
4010
|
function len2(arr, length) {
|
|
4009
4011
|
return arr.length === length;
|
|
4010
4012
|
}
|
|
@@ -4413,7 +4415,7 @@ ${js}`
|
|
|
4413
4415
|
return [extendsToken, insertTrimmingSpace(ws, " "), wrapped];
|
|
4414
4416
|
}
|
|
4415
4417
|
|
|
4416
|
-
// unplugin-civet
|
|
4418
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/unary.civet.jsx
|
|
4417
4419
|
function processUnaryExpression(pre, exp, post) {
|
|
4418
4420
|
if (!(pre.length || post))
|
|
4419
4421
|
return exp;
|
|
@@ -4524,7 +4526,7 @@ ${js}`
|
|
|
4524
4526
|
return processUnaryExpression(pre, args, post);
|
|
4525
4527
|
}
|
|
4526
4528
|
|
|
4527
|
-
// unplugin-civet
|
|
4529
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pipe.civet.jsx
|
|
4528
4530
|
function constructInvocation(fn, arg) {
|
|
4529
4531
|
let expr = fn.expr;
|
|
4530
4532
|
for (; expr.type === "ParenthesizedExpression"; )
|
|
@@ -4685,7 +4687,7 @@ ${js}`
|
|
|
4685
4687
|
}
|
|
4686
4688
|
}
|
|
4687
4689
|
|
|
4688
|
-
// unplugin-civet
|
|
4690
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/for.civet.jsx
|
|
4689
4691
|
function processRangeExpression(start, ws1, range2, end) {
|
|
4690
4692
|
ws1 = [ws1, range2.children[0]];
|
|
4691
4693
|
let ws2 = range2.children[1], comma = { $loc: range2.$loc, token: "," }, ref;
|
|
@@ -5008,7 +5010,7 @@ ${js}`
|
|
|
5008
5010
|
};
|
|
5009
5011
|
}
|
|
5010
5012
|
|
|
5011
|
-
// unplugin-civet
|
|
5013
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/auto-dec.civet.jsx
|
|
5012
5014
|
var concatAssign2 = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
5013
5015
|
function findDecs(statements) {
|
|
5014
5016
|
let declarationNames = gatherNodes(statements, ($) => $.type === "Declaration").flatMap((d) => d.names), globals = getConfig().globals || [];
|
|
@@ -5090,7 +5092,7 @@ ${js}`
|
|
|
5090
5092
|
scopes.pop();
|
|
5091
5093
|
}
|
|
5092
5094
|
|
|
5093
|
-
// unplugin-civet
|
|
5095
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/string.civet.jsx
|
|
5094
5096
|
function getIndentLevel(str, tab) {
|
|
5095
5097
|
if (tab != null && tab != 1) {
|
|
5096
5098
|
let tabs = str.match(/\t/g), numTabs = tabs ? tabs.length : 0;
|
|
@@ -5200,7 +5202,7 @@ ${js}`
|
|
|
5200
5202
|
return JSON.stringify(str);
|
|
5201
5203
|
}
|
|
5202
5204
|
|
|
5203
|
-
// unplugin-civet
|
|
5205
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
5204
5206
|
var xor = (a, b) => a ? !b && a : b;
|
|
5205
5207
|
function addPostfixStatement(statement, ws, post) {
|
|
5206
5208
|
let expressions = [
|
|
@@ -6644,6 +6646,7 @@ ${js}`
|
|
|
6644
6646
|
AccessModifier,
|
|
6645
6647
|
FieldDefinition,
|
|
6646
6648
|
ThisLiteral,
|
|
6649
|
+
BasicThisLiteral,
|
|
6647
6650
|
HashThis,
|
|
6648
6651
|
LengthShorthand,
|
|
6649
6652
|
AtThis,
|
|
@@ -8346,17 +8349,20 @@ ${js}`
|
|
|
8346
8349
|
function NestedClassElement(ctx, state2) {
|
|
8347
8350
|
return (0, import_lib2.$EVENT)(ctx, state2, "NestedClassElement", NestedClassElement$0);
|
|
8348
8351
|
}
|
|
8349
|
-
var ClassElement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))), ClassElementDefinition), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
8350
|
-
var decorators = $1, definition = $
|
|
8352
|
+
var ClassElement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), (0, import_lib2.$E)((0, import_lib2.$S)(Declare, (0, import_lib2.$E)(_))), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))), ClassElementDefinition), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
8353
|
+
var decorators = $1, declare = $2, access = $3, static_ = $4, override = $5, definition = $6;
|
|
8354
|
+
let ts2 = definition.ts || !!declare;
|
|
8351
8355
|
return definition.type === "MultiMethodDefinition" ? {
|
|
8352
8356
|
...definition,
|
|
8357
|
+
ts: ts2,
|
|
8353
8358
|
children: definition.children.map((c) => ({
|
|
8354
8359
|
...c,
|
|
8355
|
-
children: [decorators, ...c.children]
|
|
8360
|
+
children: [decorators, declare, access, static_, override, ...c.children]
|
|
8356
8361
|
}))
|
|
8357
8362
|
} : {
|
|
8358
8363
|
...definition,
|
|
8359
|
-
|
|
8364
|
+
ts: ts2,
|
|
8365
|
+
children: [decorators, declare, access, static_, override, ...definition.children]
|
|
8360
8366
|
};
|
|
8361
8367
|
}), ClassElement$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Static, BracedBlock), function($skip, $loc, $0, $1, $2) {
|
|
8362
8368
|
return {
|
|
@@ -8470,9 +8476,7 @@ ${js}`
|
|
|
8470
8476
|
function FieldDefinition(ctx, state2) {
|
|
8471
8477
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "FieldDefinition", FieldDefinition$$);
|
|
8472
8478
|
}
|
|
8473
|
-
var ThisLiteral$0 = (0, import_lib2.$
|
|
8474
|
-
return { type: "Identifier", name: "this", children: [value[0]] };
|
|
8475
|
-
}), 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) {
|
|
8476
8480
|
var at = $1, id = $2;
|
|
8477
8481
|
return {
|
|
8478
8482
|
type: "MemberExpression",
|
|
@@ -8489,10 +8493,16 @@ ${js}`
|
|
|
8489
8493
|
}],
|
|
8490
8494
|
thisShorthand: !0
|
|
8491
8495
|
};
|
|
8492
|
-
}), ThisLiteral$
|
|
8496
|
+
}), ThisLiteral$2 = BasicThisLiteral, ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2];
|
|
8493
8497
|
function ThisLiteral(ctx, state2) {
|
|
8494
8498
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ThisLiteral", ThisLiteral$$);
|
|
8495
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
|
+
}
|
|
8496
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) {
|
|
8497
8507
|
var at = $1, id = $2, beforeIn = $3;
|
|
8498
8508
|
return beforeIn != null && at == null ? ['"', id.name, '"'] : {
|
|
@@ -8523,7 +8533,7 @@ ${js}`
|
|
|
8523
8533
|
function HashThis(ctx, state2) {
|
|
8524
8534
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HashThis", HashThis$$);
|
|
8525
8535
|
}
|
|
8526
|
-
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) {
|
|
8527
8537
|
let id = "length";
|
|
8528
8538
|
return {
|
|
8529
8539
|
type: "Identifier",
|
|
@@ -9088,35 +9098,42 @@ ${js}`
|
|
|
9088
9098
|
function AtIdentifierRef(ctx, state2) {
|
|
9089
9099
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "AtIdentifierRef", AtIdentifierRef$$);
|
|
9090
9100
|
}
|
|
9091
|
-
var PinPattern$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret,
|
|
9101
|
+
var PinPattern$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret, IdentifierName, (0, import_lib2.$Y)(Colon)), function($skip, $loc, $0, $1, $2, $3) {
|
|
9092
9102
|
var expression = $2;
|
|
9093
9103
|
return {
|
|
9094
9104
|
type: "PinPattern",
|
|
9095
9105
|
children: [expression],
|
|
9096
9106
|
expression
|
|
9097
9107
|
};
|
|
9098
|
-
}), PinPattern$1 = (0, import_lib2.$
|
|
9108
|
+
}), PinPattern$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret, SingleLineExpressionWithIndentedApplicationForbidden), function($skip, $loc, $0, $1, $2) {
|
|
9109
|
+
var expression = $2;
|
|
9110
|
+
return {
|
|
9111
|
+
type: "PinPattern",
|
|
9112
|
+
children: [expression],
|
|
9113
|
+
expression
|
|
9114
|
+
};
|
|
9115
|
+
}), PinPattern$2 = (0, import_lib2.$TV)(ActualMemberExpression, function($skip, $loc, $0, $1) {
|
|
9099
9116
|
var expression = $0;
|
|
9100
9117
|
return {
|
|
9101
9118
|
type: "PinPattern",
|
|
9102
9119
|
children: [expression],
|
|
9103
9120
|
expression
|
|
9104
9121
|
};
|
|
9105
|
-
}), PinPattern$
|
|
9122
|
+
}), PinPattern$3 = (0, import_lib2.$TV)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R14, "PinPattern /[+-]/"), NumericLiteral), function($skip, $loc, $0, $1) {
|
|
9106
9123
|
var expression = $0;
|
|
9107
9124
|
return {
|
|
9108
9125
|
type: "PinPattern",
|
|
9109
9126
|
children: [expression],
|
|
9110
9127
|
expression
|
|
9111
9128
|
};
|
|
9112
|
-
}), PinPattern$
|
|
9129
|
+
}), PinPattern$4 = (0, import_lib2.$TV)(Undefined, function($skip, $loc, $0, $1) {
|
|
9113
9130
|
var expression = $0;
|
|
9114
9131
|
return {
|
|
9115
9132
|
type: "PinPattern",
|
|
9116
9133
|
children: [expression],
|
|
9117
9134
|
expression
|
|
9118
9135
|
};
|
|
9119
|
-
}), PinPattern$$ = [PinPattern$0, PinPattern$1, PinPattern$2, PinPattern$3];
|
|
9136
|
+
}), PinPattern$$ = [PinPattern$0, PinPattern$1, PinPattern$2, PinPattern$3, PinPattern$4];
|
|
9120
9137
|
function PinPattern(ctx, state2) {
|
|
9121
9138
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "PinPattern", PinPattern$$);
|
|
9122
9139
|
}
|
|
@@ -15030,7 +15047,13 @@ ${js}`
|
|
|
15030
15047
|
raw: [$2.name, ...$3.map(([dot, id]) => dot.token + id.name)].join(""),
|
|
15031
15048
|
args
|
|
15032
15049
|
};
|
|
15033
|
-
}), 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];
|
|
15034
15057
|
function TypeIdentifier(ctx, state2) {
|
|
15035
15058
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeIdentifier", TypeIdentifier$$);
|
|
15036
15059
|
}
|
|
@@ -16102,7 +16125,7 @@ ${js}`
|
|
|
16102
16125
|
"unscopables"
|
|
16103
16126
|
];
|
|
16104
16127
|
|
|
16105
|
-
// unplugin-civet
|
|
16128
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/sourcemap.civet.jsx
|
|
16106
16129
|
var sourcemap_civet_exports = {};
|
|
16107
16130
|
__export(sourcemap_civet_exports, {
|
|
16108
16131
|
SourceMap: () => SourceMap,
|
|
@@ -16271,7 +16294,7 @@ ${js}`
|
|
|
16271
16294
|
return [lastMapping[2], lastMapping[3]];
|
|
16272
16295
|
};
|
|
16273
16296
|
|
|
16274
|
-
// unplugin-civet
|
|
16297
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/state-cache.civet.jsx
|
|
16275
16298
|
var StateCache = class {
|
|
16276
16299
|
cache = /* @__PURE__ */ new Map();
|
|
16277
16300
|
get(key) {
|
|
@@ -16294,7 +16317,7 @@ ${js}`
|
|
|
16294
16317
|
}
|
|
16295
16318
|
};
|
|
16296
16319
|
|
|
16297
|
-
// unplugin-civet
|
|
16320
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
16298
16321
|
var { SourceMap: SourceMap2 } = sourcemap_civet_exports;
|
|
16299
16322
|
var ParseErrors = class extends Error {
|
|
16300
16323
|
name = "ParseErrors";
|
|
@@ -16444,7 +16467,7 @@ ${counts}`;
|
|
|
16444
16467
|
return err instanceof import_lib2.ParseError || err instanceof ParseErrors;
|
|
16445
16468
|
};
|
|
16446
16469
|
|
|
16447
|
-
// unplugin-civet
|
|
16470
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/browser.civet.jsx
|
|
16448
16471
|
async function runScripts(type = "text/civet") {
|
|
16449
16472
|
let scripts = window.document.querySelectorAll(`script[type=${JSON.stringify(type)}]`);
|
|
16450
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