lakutata 2.0.7 → 2.0.9

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/com/docker.d.ts CHANGED
@@ -3056,6 +3056,22 @@ declare class ContainerSettingOptions extends DTO {
3056
3056
  * Kernel capabilities
3057
3057
  */
3058
3058
  capabilities?: ContainerCapability[];
3059
+ /**
3060
+ * Cgroup to use for the container.
3061
+ */
3062
+ cgroup?: string;
3063
+ /**
3064
+ * Path to cgroups under which the container's cgroup is created.
3065
+ * If the path is not absolute, the path is considered to be relative to the cgroups path of the init process.
3066
+ * Cgroups are created if they do not already exist.
3067
+ */
3068
+ cgroupParent?: string;
3069
+ /**
3070
+ * Set the PID (Process) Namespace mode for the container. It can be either:
3071
+ * "container:<name|id>": joins another container's PID namespace
3072
+ * "host": use the host's PID namespace inside the container
3073
+ */
3074
+ pidMode?: string;
3059
3075
  }
3060
3076
 
3061
3077
  type ContainerState = {
@@ -3353,6 +3369,9 @@ declare class DockerContainer extends Provider {
3353
3369
  binds: ContainerBind[];
3354
3370
  devices: ContainerDevice[];
3355
3371
  networks: ContainerNetwork[];
3372
+ cgroup: string | undefined;
3373
+ cgroupParent: string | undefined;
3374
+ pidMode: string | undefined;
3356
3375
  createdAt: Time;
3357
3376
  /**
3358
3377
  * Initializer
package/orm.mjs CHANGED
@@ -2,11 +2,11 @@ import "./vendor/Package.4.mjs";
2
2
 
3
3
  import { g as e } from "./vendor/Package.5.mjs";
4
4
 
5
- import { r, F as a, b as c, c as d, O, P as _, B as b, d as P, R as E, D as R, e as B } from "./vendor/Package.14.mjs";
5
+ import { r, F as a, c, d, O as f, P as O, B as _, f as b, R as P, D as E, e as R } from "./vendor/Package.14.mjs";
6
6
 
7
- export { A as AbstractLogger, w as AdvancedConsoleLogger, i as Brackets, f as ConnectionOptionsReader, o as DefaultNamingStrategy, g as DeleteQueryBuilder, l as DeleteResult, z as EntityMetadata, y as FileLogger, t as FindOperator, v as FindOptionsUtils, s as In, I as InsertQueryBuilder, j as InsertResult, p as InstanceChecker, M as Migration, n as MigrationExecutor, J as MongoRepository, Z as MssqlParameter, Q as QueryBuilder, m as QueryResult, h as RelationQueryBuilder, G as Repository, S as SelectQueryBuilder, x as SimpleConsoleLogger, Y as Table, K as TableCheck, L as TableColumn, N as TableExclusion, V as TableForeignKey, W as TableIndex, X as TableUnique, H as TreeRepository, T as TreeRepositoryUtils, U as UpdateQueryBuilder, k as UpdateResult, q as getFromContainer, u as useContainer } from "./vendor/Package.14.mjs";
7
+ export { A as AbstractLogger, w as AdvancedConsoleLogger, i as Brackets, C as ConnectionOptionsReader, o as DefaultNamingStrategy, g as DeleteQueryBuilder, l as DeleteResult, z as EntityMetadata, y as FileLogger, t as FindOperator, v as FindOptionsUtils, s as In, I as InsertQueryBuilder, j as InsertResult, p as InstanceChecker, M as Migration, n as MigrationExecutor, J as MongoRepository, Z as MssqlParameter, Q as QueryBuilder, m as QueryResult, h as RelationQueryBuilder, G as Repository, S as SelectQueryBuilder, x as SimpleConsoleLogger, Y as Table, K as TableCheck, L as TableColumn, N as TableExclusion, V as TableForeignKey, W as TableIndex, X as TableUnique, H as TreeRepository, T as TreeRepositoryUtils, U as UpdateQueryBuilder, k as UpdateResult, q as getFromContainer, u as useContainer } from "./vendor/Package.14.mjs";
8
8
 
9
- import { D as F } from "./vendor/Package.15.mjs";
9
+ import { D as B } from "./vendor/Package.15.mjs";
10
10
 
11
11
  import "./vendor/Package.8.mjs";
12
12
 
@@ -50,9 +50,9 @@ import "./vendor/Package.73.mjs";
50
50
 
51
51
  import "fs/promises";
52
52
 
53
- var C = r();
53
+ var F = r();
54
54
 
55
- const D = e(C);
55
+ const D = e(F);
56
56
 
57
57
  var $ = {};
58
58
 
@@ -194,15 +194,15 @@ function ge(e) {
194
194
 
195
195
  me = Oe.Any = ge;
196
196
 
197
- var be = {};
197
+ var he = {};
198
198
 
199
199
  "use strict";
200
200
 
201
- Object.defineProperty(be, "__esModule", {
201
+ Object.defineProperty(he, "__esModule", {
202
202
  value: true
203
203
  });
204
204
 
205
- var he = be.ArrayContainedBy = void 0;
205
+ var be = he.ArrayContainedBy = void 0;
206
206
 
207
207
  const je = a;
208
208
 
@@ -210,7 +210,7 @@ function Pe(e) {
210
210
  return new je.FindOperator("arrayContainedBy", e);
211
211
  }
212
212
 
213
- he = be.ArrayContainedBy = Pe;
213
+ be = he.ArrayContainedBy = Pe;
214
214
 
215
215
  var Me = {};
216
216
 
@@ -443,21 +443,21 @@ var _t = mt.Not = void 0;
443
443
 
444
444
  const gt = a;
445
445
 
446
- function bt(e) {
446
+ function ht(e) {
447
447
  return new gt.FindOperator("not", e);
448
448
  }
449
449
 
450
- _t = mt.Not = bt;
450
+ _t = mt.Not = ht;
451
451
 
452
- var ht = {};
452
+ var bt = {};
453
453
 
454
454
  "use strict";
455
455
 
456
- Object.defineProperty(ht, "__esModule", {
456
+ Object.defineProperty(bt, "__esModule", {
457
457
  value: true
458
458
  });
459
459
 
460
- var jt = ht.Raw = void 0;
460
+ var jt = bt.Raw = void 0;
461
461
 
462
462
  const Pt = a;
463
463
 
@@ -468,7 +468,7 @@ function Mt(e, t) {
468
468
  return new Pt.FindOperator("raw", [], true, true, e, t);
469
469
  }
470
470
 
471
- jt = ht.Raw = Mt;
471
+ jt = bt.Raw = Mt;
472
472
 
473
473
  var Et = {};
474
474
 
@@ -602,7 +602,7 @@ Object.defineProperty(zt, "__esModule", {
602
602
 
603
603
  var Zt = zt.BaseEntity = void 0;
604
604
 
605
- const Jt = O;
605
+ const Jt = f;
606
606
 
607
607
  class BaseEntity {
608
608
  hasId() {
@@ -950,7 +950,7 @@ var or = ar.BSON = void 0;
950
950
  return t.serialize;
951
951
  }
952
952
  });
953
- const r = _;
953
+ const r = O;
954
954
  })(nr);
955
955
 
956
956
  const ir = e(nr);
@@ -989,7 +989,7 @@ Object.defineProperty(lr, "__esModule", {
989
989
 
990
990
  var yr = lr.NotBrackets = void 0;
991
991
 
992
- const pr = b;
992
+ const pr = _;
993
993
 
994
994
  class NotBrackets extends pr.Brackets {
995
995
  constructor() {
@@ -1000,7 +1000,7 @@ class NotBrackets extends pr.Brackets {
1000
1000
 
1001
1001
  yr = lr.NotBrackets = NotBrackets;
1002
1002
 
1003
- var vr = P();
1003
+ var vr = b();
1004
1004
 
1005
1005
  const fr = e(vr);
1006
1006
 
@@ -1014,11 +1014,11 @@ Object.defineProperty(Or, "__esModule", {
1014
1014
 
1015
1015
  var mr = Or.LegacyOracleNamingStrategy = void 0;
1016
1016
 
1017
- const _r = E;
1017
+ const _r = P;
1018
1018
 
1019
- const gr = R;
1019
+ const gr = E;
1020
1020
 
1021
- const br = B;
1021
+ const hr = R;
1022
1022
 
1023
1023
  class LegacyOracleNamingStrategy extends gr.DefaultNamingStrategy {
1024
1024
  constructor(e = "hash") {
@@ -1034,12 +1034,12 @@ class LegacyOracleNamingStrategy extends gr.DefaultNamingStrategy {
1034
1034
  } else if (this.shortenStrategy === "hash") {
1035
1035
  return this.hashIdentifier(s, this.DEFAULT_COLUMN_PREFIX);
1036
1036
  } else {
1037
- throw new br.TypeORMError(`Invalid shortenStrategy`);
1037
+ throw new hr.TypeORMError(`Invalid shortenStrategy`);
1038
1038
  }
1039
1039
  }
1040
1040
  hashIdentifier(e, t) {
1041
1041
  if (t.length >= this.IDENTIFIER_MAX_SIZE) {
1042
- throw new br.TypeORMError(`Prefix must be shorter than IDENTIFIER_MAX_SIZE`);
1042
+ throw new hr.TypeORMError(`Prefix must be shorter than IDENTIFIER_MAX_SIZE`);
1043
1043
  }
1044
1044
  return t + _r.RandomGenerator.sha1(e).substring(0, this.IDENTIFIER_MAX_SIZE - t.length);
1045
1045
  }
@@ -1054,15 +1054,15 @@ class LegacyOracleNamingStrategy extends gr.DefaultNamingStrategy {
1054
1054
 
1055
1055
  mr = Or.LegacyOracleNamingStrategy = LegacyOracleNamingStrategy;
1056
1056
 
1057
- var hr = {};
1057
+ var br = {};
1058
1058
 
1059
1059
  "use strict";
1060
1060
 
1061
- Object.defineProperty(hr, "__esModule", {
1061
+ Object.defineProperty(br, "__esModule", {
1062
1062
  value: true
1063
1063
  });
1064
1064
 
1065
- var jr = hr.EntitySchema = void 0;
1065
+ var jr = br.EntitySchema = void 0;
1066
1066
 
1067
1067
  class EntitySchema {
1068
1068
  constructor(e) {
@@ -1071,7 +1071,7 @@ class EntitySchema {
1071
1071
  }
1072
1072
  }
1073
1073
 
1074
- jr = hr.EntitySchema = EntitySchema;
1074
+ jr = br.EntitySchema = EntitySchema;
1075
1075
 
1076
1076
  var Pr = {};
1077
1077
 
@@ -1101,8 +1101,8 @@ class EntitySchemaOptions {}
1101
1101
 
1102
1102
  Rr = Er.EntitySchemaOptions = EntitySchemaOptions;
1103
1103
 
1104
- const Br = F.DataSource;
1104
+ const Br = B.DataSource;
1105
1105
 
1106
1106
  const Ir = vr.MongoEntityManager;
1107
1107
 
1108
- export { pe as And, me as Any, he as ArrayContainedBy, Ee as ArrayContains, Se as ArrayOverlap, Zt as BaseEntity, we as Between, Br as DataSource, jr as EntitySchema, Mr as EntitySchemaEmbeddedColumnOptions, Rr as EntitySchemaOptions, xe as Equal, De as EqualOperator, rt as ILike, Ke as IsNull, Rt as JsonContains, mr as LegacyOracleNamingStrategy, Ge as LessThan, Ye as LessThanOrEqual, ot as Like, Ir as MongoEntityManager, dt as MoreThan, vt as MoreThanOrEqual, _t as Not, yr as NotBrackets, jt as Raw };
1108
+ export { pe as And, me as Any, be as ArrayContainedBy, Ee as ArrayContains, Se as ArrayOverlap, Zt as BaseEntity, we as Between, Br as DataSource, jr as EntitySchema, Mr as EntitySchemaEmbeddedColumnOptions, Rr as EntitySchemaOptions, xe as Equal, De as EqualOperator, rt as ILike, Ke as IsNull, Rt as JsonContains, mr as LegacyOracleNamingStrategy, Ge as LessThan, Ye as LessThanOrEqual, ot as Like, Ir as MongoEntityManager, dt as MoreThan, vt as MoreThanOrEqual, _t as Not, yr as NotBrackets, jt as Raw };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -299,9 +299,9 @@ function A() {
299
299
 
300
300
  var F = typeof process !== "undefined" && typeof process.nextTick === "function" ? process.nextTick.bind(process) : A();
301
301
 
302
- const B = x.getDefaultExportFromCjs(F);
302
+ const M = x.getDefaultExportFromCjs(F);
303
303
 
304
- var M = class FixedFIFO {
304
+ var B = class FixedFIFO {
305
305
  constructor(e) {
306
306
  if (!(e > 0) || (e - 1 & e) !== 0) throw new Error("Max size for a FixedFIFO should be a power of two");
307
307
  this.buffer = new Array(e);
@@ -336,9 +336,9 @@ var M = class FixedFIFO {
336
336
  }
337
337
  };
338
338
 
339
- const z = x.getDefaultExportFromCjs(M);
339
+ const z = x.getDefaultExportFromCjs(B);
340
340
 
341
- const R = M;
341
+ const R = B;
342
342
 
343
343
  var W = class FastFIFO {
344
344
  constructor(e) {
@@ -479,9 +479,9 @@ const Ae = 8 << 18;
479
479
 
480
480
  const Fe = 16 << 18;
481
481
 
482
- const Be = 32 << 18;
482
+ const Me = 32 << 18;
483
483
 
484
- const Me = 64 << 18;
484
+ const Be = 64 << 18;
485
485
 
486
486
  const ze = 128 << 18;
487
487
 
@@ -507,7 +507,7 @@ const Ye = re | Ee;
507
507
 
508
508
  const Xe = J ^ Ye;
509
509
 
510
- const Qe = de | Be;
510
+ const Qe = de | Me;
511
511
 
512
512
  const Ze = Q | Z | X;
513
513
 
@@ -537,7 +537,7 @@ const ht = Ze | ue | de;
537
537
 
538
538
  const dt = ie | et | pe | ne;
539
539
 
540
- const pt = et | We | Be;
540
+ const pt = et | We | Me;
541
541
 
542
542
  const ft = Ae | Fe;
543
543
 
@@ -551,9 +551,9 @@ const bt = Ne | Ee;
551
551
 
552
552
  const yt = Ee | Re;
553
553
 
554
- const xt = et | We | _t | Be;
554
+ const xt = et | We | _t | Me;
555
555
 
556
- const St = Fe | Ze | We | Be;
556
+ const St = Fe | Ze | We | Me;
557
557
 
558
558
  const kt = Le | et | ze | Ne;
559
559
 
@@ -574,7 +574,7 @@ class WritableState {
574
574
  this.afterUpdateNextTick = Ot.bind(this);
575
575
  }
576
576
  get ended() {
577
- return (this.stream._duplexState & Be) !== 0;
577
+ return (this.stream._duplexState & Me) !== 0;
578
578
  }
579
579
  push(e) {
580
580
  if (this.map !== null) e = this.map(e);
@@ -851,7 +851,7 @@ function jt(e) {
851
851
  const t = this.stream;
852
852
  if (e) t.destroy(e);
853
853
  if ((t._duplexState & Ze) === 0) {
854
- t._duplexState |= Be;
854
+ t._duplexState |= Me;
855
855
  t.emit("finish");
856
856
  }
857
857
  if ((t._duplexState & tt) === Qe) {
@@ -883,7 +883,7 @@ function Pt(e) {
883
883
  if (this.drains !== null) Tt(this.drains);
884
884
  if ((t._duplexState & mt) === Fe) {
885
885
  t._duplexState &= Ve;
886
- if ((t._duplexState & Me) === Me) {
886
+ if ((t._duplexState & Be) === Be) {
887
887
  t.emit("drain");
888
888
  }
889
889
  }
@@ -955,7 +955,7 @@ function Lt(e) {
955
955
  }
956
956
  if (this._writableState !== null) {
957
957
  if (e === "drain") {
958
- this._duplexState |= Me;
958
+ this._duplexState |= Be;
959
959
  this._writableState.updateNextTick();
960
960
  }
961
961
  }
@@ -1020,7 +1020,7 @@ class Stream extends H {
1020
1020
  let Nt = class Readable extends Stream {
1021
1021
  constructor(e) {
1022
1022
  super(e);
1023
- this._duplexState |= Y | Be | _e;
1023
+ this._duplexState |= Y | Me | _e;
1024
1024
  this._readableState = new ReadableState(this, e);
1025
1025
  if (e) {
1026
1026
  if (this._readableState.readAhead === false) this._duplexState &= Te;
@@ -1292,14 +1292,14 @@ function Ft(e, t) {
1292
1292
  r(null);
1293
1293
  }
1294
1294
 
1295
- function Bt(...e) {
1296
- return new Promise(((t, r) => Mt(...e, (e => {
1295
+ function Mt(...e) {
1296
+ return new Promise(((t, r) => Bt(...e, (e => {
1297
1297
  if (e) return r(e);
1298
1298
  t();
1299
1299
  }))));
1300
1300
  }
1301
1301
 
1302
- function Mt(e, ...t) {
1302
+ function Bt(e, ...t) {
1303
1303
  const r = Array.isArray(e) ? [ ...e, ...t ] : [ e, ...t ];
1304
1304
  const i = r.length && typeof r[r.length - 1] === "function" ? r.pop() : null;
1305
1305
  if (r.length < 2) throw new Error("Pipeline requires at least 2 streams");
@@ -1384,8 +1384,8 @@ function Gt(e) {
1384
1384
  }
1385
1385
 
1386
1386
  var Jt = {
1387
- pipeline: Mt,
1388
- pipelinePromise: Bt,
1387
+ pipeline: Bt,
1388
+ pipelinePromise: Mt,
1389
1389
  isStream: zt,
1390
1390
  isStreamx: Rt,
1391
1391
  getStreamError: Wt,
@@ -1570,9 +1570,9 @@ const Ar = Ir.from([ 32, 0 ]);
1570
1570
 
1571
1571
  const Fr = 4095;
1572
1572
 
1573
- const Br = 257;
1573
+ const Mr = 257;
1574
1574
 
1575
- const Mr = 263;
1575
+ const Br = 263;
1576
1576
 
1577
1577
  var zr = vr.decodeLongPath = function e(t, r) {
1578
1578
  return ii(t, 0, t.length, r);
@@ -1629,8 +1629,8 @@ var Ur = vr.encode = function e(t) {
1629
1629
  Ir.write(r, Qr(t.mtime.getTime() / 1e3 | 0, 11), 136);
1630
1630
  r[156] = Cr + Jr(t.type);
1631
1631
  if (t.linkname) Ir.write(r, t.linkname, 157);
1632
- Ir.copy(Er, r, Br);
1633
- Ir.copy(Lr, r, Mr);
1632
+ Ir.copy(Er, r, Mr);
1633
+ Ir.copy(Lr, r, Br);
1634
1634
  if (t.uname) Ir.write(r, t.uname, 265);
1635
1635
  if (t.gname) Ir.write(r, t.gname, 297);
1636
1636
  Ir.write(r, Qr(t.devmajor || 0, 6), 329);
@@ -1683,11 +1683,11 @@ var Hr = vr.decode = function e(t, r, i) {
1683
1683
  };
1684
1684
 
1685
1685
  function Kr(e) {
1686
- return Ir.equals(Er, e.subarray(Br, Br + 6));
1686
+ return Ir.equals(Er, e.subarray(Mr, Mr + 6));
1687
1687
  }
1688
1688
 
1689
1689
  function Vr(e) {
1690
- return Ir.equals(Nr, e.subarray(Br, Br + 6)) && Ir.equals(Ar, e.subarray(Mr, Mr + 2));
1690
+ return Ir.equals(Nr, e.subarray(Mr, Mr + 6)) && Ir.equals(Ar, e.subarray(Br, Br + 2));
1691
1691
  }
1692
1692
 
1693
1693
  function $r(e, t, r) {
@@ -2762,7 +2762,9 @@ exports.Docker = class Docker extends t.Component {
2762
2762
  Binds: s,
2763
2763
  Devices: a,
2764
2764
  CapAdd: r.capabilities,
2765
- Init: true
2765
+ Cgroup: r.cgroup,
2766
+ CgroupParent: r.cgroupParent,
2767
+ PidMode: r.pidMode
2766
2768
  },
2767
2769
  NetworkingConfig: {
2768
2770
  EndpointsConfig: o
@@ -2758,7 +2758,9 @@ let qr = class Docker extends i {
2758
2758
  Binds: s,
2759
2759
  Devices: a,
2760
2760
  CapAdd: i.capabilities,
2761
- Init: true
2761
+ Cgroup: i.cgroup,
2762
+ CgroupParent: i.cgroupParent,
2763
+ PidMode: i.pidMode
2762
2764
  },
2763
2765
  NetworkingConfig: {
2764
2766
  EndpointsConfig: o
@@ -12,9 +12,9 @@ const r = require("../../../decorators/di/Lifetime.cjs");
12
12
 
13
13
  const i = require("../../../decorators/di/Configurable.cjs");
14
14
 
15
- const n = require("../../../../vendor/Package.2.cjs");
15
+ const o = require("../../../../vendor/Package.2.cjs");
16
16
 
17
- const o = require("../../../lib/helpers/IsAbortError.cjs");
17
+ const n = require("../../../lib/helpers/IsAbortError.cjs");
18
18
 
19
19
  const s = require("../../../lib/core/Time.cjs");
20
20
 
@@ -50,9 +50,9 @@ const j = require("../options/container/ContainerExecOptions.cjs");
50
50
 
51
51
  const _ = require("../options/container/ContainerExportDirectoryOptions.cjs");
52
52
 
53
- const w = require("stream/promises");
53
+ const P = require("stream/promises");
54
54
 
55
- const P = require("node:fs");
55
+ const w = require("node:fs");
56
56
 
57
57
  require("../../../../vendor/Package.3.cjs");
58
58
 
@@ -290,7 +290,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
290
290
  if (e.ipv6) r.push(`[${e.ipv6}]`);
291
291
  }));
292
292
  const i = [];
293
- const n = new Map;
293
+ const o = new Map;
294
294
  this.image.config.ports?.forEach((e => {
295
295
  r.forEach((t => {
296
296
  const r = [];
@@ -298,50 +298,50 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
298
298
  if (e.udp) r.push("udp");
299
299
  r.forEach((r => {
300
300
  const i = `${t}_${e.port}_${r}`;
301
- if (!n.has(i)) n.set(i, []);
301
+ if (!o.has(i)) o.set(i, []);
302
302
  }));
303
303
  }));
304
304
  }));
305
305
  if (e.NetworkSettings.Ports) {
306
306
  Object.keys(e.NetworkSettings.Ports).forEach((t => {
307
307
  const i = t.split("/");
308
- const o = parseInt(i[0]);
308
+ const n = parseInt(i[0]);
309
309
  const s = a.As(i[1].toLowerCase());
310
310
  e.NetworkSettings.Ports[t]?.forEach((e => {
311
311
  r.forEach((t => {
312
- const r = `${t}_${o}_${s}`;
313
- if (!n.has(r)) n.set(r, []);
314
- const i = n.get(r);
312
+ const r = `${t}_${n}_${s}`;
313
+ if (!o.has(r)) o.set(r, []);
314
+ const i = o.get(r);
315
315
  i.push(parseInt(e.HostPort));
316
- n.set(r, i);
316
+ o.set(r, i);
317
317
  }));
318
318
  }));
319
319
  }));
320
320
  }
321
- n.forEach(((e, t) => {
321
+ o.forEach(((e, t) => {
322
322
  const r = t.split("_");
323
- const n = r[0];
324
- const o = parseInt(r[1]);
323
+ const o = r[0];
324
+ const n = parseInt(r[1]);
325
325
  const s = a.As(r[2]);
326
326
  i.push({
327
- host: n,
328
- port: o,
327
+ host: o,
328
+ port: n,
329
329
  type: s,
330
330
  hostPorts: e
331
331
  });
332
332
  }));
333
333
  this.ports = i;
334
- const o = [];
334
+ const n = [];
335
335
  e.Mounts.forEach((e => {
336
336
  if (e.Type === "bind") {
337
- o.push({
337
+ n.push({
338
338
  hostPath: e.Source,
339
339
  containerPath: e.Destination,
340
340
  rw: e.RW
341
341
  });
342
342
  }
343
343
  }));
344
- this.binds = o;
344
+ this.binds = n;
345
345
  this.devices = e.HostConfig.Devices ? a.As(e.HostConfig.Devices).map((e => ({
346
346
  hostPath: e.PathOnHost,
347
347
  containerPath: e.PathInContainer,
@@ -350,6 +350,9 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
350
350
  this.memoryLimit = e.HostConfig.Memory ? e.HostConfig.Memory : 0;
351
351
  this.privileged = !!e.HostConfig.Privileged;
352
352
  this.restartPolicy = e.HostConfig.RestartPolicy?.Name ? a.As(e.HostConfig.RestartPolicy.Name) : "";
353
+ this.cgroup = e.HostConfig.Cgroup;
354
+ this.cgroupParent = e.HostConfig.CgroupParent;
355
+ this.pidMode = e.HostConfig.PidMode;
353
356
  const c = e.HostConfig.CpusetCpus ? e.HostConfig.CpusetCpus : "";
354
357
  const p = c.split(",");
355
358
  const u = p.map((e => {
@@ -371,7 +374,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
371
374
  this.env = h.ParseEnvToRecord(e.Config.Env);
372
375
  this.capabilities = e.HostConfig.CapAdd ? e.HostConfig.CapAdd : [];
373
376
  } catch (e) {
374
- if (!o.IsAbortError(e)) throw e;
377
+ if (!n.IsAbortError(e)) throw e;
375
378
  }
376
379
  }
377
380
  async start() {
@@ -381,7 +384,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
381
384
  });
382
385
  await this.syncContainerInfo();
383
386
  } catch (e) {
384
- if (!o.IsAbortError(e)) throw e;
387
+ if (!n.IsAbortError(e)) throw e;
385
388
  }
386
389
  }
387
390
  async stop(e) {
@@ -395,7 +398,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
395
398
  await this.#t.stop(t);
396
399
  await this.syncContainerInfo();
397
400
  } catch (e) {
398
- if (!o.IsAbortError(e)) throw e;
401
+ if (!n.IsAbortError(e)) throw e;
399
402
  }
400
403
  }
401
404
  async pause() {
@@ -417,7 +420,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
417
420
  await this.#t.restart(t);
418
421
  await this.syncContainerInfo();
419
422
  } catch (e) {
420
- if (!o.IsAbortError(e)) throw e;
423
+ if (!n.IsAbortError(e)) throw e;
421
424
  }
422
425
  }
423
426
  async remove(e) {
@@ -451,6 +454,9 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
451
454
  networks: this.networks,
452
455
  OOMKillDisable: this.OOMKillDisable,
453
456
  capabilities: this.capabilities,
457
+ cgroup: this.cgroup,
458
+ cgroupParent: this.cgroupParent,
459
+ pidMode: this.pidMode,
454
460
  ...e
455
461
  });
456
462
  this.id = r.id;
@@ -525,11 +531,11 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
525
531
  Detach: false
526
532
  }, ((t, i) => {
527
533
  if (t) return r(t);
528
- let n = Buffer.from([]);
529
- if (!i) return e(n.toString());
534
+ let o = Buffer.from([]);
535
+ if (!i) return e(o.toString());
530
536
  i.on("data", (e => {
531
- n = Buffer.from(new Uint8Array([ ...new Uint8Array(n), ...new Uint8Array(e) ]));
532
- })).once("close", (() => e(n.toString()))).once("error", (e => r(e)));
537
+ o = Buffer.from(new Uint8Array([ ...new Uint8Array(o), ...new Uint8Array(e) ]));
538
+ })).once("close", (() => e(o.toString()))).once("error", (e => r(e)));
533
539
  }));
534
540
  }));
535
541
  }
@@ -542,16 +548,16 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
542
548
  const t = await this.#t.getArchive({
543
549
  path: e.path
544
550
  });
545
- const r = typeof e.destination === "string" ? P.createWriteStream(e.destination) : e.destination;
546
- await w.pipeline(t, r);
551
+ const r = typeof e.destination === "string" ? w.createWriteStream(e.destination) : e.destination;
552
+ await P.pipeline(t, r);
547
553
  }
548
554
  };
549
555
 
550
- e.__decorate([ i.Configurable(n.DTO.Function()), e.__metadata("design:type", Function) ], exports.DockerContainer.prototype, "getDockerode", void 0);
556
+ e.__decorate([ i.Configurable(o.DTO.Function()), e.__metadata("design:type", Function) ], exports.DockerContainer.prototype, "getDockerode", void 0);
551
557
 
552
- e.__decorate([ i.Configurable(n.DTO.Function()), e.__metadata("design:type", Function) ], exports.DockerContainer.prototype, "getDocker", void 0);
558
+ e.__decorate([ i.Configurable(o.DTO.Function()), e.__metadata("design:type", Function) ], exports.DockerContainer.prototype, "getDocker", void 0);
553
559
 
554
- e.__decorate([ i.Configurable(n.DTO.String()), e.__metadata("design:type", String) ], exports.DockerContainer.prototype, "id", void 0);
560
+ e.__decorate([ i.Configurable(o.DTO.String()), e.__metadata("design:type", String) ], exports.DockerContainer.prototype, "id", void 0);
555
561
 
556
562
  e.__decorate([ c.Accept(p.ContainerStopOptions.optional()), e.__metadata("design:type", Function), e.__metadata("design:paramtypes", [ p.ContainerStopOptions ]), e.__metadata("design:returntype", Promise) ], exports.DockerContainer.prototype, "stop", null);
557
563
 
@@ -344,6 +344,9 @@ let S = class DockerContainer extends e {
344
344
  this.memoryLimit = t.HostConfig.Memory ? t.HostConfig.Memory : 0;
345
345
  this.privileged = !!t.HostConfig.Privileged;
346
346
  this.restartPolicy = t.HostConfig.RestartPolicy?.Name ? p(t.HostConfig.RestartPolicy.Name) : "";
347
+ this.cgroup = t.HostConfig.Cgroup;
348
+ this.cgroupParent = t.HostConfig.CgroupParent;
349
+ this.pidMode = t.HostConfig.PidMode;
347
350
  const n = t.HostConfig.CpusetCpus ? t.HostConfig.CpusetCpus : "";
348
351
  const m = n.split(",");
349
352
  const c = m.map((t => {
@@ -445,6 +448,9 @@ let S = class DockerContainer extends e {
445
448
  networks: this.networks,
446
449
  OOMKillDisable: this.OOMKillDisable,
447
450
  capabilities: this.capabilities,
451
+ cgroup: this.cgroup,
452
+ cgroupParent: this.cgroupParent,
453
+ pidMode: this.pidMode,
448
454
  ...t
449
455
  });
450
456
  this.id = e.id;
@@ -114,4 +114,10 @@ e.__decorate([ r.Expect(t.DTO.Boolean().optional()), e.__metadata("design:type",
114
114
 
115
115
  e.__decorate([ r.Expect(t.DTO.Array(t.DTO.String().valid(...Object.values(i.ContainerCapability))).optional().default([])), e.__metadata("design:type", Array) ], ContainerSettingOptions.prototype, "capabilities", void 0);
116
116
 
117
+ e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "cgroup", void 0);
118
+
119
+ e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "cgroupParent", void 0);
120
+
121
+ e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "pidMode", void 0);
122
+
117
123
  exports.ContainerSettingOptions = ContainerSettingOptions;
@@ -108,4 +108,10 @@ t([ e(i.Boolean().optional()), o("design:type", Boolean) ], ContainerSettingOpti
108
108
 
109
109
  t([ e(i.Array(i.String().valid(...Object.values(r))).optional().default([])), o("design:type", Array) ], ContainerSettingOptions.prototype, "capabilities", void 0);
110
110
 
111
+ t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "cgroup", void 0);
112
+
113
+ t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "cgroupParent", void 0);
114
+
115
+ t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "pidMode", void 0);
116
+
111
117
  export { ContainerSettingOptions };
@@ -162,6 +162,6 @@ require("node:http");
162
162
 
163
163
  exports.Controller = class Controller extends r.Provider {};
164
164
 
165
- e.__decorate([ n.Configurable(a.DTO.Alternatives(c.CLIContext.Schema(), s.HTTPContext.Schema(), o.ServiceContext.Schema()).required()), e.__metadata("design:type", Object) ], exports.Controller.prototype, "context", void 0);
165
+ e.__decorate([ n.Configurable(a.DTO.Alternatives(c.CLIContext.Schema().raw(true), s.HTTPContext.Schema().raw(true), o.ServiceContext.Schema().raw(true)).raw(true).required()), e.__metadata("design:type", Object) ], exports.Controller.prototype, "context", void 0);
166
166
 
167
167
  exports.Controller = e.__decorate([ t.Scoped(true), i.DefineObjectType(i.ObjectType.Controller) ], exports.Controller);
@@ -156,7 +156,7 @@ import "node:http";
156
156
 
157
157
  let c = class Controller extends e {};
158
158
 
159
- t([ a(l.Alternatives(s.Schema(), p.Schema(), n.Schema()).required()), o("design:type", Object) ], c.prototype, "context", void 0);
159
+ t([ a(l.Alternatives(s.Schema().raw(true), p.Schema().raw(true), n.Schema().raw(true)).raw(true).required()), o("design:type", Object) ], c.prototype, "context", void 0);
160
160
 
161
161
  c = t([ m(true), i(r.Controller) ], c);
162
162
 
@@ -1,6 +1,6 @@
1
1
  import "../../../vendor/Package.5.mjs";
2
2
 
3
- import { r as e, C as t } from "../../../vendor/Package.14.mjs";
3
+ import { r as e, a as t } from "../../../vendor/Package.14.mjs";
4
4
 
5
5
  import "../../../vendor/Package.8.mjs";
6
6
 
@@ -56,7 +56,7 @@ var o = r.Column = void 0;
56
56
 
57
57
  const a = e();
58
58
 
59
- const i = t;
59
+ const i = t();
60
60
 
61
61
  function n(e, t) {
62
62
  return function(r, o) {
@@ -1,6 +1,6 @@
1
1
  import "../../../vendor/Package.5.mjs";
2
2
 
3
- import { r as e, C as r, a as t } from "../../../vendor/Package.14.mjs";
3
+ import { r as e, a as r, b as t } from "../../../vendor/Package.14.mjs";
4
4
 
5
5
  import "../../../vendor/Package.8.mjs";
6
6
 
@@ -56,7 +56,7 @@ var a = o.PrimaryColumn = void 0;
56
56
 
57
57
  const i = e();
58
58
 
59
- const m = r;
59
+ const m = r();
60
60
 
61
61
  const n = t();
62
62
 
@@ -29620,24 +29620,26 @@ function bE() {
29620
29620
 
29621
29621
  var NE = {};
29622
29622
 
29623
- "use strict";
29624
-
29625
- Object.defineProperty(NE, "__esModule", {
29626
- value: true
29627
- });
29623
+ var CE;
29628
29624
 
29629
- var CE = NE.ColumnTypeUndefinedError = void 0;
29630
-
29631
- const AE = pp;
29632
-
29633
- class ColumnTypeUndefinedError extends AE.TypeORMError {
29634
- constructor(e, t) {
29635
- super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
29636
- }
29625
+ function AE() {
29626
+ if (CE) return NE;
29627
+ CE = 1;
29628
+ "use strict";
29629
+ Object.defineProperty(NE, "__esModule", {
29630
+ value: true
29631
+ });
29632
+ NE.ColumnTypeUndefinedError = void 0;
29633
+ const e = pp;
29634
+ let t = class ColumnTypeUndefinedError extends e.TypeORMError {
29635
+ constructor(e, t) {
29636
+ super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
29637
+ }
29638
+ };
29639
+ NE.ColumnTypeUndefinedError = t;
29640
+ return NE;
29637
29641
  }
29638
29642
 
29639
- CE = NE.ColumnTypeUndefinedError = ColumnTypeUndefinedError;
29640
-
29641
29643
  var RE = {};
29642
29644
 
29643
29645
  var OE;
@@ -29808,7 +29810,7 @@ function $E() {
29808
29810
  t.__exportStar(EE(), e);
29809
29811
  t.__exportStar(TE(), e);
29810
29812
  t.__exportStar(bE(), e);
29811
- t.__exportStar(NE, e);
29813
+ t.__exportStar(AE(), e);
29812
29814
  t.__exportStar(vE(), e);
29813
29815
  t.__exportStar(IE, e);
29814
29816
  t.__exportStar(PE(), e);
@@ -72363,4 +72365,4 @@ function cF() {
72363
72365
  return S;
72364
72366
  }
72365
72367
 
72366
- export { EB as A, wg as B, NE as C, mb as D, iU as E, Lg as F, EN as G, NN as H, iy as I, fN as J, wb as K, Sb as L, Qb as M, Lb as N, ah as O, O as P, Vg as Q, pb as R, iS as S, bN as T, VS as U, Ab as V, Nb as W, Ib as X, Pb as Y, Hb as Z, rF as _, Ah as a, TA as b, kN as c, CA as d, dp as e, xf as f, rT as g, Ay as h, Dg as i, ty as j, PS as k, aT as l, XA as m, Yb as n, _b as o, sh as p, Ok as q, cF as r, $g as s, kg as t, Dk as u, tS as v, SB as w, gB as x, AB as y, _C as z };
72368
+ export { EB as A, wg as B, xf as C, mb as D, iU as E, Lg as F, EN as G, NN as H, iy as I, fN as J, wb as K, Sb as L, Qb as M, Lb as N, ah as O, O as P, Vg as Q, pb as R, iS as S, bN as T, VS as U, Ab as V, Nb as W, Ib as X, Pb as Y, Hb as Z, rF as _, AE as a, Ah as b, TA as c, kN as d, dp as e, CA as f, rT as g, Ay as h, Dg as i, ty as j, PS as k, aT as l, XA as m, Yb as n, _b as o, sh as p, Ok as q, cF as r, $g as s, kg as t, Dk as u, tS as v, SB as w, gB as x, AB as y, _C as z };