@rotorsoft/act-diagram 1.4.0 → 1.4.1
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/.tsbuildinfo +1 -1
- package/dist/@types/cli/contract-index.d.ts +1 -1
- package/dist/@types/cli/contract-index.d.ts.map +1 -1
- package/dist/@types/cli/format.d.ts +19 -0
- package/dist/@types/cli/format.d.ts.map +1 -1
- package/dist/@types/cli/markdown.d.ts +9 -0
- package/dist/@types/cli/markdown.d.ts.map +1 -1
- package/dist/cli/act.js +13 -61
- package/dist/cli/act.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1261,7 +1261,7 @@ function position_at(content, index) {
|
|
|
1261
1261
|
const before = content.slice(0, index);
|
|
1262
1262
|
const line = before.split("\n").length;
|
|
1263
1263
|
const last_nl = before.lastIndexOf("\n");
|
|
1264
|
-
const col = index - (last_nl
|
|
1264
|
+
const col = index - Math.max(last_nl, 0);
|
|
1265
1265
|
return { line, col };
|
|
1266
1266
|
}
|
|
1267
1267
|
function build_patterns(esc, type) {
|
|
@@ -2489,7 +2489,7 @@ function Diagram({
|
|
|
2489
2489
|
title: "@rotorsoft/act-diagram version",
|
|
2490
2490
|
children: [
|
|
2491
2491
|
"v",
|
|
2492
|
-
"1.
|
|
2492
|
+
"1.4.0"
|
|
2493
2493
|
]
|
|
2494
2494
|
}
|
|
2495
2495
|
)
|