@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.js
CHANGED
|
@@ -1222,7 +1222,7 @@ function position_at(content, index) {
|
|
|
1222
1222
|
const before = content.slice(0, index);
|
|
1223
1223
|
const line = before.split("\n").length;
|
|
1224
1224
|
const last_nl = before.lastIndexOf("\n");
|
|
1225
|
-
const col = index - (last_nl
|
|
1225
|
+
const col = index - Math.max(last_nl, 0);
|
|
1226
1226
|
return { line, col };
|
|
1227
1227
|
}
|
|
1228
1228
|
function build_patterns(esc, type) {
|
|
@@ -2458,7 +2458,7 @@ function Diagram({
|
|
|
2458
2458
|
title: "@rotorsoft/act-diagram version",
|
|
2459
2459
|
children: [
|
|
2460
2460
|
"v",
|
|
2461
|
-
"1.
|
|
2461
|
+
"1.4.0"
|
|
2462
2462
|
]
|
|
2463
2463
|
}
|
|
2464
2464
|
)
|