@squiz/render-runtime-lib 1.2.1-alpha.98 → 1.2.1-alpha.99
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/lib/index.js +145 -62
- package/lib/index.js.map +4 -4
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -1606,7 +1606,7 @@ var require_lib = __commonJS({
|
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
1608
|
});
|
|
1609
|
-
var
|
|
1609
|
+
var require_lib32 = __commonJS22({
|
|
1610
1610
|
"node_modules/pgpass/lib/index.js"(exports22, module222) {
|
|
1611
1611
|
"use strict";
|
|
1612
1612
|
var path22 = require("path");
|
|
@@ -3095,7 +3095,7 @@ var require_lib = __commonJS({
|
|
|
3095
3095
|
var util = require("util");
|
|
3096
3096
|
var utils = require_utils12();
|
|
3097
3097
|
var sasl = require_sasl();
|
|
3098
|
-
var pgPass =
|
|
3098
|
+
var pgPass = require_lib32();
|
|
3099
3099
|
var TypeOverrides = require_type_overrides();
|
|
3100
3100
|
var ConnectionParameters = require_connection_parameters();
|
|
3101
3101
|
var Query = require_query();
|
|
@@ -14586,7 +14586,7 @@ ${originalIndentation}`;
|
|
|
14586
14586
|
warn.moved(exports22, "createLogger", "Logger");
|
|
14587
14587
|
}
|
|
14588
14588
|
});
|
|
14589
|
-
var
|
|
14589
|
+
var require_lib322 = __commonJS22({
|
|
14590
14590
|
"../dx-logger-lib/lib/index.js"(exports22) {
|
|
14591
14591
|
"use strict";
|
|
14592
14592
|
var __importDefault = exports22 && exports22.__importDefault || function(mod) {
|
|
@@ -30068,13 +30068,6 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30068
30068
|
ConnectionManager: () => ConnectionManager2,
|
|
30069
30069
|
Migrator: () => Migrator,
|
|
30070
30070
|
PostgresErrorCode: () => PostgresErrorCode,
|
|
30071
|
-
assertAssign: () => assertAssign4,
|
|
30072
|
-
assertAssignWithDefaultUndefinedValue: () => assertAssignWithDefaultUndefinedValue3,
|
|
30073
|
-
assertIsDefined: () => assertIsDefined5,
|
|
30074
|
-
assertIsMapOfStringString: () => assertIsMapOfStringString3,
|
|
30075
|
-
assertIsNotAnEmptyString: () => assertIsNotAnEmptyString,
|
|
30076
|
-
assertIsObject: () => assertIsObject,
|
|
30077
|
-
assertIsString: () => assertIsString5,
|
|
30078
30071
|
getConnectionInfo: () => getConnectionInfo2
|
|
30079
30072
|
});
|
|
30080
30073
|
module22.exports = __toCommonJS22(src_exports22);
|
|
@@ -30194,7 +30187,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30194
30187
|
var import_promises4 = __toESM22(require("fs/promises"));
|
|
30195
30188
|
var import_path9 = __toESM22(require("path"));
|
|
30196
30189
|
var import_os5 = __toESM22(require("os"));
|
|
30197
|
-
var import_dx_logger_lib2 = __toESM22(
|
|
30190
|
+
var import_dx_logger_lib2 = __toESM22(require_lib322());
|
|
30198
30191
|
var MIGRATION_ADVISORY_LOCK = 4569465;
|
|
30199
30192
|
var logger = (0, import_dx_logger_lib2.getLogger)({ name: "db-migrator", meta: { pid: process.pid, hostname: import_os5.default.hostname() } });
|
|
30200
30193
|
var Migrator = class {
|
|
@@ -30643,33 +30636,56 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30643
30636
|
PostgresErrorCode2["INDEX_CORRUPTED"] = "XX002";
|
|
30644
30637
|
return PostgresErrorCode2;
|
|
30645
30638
|
})(PostgresErrorCode || {});
|
|
30646
|
-
|
|
30639
|
+
}
|
|
30640
|
+
});
|
|
30641
|
+
var require_assertIsString = __commonJS2({
|
|
30642
|
+
"../dx-common-lib/lib/assertions/assertIsString.js"(exports3) {
|
|
30643
|
+
"use strict";
|
|
30644
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30645
|
+
exports3.assertIsString = void 0;
|
|
30646
|
+
var assert_1 = require("assert");
|
|
30647
30647
|
function assertIsString5(val) {
|
|
30648
30648
|
if (typeof val !== "string") {
|
|
30649
|
-
throw new
|
|
30649
|
+
throw new assert_1.AssertionError({
|
|
30650
30650
|
actual: val,
|
|
30651
30651
|
expected: "string",
|
|
30652
30652
|
message: "value is not a string"
|
|
30653
30653
|
});
|
|
30654
30654
|
}
|
|
30655
30655
|
}
|
|
30656
|
-
|
|
30656
|
+
exports3.assertIsString = assertIsString5;
|
|
30657
|
+
}
|
|
30658
|
+
});
|
|
30659
|
+
var require_assertIsDefined = __commonJS2({
|
|
30660
|
+
"../dx-common-lib/lib/assertions/assertIsDefined.js"(exports3) {
|
|
30661
|
+
"use strict";
|
|
30662
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30663
|
+
exports3.assertIsDefined = void 0;
|
|
30664
|
+
var assert_1 = require("assert");
|
|
30657
30665
|
function assertIsDefined5(value) {
|
|
30658
30666
|
if (value === void 0 || value === null) {
|
|
30659
|
-
throw new
|
|
30667
|
+
throw new assert_1.AssertionError({ message: `Expected 'val' to be defined, but received ${value}` });
|
|
30660
30668
|
}
|
|
30661
30669
|
}
|
|
30662
|
-
|
|
30670
|
+
exports3.assertIsDefined = assertIsDefined5;
|
|
30671
|
+
}
|
|
30672
|
+
});
|
|
30673
|
+
var require_assertIsMapOfStringString = __commonJS2({
|
|
30674
|
+
"../dx-common-lib/lib/assertions/assertIsMapOfStringString.js"(exports3) {
|
|
30675
|
+
"use strict";
|
|
30676
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30677
|
+
exports3.assertIsMapOfStringString = void 0;
|
|
30678
|
+
var assert_1 = require("assert");
|
|
30663
30679
|
function assertIsMapOfStringString3(value) {
|
|
30664
30680
|
if (!value) {
|
|
30665
|
-
throw new
|
|
30681
|
+
throw new assert_1.AssertionError({
|
|
30666
30682
|
actual: value,
|
|
30667
30683
|
expected: "not null",
|
|
30668
30684
|
message: "value cannot be null or undefined"
|
|
30669
30685
|
});
|
|
30670
30686
|
}
|
|
30671
30687
|
if (typeof value !== "object") {
|
|
30672
|
-
throw new
|
|
30688
|
+
throw new assert_1.AssertionError({
|
|
30673
30689
|
actual: value,
|
|
30674
30690
|
expected: "string",
|
|
30675
30691
|
message: "value is not a string"
|
|
@@ -30677,7 +30693,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30677
30693
|
}
|
|
30678
30694
|
for (const [key, propValue] of Object.entries(value)) {
|
|
30679
30695
|
if (typeof propValue !== "string") {
|
|
30680
|
-
throw new
|
|
30696
|
+
throw new assert_1.AssertionError({
|
|
30681
30697
|
actual: typeof propValue,
|
|
30682
30698
|
expected: "string",
|
|
30683
30699
|
message: `property ${key} is not type of string`
|
|
@@ -30685,69 +30701,136 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30685
30701
|
}
|
|
30686
30702
|
}
|
|
30687
30703
|
}
|
|
30688
|
-
|
|
30704
|
+
exports3.assertIsMapOfStringString = assertIsMapOfStringString3;
|
|
30705
|
+
}
|
|
30706
|
+
});
|
|
30707
|
+
var require_assertIsObject = __commonJS2({
|
|
30708
|
+
"../dx-common-lib/lib/assertions/assertIsObject.js"(exports3) {
|
|
30709
|
+
"use strict";
|
|
30710
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30711
|
+
exports3.assertIsObject = void 0;
|
|
30712
|
+
var assert_1 = require("assert");
|
|
30689
30713
|
function assertIsObject(val) {
|
|
30690
30714
|
if (Object.prototype.toString.call(val) !== "[object Object]") {
|
|
30691
|
-
throw new
|
|
30715
|
+
throw new assert_1.AssertionError({
|
|
30692
30716
|
actual: Object.prototype.toString.call(val),
|
|
30693
30717
|
expected: "object",
|
|
30694
30718
|
message: "value is not an object"
|
|
30695
30719
|
});
|
|
30696
30720
|
}
|
|
30697
30721
|
}
|
|
30698
|
-
|
|
30722
|
+
exports3.assertIsObject = assertIsObject;
|
|
30723
|
+
}
|
|
30724
|
+
});
|
|
30725
|
+
var require_assertIsNotAnEmptyString = __commonJS2({
|
|
30726
|
+
"../dx-common-lib/lib/assertions/assertIsNotAnEmptyString.js"(exports3) {
|
|
30727
|
+
"use strict";
|
|
30728
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30729
|
+
exports3.assertIsNotAnEmptyString = void 0;
|
|
30730
|
+
var assert_1 = require("assert");
|
|
30699
30731
|
function assertIsNotAnEmptyString(val) {
|
|
30700
30732
|
if (typeof val !== "string") {
|
|
30701
|
-
throw new
|
|
30733
|
+
throw new assert_1.AssertionError({
|
|
30702
30734
|
actual: typeof val,
|
|
30703
30735
|
expected: "string",
|
|
30704
30736
|
message: "value is not a string"
|
|
30705
30737
|
});
|
|
30706
30738
|
}
|
|
30707
30739
|
if (val.trim().length === 0) {
|
|
30708
|
-
throw new
|
|
30740
|
+
throw new assert_1.AssertionError({
|
|
30709
30741
|
message: "string cannot be empty"
|
|
30710
30742
|
});
|
|
30711
30743
|
}
|
|
30712
30744
|
}
|
|
30713
|
-
|
|
30745
|
+
exports3.assertIsNotAnEmptyString = assertIsNotAnEmptyString;
|
|
30746
|
+
}
|
|
30747
|
+
});
|
|
30748
|
+
var require_assertAssign = __commonJS2({
|
|
30749
|
+
"../dx-common-lib/lib/assertions/assertAssign.js"(exports3) {
|
|
30750
|
+
"use strict";
|
|
30751
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30752
|
+
exports3.assertAssign = void 0;
|
|
30753
|
+
var assert_1 = require("assert");
|
|
30714
30754
|
function assertAssign4(value, assertionFunc, errorMessage) {
|
|
30715
30755
|
try {
|
|
30716
30756
|
assertionFunc(value);
|
|
30717
30757
|
} catch (e) {
|
|
30718
30758
|
if (errorMessage) {
|
|
30719
|
-
throw new
|
|
30759
|
+
throw new assert_1.AssertionError({ message: errorMessage });
|
|
30720
30760
|
} else {
|
|
30721
30761
|
throw e;
|
|
30722
30762
|
}
|
|
30723
30763
|
}
|
|
30724
30764
|
return value;
|
|
30725
30765
|
}
|
|
30766
|
+
exports3.assertAssign = assertAssign4;
|
|
30767
|
+
}
|
|
30768
|
+
});
|
|
30769
|
+
var require_assertAssignWithDefaultUndefinedValue = __commonJS2({
|
|
30770
|
+
"../dx-common-lib/lib/assertions/assertAssignWithDefaultUndefinedValue.js"(exports3) {
|
|
30771
|
+
"use strict";
|
|
30772
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30773
|
+
exports3.assertAssignWithDefaultUndefinedValue = void 0;
|
|
30774
|
+
var assertAssign_1 = require_assertAssign();
|
|
30726
30775
|
function assertAssignWithDefaultUndefinedValue3(value, assertionFunc, defaultValue, errorMessage) {
|
|
30727
30776
|
if (value === void 0 || value === null) {
|
|
30728
30777
|
return defaultValue;
|
|
30729
30778
|
}
|
|
30730
|
-
return
|
|
30779
|
+
return (0, assertAssign_1.assertAssign)(value, assertionFunc, errorMessage);
|
|
30731
30780
|
}
|
|
30781
|
+
exports3.assertAssignWithDefaultUndefinedValue = assertAssignWithDefaultUndefinedValue3;
|
|
30782
|
+
}
|
|
30783
|
+
});
|
|
30784
|
+
var require_lib22 = __commonJS2({
|
|
30785
|
+
"../dx-common-lib/lib/index.js"(exports3) {
|
|
30786
|
+
"use strict";
|
|
30787
|
+
var __createBinding = exports3 && exports3.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
30788
|
+
if (k2 === void 0)
|
|
30789
|
+
k2 = k;
|
|
30790
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
30791
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
30792
|
+
desc = { enumerable: true, get: function() {
|
|
30793
|
+
return m[k];
|
|
30794
|
+
} };
|
|
30795
|
+
}
|
|
30796
|
+
Object.defineProperty(o, k2, desc);
|
|
30797
|
+
} : function(o, m, k, k2) {
|
|
30798
|
+
if (k2 === void 0)
|
|
30799
|
+
k2 = k;
|
|
30800
|
+
o[k2] = m[k];
|
|
30801
|
+
});
|
|
30802
|
+
var __exportStar = exports3 && exports3.__exportStar || function(m, exports22) {
|
|
30803
|
+
for (var p in m)
|
|
30804
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports22, p))
|
|
30805
|
+
__createBinding(exports22, m, p);
|
|
30806
|
+
};
|
|
30807
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
30808
|
+
__exportStar(require_assertIsString(), exports3);
|
|
30809
|
+
__exportStar(require_assertIsDefined(), exports3);
|
|
30810
|
+
__exportStar(require_assertIsMapOfStringString(), exports3);
|
|
30811
|
+
__exportStar(require_assertIsObject(), exports3);
|
|
30812
|
+
__exportStar(require_assertIsNotAnEmptyString(), exports3);
|
|
30813
|
+
__exportStar(require_assertAssignWithDefaultUndefinedValue(), exports3);
|
|
30814
|
+
__exportStar(require_assertAssign(), exports3);
|
|
30732
30815
|
}
|
|
30733
30816
|
});
|
|
30734
30817
|
var src_exports2 = {};
|
|
30735
30818
|
__export2(src_exports2, {
|
|
30736
|
-
TransactionClient: () =>
|
|
30819
|
+
TransactionClient: () => import_db_lib6.TransactionClient,
|
|
30737
30820
|
createComponentRepositories: () => createComponentRepositories,
|
|
30738
30821
|
createConnectionManager: () => createConnectionManager2
|
|
30739
30822
|
});
|
|
30740
30823
|
module2.exports = __toCommonJS2(src_exports2);
|
|
30741
|
-
var import_db_lib2 = __toESM2(require_lib14());
|
|
30742
30824
|
var import_db_lib = __toESM2(require_lib14());
|
|
30825
|
+
var import_dx_common_lib = __toESM2(require_lib22());
|
|
30743
30826
|
var Component = class {
|
|
30744
30827
|
constructor(data) {
|
|
30745
|
-
(0,
|
|
30746
|
-
(0,
|
|
30828
|
+
(0, import_dx_common_lib.assertIsDefined)(data);
|
|
30829
|
+
(0, import_dx_common_lib.assertIsString)(data.name);
|
|
30747
30830
|
this.name = data.name;
|
|
30748
30831
|
}
|
|
30749
30832
|
};
|
|
30750
|
-
var ComponentRepository = class extends
|
|
30833
|
+
var ComponentRepository = class extends import_db_lib.AbstractRepository {
|
|
30751
30834
|
constructor(options) {
|
|
30752
30835
|
super(
|
|
30753
30836
|
options.repositories,
|
|
@@ -30774,23 +30857,23 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30774
30857
|
return comp;
|
|
30775
30858
|
}
|
|
30776
30859
|
};
|
|
30777
|
-
var
|
|
30860
|
+
var import_dx_common_lib2 = __toESM2(require_lib22());
|
|
30778
30861
|
var SEMVER_REGEX = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/;
|
|
30779
30862
|
var ComponentVersion = class {
|
|
30780
30863
|
constructor(data) {
|
|
30781
30864
|
this.componentName = "";
|
|
30782
30865
|
this.version = "";
|
|
30783
|
-
(0,
|
|
30784
|
-
this.componentName = (0,
|
|
30785
|
-
this.version = (0,
|
|
30866
|
+
(0, import_dx_common_lib2.assertIsDefined)(data);
|
|
30867
|
+
this.componentName = (0, import_dx_common_lib2.assertAssign)(data.componentName, import_dx_common_lib2.assertIsString, "this.componentName must be a string");
|
|
30868
|
+
this.version = (0, import_dx_common_lib2.assertAssign)(data.version, import_dx_common_lib2.assertIsString, "this.version must be a string");
|
|
30786
30869
|
if (SEMVER_REGEX.test(this.version) == false) {
|
|
30787
30870
|
throw new Error(`ComponentVersion.version must be in the form of semver 0.0.0`);
|
|
30788
30871
|
}
|
|
30789
30872
|
}
|
|
30790
30873
|
};
|
|
30791
|
-
var
|
|
30874
|
+
var import_db_lib2 = __toESM2(require_lib14());
|
|
30792
30875
|
var SEMVER_REGEX2 = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/;
|
|
30793
|
-
var ComponentVersionRepository = class extends
|
|
30876
|
+
var ComponentVersionRepository = class extends import_db_lib2.AbstractRepository {
|
|
30794
30877
|
constructor(ops) {
|
|
30795
30878
|
super(
|
|
30796
30879
|
ops.repositories,
|
|
@@ -30827,26 +30910,26 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30827
30910
|
return componentVersionModel;
|
|
30828
30911
|
}
|
|
30829
30912
|
};
|
|
30830
|
-
var
|
|
30913
|
+
var import_dx_common_lib3 = __toESM2(require_lib22());
|
|
30831
30914
|
var import_assert = require("assert");
|
|
30832
30915
|
var ComponentSet = class {
|
|
30833
30916
|
constructor(data) {
|
|
30834
|
-
(0,
|
|
30835
|
-
this.webPath = (0,
|
|
30836
|
-
this.displayName = (0,
|
|
30917
|
+
(0, import_dx_common_lib3.assertIsDefined)(data);
|
|
30918
|
+
this.webPath = (0, import_dx_common_lib3.assertAssign)(data.webPath, import_dx_common_lib3.assertIsString, "webPath must be a string");
|
|
30919
|
+
this.displayName = (0, import_dx_common_lib3.assertAssignWithDefaultUndefinedValue)(
|
|
30837
30920
|
data.displayName,
|
|
30838
|
-
|
|
30921
|
+
import_dx_common_lib3.assertIsString,
|
|
30839
30922
|
"",
|
|
30840
30923
|
"displayName must be a string"
|
|
30841
30924
|
);
|
|
30842
|
-
this.description = (0,
|
|
30925
|
+
this.description = (0, import_dx_common_lib3.assertAssignWithDefaultUndefinedValue)(
|
|
30843
30926
|
data.description,
|
|
30844
|
-
|
|
30927
|
+
import_dx_common_lib3.assertIsString,
|
|
30845
30928
|
"",
|
|
30846
30929
|
"description must be a string"
|
|
30847
30930
|
);
|
|
30848
|
-
this.envVars = (0,
|
|
30849
|
-
this.headers = (0,
|
|
30931
|
+
this.envVars = (0, import_dx_common_lib3.assertAssignWithDefaultUndefinedValue)(data.envVars, import_dx_common_lib3.assertIsMapOfStringString, {});
|
|
30932
|
+
this.headers = (0, import_dx_common_lib3.assertAssignWithDefaultUndefinedValue)(data.headers, import_dx_common_lib3.assertIsMapOfStringString, {});
|
|
30850
30933
|
if (this.webPath.length === 0) {
|
|
30851
30934
|
throw new import_assert.AssertionError({
|
|
30852
30935
|
message: "webPath.length must have length greater than 0"
|
|
@@ -30854,8 +30937,8 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30854
30937
|
}
|
|
30855
30938
|
}
|
|
30856
30939
|
};
|
|
30857
|
-
var
|
|
30858
|
-
var ComponentSetRepository = class extends
|
|
30940
|
+
var import_db_lib3 = __toESM2(require_lib14());
|
|
30941
|
+
var ComponentSetRepository = class extends import_db_lib3.AbstractRepository {
|
|
30859
30942
|
constructor(options) {
|
|
30860
30943
|
super(
|
|
30861
30944
|
options.repositories,
|
|
@@ -30879,25 +30962,25 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30879
30962
|
return comp != null;
|
|
30880
30963
|
}
|
|
30881
30964
|
};
|
|
30882
|
-
var
|
|
30965
|
+
var import_dx_common_lib4 = __toESM2(require_lib22());
|
|
30883
30966
|
var ComponentSetComponentVersion = class {
|
|
30884
30967
|
constructor(data) {
|
|
30885
30968
|
this.componentSetWebPath = "";
|
|
30886
30969
|
this.componentName = "";
|
|
30887
30970
|
this.componentVersion = "";
|
|
30888
|
-
(0,
|
|
30889
|
-
this.componentSetWebPath = (0,
|
|
30971
|
+
(0, import_dx_common_lib4.assertIsDefined)(data);
|
|
30972
|
+
this.componentSetWebPath = (0, import_dx_common_lib4.assertAssign)(
|
|
30890
30973
|
data.componentSetWebPath,
|
|
30891
|
-
|
|
30974
|
+
import_dx_common_lib4.assertIsString,
|
|
30892
30975
|
"componentSetWebPath must be a string"
|
|
30893
30976
|
);
|
|
30894
|
-
this.componentName = (0,
|
|
30895
|
-
this.componentVersion = (0,
|
|
30896
|
-
this.envVars = (0,
|
|
30977
|
+
this.componentName = (0, import_dx_common_lib4.assertAssign)(data.componentName, import_dx_common_lib4.assertIsString, "componentName must be a string");
|
|
30978
|
+
this.componentVersion = (0, import_dx_common_lib4.assertAssign)(data.componentVersion, import_dx_common_lib4.assertIsString, "componentVersion must be a string");
|
|
30979
|
+
this.envVars = (0, import_dx_common_lib4.assertAssignWithDefaultUndefinedValue)(data.envVars, import_dx_common_lib4.assertIsMapOfStringString, {});
|
|
30897
30980
|
}
|
|
30898
30981
|
};
|
|
30899
|
-
var
|
|
30900
|
-
var ComponentSetComponentVersionRepository = class extends
|
|
30982
|
+
var import_db_lib4 = __toESM2(require_lib14());
|
|
30983
|
+
var ComponentSetComponentVersionRepository = class extends import_db_lib4.AbstractRepository {
|
|
30901
30984
|
constructor(options) {
|
|
30902
30985
|
super(
|
|
30903
30986
|
options.repositories,
|
|
@@ -30925,7 +31008,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30925
31008
|
componentSetComponentVersion: new ComponentSetComponentVersionRepository(dbManager)
|
|
30926
31009
|
};
|
|
30927
31010
|
}
|
|
30928
|
-
var
|
|
31011
|
+
var import_db_lib5 = __toESM2(require_lib14());
|
|
30929
31012
|
var migration_list_default = [
|
|
30930
31013
|
"20220704054051_initial.sql",
|
|
30931
31014
|
"20220718172237_adding_component_sets.sql",
|
|
@@ -30933,8 +31016,8 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30933
31016
|
"20220817113300_removing_null_props_from_jsonb.sql"
|
|
30934
31017
|
];
|
|
30935
31018
|
async function createConnectionManager2(applicationName, connectionInfo, migrationDirectory) {
|
|
30936
|
-
const connection = await (0,
|
|
30937
|
-
const manager = new
|
|
31019
|
+
const connection = await (0, import_db_lib5.getConnectionInfo)(connectionInfo);
|
|
31020
|
+
const manager = new import_db_lib5.ConnectionManager(
|
|
30938
31021
|
applicationName,
|
|
30939
31022
|
connection,
|
|
30940
31023
|
migrationDirectory,
|
|
@@ -30943,7 +31026,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
30943
31026
|
);
|
|
30944
31027
|
return manager;
|
|
30945
31028
|
}
|
|
30946
|
-
var
|
|
31029
|
+
var import_db_lib6 = __toESM2(require_lib14());
|
|
30947
31030
|
}
|
|
30948
31031
|
});
|
|
30949
31032
|
|