@rotorsoft/act-diagram 1.0.6 → 1.0.7
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/client/lib/mock-builders.d.ts.map +1 -1
- package/dist/cli/act.js +12 -1
- package/dist/cli/act.js.map +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-builders.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/mock-builders.ts"],"names":[],"mappings":"AAQA,4FAA4F;AAC5F,wBAAgB,YAAY,SAAK;AA2DjC,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;
|
|
1
|
+
{"version":3,"file":"mock-builders.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/mock-builders.ts"],"names":[],"mappings":"AAQA,4FAA4F;AAC5F,wBAAgB,YAAY,SAAK;AA2DjC,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;qBAgDX,GAAG;sBACJ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;EAatC;AA4DD,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,OA4CxD;AAED,wBAAgB,eAAe,CAC7B,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,OA8B/B;AAED,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,OAgEtD;AAWD,+CAA+C;AAC/C,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoB3D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmB9D"}
|
package/dist/cli/act.js
CHANGED
|
@@ -7,7 +7,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
-
|
|
10
|
+
try {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw mod = 0, e;
|
|
14
|
+
}
|
|
11
15
|
};
|
|
12
16
|
var __copyProps = (to, from, except, desc) => {
|
|
13
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -806,6 +810,13 @@ function mock_state(entry, on_build) {
|
|
|
806
810
|
};
|
|
807
811
|
},
|
|
808
812
|
snap: () => action_builder(_currentAction),
|
|
813
|
+
// Close-the-books policy methods. The diagram doesn't render the
|
|
814
|
+
// policy, but they must keep the chain alive — a real builder allows
|
|
815
|
+
// `.autocloses(...)` / `.archives(...)` between `.emit(...)` and
|
|
816
|
+
// `.build()`, so omitting them throws and silently drops the whole
|
|
817
|
+
// state from the parsed model.
|
|
818
|
+
autocloses: () => action_builder(_currentAction),
|
|
819
|
+
archives: () => action_builder(_currentAction),
|
|
809
820
|
build: () => {
|
|
810
821
|
on_build?.(info);
|
|
811
822
|
return info;
|