@ancon/wildcat-utils 1.44.0-terminal-refactor.4 → 1.44.0-terminal-refactor.5

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.
@@ -38,10 +38,11 @@ declare class HangfirePoller {
38
38
  private waitForNetworkOnline;
39
39
  private executeWorkerRequest;
40
40
  private deleteWorker;
41
- createWorker(groupId: string, { workerId, url, headers, }: {
41
+ createWorker(groupId: string, { workerId, url, headers, onResolved, }: {
42
42
  workerId: string;
43
43
  url: string;
44
- headers: APIHeaders;
44
+ headers?: APIHeaders;
45
+ onResolved?: (forced: boolean) => void | Promise<void>;
45
46
  }): Promise<unknown>;
46
47
  /** Trigger a worker to execute immediately, ignoring busy state */
47
48
  triggerWorker(workerId: string): void;
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty;var p=(i,e,r)=>e in i?f(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r;var o=(i,e,r)=>(p(i,typeof e!="symbol"?e+"":e,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("axios"),u=require("@ancon/wildcat-types"),a=require("../error/createCodedError.js"),k=require("../error/isNotFoundError.js"),w=require("../error/serializeError.js"),W=require("../error/isErrorWithStatusCode.js"),m=require("../api/isNoContentResponse.js"),x=require("../shared/wait.js");require("../error/isCodedError.js");require("../error/isAPIError.js");class g{constructor(e){o(this,"busyWorkers",new Set);o(this,"enabledGroups",new Set);o(this,"groups",new Map);o(this,"workerByIdMap",new Map);o(this,"timer",null);o(this,"config",{pollerInterval:5e3,maxGroupsSize:50,maxWorkersSize:20,responseInterceptor:void 0,responseRejectionInterceptor:void 0,getIsNetworkOnline(){return!0},async getRequestHeaders(){return{}},debug(...e){console.log(...e)}});o(this,"axiosInstance");this.config={...this.config,...e??null},this.axiosInstance=b.create(),(this.config.responseInterceptor||this.config.responseRejectionInterceptor)&&this.axiosInstance.interceptors.response.use(this.config.responseInterceptor,this.config.responseRejectionInterceptor)}stopTimer(){this.timer!=null&&(this.config.debug("*stop timer*"),clearInterval(this.timer),this.timer=null)}startTimer(){if(this.timer!=null)throw a(new Error("Timer already started"),u.ErrorCode.GenericUnexpectedHangfireError);this.config.debug("*start timer*"),this.timer=setInterval(()=>{this.config.debug("*tick*",{busyWorkers:this.busyWorkers.size,enabledGroups:this.enabledGroups.size,groups:this.groups}),this.enabledGroups.forEach(e=>{const r=this.groups.get(e);r&&r.forEach(t=>this.executeWorkerRequest(t))}),this.groups.size<1&&this.stopTimer()},this.config.pollerInterval)}async waitForNetworkOnline(e=5){let r=0;for(;!this.config.getIsNetworkOnline()&&r<e+1;)r+=1,await x(1e3)}async executeWorkerRequest(e,r=!1){const t=r!==!0&&this.busyWorkers.has(e.workerId);this.config.debug("*executeWorkerRequest*",{workerId:e.workerId,isBusy:t,force:r}),t?this.config.debug("*executeWorkerRequest* worker is busy",e.workerId):(this.busyWorkers.add(e.workerId),await this.waitForNetworkOnline(),this.config.debug("*executeWorkerRequest* request",{isNetworkOnline:this.config.getIsNetworkOnline()}),this.axiosInstance({url:e.url,method:"get",timeout:this.config.pollerInterval,headers:{...await this.config.getRequestHeaders(),...e.headers}}).then(s=>{s&&!m(s)?(e.resolve(s),this.deleteWorker(e.groupId,e.workerId)):this.busyWorkers.delete(e.workerId)}).catch(s=>{if(W(s)){if(k(s)){this.config.debug("*executeWorkerRequest* worker is expired or invalid",e.workerId);const n=w(a(new Error("The Hangfire worker is expired or invalid"),u.ErrorCode.HangfireWorkerExpiredOrInvalid));e.reject(n)}else e.reject(s);this.deleteWorker(e.groupId,e.workerId)}else this.config.debug("*executeWorkerRequest* not an api error"),this.busyWorkers.delete(e.workerId)}))}deleteWorker(e,r){const t=this.groups.get(e);t&&(this.config.debug("*delete worker*",t.size,t),t.delete(r),this.workerByIdMap.delete(r),this.busyWorkers.delete(r),t.size<1&&(this.groups.delete(e),this.enabledGroups.delete(e),this.enabledGroups.size<1&&this.stopTimer()))}createWorker(e,{workerId:r,url:t,headers:s}){if(!this.groups.has(e)){if(this.groups.size>=this.config.maxGroupsSize){const c=a(new Error("Max number of Hangfire groups exceeded"),u.ErrorCode.GenericUnexpectedHangfireError,{count:this.groups.size});throw this.destroy(),c}this.groups.set(e,new Map)}const n=this.groups.get(e);return new Promise((c,h)=>{if(n.has(r))throw a(new Error("Duplicate Hangfire worker ID"),u.ErrorCode.GenericUnexpectedHangfireError);if(n.size>=this.config.maxWorkersSize){const d=a(new Error("Max number of Hangfire workers in group exceeded"),u.ErrorCode.GenericUnexpectedHangfireError,{groupId:e,count:n.size});throw h(d),this.destroy(),d}const l={workerId:r,groupId:e,url:t,resolve:c,reject:h,headers:s};n.set(r,l),this.workerByIdMap.set(r,l),this.enabledGroups.has(e)||this.enabledGroups.add(e),this.timer==null&&this.enabledGroups.size>0&&this.startTimer()})}triggerWorker(e){this.config.debug("*triggerWorker*");const r=this.workerByIdMap.get(e);r?this.executeWorkerRequest(r,!0):this.config.debug("*triggerWorker* worker not found",e)}triggerAllWorkers(){this.config.debug("*triggerAllWorkers*");for(const e of this.workerByIdMap.values())this.executeWorkerRequest(e)}enableWorkers(e){this.config.debug("*enable*",e),this.enabledGroups.add(e),this.groups.has(e)&&this.timer==null&&this.startTimer()}disableWorkers(e){this.config.debug("*disable*",e),this.enabledGroups.delete(e),this.enabledGroups.size<1&&this.stopTimer()}destroy(){this.config.debug("*destroy*"),this.groups.clear(),this.stopTimer()}}function y(i){return new g(i)}exports.HangfirePoller=g;exports.default=y;
1
+ "use strict";var p=Object.defineProperty;var b=(i,e,r)=>e in i?p(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r;var o=(i,e,r)=>(b(i,typeof e!="symbol"?e+"":e,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("axios"),n=require("@ancon/wildcat-types"),u=require("../error/createCodedError.js"),w=require("../error/isNotFoundError.js"),W=require("../error/serializeError.js"),m=require("../error/isErrorWithStatusCode.js"),x=require("../api/isNoContentResponse.js"),y=require("../shared/wait.js");require("../error/isCodedError.js");require("../error/isAPIError.js");class f{constructor(e){o(this,"busyWorkers",new Set);o(this,"enabledGroups",new Set);o(this,"groups",new Map);o(this,"workerByIdMap",new Map);o(this,"timer",null);o(this,"config",{pollerInterval:5e3,maxGroupsSize:50,maxWorkersSize:20,responseInterceptor:void 0,responseRejectionInterceptor:void 0,getIsNetworkOnline(){return!0},async getRequestHeaders(){return{}},debug(...e){console.log(...e)}});o(this,"axiosInstance");this.config={...this.config,...e??null},this.axiosInstance=k.create(),(this.config.responseInterceptor||this.config.responseRejectionInterceptor)&&this.axiosInstance.interceptors.response.use(this.config.responseInterceptor,this.config.responseRejectionInterceptor)}stopTimer(){this.timer!=null&&(this.config.debug("*stop timer*"),clearInterval(this.timer),this.timer=null)}startTimer(){if(this.timer!=null)throw u(new Error("Timer already started"),n.ErrorCode.GenericUnexpectedHangfireError);this.config.debug("*start timer*"),this.timer=setInterval(()=>{this.config.debug("*tick*",{busyWorkers:this.busyWorkers.size,enabledGroups:this.enabledGroups.size,groups:this.groups}),this.enabledGroups.forEach(e=>{const r=this.groups.get(e);r&&r.forEach(t=>this.executeWorkerRequest(t))}),this.groups.size<1&&this.stopTimer()},this.config.pollerInterval)}async waitForNetworkOnline(e=5){let r=0;for(;!this.config.getIsNetworkOnline()&&r<e+1;)r+=1,await y(1e3)}async executeWorkerRequest(e,r=!1){const t=r!==!0&&this.busyWorkers.has(e.workerId);this.config.debug("*executeWorkerRequest*",{workerId:e.workerId,isBusy:t,force:r}),t?this.config.debug("*executeWorkerRequest* worker is busy",e.workerId):(this.busyWorkers.add(e.workerId),await this.waitForNetworkOnline(),this.config.debug("*executeWorkerRequest* request",{isNetworkOnline:this.config.getIsNetworkOnline()}),this.axiosInstance({url:e.url,method:"get",timeout:this.config.pollerInterval,headers:{...await this.config.getRequestHeaders(),...e.headers}}).then(s=>{s&&!x(s)?(e.resolve(s),this.deleteWorker(e.groupId,e.workerId)):this.busyWorkers.delete(e.workerId)}).catch(s=>{if(m(s)){if(w(s)){this.config.debug("*executeWorkerRequest* worker is expired or invalid",e.workerId);const c=W(u(new Error("The Hangfire worker is expired or invalid"),n.ErrorCode.HangfireWorkerExpiredOrInvalid));e.reject(c)}else e.reject(s);this.deleteWorker(e.groupId,e.workerId)}else this.config.debug("*executeWorkerRequest* not an api error"),this.busyWorkers.delete(e.workerId)}))}deleteWorker(e,r){const t=this.groups.get(e);t&&(this.config.debug("*delete worker*",t.size,t),t.delete(r),this.workerByIdMap.delete(r),this.busyWorkers.delete(r),t.size<1&&(this.groups.delete(e),this.enabledGroups.delete(e),this.enabledGroups.size<1&&this.stopTimer()))}createWorker(e,{workerId:r,url:t,headers:s,onResolved:c}){if(!this.groups.has(e)){if(this.groups.size>=this.config.maxGroupsSize){const h=u(new Error("Max number of Hangfire groups exceeded"),n.ErrorCode.GenericUnexpectedHangfireError,{count:this.groups.size});throw this.destroy(),h}this.groups.set(e,new Map)}const a=this.groups.get(e);return new Promise((h,l)=>{if(a.has(r))throw u(new Error("Duplicate Hangfire worker ID"),n.ErrorCode.GenericUnexpectedHangfireError);if(a.size>=this.config.maxWorkersSize){const g=u(new Error("Max number of Hangfire workers in group exceeded"),n.ErrorCode.GenericUnexpectedHangfireError,{groupId:e,count:a.size});throw l(g),this.destroy(),g}const d={workerId:r,groupId:e,url:t,resolve:h,reject:l,headers:s,onResolved:c};a.set(r,d),this.workerByIdMap.set(r,d),this.enabledGroups.has(e)||this.enabledGroups.add(e),this.timer==null&&this.enabledGroups.size>0&&this.startTimer()})}triggerWorker(e){this.config.debug("*triggerWorker*");const r=this.workerByIdMap.get(e);r?this.executeWorkerRequest(r,!0):this.config.debug("*triggerWorker* worker not found",e)}triggerAllWorkers(){this.config.debug("*triggerAllWorkers*");for(const e of this.workerByIdMap.values())this.executeWorkerRequest(e)}enableWorkers(e){this.config.debug("*enable*",e),this.enabledGroups.add(e),this.groups.has(e)&&this.timer==null&&this.startTimer()}disableWorkers(e){this.config.debug("*disable*",e),this.enabledGroups.delete(e),this.enabledGroups.size<1&&this.stopTimer()}destroy(){this.config.debug("*destroy*"),this.groups.clear(),this.stopTimer()}}function E(i){return new f(i)}exports.HangfirePoller=f;exports.default=E;
@@ -1,17 +1,17 @@
1
- var d = Object.defineProperty;
2
- var f = (i, e, r) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r;
3
- var o = (i, e, r) => (f(i, typeof e != "symbol" ? e + "" : e, r), r);
4
- import p from "axios";
5
- import { ErrorCode as a } from "@ancon/wildcat-types";
6
- import h from "../error/createCodedError.mjs";
7
- import m from "../error/isNotFoundError.mjs";
8
- import b from "../error/serializeError.mjs";
9
- import k from "../error/isErrorWithStatusCode.mjs";
10
- import w from "../api/isNoContentResponse.mjs";
11
- import W from "../shared/wait.mjs";
1
+ var f = Object.defineProperty;
2
+ var p = (i, e, r) => e in i ? f(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r;
3
+ var o = (i, e, r) => (p(i, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import m from "axios";
5
+ import { ErrorCode as n } from "@ancon/wildcat-types";
6
+ import a from "../error/createCodedError.mjs";
7
+ import b from "../error/isNotFoundError.mjs";
8
+ import k from "../error/serializeError.mjs";
9
+ import w from "../error/isErrorWithStatusCode.mjs";
10
+ import W from "../api/isNoContentResponse.mjs";
11
+ import x from "../shared/wait.mjs";
12
12
  import "../error/isCodedError.mjs";
13
13
  import "../error/isAPIError.mjs";
14
- class x {
14
+ class y {
15
15
  constructor(e) {
16
16
  /** Workers currently executing a request */
17
17
  o(this, "busyWorkers", /* @__PURE__ */ new Set());
@@ -42,7 +42,7 @@ class x {
42
42
  this.config = {
43
43
  ...this.config,
44
44
  ...e ?? null
45
- }, this.axiosInstance = p.create(), (this.config.responseInterceptor || this.config.responseRejectionInterceptor) && this.axiosInstance.interceptors.response.use(
45
+ }, this.axiosInstance = m.create(), (this.config.responseInterceptor || this.config.responseRejectionInterceptor) && this.axiosInstance.interceptors.response.use(
46
46
  this.config.responseInterceptor,
47
47
  this.config.responseRejectionInterceptor
48
48
  );
@@ -52,9 +52,9 @@ class x {
52
52
  }
53
53
  startTimer() {
54
54
  if (this.timer != null)
55
- throw h(
55
+ throw a(
56
56
  new Error("Timer already started"),
57
- a.GenericUnexpectedHangfireError
57
+ n.GenericUnexpectedHangfireError
58
58
  );
59
59
  this.config.debug("*start timer*"), this.timer = setInterval(() => {
60
60
  this.config.debug("*tick*", {
@@ -70,7 +70,7 @@ class x {
70
70
  async waitForNetworkOnline(e = 5) {
71
71
  let r = 0;
72
72
  for (; !this.config.getIsNetworkOnline() && r < e + 1; )
73
- r += 1, await W(1e3);
73
+ r += 1, await x(1e3);
74
74
  }
75
75
  async executeWorkerRequest(e, r = !1) {
76
76
  const t = r !== !0 && this.busyWorkers.has(e.workerId);
@@ -92,21 +92,21 @@ class x {
92
92
  ...e.headers
93
93
  }
94
94
  }).then((s) => {
95
- s && !w(s) ? (e.resolve(s), this.deleteWorker(e.groupId, e.workerId)) : this.busyWorkers.delete(e.workerId);
95
+ s && !W(s) ? (e.resolve(s), this.deleteWorker(e.groupId, e.workerId)) : this.busyWorkers.delete(e.workerId);
96
96
  }).catch((s) => {
97
- if (k(s)) {
98
- if (m(s)) {
97
+ if (w(s)) {
98
+ if (b(s)) {
99
99
  this.config.debug(
100
100
  "*executeWorkerRequest* worker is expired or invalid",
101
101
  e.workerId
102
102
  );
103
- const n = b(
104
- h(
103
+ const u = k(
104
+ a(
105
105
  new Error("The Hangfire worker is expired or invalid"),
106
- a.HangfireWorkerExpiredOrInvalid
106
+ n.HangfireWorkerExpiredOrInvalid
107
107
  )
108
108
  );
109
- e.reject(n);
109
+ e.reject(u);
110
110
  } else
111
111
  e.reject(s);
112
112
  this.deleteWorker(e.groupId, e.workerId);
@@ -121,43 +121,45 @@ class x {
121
121
  createWorker(e, {
122
122
  workerId: r,
123
123
  url: t,
124
- headers: s
124
+ headers: s,
125
+ onResolved: u
125
126
  }) {
126
127
  if (!this.groups.has(e)) {
127
128
  if (this.groups.size >= this.config.maxGroupsSize) {
128
- const u = h(
129
+ const c = a(
129
130
  new Error("Max number of Hangfire groups exceeded"),
130
- a.GenericUnexpectedHangfireError,
131
+ n.GenericUnexpectedHangfireError,
131
132
  { count: this.groups.size }
132
133
  );
133
- throw this.destroy(), u;
134
+ throw this.destroy(), c;
134
135
  }
135
136
  this.groups.set(e, /* @__PURE__ */ new Map());
136
137
  }
137
- const n = this.groups.get(e);
138
- return new Promise((u, c) => {
139
- if (n.has(r))
140
- throw h(
138
+ const h = this.groups.get(e);
139
+ return new Promise((c, l) => {
140
+ if (h.has(r))
141
+ throw a(
141
142
  new Error("Duplicate Hangfire worker ID"),
142
- a.GenericUnexpectedHangfireError
143
+ n.GenericUnexpectedHangfireError
143
144
  );
144
- if (n.size >= this.config.maxWorkersSize) {
145
- const g = h(
145
+ if (h.size >= this.config.maxWorkersSize) {
146
+ const d = a(
146
147
  new Error("Max number of Hangfire workers in group exceeded"),
147
- a.GenericUnexpectedHangfireError,
148
- { groupId: e, count: n.size }
148
+ n.GenericUnexpectedHangfireError,
149
+ { groupId: e, count: h.size }
149
150
  );
150
- throw c(g), this.destroy(), g;
151
+ throw l(d), this.destroy(), d;
151
152
  }
152
- const l = {
153
+ const g = {
153
154
  workerId: r,
154
155
  groupId: e,
155
156
  url: t,
156
- resolve: u,
157
- reject: c,
158
- headers: s
157
+ resolve: c,
158
+ reject: l,
159
+ headers: s,
160
+ onResolved: u
159
161
  };
160
- n.set(r, l), this.workerByIdMap.set(r, l), this.enabledGroups.has(e) || this.enabledGroups.add(e), this.timer == null && this.enabledGroups.size > 0 && this.startTimer();
162
+ h.set(r, g), this.workerByIdMap.set(r, g), this.enabledGroups.has(e) || this.enabledGroups.add(e), this.timer == null && this.enabledGroups.size > 0 && this.startTimer();
161
163
  });
162
164
  }
163
165
  /** Trigger a worker to execute immediately, ignoring busy state */
@@ -183,10 +185,10 @@ class x {
183
185
  this.config.debug("*destroy*"), this.groups.clear(), this.stopTimer();
184
186
  }
185
187
  }
186
- function N(i) {
187
- return new x(i);
188
+ function O(i) {
189
+ return new y(i);
188
190
  }
189
191
  export {
190
- x as HangfirePoller,
191
- N as default
192
+ y as HangfirePoller,
193
+ O as default
192
194
  };
@@ -1,10 +1,22 @@
1
1
  import type { APIHeaders, APIParams, APIPostRequest, APIPutRequest } from '@ancon/wildcat-types';
2
2
  import type { AxiosResponse } from 'axios';
3
3
  import { HangfirePoller } from './createHangfirePoller';
4
+ declare type MakeHangfireRequestWorkerOptions = {
5
+ headers?: APIHeaders;
6
+ /**
7
+ * @param forced Forced indicates it was triggered by an event rather than via polling
8
+ */
9
+ onWorkerResolved?: (forced: boolean) => void | Promise<void>;
10
+ };
11
+ declare type MakeHangfireRequestOptions = {
12
+ /** Optional callback on successful init response */
13
+ onInitResponse?: () => void | Promise<void>;
14
+ workerOptions?: MakeHangfireRequestWorkerOptions;
15
+ };
4
16
  /**
5
17
  *
6
18
  * @param hangfirePoller `HangfirePoller` instance from `createHangfirePoller()`
7
19
  * @returns `makeHangfireRequest()` callback function
8
20
  */
9
- declare function createMakeHangfireRequest(hangfirePoller: HangfirePoller): <TData extends Record<string, any>, TParams extends APIParams>(request: APIPostRequest<unknown, TData, TParams> | APIPutRequest<unknown, TData, TParams>, data: TData, params: TParams, groupId: string, headers?: APIHeaders, onResponse?: () => void | Promise<void>) => Promise<AxiosResponse>;
21
+ declare function createMakeHangfireRequest(hangfirePoller: HangfirePoller): <TData extends Record<string, any>, TParams extends APIParams>(request: APIPostRequest<unknown, TData, TParams> | APIPutRequest<unknown, TData, TParams>, data: TData, params: TParams, groupId: string, options?: MakeHangfireRequestOptions) => Promise<AxiosResponse>;
10
22
  export default createMakeHangfireRequest;
@@ -1 +1 @@
1
- "use strict";const s=require("./isHangfireResponse.js");require("../api/isAcceptedResponse.js");function k(r,i){return`${r.config.baseURL??""}/${r.config.url??""}/status/${i}`}function o(r){return async function(n,c,f,g,a={},e){const t=await n(c,f,a);if(await(e==null?void 0:e()),s(t)){const u=t.data.id;return r.createWorker(g,{workerId:u,url:k(t,u),headers:a})}return t}}module.exports=o;
1
+ "use strict";const h=require("./isHangfireResponse.js");require("../api/isAcceptedResponse.js");function q(r,u){return`${r.config.baseURL??""}/${r.config.url??""}/status/${u}`}function t(r){return async function(R,n,w,l,e){var c,f,k,d;const a=await R(n,w,(c=e==null?void 0:e.workerOptions)==null?void 0:c.headers);if(await((f=e==null?void 0:e.onInitResponse)==null?void 0:f.call(e)),h(a)){const g=a.data.id;return r.createWorker(l,{workerId:g,url:q(a,g),headers:(k=e==null?void 0:e.workerOptions)==null?void 0:k.headers,onResolved:(d=e==null?void 0:e.workerOptions)==null?void 0:d.onWorkerResolved})}return a}}module.exports=t;
@@ -1,22 +1,24 @@
1
- import g from "./isHangfireResponse.mjs";
1
+ import n from "./isHangfireResponse.mjs";
2
2
  import "../api/isAcceptedResponse.mjs";
3
- function k(r, e) {
4
- return `${r.config.baseURL ?? ""}/${r.config.url ?? ""}/status/${e}`;
3
+ function t(r, u) {
4
+ return `${r.config.baseURL ?? ""}/${r.config.url ?? ""}/status/${u}`;
5
5
  }
6
- function d(r) {
7
- return async function(f, n, c, o, i = {}, a) {
8
- const t = await f(n, c, i);
9
- if (await (a == null ? void 0 : a()), g(t)) {
10
- const u = t.data.id;
11
- return r.createWorker(o, {
12
- workerId: u,
13
- url: k(t, u),
14
- headers: i
6
+ function O(r) {
7
+ return async function(g, l, w, m, e) {
8
+ var f, c, d, k;
9
+ const a = await g(l, w, (f = e == null ? void 0 : e.workerOptions) == null ? void 0 : f.headers);
10
+ if (await ((c = e == null ? void 0 : e.onInitResponse) == null ? void 0 : c.call(e)), n(a)) {
11
+ const R = a.data.id;
12
+ return r.createWorker(m, {
13
+ workerId: R,
14
+ url: t(a, R),
15
+ headers: (d = e == null ? void 0 : e.workerOptions) == null ? void 0 : d.headers,
16
+ onResolved: (k = e == null ? void 0 : e.workerOptions) == null ? void 0 : k.onWorkerResolved
15
17
  });
16
18
  }
17
- return t;
19
+ return a;
18
20
  };
19
21
  }
20
22
  export {
21
- d as default
23
+ O as default
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.44.0-terminal-refactor.4",
3
+ "version": "1.44.0-terminal-refactor.5",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",