@postgres.ai/shared 4.0.2-pr-1125 → 4.0.2-pr-1126

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postgres.ai/shared",
3
- "version": "4.0.2-pr-1125",
3
+ "version": "4.0.2-pr-1126",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "peerDependencies": {
@@ -1,7 +1,7 @@
1
1
  import { formatDatabases, formatDumpCustomOptions, getImageMajorVersion, getImageType, isSeDockerImage, } from '@postgres.ai/shared/pages/Instance/Configuration/utils';
2
2
  import { formatTuningParams } from '../endpoints/testDbSource';
3
3
  export const formatConfig = (config) => {
4
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42;
4
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45;
5
5
  const dockerImage = (_a = config.databaseContainer) === null || _a === void 0 ? void 0 : _a.dockerImage;
6
6
  return {
7
7
  debug: (_b = config.global) === null || _b === void 0 ? void 0 : _b.debug,
@@ -27,12 +27,12 @@ export const formatConfig = (config) => {
27
27
  port: (_2 = (_1 = (_0 = (_z = (_y = (_x = config.retrieval) === null || _x === void 0 ? void 0 : _x.spec) === null || _y === void 0 ? void 0 : _y.logicalDump) === null || _z === void 0 ? void 0 : _z.options) === null || _0 === void 0 ? void 0 : _0.source) === null || _1 === void 0 ? void 0 : _1.connection) === null || _2 === void 0 ? void 0 : _2.port,
28
28
  username: (_8 = (_7 = (_6 = (_5 = (_4 = (_3 = config.retrieval) === null || _3 === void 0 ? void 0 : _3.spec) === null || _4 === void 0 ? void 0 : _4.logicalDump) === null || _5 === void 0 ? void 0 : _5.options) === null || _6 === void 0 ? void 0 : _6.source) === null || _7 === void 0 ? void 0 : _7.connection) === null || _8 === void 0 ? void 0 : _8.username,
29
29
  password: (_14 = (_13 = (_12 = (_11 = (_10 = (_9 = config.retrieval) === null || _9 === void 0 ? void 0 : _9.spec) === null || _10 === void 0 ? void 0 : _10.logicalDump) === null || _11 === void 0 ? void 0 : _11.options) === null || _12 === void 0 ? void 0 : _12.source) === null || _13 === void 0 ? void 0 : _13.connection) === null || _14 === void 0 ? void 0 : _14.password,
30
- databases: formatDatabases((_18 = (_17 = (_16 = (_15 = config.retrieval) === null || _15 === void 0 ? void 0 : _15.spec) === null || _16 === void 0 ? void 0 : _16.logicalDump) === null || _17 === void 0 ? void 0 : _17.options) === null || _18 === void 0 ? void 0 : _18.databases),
31
- dumpParallelJobs: (_22 = (_21 = (_20 = (_19 = config.retrieval) === null || _19 === void 0 ? void 0 : _19.spec) === null || _20 === void 0 ? void 0 : _20.logicalDump) === null || _21 === void 0 ? void 0 : _21.options) === null || _22 === void 0 ? void 0 : _22.parallelJobs,
32
- dumpIgnoreErrors: (_26 = (_25 = (_24 = (_23 = config.retrieval) === null || _23 === void 0 ? void 0 : _23.spec) === null || _24 === void 0 ? void 0 : _24.logicalDump) === null || _25 === void 0 ? void 0 : _25.options) === null || _26 === void 0 ? void 0 : _26.ignoreErrors,
33
- restoreParallelJobs: (_30 = (_29 = (_28 = (_27 = config.retrieval) === null || _27 === void 0 ? void 0 : _27.spec) === null || _28 === void 0 ? void 0 : _28.logicalRestore) === null || _29 === void 0 ? void 0 : _29.options) === null || _30 === void 0 ? void 0 : _30.parallelJobs,
34
- restoreIgnoreErrors: (_34 = (_33 = (_32 = (_31 = config.retrieval) === null || _31 === void 0 ? void 0 : _31.spec) === null || _32 === void 0 ? void 0 : _32.logicalRestore) === null || _33 === void 0 ? void 0 : _33.options) === null || _34 === void 0 ? void 0 : _34.ignoreErrors,
35
- pgDumpCustomOptions: formatDumpCustomOptions(((_38 = (_37 = (_36 = (_35 = config.retrieval) === null || _35 === void 0 ? void 0 : _35.spec) === null || _36 === void 0 ? void 0 : _36.logicalDump) === null || _37 === void 0 ? void 0 : _37.options) === null || _38 === void 0 ? void 0 : _38.customOptions) || null),
36
- pgRestoreCustomOptions: formatDumpCustomOptions(((_42 = (_41 = (_40 = (_39 = config.retrieval) === null || _39 === void 0 ? void 0 : _39.spec) === null || _40 === void 0 ? void 0 : _40.logicalRestore) === null || _41 === void 0 ? void 0 : _41.options) === null || _42 === void 0 ? void 0 : _42.customOptions) || null),
30
+ databases: formatDatabases((_19 = (_18 = (_17 = (_16 = (_15 = config.retrieval) === null || _15 === void 0 ? void 0 : _15.spec) === null || _16 === void 0 ? void 0 : _16.logicalDump) === null || _17 === void 0 ? void 0 : _17.options) === null || _18 === void 0 ? void 0 : _18.databases) !== null && _19 !== void 0 ? _19 : null),
31
+ dumpParallelJobs: (_23 = (_22 = (_21 = (_20 = config.retrieval) === null || _20 === void 0 ? void 0 : _20.spec) === null || _21 === void 0 ? void 0 : _21.logicalDump) === null || _22 === void 0 ? void 0 : _22.options) === null || _23 === void 0 ? void 0 : _23.parallelJobs,
32
+ dumpIgnoreErrors: (_27 = (_26 = (_25 = (_24 = config.retrieval) === null || _24 === void 0 ? void 0 : _24.spec) === null || _25 === void 0 ? void 0 : _25.logicalDump) === null || _26 === void 0 ? void 0 : _26.options) === null || _27 === void 0 ? void 0 : _27.ignoreErrors,
33
+ restoreParallelJobs: (_31 = (_30 = (_29 = (_28 = config.retrieval) === null || _28 === void 0 ? void 0 : _28.spec) === null || _29 === void 0 ? void 0 : _29.logicalRestore) === null || _30 === void 0 ? void 0 : _30.options) === null || _31 === void 0 ? void 0 : _31.parallelJobs,
34
+ restoreIgnoreErrors: (_35 = (_34 = (_33 = (_32 = config.retrieval) === null || _32 === void 0 ? void 0 : _32.spec) === null || _33 === void 0 ? void 0 : _33.logicalRestore) === null || _34 === void 0 ? void 0 : _34.options) === null || _35 === void 0 ? void 0 : _35.ignoreErrors,
35
+ pgDumpCustomOptions: formatDumpCustomOptions((_40 = (_39 = (_38 = (_37 = (_36 = config.retrieval) === null || _36 === void 0 ? void 0 : _36.spec) === null || _37 === void 0 ? void 0 : _37.logicalDump) === null || _38 === void 0 ? void 0 : _38.options) === null || _39 === void 0 ? void 0 : _39.customOptions) !== null && _40 !== void 0 ? _40 : null),
36
+ pgRestoreCustomOptions: formatDumpCustomOptions((_45 = (_44 = (_43 = (_42 = (_41 = config.retrieval) === null || _41 === void 0 ? void 0 : _41.spec) === null || _42 === void 0 ? void 0 : _42.logicalRestore) === null || _43 === void 0 ? void 0 : _43.options) === null || _44 === void 0 ? void 0 : _44.customOptions) !== null && _45 !== void 0 ? _45 : null),
37
37
  };
38
38
  };