@danielx/civet 0.6.64 → 0.6.65
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 +10 -5
- package/dist/main.js +10 -5
- package/dist/main.mjs +10 -5
- package/package.json +1 -2
package/dist/browser.js
CHANGED
|
@@ -6348,11 +6348,15 @@ ${input.slice(result.pos)}
|
|
|
6348
6348
|
var PropertyAccess$0 = $TS($S(AccessStart, $C(TemplateLiteral, StringLiteral, IntegerLiteral)), function($skip, $loc, $0, $1, $2) {
|
|
6349
6349
|
var dot = $1;
|
|
6350
6350
|
var literal = $2;
|
|
6351
|
-
dot
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6351
|
+
if (gatherRecursive(dot, (node) => node.token === "?").length) {
|
|
6352
|
+
dot = [...dot, "["];
|
|
6353
|
+
} else {
|
|
6354
|
+
dot = replaceNodes(
|
|
6355
|
+
deepCopy(dot),
|
|
6356
|
+
(node) => node.token === ".",
|
|
6357
|
+
(node) => ({ ...node, token: "[" })
|
|
6358
|
+
);
|
|
6359
|
+
}
|
|
6356
6360
|
return {
|
|
6357
6361
|
type: "Index",
|
|
6358
6362
|
children: [
|
|
@@ -14682,6 +14686,7 @@ ${input.slice(result.pos)}
|
|
|
14682
14686
|
expressionizeTypeIf,
|
|
14683
14687
|
forRange,
|
|
14684
14688
|
gatherBindingCode,
|
|
14689
|
+
gatherRecursive,
|
|
14685
14690
|
getIndentLevel,
|
|
14686
14691
|
getTrimmingSpace,
|
|
14687
14692
|
hasAwait,
|
package/dist/main.js
CHANGED
|
@@ -6340,11 +6340,15 @@ var require_parser = __commonJS({
|
|
|
6340
6340
|
var PropertyAccess$0 = $TS($S(AccessStart, $C(TemplateLiteral, StringLiteral, IntegerLiteral)), function($skip, $loc, $0, $1, $2) {
|
|
6341
6341
|
var dot = $1;
|
|
6342
6342
|
var literal = $2;
|
|
6343
|
-
dot
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6343
|
+
if (gatherRecursive(dot, (node) => node.token === "?").length) {
|
|
6344
|
+
dot = [...dot, "["];
|
|
6345
|
+
} else {
|
|
6346
|
+
dot = replaceNodes(
|
|
6347
|
+
deepCopy(dot),
|
|
6348
|
+
(node) => node.token === ".",
|
|
6349
|
+
(node) => ({ ...node, token: "[" })
|
|
6350
|
+
);
|
|
6351
|
+
}
|
|
6348
6352
|
return {
|
|
6349
6353
|
type: "Index",
|
|
6350
6354
|
children: [
|
|
@@ -14674,6 +14678,7 @@ var require_parser = __commonJS({
|
|
|
14674
14678
|
expressionizeTypeIf,
|
|
14675
14679
|
forRange,
|
|
14676
14680
|
gatherBindingCode,
|
|
14681
|
+
gatherRecursive,
|
|
14677
14682
|
getIndentLevel,
|
|
14678
14683
|
getTrimmingSpace,
|
|
14679
14684
|
hasAwait,
|
package/dist/main.mjs
CHANGED
|
@@ -6338,11 +6338,15 @@ var require_parser = __commonJS({
|
|
|
6338
6338
|
var PropertyAccess$0 = $TS($S(AccessStart, $C(TemplateLiteral, StringLiteral, IntegerLiteral)), function($skip, $loc, $0, $1, $2) {
|
|
6339
6339
|
var dot = $1;
|
|
6340
6340
|
var literal = $2;
|
|
6341
|
-
dot
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6341
|
+
if (gatherRecursive(dot, (node) => node.token === "?").length) {
|
|
6342
|
+
dot = [...dot, "["];
|
|
6343
|
+
} else {
|
|
6344
|
+
dot = replaceNodes(
|
|
6345
|
+
deepCopy(dot),
|
|
6346
|
+
(node) => node.token === ".",
|
|
6347
|
+
(node) => ({ ...node, token: "[" })
|
|
6348
|
+
);
|
|
6349
|
+
}
|
|
6346
6350
|
return {
|
|
6347
6351
|
type: "Index",
|
|
6348
6352
|
children: [
|
|
@@ -14672,6 +14676,7 @@ var require_parser = __commonJS({
|
|
|
14672
14676
|
expressionizeTypeIf,
|
|
14673
14677
|
forRange,
|
|
14674
14678
|
gatherBindingCode,
|
|
14679
|
+
gatherRecursive,
|
|
14675
14680
|
getIndentLevel,
|
|
14676
14681
|
getTrimmingSpace,
|
|
14677
14682
|
hasAwait,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielx/civet",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.65",
|
|
5
5
|
"description": "CoffeeScript style syntax for TypeScript",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/main.mjs",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"@types/assert": "^1.5.6",
|
|
77
77
|
"@types/mocha": "^9.1.1",
|
|
78
78
|
"@types/node": "^20.5.1",
|
|
79
|
-
"axios": "^1.2.2",
|
|
80
79
|
"c8": "^7.12.0",
|
|
81
80
|
"esbuild": "0.16.17",
|
|
82
81
|
"marked": "^4.2.4",
|