@rotorsoft/act 1.14.0 → 1.15.0
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/act.d.ts +34 -15
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
- package/dist/@types/internal/autoclose-config.d.ts +44 -11
- package/dist/@types/internal/autoclose-config.d.ts.map +1 -1
- package/dist/@types/internal/autoclose-cycle.d.ts +11 -6
- package/dist/@types/internal/autoclose-cycle.d.ts.map +1 -1
- package/dist/@types/internal/close-cycle.d.ts +14 -0
- package/dist/@types/internal/close-cycle.d.ts.map +1 -1
- package/dist/@types/internal/index.d.ts +1 -1
- package/dist/@types/internal/index.d.ts.map +1 -1
- package/dist/@types/types/ports.d.ts +49 -0
- package/dist/@types/types/ports.d.ts.map +1 -1
- package/dist/{chunk-QKVY5QAQ.js → chunk-DBQT3ALY.js} +21 -2
- package/dist/{chunk-QKVY5QAQ.js.map → chunk-DBQT3ALY.js.map} +1 -1
- package/dist/{chunk-5WRI5ZAA.js → chunk-YLJ4XMA6.js} +6 -2
- package/dist/{dist-INXH4GUE.js → dist-EOG547W7.js} +2 -2
- package/dist/index.cjs +139 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +120 -63
- package/dist/index.js.map +1 -1
- package/dist/{magic-string.es-ZGO77SPS.js → magic-string.es-5F2IVYTG.js} +2 -2
- package/dist/test/index.cjs +27 -4
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +4 -4
- package/dist/test/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +2 -2
- /package/dist/{chunk-5WRI5ZAA.js.map → chunk-YLJ4XMA6.js.map} +0 -0
- /package/dist/{dist-INXH4GUE.js.map → dist-EOG547W7.js.map} +0 -0
- /package/dist/{magic-string.es-ZGO77SPS.js.map → magic-string.es-5F2IVYTG.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-YLJ4XMA6.js";
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
4
4
|
var comma = ",".charCodeAt(0);
|
|
@@ -1306,4 +1306,4 @@ export {
|
|
|
1306
1306
|
SourceMap,
|
|
1307
1307
|
MagicString as default
|
|
1308
1308
|
};
|
|
1309
|
-
//# sourceMappingURL=magic-string.es-
|
|
1309
|
+
//# sourceMappingURL=magic-string.es-5F2IVYTG.js.map
|
package/dist/test/index.cjs
CHANGED
|
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
|
@@ -3831,7 +3835,7 @@ function manageArtifactAttachment(attachment) {
|
|
|
3831
3835
|
}
|
|
3832
3836
|
}
|
|
3833
3837
|
|
|
3834
|
-
// ../../node_modules/.pnpm/vite@8.0.16_@types+node@25.9.3_esbuild@0.
|
|
3838
|
+
// ../../node_modules/.pnpm/vite@8.0.16_@types+node@25.9.3_esbuild@0.28.1_jiti@2.6.1_terser@5.46.1_tsx@4.22.4_yaml@2.9.0/node_modules/vite/dist/node/module-runner.js
|
|
3835
3839
|
var SOURCEMAPPING_URL = "sourceMa";
|
|
3836
3840
|
SOURCEMAPPING_URL += "ppingURL";
|
|
3837
3841
|
var isWindows = typeof process < "u" && process.platform === "win32";
|
|
@@ -3877,7 +3881,7 @@ var envProxy = new Proxy({}, { get(_, p) {
|
|
|
3877
3881
|
throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(p)}" instead.`);
|
|
3878
3882
|
} });
|
|
3879
3883
|
|
|
3880
|
-
// ../../node_modules/.pnpm/vitest@4.1.9_@types+node@25.9.3_@vitest+coverage-v8@4.1.9_vite@8.0.16_@types+node@25.9.
|
|
3884
|
+
// ../../node_modules/.pnpm/vitest@4.1.9_@types+node@25.9.3_@vitest+coverage-v8@4.1.9_vite@8.0.16_@types+node@25.9._3ec353710343e931d089d3126ed7ff33/node_modules/vitest/dist/index.js
|
|
3881
3885
|
var import_expect_type = __toESM(require_dist(), 1);
|
|
3882
3886
|
|
|
3883
3887
|
// src/internal/lru-map.ts
|
|
@@ -4850,8 +4854,18 @@ var InMemoryStore = class {
|
|
|
4850
4854
|
const limit = query?.limit ?? 100;
|
|
4851
4855
|
const after = query?.after;
|
|
4852
4856
|
const blocked = query?.blocked;
|
|
4857
|
+
const source_matches = query?.source_matches;
|
|
4853
4858
|
const stream_re = query?.stream && !query.stream_exact ? new RegExp(query.stream) : void 0;
|
|
4854
4859
|
const source_re = query?.source && !query.source_exact ? new RegExp(query.source) : void 0;
|
|
4860
|
+
const reverse_cache = /* @__PURE__ */ new Map();
|
|
4861
|
+
const reverse_match = (source) => {
|
|
4862
|
+
let re = reverse_cache.get(source);
|
|
4863
|
+
if (!re) {
|
|
4864
|
+
re = new RegExp(source);
|
|
4865
|
+
reverse_cache.set(source, re);
|
|
4866
|
+
}
|
|
4867
|
+
return source_matches.some((name) => re.test(name));
|
|
4868
|
+
};
|
|
4855
4869
|
const sorted = [...this._streams.values()].sort(
|
|
4856
4870
|
(a, b2) => a.stream.localeCompare(b2.stream)
|
|
4857
4871
|
);
|
|
@@ -4867,6 +4881,9 @@ var InMemoryStore = class {
|
|
|
4867
4881
|
if (query.source_exact ? s.source !== query.source : !source_re.test(s.source))
|
|
4868
4882
|
continue;
|
|
4869
4883
|
}
|
|
4884
|
+
if (source_matches !== void 0) {
|
|
4885
|
+
if (s.source && !reverse_match(s.source)) continue;
|
|
4886
|
+
}
|
|
4870
4887
|
if (blocked !== void 0 && s.blocked !== blocked) continue;
|
|
4871
4888
|
if (query?.lane !== void 0 && s.lane !== query.lane) continue;
|
|
4872
4889
|
callback({
|
|
@@ -4909,6 +4926,8 @@ var InMemoryStore = class {
|
|
|
4909
4926
|
const want_count = options?.count ?? false;
|
|
4910
4927
|
const want_names = options?.names ?? false;
|
|
4911
4928
|
const before = options?.before;
|
|
4929
|
+
const after = options?.after;
|
|
4930
|
+
const limit = options?.limit;
|
|
4912
4931
|
const array_targets = Array.isArray(input) ? new Set(input) : null;
|
|
4913
4932
|
const filter = Array.isArray(input) ? null : input;
|
|
4914
4933
|
const stream_re = filter?.stream && !filter.stream_exact ? new RegExp(filter.stream) : void 0;
|
|
@@ -4947,13 +4966,17 @@ var InMemoryStore = class {
|
|
|
4947
4966
|
a.names[n] = (a.names[n] ?? 0) + 1;
|
|
4948
4967
|
}
|
|
4949
4968
|
}
|
|
4969
|
+
const ordered = [...acc.keys()].sort((x, y2) => x.localeCompare(y2));
|
|
4950
4970
|
const out = /* @__PURE__ */ new Map();
|
|
4951
|
-
for (const
|
|
4971
|
+
for (const stream of ordered) {
|
|
4972
|
+
if (after !== void 0 && stream <= after) continue;
|
|
4973
|
+
const a = acc.get(stream);
|
|
4952
4974
|
const stats = { head: a.head };
|
|
4953
4975
|
if (want_tail) stats.tail = a.tail;
|
|
4954
4976
|
if (want_count) stats.count = a.count;
|
|
4955
4977
|
if (want_names) stats.names = a.names;
|
|
4956
4978
|
out.set(stream, stats);
|
|
4979
|
+
if (limit !== void 0 && out.size >= limit) break;
|
|
4957
4980
|
}
|
|
4958
4981
|
return out;
|
|
4959
4982
|
}
|