drizzle-kit 0.21.4-b5744a6 → 0.22.0-12a1bf8
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +853 -360
- package/index.d.mts +5 -3
- package/index.d.ts +5 -3
- package/package.json +4 -4
- package/payload.d.mts +96 -10
- package/payload.d.ts +96 -10
- package/payload.js +2142 -1183
- package/payload.mjs +2236 -1270
- package/utils-studio.js +175 -23
- package/utils-studio.mjs +175 -23
- package/utils.js +89 -8
- package/utils.mjs +89 -8
package/bin.cjs
CHANGED
@@ -1456,7 +1456,7 @@ var init_global = __esm({
|
|
1456
1456
|
"src/global.ts"() {
|
1457
1457
|
"use strict";
|
1458
1458
|
originUUID = "00000000-0000-0000-0000-000000000000";
|
1459
|
-
snapshotVersion = "
|
1459
|
+
snapshotVersion = "7";
|
1460
1460
|
mapValues = (obj, map) => {
|
1461
1461
|
const result = Object.keys(obj).reduce(function(result2, key) {
|
1462
1462
|
result2[key] = map(obj[key]);
|
@@ -5658,7 +5658,7 @@ var init_mysqlSchema = __esm({
|
|
5658
5658
|
});
|
5659
5659
|
|
5660
5660
|
// src/serializer/pgSchema.ts
|
5661
|
-
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, index2, fk2, column2, tableV32, compositePK2, uniqueConstraint2, tableV42, table2, schemaHash2, kitInternals2, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaExternal, pgSchemaInternal, tableSquashed2, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg;
|
5661
|
+
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2, indexV4, indexV5, indexV6, fk2, column2, tableV32, compositePK2, uniqueConstraint2, tableV42, tableV6, tableV5, table2, schemaHash2, kitInternals2, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternal, tableSquashed2, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg;
|
5662
5662
|
var init_pgSchema = __esm({
|
5663
5663
|
"src/serializer/pgSchema.ts"() {
|
5664
5664
|
"use strict";
|
@@ -5726,10 +5726,48 @@ var init_pgSchema = __esm({
|
|
5726
5726
|
tables: recordType(stringType(), tableV1),
|
5727
5727
|
enums: recordType(stringType(), enumSchemaV1)
|
5728
5728
|
}).strict();
|
5729
|
+
indexColumn = objectType({
|
5730
|
+
expression: stringType(),
|
5731
|
+
isExpression: booleanType(),
|
5732
|
+
asc: booleanType(),
|
5733
|
+
nulls: stringType().optional(),
|
5734
|
+
opclass: stringType().optional()
|
5735
|
+
});
|
5729
5736
|
index2 = objectType({
|
5737
|
+
name: stringType(),
|
5738
|
+
columns: indexColumn.array(),
|
5739
|
+
isUnique: booleanType(),
|
5740
|
+
with: recordType(stringType(), anyType()).optional(),
|
5741
|
+
method: stringType().default("btree"),
|
5742
|
+
where: stringType().optional(),
|
5743
|
+
concurrently: booleanType().default(false)
|
5744
|
+
}).strict();
|
5745
|
+
indexV4 = objectType({
|
5730
5746
|
name: stringType(),
|
5731
5747
|
columns: stringType().array(),
|
5732
|
-
isUnique: booleanType()
|
5748
|
+
isUnique: booleanType(),
|
5749
|
+
with: recordType(stringType(), stringType()).optional(),
|
5750
|
+
method: stringType().default("btree"),
|
5751
|
+
where: stringType().optional(),
|
5752
|
+
concurrently: booleanType().default(false)
|
5753
|
+
}).strict();
|
5754
|
+
indexV5 = objectType({
|
5755
|
+
name: stringType(),
|
5756
|
+
columns: stringType().array(),
|
5757
|
+
isUnique: booleanType(),
|
5758
|
+
with: recordType(stringType(), stringType()).optional(),
|
5759
|
+
method: stringType().default("btree"),
|
5760
|
+
where: stringType().optional(),
|
5761
|
+
concurrently: booleanType().default(false)
|
5762
|
+
}).strict();
|
5763
|
+
indexV6 = objectType({
|
5764
|
+
name: stringType(),
|
5765
|
+
columns: stringType().array(),
|
5766
|
+
isUnique: booleanType(),
|
5767
|
+
with: recordType(stringType(), stringType()).optional(),
|
5768
|
+
method: stringType().default("btree"),
|
5769
|
+
where: stringType().optional(),
|
5770
|
+
concurrently: booleanType().default(false)
|
5733
5771
|
}).strict();
|
5734
5772
|
fk2 = objectType({
|
5735
5773
|
name: stringType(),
|
@@ -5771,9 +5809,27 @@ var init_pgSchema = __esm({
|
|
5771
5809
|
name: stringType(),
|
5772
5810
|
schema: stringType(),
|
5773
5811
|
columns: recordType(stringType(), column2),
|
5774
|
-
indexes: recordType(stringType(),
|
5812
|
+
indexes: recordType(stringType(), indexV4),
|
5775
5813
|
foreignKeys: recordType(stringType(), fk2)
|
5776
5814
|
}).strict();
|
5815
|
+
tableV6 = objectType({
|
5816
|
+
name: stringType(),
|
5817
|
+
schema: stringType(),
|
5818
|
+
columns: recordType(stringType(), column2),
|
5819
|
+
indexes: recordType(stringType(), indexV6),
|
5820
|
+
foreignKeys: recordType(stringType(), fk2),
|
5821
|
+
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5822
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5823
|
+
}).strict();
|
5824
|
+
tableV5 = objectType({
|
5825
|
+
name: stringType(),
|
5826
|
+
schema: stringType(),
|
5827
|
+
columns: recordType(stringType(), column2),
|
5828
|
+
indexes: recordType(stringType(), indexV5),
|
5829
|
+
foreignKeys: recordType(stringType(), fk2),
|
5830
|
+
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5831
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5832
|
+
}).strict();
|
5777
5833
|
table2 = objectType({
|
5778
5834
|
name: stringType(),
|
5779
5835
|
schema: stringType(),
|
@@ -5818,7 +5874,7 @@ var init_pgSchema = __esm({
|
|
5818
5874
|
pgSchemaInternalV5 = objectType({
|
5819
5875
|
version: literalType("5"),
|
5820
5876
|
dialect: literalType("pg"),
|
5821
|
-
tables: recordType(stringType(),
|
5877
|
+
tables: recordType(stringType(), tableV5),
|
5822
5878
|
enums: recordType(stringType(), enumSchemaV1),
|
5823
5879
|
schemas: recordType(stringType(), stringType()),
|
5824
5880
|
_meta: objectType({
|
@@ -5828,6 +5884,19 @@ var init_pgSchema = __esm({
|
|
5828
5884
|
}),
|
5829
5885
|
internal: kitInternals2
|
5830
5886
|
}).strict();
|
5887
|
+
pgSchemaInternalV6 = objectType({
|
5888
|
+
version: literalType("6"),
|
5889
|
+
dialect: literalType("postgresql"),
|
5890
|
+
tables: recordType(stringType(), tableV6),
|
5891
|
+
enums: recordType(stringType(), enumSchema),
|
5892
|
+
schemas: recordType(stringType(), stringType()),
|
5893
|
+
_meta: objectType({
|
5894
|
+
schemas: recordType(stringType(), stringType()),
|
5895
|
+
tables: recordType(stringType(), stringType()),
|
5896
|
+
columns: recordType(stringType(), stringType())
|
5897
|
+
}),
|
5898
|
+
internal: kitInternals2
|
5899
|
+
}).strict();
|
5831
5900
|
pgSchemaExternal = objectType({
|
5832
5901
|
version: literalType("5"),
|
5833
5902
|
dialect: literalType("pg"),
|
@@ -5841,7 +5910,7 @@ var init_pgSchema = __esm({
|
|
5841
5910
|
})
|
5842
5911
|
}).strict();
|
5843
5912
|
pgSchemaInternal = objectType({
|
5844
|
-
version: literalType("
|
5913
|
+
version: literalType("7"),
|
5845
5914
|
dialect: literalType("postgresql"),
|
5846
5915
|
tables: recordType(stringType(), table2),
|
5847
5916
|
enums: recordType(stringType(), enumSchema),
|
@@ -5876,29 +5945,94 @@ var init_pgSchema = __esm({
|
|
5876
5945
|
enums: recordType(stringType(), enumSchemaV1),
|
5877
5946
|
schemas: recordType(stringType(), stringType())
|
5878
5947
|
}).strict();
|
5879
|
-
|
5948
|
+
pgSchemaSquashedV6 = objectType({
|
5880
5949
|
version: literalType("6"),
|
5881
5950
|
dialect: literalType("postgresql"),
|
5882
5951
|
tables: recordType(stringType(), tableSquashed2),
|
5883
5952
|
enums: recordType(stringType(), enumSchema),
|
5884
5953
|
schemas: recordType(stringType(), stringType())
|
5885
5954
|
}).strict();
|
5955
|
+
pgSchemaSquashed = objectType({
|
5956
|
+
version: literalType("7"),
|
5957
|
+
dialect: literalType("postgresql"),
|
5958
|
+
tables: recordType(stringType(), tableSquashed2),
|
5959
|
+
enums: recordType(stringType(), enumSchema),
|
5960
|
+
schemas: recordType(stringType(), stringType())
|
5961
|
+
}).strict();
|
5886
5962
|
pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5887
5963
|
pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
5888
5964
|
pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
5965
|
+
pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
5889
5966
|
pgSchema = pgSchemaInternal.merge(schemaHash2);
|
5890
|
-
backwardCompatiblePgSchema = unionType([
|
5967
|
+
backwardCompatiblePgSchema = unionType([
|
5968
|
+
pgSchemaV5,
|
5969
|
+
pgSchemaV6,
|
5970
|
+
pgSchema
|
5971
|
+
]);
|
5891
5972
|
PgSquasher = {
|
5892
5973
|
squashIdx: (idx) => {
|
5893
5974
|
index2.parse(idx);
|
5894
|
-
return `${idx.name};${idx.columns.
|
5975
|
+
return `${idx.name};${idx.columns.map(
|
5976
|
+
(c) => `${c.expression},${c.isExpression},${c.asc},${c.nulls},${c.opclass}`
|
5977
|
+
).join(",,")};${idx.isUnique};${idx.concurrently};${idx.method};${idx.where};${JSON.stringify(idx.with)}`;
|
5895
5978
|
},
|
5896
5979
|
unsquashIdx: (input) => {
|
5897
|
-
const [
|
5980
|
+
const [
|
5981
|
+
name,
|
5982
|
+
columnsString,
|
5983
|
+
isUnique,
|
5984
|
+
concurrently,
|
5985
|
+
method,
|
5986
|
+
where,
|
5987
|
+
idxWith
|
5988
|
+
] = input.split(";");
|
5989
|
+
const columnString = columnsString.split(",,");
|
5990
|
+
const columns = [];
|
5991
|
+
for (const column7 of columnString) {
|
5992
|
+
const [expression, isExpression, asc, nulls, opclass] = column7.split(",");
|
5993
|
+
columns.push({
|
5994
|
+
nulls,
|
5995
|
+
isExpression: isExpression === "true",
|
5996
|
+
asc: asc === "true",
|
5997
|
+
expression,
|
5998
|
+
opclass: opclass === "undefined" ? void 0 : opclass
|
5999
|
+
});
|
6000
|
+
}
|
5898
6001
|
const result = index2.parse({
|
5899
6002
|
name,
|
5900
|
-
columns
|
5901
|
-
isUnique: isUnique === "true"
|
6003
|
+
columns,
|
6004
|
+
isUnique: isUnique === "true",
|
6005
|
+
concurrently: concurrently === "true",
|
6006
|
+
method,
|
6007
|
+
where: where === "undefined" ? void 0 : where,
|
6008
|
+
with: !idxWith || idxWith === "undefined" ? void 0 : JSON.parse(idxWith)
|
6009
|
+
});
|
6010
|
+
return result;
|
6011
|
+
},
|
6012
|
+
squashIdxPush: (idx) => {
|
6013
|
+
index2.parse(idx);
|
6014
|
+
return `${idx.name};${idx.columns.map((c) => `${c.isExpression ? "" : c.expression},${c.asc},${c.nulls}`).join(",,")};${idx.isUnique};${idx.method};${JSON.stringify(idx.with)}`;
|
6015
|
+
},
|
6016
|
+
unsquashIdxPush: (input) => {
|
6017
|
+
const [name, columnsString, isUnique, method, idxWith] = input.split(";");
|
6018
|
+
const columnString = columnsString.split(",,");
|
6019
|
+
const columns = [];
|
6020
|
+
for (const column7 of columnString) {
|
6021
|
+
const [expression, asc, nulls, opclass] = column7.split(",");
|
6022
|
+
columns.push({
|
6023
|
+
nulls,
|
6024
|
+
isExpression: expression === "",
|
6025
|
+
asc: asc === "true",
|
6026
|
+
expression
|
6027
|
+
});
|
6028
|
+
}
|
6029
|
+
const result = index2.parse({
|
6030
|
+
name,
|
6031
|
+
columns,
|
6032
|
+
isUnique: isUnique === "true",
|
6033
|
+
concurrently: false,
|
6034
|
+
method,
|
6035
|
+
with: idxWith === "undefined" ? void 0 : JSON.parse(idxWith)
|
5902
6036
|
});
|
5903
6037
|
return result;
|
5904
6038
|
},
|
@@ -5947,11 +6081,11 @@ var init_pgSchema = __esm({
|
|
5947
6081
|
return result;
|
5948
6082
|
}
|
5949
6083
|
};
|
5950
|
-
squashPgScheme = (json) => {
|
6084
|
+
squashPgScheme = (json, action) => {
|
5951
6085
|
const mappedTables = Object.fromEntries(
|
5952
6086
|
Object.entries(json.tables).map((it) => {
|
5953
6087
|
const squashedIndexes = mapValues(it[1].indexes, (index4) => {
|
5954
|
-
return PgSquasher.squashIdx(index4);
|
6088
|
+
return action === "push" ? PgSquasher.squashIdxPush(index4) : PgSquasher.squashIdx(index4);
|
5955
6089
|
});
|
5956
6090
|
const squashedFKs = mapValues(it[1].foreignKeys, (fk4) => {
|
5957
6091
|
return PgSquasher.squashFK(fk4);
|
@@ -5980,7 +6114,7 @@ var init_pgSchema = __esm({
|
|
5980
6114
|
})
|
5981
6115
|
);
|
5982
6116
|
return {
|
5983
|
-
version: "
|
6117
|
+
version: "7",
|
5984
6118
|
dialect: json.dialect,
|
5985
6119
|
tables: mappedTables,
|
5986
6120
|
enums: json.enums,
|
@@ -6279,7 +6413,7 @@ var init_utils = __esm({
|
|
6279
6413
|
validatorForDialect = (dialect7) => {
|
6280
6414
|
switch (dialect7) {
|
6281
6415
|
case "postgresql":
|
6282
|
-
return { validator: backwardCompatiblePgSchema, version:
|
6416
|
+
return { validator: backwardCompatiblePgSchema, version: 7 };
|
6283
6417
|
case "sqlite":
|
6284
6418
|
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
6285
6419
|
case "mysql":
|
@@ -8289,7 +8423,7 @@ var init_utils2 = __esm({
|
|
8289
8423
|
process.exit(1);
|
8290
8424
|
}
|
8291
8425
|
};
|
8292
|
-
requiredApiVersion =
|
8426
|
+
requiredApiVersion = 7;
|
8293
8427
|
assertOrmCoreVersion = async () => {
|
8294
8428
|
try {
|
8295
8429
|
const { compatibilityVersion } = await import("drizzle-orm/version");
|
@@ -8451,7 +8585,7 @@ var init_outputs = __esm({
|
|
8451
8585
|
error: (str) => `${source_default.red(`${source_default.white.bgRed(" Invalid input ")} ${str}`)}`,
|
8452
8586
|
warning: (str) => `${source_default.white.bgGray(" Warning ")} ${str}`,
|
8453
8587
|
errorWarning: (str) => `${source_default.red(`${source_default.white.bgRed(" Warning ")} ${str}`)}`,
|
8454
|
-
fullWarning: (str) => `${source_default.black.bgYellow("
|
8588
|
+
fullWarning: (str) => `${source_default.black.bgYellow(" Warning ")} ${source_default.bold(str)}`,
|
8455
8589
|
suggestion: (str) => `${source_default.white.bgGray(" Suggestion ")} ${str}`,
|
8456
8590
|
info: (str) => `${source_default.grey(str)}`
|
8457
8591
|
};
|
@@ -8571,7 +8705,14 @@ var init_pg = __esm({
|
|
8571
8705
|
user: stringType().default("postgres"),
|
8572
8706
|
password: stringType().optional(),
|
8573
8707
|
database: stringType(),
|
8574
|
-
ssl:
|
8708
|
+
ssl: unionType([
|
8709
|
+
literalType("require"),
|
8710
|
+
literalType("allow"),
|
8711
|
+
literalType("prefer"),
|
8712
|
+
literalType("verify-full"),
|
8713
|
+
booleanType(),
|
8714
|
+
objectType({}).passthrough()
|
8715
|
+
])
|
8575
8716
|
}),
|
8576
8717
|
objectType({
|
8577
8718
|
url: stringType()
|
@@ -8774,6 +8915,7 @@ var init_cli = __esm({
|
|
8774
8915
|
schema: unionType([stringType(), stringType().array()]).optional(),
|
8775
8916
|
tablesFilter: unionType([stringType(), stringType().array()]).optional(),
|
8776
8917
|
schemaFilter: unionType([stringType(), stringType().array()]).optional().default(["public"]),
|
8918
|
+
extensionsFilters: literalType("postgis").array().optional(),
|
8777
8919
|
verbose: booleanType().optional(),
|
8778
8920
|
strict: booleanType().optional()
|
8779
8921
|
}).passthrough();
|
@@ -8783,6 +8925,7 @@ var init_cli = __esm({
|
|
8783
8925
|
out: stringType().optional().default("drizzle"),
|
8784
8926
|
tablesFilter: unionType([stringType(), stringType().array()]).optional(),
|
8785
8927
|
schemaFilter: unionType([stringType(), stringType().array()]).optional().default(["public"]),
|
8928
|
+
extensionsFilters: literalType("postgis").array().optional(),
|
8786
8929
|
introspectCasing: casing,
|
8787
8930
|
breakpoints: booleanType().optional().default(true)
|
8788
8931
|
}).passthrough();
|
@@ -14592,6 +14735,13 @@ var init_utils4 = __esm({
|
|
14592
14735
|
const tablesFilter = tablesFilterConfig ? typeof tablesFilterConfig === "string" ? [tablesFilterConfig] : tablesFilterConfig : [];
|
14593
14736
|
const schemasFilterConfig = config.schemaFilter;
|
14594
14737
|
const schemasFilter = schemasFilterConfig ? typeof schemasFilterConfig === "string" ? [schemasFilterConfig] : schemasFilterConfig : [];
|
14738
|
+
if (config.extensionsFilters) {
|
14739
|
+
if (config.extensionsFilters.includes("postgis") && dialect7 === "postgresql") {
|
14740
|
+
tablesFilter.push(
|
14741
|
+
...["!geography_columns", "!geometry_columns", "!spatial_ref_sys"]
|
14742
|
+
);
|
14743
|
+
}
|
14744
|
+
}
|
14595
14745
|
if (dialect7 === "postgresql") {
|
14596
14746
|
const parsed = postgresCredentials.safeParse(config);
|
14597
14747
|
if (!parsed.success) {
|
@@ -14658,6 +14808,13 @@ var init_utils4 = __esm({
|
|
14658
14808
|
}
|
14659
14809
|
const tablesFilterConfig = config.tablesFilter;
|
14660
14810
|
const tablesFilter = tablesFilterConfig ? typeof tablesFilterConfig === "string" ? [tablesFilterConfig] : tablesFilterConfig : [];
|
14811
|
+
if (config.extensionsFilters) {
|
14812
|
+
if (config.extensionsFilters.includes("postgis") && dialect7 === "postgresql") {
|
14813
|
+
tablesFilter.push(
|
14814
|
+
...["!geography_columns", "!geometry_columns", "!spatial_ref_sys"]
|
14815
|
+
);
|
14816
|
+
}
|
14817
|
+
}
|
14661
14818
|
const schemasFilterConfig = config.schemaFilter;
|
14662
14819
|
const schemasFilter = schemasFilterConfig ? typeof schemasFilterConfig === "string" ? [schemasFilterConfig] : schemasFilterConfig : [];
|
14663
14820
|
if (dialect7 === "postgresql") {
|
@@ -15159,7 +15316,7 @@ The unique constraint ${source_default.underline.blue(
|
|
15159
15316
|
const name = value.config.name;
|
15160
15317
|
let indexColumns = columns2.map((it) => {
|
15161
15318
|
if ((0, import_drizzle_orm2.is)(it, import_drizzle_orm3.SQL)) {
|
15162
|
-
return dialect4.sqlToQuery(it).sql;
|
15319
|
+
return dialect4.sqlToQuery(it, "indexes").sql;
|
15163
15320
|
} else {
|
15164
15321
|
return it.name;
|
15165
15322
|
}
|
@@ -15549,6 +15706,24 @@ var init_pgImports = __esm({
|
|
15549
15706
|
}
|
15550
15707
|
});
|
15551
15708
|
|
15709
|
+
// src/extensions/vector.ts
|
15710
|
+
var vectorOps;
|
15711
|
+
var init_vector = __esm({
|
15712
|
+
"src/extensions/vector.ts"() {
|
15713
|
+
"use strict";
|
15714
|
+
vectorOps = [
|
15715
|
+
"vector_l2_ops",
|
15716
|
+
"vector_ip_ops",
|
15717
|
+
"vector_cosine_ops",
|
15718
|
+
"vector_l1_ops",
|
15719
|
+
"bit_hamming_ops",
|
15720
|
+
"bit_jaccard_ops",
|
15721
|
+
"halfvec_l2_ops",
|
15722
|
+
"sparsevec_l2_ops"
|
15723
|
+
];
|
15724
|
+
}
|
15725
|
+
});
|
15726
|
+
|
15552
15727
|
// src/serializer/pgSerializer.ts
|
15553
15728
|
var pgSerializer_exports = {};
|
15554
15729
|
__export(pgSerializer_exports, {
|
@@ -15566,6 +15741,7 @@ var init_pgSerializer = __esm({
|
|
15566
15741
|
init_serializer();
|
15567
15742
|
init_source();
|
15568
15743
|
init_outputs();
|
15744
|
+
init_vector();
|
15569
15745
|
dialect5 = new import_pg_core2.PgDialect();
|
15570
15746
|
indexName2 = (tableName, columns) => {
|
15571
15747
|
return `${tableName}_${columns.join("_")}_index`;
|
@@ -15573,6 +15749,16 @@ var init_pgSerializer = __esm({
|
|
15573
15749
|
generatePgSnapshot = (tables, enums, schemas, schemaFilter) => {
|
15574
15750
|
const result = {};
|
15575
15751
|
const indexesInSchema = {};
|
15752
|
+
const enumsToReturn = enums.reduce((map, obj) => {
|
15753
|
+
const enumSchema3 = obj.schema || "public";
|
15754
|
+
const key = `${enumSchema3}.${obj.enumName}`;
|
15755
|
+
map[key] = {
|
15756
|
+
name: obj.enumName,
|
15757
|
+
schema: enumSchema3,
|
15758
|
+
values: obj.enumValues
|
15759
|
+
};
|
15760
|
+
return map;
|
15761
|
+
}, {});
|
15576
15762
|
for (const table4 of tables) {
|
15577
15763
|
const {
|
15578
15764
|
name: tableName,
|
@@ -15603,6 +15789,7 @@ var init_pgSerializer = __esm({
|
|
15603
15789
|
typeSchema,
|
15604
15790
|
primaryKey,
|
15605
15791
|
notNull
|
15792
|
+
// isenum: typeof enumsToReturn[column.getSQLType()] !== "undefined",
|
15606
15793
|
};
|
15607
15794
|
if (column7.isUnique) {
|
15608
15795
|
const existingUnique = uniqueConstraintObject[column7.uniqueName];
|
@@ -15716,18 +15903,71 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
15716
15903
|
});
|
15717
15904
|
indexes.forEach((value) => {
|
15718
15905
|
const columns2 = value.config.columns;
|
15719
|
-
let
|
15720
|
-
|
15721
|
-
tableName,
|
15722
|
-
columns2.map((it) => it.name)
|
15723
|
-
);
|
15724
|
-
let indexColumns = columns2.map((it) => {
|
15906
|
+
let indexColumnNames = [];
|
15907
|
+
columns2.forEach((it) => {
|
15725
15908
|
if ((0, import_drizzle_orm5.is)(it, import_drizzle_orm5.SQL)) {
|
15726
|
-
|
15727
|
-
|
15728
|
-
|
15909
|
+
if (typeof value.config.name === "undefined") {
|
15910
|
+
console.log(
|
15911
|
+
`
|
15912
|
+
${withStyle.errorWarning(
|
15913
|
+
`Please specify an index name in ${(0, import_drizzle_orm5.getTableName)(
|
15914
|
+
value.config.table
|
15915
|
+
)} table that has "${dialect5.sqlToQuery(it).sql}" expression. We can generate index names for indexes on columns only; for expressions in indexes, you need to specify the name yourself.`
|
15916
|
+
)}`
|
15917
|
+
);
|
15918
|
+
process.exit(1);
|
15919
|
+
}
|
15920
|
+
}
|
15921
|
+
it = it;
|
15922
|
+
if (!(0, import_drizzle_orm5.is)(it, import_drizzle_orm5.SQL) && it.type === "PgVector" && typeof it.indexConfig.opClass === "undefined") {
|
15923
|
+
console.log(
|
15924
|
+
`
|
15925
|
+
${withStyle.errorWarning(
|
15926
|
+
`You are specifying an index on the ${source_default.blueBright(
|
15927
|
+
it.name
|
15928
|
+
)} column inside the ${source_default.blueBright(
|
15929
|
+
tableName
|
15930
|
+
)} table with the ${source_default.blueBright(
|
15931
|
+
"vector"
|
15932
|
+
)} type without specifying an operator class. Vector extension doesn't have a default operator class, so you need to specify one of the available options. Here is a list of available op classes for the vector extension: [${vectorOps.map((it2) => `${source_default.underline(`${it2}`)}`).join(
|
15933
|
+
", "
|
15934
|
+
)}].
|
15935
|
+
|
15936
|
+
You can specify it using current syntax: ${source_default.underline(
|
15937
|
+
`index("${value.config.name}").using("${value.config.method}", table.${it.name}.op("${vectorOps[0]}"))`
|
15938
|
+
)}
|
15939
|
+
|
15940
|
+
You can check the "pg_vector" docs for more info: https://github.com/pgvector/pgvector?tab=readme-ov-file#indexing
|
15941
|
+
`
|
15942
|
+
)}`
|
15943
|
+
);
|
15944
|
+
process.exit(1);
|
15729
15945
|
}
|
15946
|
+
indexColumnNames.push(it.name);
|
15730
15947
|
});
|
15948
|
+
const name = value.config.name ? value.config.name : indexName2(tableName, indexColumnNames);
|
15949
|
+
let indexColumns = columns2.map(
|
15950
|
+
(it) => {
|
15951
|
+
var _a, _b, _c, _d, _e2;
|
15952
|
+
if ((0, import_drizzle_orm5.is)(it, import_drizzle_orm5.SQL)) {
|
15953
|
+
return {
|
15954
|
+
expression: dialect5.sqlToQuery(it, "indexes").sql,
|
15955
|
+
asc: true,
|
15956
|
+
isExpression: true,
|
15957
|
+
nulls: "last"
|
15958
|
+
};
|
15959
|
+
} else {
|
15960
|
+
it = it;
|
15961
|
+
return {
|
15962
|
+
expression: it.name,
|
15963
|
+
isExpression: false,
|
15964
|
+
asc: ((_a = it.indexConfig) == null ? void 0 : _a.order) === "asc",
|
15965
|
+
nulls: ((_b = it.indexConfig) == null ? void 0 : _b.nulls) ? (_c = it.indexConfig) == null ? void 0 : _c.nulls : ((_d = it.indexConfig) == null ? void 0 : _d.order) === "desc" ? "first" : "last",
|
15966
|
+
opclass: (_e2 = it.indexConfig) == null ? void 0 : _e2.opClass
|
15967
|
+
};
|
15968
|
+
}
|
15969
|
+
}
|
15970
|
+
);
|
15731
15971
|
if (typeof indexesInSchema[schema5 ?? "public"] !== "undefined") {
|
15732
15972
|
if (indexesInSchema[schema5 ?? "public"].includes(name)) {
|
15733
15973
|
console.log(
|
@@ -15749,7 +15989,11 @@ ${withStyle.errorWarning(
|
|
15749
15989
|
indexesObject[name] = {
|
15750
15990
|
name,
|
15751
15991
|
columns: indexColumns,
|
15752
|
-
isUnique: value.config.unique ?? false
|
15992
|
+
isUnique: value.config.unique ?? false,
|
15993
|
+
where: value.config.where ? dialect5.sqlToQuery(value.config.where).sql : void 0,
|
15994
|
+
concurrently: value.config.concurrently ?? false,
|
15995
|
+
method: value.config.method ?? "btree",
|
15996
|
+
with: value.config.with ?? {}
|
15753
15997
|
};
|
15754
15998
|
});
|
15755
15999
|
const tableKey2 = `${schema5 ?? "public"}.${tableName}`;
|
@@ -15763,16 +16007,6 @@ ${withStyle.errorWarning(
|
|
15763
16007
|
uniqueConstraints: uniqueConstraintObject
|
15764
16008
|
};
|
15765
16009
|
}
|
15766
|
-
const enumsToReturn = enums.reduce((map, obj) => {
|
15767
|
-
const enumSchema3 = obj.schema || "public";
|
15768
|
-
const key = `${enumSchema3}.${obj.enumName}`;
|
15769
|
-
map[key] = {
|
15770
|
-
name: obj.enumName,
|
15771
|
-
schema: enumSchema3,
|
15772
|
-
values: obj.enumValues
|
15773
|
-
};
|
15774
|
-
return map;
|
15775
|
-
}, {});
|
15776
16010
|
const schemasObject = Object.fromEntries(
|
15777
16011
|
schemas.filter((it) => {
|
15778
16012
|
if (schemaFilter) {
|
@@ -15783,7 +16017,7 @@ ${withStyle.errorWarning(
|
|
15783
16017
|
}).map((it) => [it.schemaName, it.schemaName])
|
15784
16018
|
);
|
15785
16019
|
return {
|
15786
|
-
version: "
|
16020
|
+
version: "7",
|
15787
16021
|
dialect: "postgresql",
|
15788
16022
|
tables: result,
|
15789
16023
|
enums: enumsToReturn,
|
@@ -16055,7 +16289,10 @@ ${withStyle.errorWarning(
|
|
16055
16289
|
columnTypeMapped = trimChar(columnTypeMapped, '"');
|
16056
16290
|
columnToReturn[columnName] = {
|
16057
16291
|
name: columnName,
|
16058
|
-
type:
|
16292
|
+
type: (
|
16293
|
+
// filter vectors, but in future we should filter any extension that was installed by user
|
16294
|
+
columnAdditionalDT === "USER-DEFINED" && !["vector", "geometry"].includes(enumType3) ? enumType3 : columnTypeMapped
|
16295
|
+
),
|
16059
16296
|
typeSchema: enumsToReturn[`${tableSchema}.${enumType3}`] !== void 0 ? enumsToReturn[`${tableSchema}.${enumType3}`].schema : void 0,
|
16060
16297
|
primaryKey: primaryKey.length === 1 && cprimaryKey.length < 2,
|
16061
16298
|
// default: isSerial ? undefined : defaultValue,
|
@@ -16066,15 +16303,42 @@ ${withStyle.errorWarning(
|
|
16066
16303
|
}
|
16067
16304
|
}
|
16068
16305
|
const dbIndexes = await db2.query(
|
16069
|
-
`SELECT t.relname
|
16070
|
-
|
16071
|
-
|
16072
|
-
|
16073
|
-
|
16074
|
-
|
16075
|
-
|
16076
|
-
|
16077
|
-
|
16306
|
+
`SELECT DISTINCT ON (t.relname, ic.relname, k.i) t.relname as table_name, ic.relname AS indexname,
|
16307
|
+
k.i AS index_order,
|
16308
|
+
i.indisunique as is_unique,
|
16309
|
+
am.amname as method,
|
16310
|
+
ic.reloptions as with,
|
16311
|
+
coalesce(a.attname,
|
16312
|
+
(('{' || pg_get_expr(
|
16313
|
+
i.indexprs,
|
16314
|
+
i.indrelid
|
16315
|
+
)
|
16316
|
+
|| '}')::text[]
|
16317
|
+
)[k.i]
|
16318
|
+
) AS column_name,
|
16319
|
+
CASE
|
16320
|
+
WHEN pg_get_expr(i.indexprs, i.indrelid) IS NOT NULL THEN 1
|
16321
|
+
ELSE 0
|
16322
|
+
END AS is_expression,
|
16323
|
+
i.indoption[k.i-1] & 1 = 1 AS descending,
|
16324
|
+
i.indoption[k.i-1] & 2 = 2 AS nulls_first,
|
16325
|
+
pg_get_expr(
|
16326
|
+
i.indpred,
|
16327
|
+
i.indrelid
|
16328
|
+
) as where,
|
16329
|
+
opc.opcname
|
16330
|
+
FROM pg_class t
|
16331
|
+
LEFT JOIN pg_index i ON t.oid = i.indrelid
|
16332
|
+
LEFT JOIN pg_class ic ON ic.oid = i.indexrelid
|
16333
|
+
CROSS JOIN LATERAL (SELECT unnest(i.indkey), generate_subscripts(i.indkey, 1) + 1) AS k(attnum, i)
|
16334
|
+
LEFT JOIN pg_attribute AS a
|
16335
|
+
ON i.indrelid = a.attrelid AND k.attnum = a.attnum
|
16336
|
+
JOIN pg_namespace c on c.oid = t.relnamespace
|
16337
|
+
LEFT JOIN pg_am AS am ON ic.relam = am.oid
|
16338
|
+
JOIN pg_opclass opc ON opc.oid = ANY(i.indclass)
|
16339
|
+
WHERE
|
16340
|
+
c.nspname = '${tableSchema}' AND
|
16341
|
+
t.relname = '${tableName}';`
|
16078
16342
|
);
|
16079
16343
|
const dbIndexFromConstraint = await db2.query(
|
16080
16344
|
`SELECT
|
@@ -16091,18 +16355,51 @@ ${withStyle.errorWarning(
|
|
16091
16355
|
);
|
16092
16356
|
const idxsInConsteraint = dbIndexFromConstraint.filter((it) => it.generated_by_constraint === 1).map((it) => it.index_name);
|
16093
16357
|
for (const dbIndex of dbIndexes) {
|
16094
|
-
const indexName4 = dbIndex.
|
16358
|
+
const indexName4 = dbIndex.indexname;
|
16095
16359
|
const indexColumnName = dbIndex.column_name;
|
16096
16360
|
const indexIsUnique = dbIndex.is_unique;
|
16361
|
+
const indexMethod = dbIndex.method;
|
16362
|
+
const indexWith = dbIndex.with;
|
16363
|
+
const indexWhere = dbIndex.where;
|
16364
|
+
const opclass = dbIndex.opcname;
|
16365
|
+
const isExpression = dbIndex.is_expression === 1;
|
16366
|
+
const desc = dbIndex.descending;
|
16367
|
+
const nullsFirst = dbIndex.nulls_first;
|
16368
|
+
const mappedWith = {};
|
16369
|
+
if (indexWith !== null) {
|
16370
|
+
indexWith.forEach((it) => {
|
16371
|
+
const splitted = it.split("=");
|
16372
|
+
mappedWith[splitted[0]] = splitted[1];
|
16373
|
+
});
|
16374
|
+
}
|
16097
16375
|
if (idxsInConsteraint.includes(indexName4))
|
16098
16376
|
continue;
|
16099
16377
|
if (typeof indexToReturn[indexName4] !== "undefined") {
|
16100
|
-
indexToReturn[indexName4].columns.push(
|
16378
|
+
indexToReturn[indexName4].columns.push({
|
16379
|
+
expression: indexColumnName,
|
16380
|
+
asc: !desc,
|
16381
|
+
nulls: nullsFirst ? "first" : "last",
|
16382
|
+
opclass,
|
16383
|
+
isExpression
|
16384
|
+
});
|
16101
16385
|
} else {
|
16102
16386
|
indexToReturn[indexName4] = {
|
16103
16387
|
name: indexName4,
|
16104
|
-
columns: [
|
16105
|
-
|
16388
|
+
columns: [
|
16389
|
+
{
|
16390
|
+
expression: indexColumnName,
|
16391
|
+
asc: !desc,
|
16392
|
+
nulls: nullsFirst ? "first" : "last",
|
16393
|
+
opclass,
|
16394
|
+
isExpression
|
16395
|
+
}
|
16396
|
+
],
|
16397
|
+
isUnique: indexIsUnique,
|
16398
|
+
// should not be a part of diff detecs
|
16399
|
+
concurrently: false,
|
16400
|
+
method: indexMethod,
|
16401
|
+
where: indexWhere === null ? void 0 : indexWhere,
|
16402
|
+
with: mappedWith
|
16106
16403
|
};
|
16107
16404
|
}
|
16108
16405
|
}
|
@@ -16138,7 +16435,7 @@ ${withStyle.errorWarning(
|
|
16138
16435
|
}
|
16139
16436
|
const schemasObject = Object.fromEntries([...schemas].map((it) => [it, it]));
|
16140
16437
|
return {
|
16141
|
-
version: "
|
16438
|
+
version: "7",
|
16142
16439
|
dialect: "postgresql",
|
16143
16440
|
tables: result,
|
16144
16441
|
enums: enumsToReturn,
|
@@ -16394,7 +16691,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
16394
16691
|
const name = value.config.name;
|
16395
16692
|
let indexColumns = columns2.map((it) => {
|
16396
16693
|
if ((0, import_drizzle_orm7.is)(it, import_drizzle_orm7.SQL)) {
|
16397
|
-
return dialect6.sqlToQuery(it).sql;
|
16694
|
+
return dialect6.sqlToQuery(it, "indexes").sql;
|
16398
16695
|
} else {
|
16399
16696
|
return it.name;
|
16400
16697
|
}
|
@@ -16922,7 +17219,7 @@ var init_sqlgenerator = __esm({
|
|
16922
17219
|
if (pgNativeTypes.has(it))
|
16923
17220
|
return true;
|
16924
17221
|
const toCheck = it.replace(/ /g, "");
|
16925
|
-
return toCheck.startsWith("varchar(") || toCheck.startsWith("char(") || toCheck.startsWith("numeric(") || toCheck.startsWith("timestamp(") || toCheck.startsWith("intervalyear(") || toCheck.startsWith("intervalmonth(") || toCheck.startsWith("intervalday(") || toCheck.startsWith("intervalhour(") || toCheck.startsWith("intervalminute(") || toCheck.startsWith("intervalsecond(") || toCheck.startsWith("intervalyeartomonth(") || toCheck.startsWith("intervaldaytohour(") || toCheck.startsWith("intervaldaytominute(") || toCheck.startsWith("intervaldaytosecond(") || toCheck.startsWith("intervalhourtominute(") || toCheck.startsWith("intervalhourtosecond(") || toCheck.startsWith("intervalminutetosecond(") || /^(\w+)(\[\d*])+$/.test(it);
|
17222
|
+
return toCheck.startsWith("varchar(") || toCheck.startsWith("char(") || toCheck.startsWith("numeric(") || toCheck.startsWith("timestamp(") || toCheck.startsWith("intervalyear(") || toCheck.startsWith("intervalmonth(") || toCheck.startsWith("intervalday(") || toCheck.startsWith("intervalhour(") || toCheck.startsWith("intervalminute(") || toCheck.startsWith("intervalsecond(") || toCheck.startsWith("intervalyeartomonth(") || toCheck.startsWith("intervaldaytohour(") || toCheck.startsWith("intervaldaytominute(") || toCheck.startsWith("intervaldaytosecond(") || toCheck.startsWith("intervalhourtominute(") || toCheck.startsWith("intervalhourtosecond(") || toCheck.startsWith("intervalminutetosecond(") || toCheck.startsWith("vector(") || /^(\w+)(\[\d*])+$/.test(it);
|
16926
17223
|
};
|
16927
17224
|
Convertor = class {
|
16928
17225
|
};
|
@@ -17884,14 +18181,34 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo
|
|
17884
18181
|
};
|
17885
18182
|
CreatePgIndexConvertor = class extends Convertor {
|
17886
18183
|
can(statement, dialect7) {
|
17887
|
-
return statement.type === "
|
18184
|
+
return statement.type === "create_index_pg" && dialect7 === "postgresql";
|
17888
18185
|
}
|
17889
18186
|
convert(statement) {
|
17890
|
-
const {
|
18187
|
+
const {
|
18188
|
+
name,
|
18189
|
+
columns,
|
18190
|
+
isUnique,
|
18191
|
+
concurrently,
|
18192
|
+
with: withMap,
|
18193
|
+
method,
|
18194
|
+
where
|
18195
|
+
} = statement.data;
|
17891
18196
|
const indexPart = isUnique ? "UNIQUE INDEX" : "INDEX";
|
17892
|
-
const value = columns.map(
|
18197
|
+
const value = columns.map(
|
18198
|
+
(it) => `${it.expression}${it.opclass ? ` ${it.opclass}` : it.asc ? "" : " DESC"}${it.asc && it.nulls && it.nulls === "last" || it.opclass ? "" : ` NULLS ${it.nulls.toUpperCase()}`}`
|
18199
|
+
).join(",");
|
17893
18200
|
const tableNameWithSchema = statement.schema ? `"${statement.schema}"."${statement.tableName}"` : `"${statement.tableName}"`;
|
17894
|
-
|
18201
|
+
function reverseLogic(mappedWith) {
|
18202
|
+
let reversedString = "";
|
18203
|
+
for (const key in mappedWith) {
|
18204
|
+
if (mappedWith.hasOwnProperty(key)) {
|
18205
|
+
reversedString += `${key}=${mappedWith[key]},`;
|
18206
|
+
}
|
18207
|
+
}
|
18208
|
+
reversedString = reversedString.slice(0, -1);
|
18209
|
+
return reversedString;
|
18210
|
+
}
|
18211
|
+
return `CREATE ${indexPart}${concurrently ? " CONCURRENTLY" : ""} IF NOT EXISTS "${name}" ON ${tableNameWithSchema} USING ${method} (${value})${Object.keys(withMap).length !== 0 ? ` WITH (${reverseLogic(withMap)})` : ""}${where ? ` WHERE ${where}` : ""};`;
|
17895
18212
|
}
|
17896
18213
|
};
|
17897
18214
|
CreateMySqlIndexConvertor = class extends Convertor {
|
@@ -18545,7 +18862,7 @@ var init_jsonDiffer = __esm({
|
|
18545
18862
|
});
|
18546
18863
|
|
18547
18864
|
// src/jsonStatements.ts
|
18548
|
-
var preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql;
|
18865
|
+
var preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql;
|
18549
18866
|
var init_jsonStatements = __esm({
|
18550
18867
|
"src/jsonStatements.ts"() {
|
18551
18868
|
"use strict";
|
@@ -19310,6 +19627,28 @@ var init_jsonStatements = __esm({
|
|
19310
19627
|
}
|
19311
19628
|
return [...dropPkStatements, ...setPkStatements, ...statements];
|
19312
19629
|
};
|
19630
|
+
preparePgCreateIndexesJson = (tableName, schema5, indexes, fullSchema, action) => {
|
19631
|
+
if (action === "push") {
|
19632
|
+
return Object.values(indexes).map((indexData) => {
|
19633
|
+
const unsquashedIndex = PgSquasher.unsquashIdxPush(indexData);
|
19634
|
+
const data = fullSchema.tables[`${schema5 === "" ? "public" : schema5}.${tableName}`].indexes[unsquashedIndex.name];
|
19635
|
+
return {
|
19636
|
+
type: "create_index_pg",
|
19637
|
+
tableName,
|
19638
|
+
data,
|
19639
|
+
schema: schema5
|
19640
|
+
};
|
19641
|
+
});
|
19642
|
+
}
|
19643
|
+
return Object.values(indexes).map((indexData) => {
|
19644
|
+
return {
|
19645
|
+
type: "create_index_pg",
|
19646
|
+
tableName,
|
19647
|
+
data: PgSquasher.unsquashIdx(indexData),
|
19648
|
+
schema: schema5
|
19649
|
+
};
|
19650
|
+
});
|
19651
|
+
};
|
19313
19652
|
prepareCreateIndexesJson = (tableName, schema5, indexes) => {
|
19314
19653
|
return Object.values(indexes).map((indexData) => {
|
19315
19654
|
return {
|
@@ -19686,7 +20025,7 @@ var init_snapshotsDiffer = __esm({
|
|
19686
20025
|
}
|
19687
20026
|
return column7;
|
19688
20027
|
};
|
19689
|
-
applyPgSnapshotsDiff = async (json1, json2, schemasResolver2, enumsResolver2, tablesResolver2, columnsResolver2, prevFull, curFull) => {
|
20028
|
+
applyPgSnapshotsDiff = async (json1, json2, schemasResolver2, enumsResolver2, tablesResolver2, columnsResolver2, prevFull, curFull, action) => {
|
19690
20029
|
const schemasDiff = diffSchemasOrTables(json1.schemas, json2.schemas);
|
19691
20030
|
const {
|
19692
20031
|
created: createdSchemas,
|
@@ -19848,7 +20187,13 @@ var init_snapshotsDiffer = __esm({
|
|
19848
20187
|
const typedResult = diffResultScheme.parse(diffResult);
|
19849
20188
|
const jsonStatements = [];
|
19850
20189
|
const jsonCreateIndexesForCreatedTables = createdTables.map((it) => {
|
19851
|
-
return
|
20190
|
+
return preparePgCreateIndexesJson(
|
20191
|
+
it.name,
|
20192
|
+
it.schema,
|
20193
|
+
it.indexes,
|
20194
|
+
curFull,
|
20195
|
+
action
|
20196
|
+
);
|
19852
20197
|
}).flat();
|
19853
20198
|
const jsonDropTables = deletedTables.map((it) => {
|
19854
20199
|
return prepareDropTableJson(it);
|
@@ -19972,10 +20317,12 @@ var init_snapshotsDiffer = __esm({
|
|
19972
20317
|
return preparePgAlterColumns(it.name, it.schema, it.altered, json2);
|
19973
20318
|
}).flat();
|
19974
20319
|
const jsonCreateIndexesFoAlteredTables = alteredTables.map((it) => {
|
19975
|
-
return
|
20320
|
+
return preparePgCreateIndexesJson(
|
19976
20321
|
it.name,
|
19977
20322
|
it.schema,
|
19978
|
-
it.addedIndexes || {}
|
20323
|
+
it.addedIndexes || {},
|
20324
|
+
curFull,
|
20325
|
+
action
|
19979
20326
|
);
|
19980
20327
|
}).flat();
|
19981
20328
|
const jsonDropIndexesForAllAlteredTables = alteredTables.map((it) => {
|
@@ -20001,7 +20348,13 @@ var init_snapshotsDiffer = __esm({
|
|
20001
20348
|
{}
|
20002
20349
|
);
|
20003
20350
|
jsonCreateIndexesFoAlteredTables.push(
|
20004
|
-
...
|
20351
|
+
...preparePgCreateIndexesJson(
|
20352
|
+
it.name,
|
20353
|
+
it.schema,
|
20354
|
+
createdIndexes || {},
|
20355
|
+
curFull,
|
20356
|
+
action
|
20357
|
+
)
|
20005
20358
|
);
|
20006
20359
|
jsonDropIndexesForAllAlteredTables.push(
|
20007
20360
|
...prepareDropIndexesJson(it.name, it.schema, droppedIndexes || {})
|
@@ -22108,7 +22461,10 @@ var init_migrate = __esm({
|
|
22108
22461
|
const schemaPath = config.schema;
|
22109
22462
|
try {
|
22110
22463
|
assertV1OutFolder(outFolder);
|
22111
|
-
const { snapshots, journal } = prepareMigrationFolder(
|
22464
|
+
const { snapshots, journal } = prepareMigrationFolder(
|
22465
|
+
outFolder,
|
22466
|
+
"postgresql"
|
22467
|
+
);
|
22112
22468
|
const { prev, cur, custom: custom2 } = await preparePgMigrationSnapshot(
|
22113
22469
|
snapshots,
|
22114
22470
|
schemaPath
|
@@ -22159,8 +22515,8 @@ var init_migrate = __esm({
|
|
22159
22515
|
);
|
22160
22516
|
const validatedPrev = pgSchema.parse(prev);
|
22161
22517
|
const validatedCur = pgSchema.parse(cur);
|
22162
|
-
const squashedPrev = squashPgScheme(validatedPrev);
|
22163
|
-
const squashedCur = squashPgScheme(validatedCur);
|
22518
|
+
const squashedPrev = squashPgScheme(validatedPrev, "push");
|
22519
|
+
const squashedCur = squashPgScheme(validatedCur, "push");
|
22164
22520
|
const { sqlStatements, statements, _meta } = await applyPgSnapshotsDiff(
|
22165
22521
|
squashedPrev,
|
22166
22522
|
squashedCur,
|
@@ -22169,7 +22525,8 @@ var init_migrate = __esm({
|
|
22169
22525
|
tablesResolver,
|
22170
22526
|
columnsResolver,
|
22171
22527
|
validatedPrev,
|
22172
|
-
validatedCur
|
22528
|
+
validatedCur,
|
22529
|
+
"push"
|
22173
22530
|
);
|
22174
22531
|
return { sqlStatements, statements, squashedPrev, squashedCur };
|
22175
22532
|
};
|
@@ -24296,9 +24653,9 @@ var require_glob_parent = __commonJS({
|
|
24296
24653
|
}
|
24297
24654
|
});
|
24298
24655
|
|
24299
|
-
// node_modules/.pnpm/braces@3.0.
|
24656
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js
|
24300
24657
|
var require_utils2 = __commonJS({
|
24301
|
-
"node_modules/.pnpm/braces@3.0.
|
24658
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js"(exports2) {
|
24302
24659
|
"use strict";
|
24303
24660
|
exports2.isInteger = (num) => {
|
24304
24661
|
if (typeof num === "number") {
|
@@ -24318,7 +24675,7 @@ var require_utils2 = __commonJS({
|
|
24318
24675
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
24319
24676
|
};
|
24320
24677
|
exports2.escapeNode = (block, n = 0, type) => {
|
24321
|
-
|
24678
|
+
let node = block.nodes[n];
|
24322
24679
|
if (!node)
|
24323
24680
|
return;
|
24324
24681
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
@@ -24369,14 +24726,8 @@ var require_utils2 = __commonJS({
|
|
24369
24726
|
const result = [];
|
24370
24727
|
const flat = (arr) => {
|
24371
24728
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
24372
|
-
|
24373
|
-
|
24374
|
-
flat(ele);
|
24375
|
-
continue;
|
24376
|
-
}
|
24377
|
-
if (ele !== void 0) {
|
24378
|
-
result.push(ele);
|
24379
|
-
}
|
24729
|
+
let ele = arr[i2];
|
24730
|
+
Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele);
|
24380
24731
|
}
|
24381
24732
|
return result;
|
24382
24733
|
};
|
@@ -24386,15 +24737,15 @@ var require_utils2 = __commonJS({
|
|
24386
24737
|
}
|
24387
24738
|
});
|
24388
24739
|
|
24389
|
-
// node_modules/.pnpm/braces@3.0.
|
24740
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js
|
24390
24741
|
var require_stringify = __commonJS({
|
24391
|
-
"node_modules/.pnpm/braces@3.0.
|
24742
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js"(exports2, module2) {
|
24392
24743
|
"use strict";
|
24393
24744
|
var utils = require_utils2();
|
24394
24745
|
module2.exports = (ast, options = {}) => {
|
24395
|
-
|
24396
|
-
|
24397
|
-
|
24746
|
+
let stringify4 = (node, parent = {}) => {
|
24747
|
+
let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
24748
|
+
let invalidNode = node.invalid === true && options.escapeInvalid === true;
|
24398
24749
|
let output = "";
|
24399
24750
|
if (node.value) {
|
24400
24751
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
|
@@ -24406,7 +24757,7 @@ var require_stringify = __commonJS({
|
|
24406
24757
|
return node.value;
|
24407
24758
|
}
|
24408
24759
|
if (node.nodes) {
|
24409
|
-
for (
|
24760
|
+
for (let child of node.nodes) {
|
24410
24761
|
output += stringify4(child);
|
24411
24762
|
}
|
24412
24763
|
}
|
@@ -24851,24 +25202,23 @@ var require_fill_range = __commonJS({
|
|
24851
25202
|
}
|
24852
25203
|
});
|
24853
25204
|
|
24854
|
-
// node_modules/.pnpm/braces@3.0.
|
25205
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js
|
24855
25206
|
var require_compile = __commonJS({
|
24856
|
-
"node_modules/.pnpm/braces@3.0.
|
25207
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js"(exports2, module2) {
|
24857
25208
|
"use strict";
|
24858
25209
|
var fill = require_fill_range();
|
24859
25210
|
var utils = require_utils2();
|
24860
25211
|
var compile = (ast, options = {}) => {
|
24861
|
-
|
24862
|
-
|
24863
|
-
|
24864
|
-
|
24865
|
-
|
25212
|
+
let walk = (node, parent = {}) => {
|
25213
|
+
let invalidBlock = utils.isInvalidBrace(parent);
|
25214
|
+
let invalidNode = node.invalid === true && options.escapeInvalid === true;
|
25215
|
+
let invalid = invalidBlock === true || invalidNode === true;
|
25216
|
+
let prefix = options.escapeInvalid === true ? "\\" : "";
|
24866
25217
|
let output = "";
|
24867
25218
|
if (node.isOpen === true) {
|
24868
25219
|
return prefix + node.value;
|
24869
25220
|
}
|
24870
25221
|
if (node.isClose === true) {
|
24871
|
-
console.log("node.isClose", prefix, node.value);
|
24872
25222
|
return prefix + node.value;
|
24873
25223
|
}
|
24874
25224
|
if (node.type === "open") {
|
@@ -24884,14 +25234,14 @@ var require_compile = __commonJS({
|
|
24884
25234
|
return node.value;
|
24885
25235
|
}
|
24886
25236
|
if (node.nodes && node.ranges > 0) {
|
24887
|
-
|
24888
|
-
|
25237
|
+
let args = utils.reduce(node.nodes);
|
25238
|
+
let range = fill(...args, { ...options, wrap: false, toRegex: true });
|
24889
25239
|
if (range.length !== 0) {
|
24890
25240
|
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
24891
25241
|
}
|
24892
25242
|
}
|
24893
25243
|
if (node.nodes) {
|
24894
|
-
for (
|
25244
|
+
for (let child of node.nodes) {
|
24895
25245
|
output += walk(child, node);
|
24896
25246
|
}
|
24897
25247
|
}
|
@@ -24903,15 +25253,15 @@ var require_compile = __commonJS({
|
|
24903
25253
|
}
|
24904
25254
|
});
|
24905
25255
|
|
24906
|
-
// node_modules/.pnpm/braces@3.0.
|
25256
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js
|
24907
25257
|
var require_expand = __commonJS({
|
24908
|
-
"node_modules/.pnpm/braces@3.0.
|
25258
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js"(exports2, module2) {
|
24909
25259
|
"use strict";
|
24910
25260
|
var fill = require_fill_range();
|
24911
25261
|
var stringify4 = require_stringify();
|
24912
25262
|
var utils = require_utils2();
|
24913
25263
|
var append = (queue = "", stash = "", enclose = false) => {
|
24914
|
-
|
25264
|
+
let result = [];
|
24915
25265
|
queue = [].concat(queue);
|
24916
25266
|
stash = [].concat(stash);
|
24917
25267
|
if (!stash.length)
|
@@ -24919,9 +25269,9 @@ var require_expand = __commonJS({
|
|
24919
25269
|
if (!queue.length) {
|
24920
25270
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
24921
25271
|
}
|
24922
|
-
for (
|
25272
|
+
for (let item of queue) {
|
24923
25273
|
if (Array.isArray(item)) {
|
24924
|
-
for (
|
25274
|
+
for (let value of item) {
|
24925
25275
|
result.push(append(value, stash, enclose));
|
24926
25276
|
}
|
24927
25277
|
} else {
|
@@ -24935,8 +25285,8 @@ var require_expand = __commonJS({
|
|
24935
25285
|
return utils.flatten(result);
|
24936
25286
|
};
|
24937
25287
|
var expand2 = (ast, options = {}) => {
|
24938
|
-
|
24939
|
-
|
25288
|
+
let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
25289
|
+
let walk = (node, parent = {}) => {
|
24940
25290
|
node.queue = [];
|
24941
25291
|
let p4 = parent;
|
24942
25292
|
let q = parent.queue;
|
@@ -24953,7 +25303,7 @@ var require_expand = __commonJS({
|
|
24953
25303
|
return;
|
24954
25304
|
}
|
24955
25305
|
if (node.nodes && node.ranges > 0) {
|
24956
|
-
|
25306
|
+
let args = utils.reduce(node.nodes);
|
24957
25307
|
if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
|
24958
25308
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
24959
25309
|
}
|
@@ -24965,7 +25315,7 @@ var require_expand = __commonJS({
|
|
24965
25315
|
node.nodes = [];
|
24966
25316
|
return;
|
24967
25317
|
}
|
24968
|
-
|
25318
|
+
let enclose = utils.encloseBrace(node);
|
24969
25319
|
let queue = node.queue;
|
24970
25320
|
let block = node;
|
24971
25321
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
@@ -24973,7 +25323,7 @@ var require_expand = __commonJS({
|
|
24973
25323
|
queue = block.queue;
|
24974
25324
|
}
|
24975
25325
|
for (let i2 = 0; i2 < node.nodes.length; i2++) {
|
24976
|
-
|
25326
|
+
let child = node.nodes[i2];
|
24977
25327
|
if (child.type === "comma" && node.type === "brace") {
|
24978
25328
|
if (i2 === 1)
|
24979
25329
|
queue.push("");
|
@@ -25000,12 +25350,12 @@ var require_expand = __commonJS({
|
|
25000
25350
|
}
|
25001
25351
|
});
|
25002
25352
|
|
25003
|
-
// node_modules/.pnpm/braces@3.0.
|
25353
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js
|
25004
25354
|
var require_constants2 = __commonJS({
|
25005
|
-
"node_modules/.pnpm/braces@3.0.
|
25355
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js"(exports2, module2) {
|
25006
25356
|
"use strict";
|
25007
25357
|
module2.exports = {
|
25008
|
-
MAX_LENGTH:
|
25358
|
+
MAX_LENGTH: 1024 * 64,
|
25009
25359
|
// Digits
|
25010
25360
|
CHAR_0: "0",
|
25011
25361
|
/* 0 */
|
@@ -25101,9 +25451,9 @@ var require_constants2 = __commonJS({
|
|
25101
25451
|
}
|
25102
25452
|
});
|
25103
25453
|
|
25104
|
-
// node_modules/.pnpm/braces@3.0.
|
25454
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js
|
25105
25455
|
var require_parse2 = __commonJS({
|
25106
|
-
"node_modules/.pnpm/braces@3.0.
|
25456
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports2, module2) {
|
25107
25457
|
"use strict";
|
25108
25458
|
var stringify4 = require_stringify();
|
25109
25459
|
var {
|
@@ -25139,20 +25489,21 @@ var require_parse2 = __commonJS({
|
|
25139
25489
|
if (typeof input !== "string") {
|
25140
25490
|
throw new TypeError("Expected a string");
|
25141
25491
|
}
|
25142
|
-
|
25143
|
-
|
25492
|
+
let opts = options || {};
|
25493
|
+
let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
25144
25494
|
if (input.length > max) {
|
25145
25495
|
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
25146
25496
|
}
|
25147
|
-
|
25148
|
-
|
25497
|
+
let ast = { type: "root", input, nodes: [] };
|
25498
|
+
let stack = [ast];
|
25149
25499
|
let block = ast;
|
25150
25500
|
let prev = ast;
|
25151
25501
|
let brackets = 0;
|
25152
|
-
|
25502
|
+
let length = input.length;
|
25153
25503
|
let index4 = 0;
|
25154
25504
|
let depth = 0;
|
25155
25505
|
let value;
|
25506
|
+
let memo = {};
|
25156
25507
|
const advance = () => input[index4++];
|
25157
25508
|
const push = (node) => {
|
25158
25509
|
if (node.type === "text" && prev.type === "dot") {
|
@@ -25185,6 +25536,7 @@ var require_parse2 = __commonJS({
|
|
25185
25536
|
}
|
25186
25537
|
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
25187
25538
|
brackets++;
|
25539
|
+
let closed = true;
|
25188
25540
|
let next;
|
25189
25541
|
while (index4 < length && (next = advance())) {
|
25190
25542
|
value += next;
|
@@ -25223,7 +25575,7 @@ var require_parse2 = __commonJS({
|
|
25223
25575
|
continue;
|
25224
25576
|
}
|
25225
25577
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
25226
|
-
|
25578
|
+
let open = value;
|
25227
25579
|
let next;
|
25228
25580
|
if (options.keepQuotes !== true) {
|
25229
25581
|
value = "";
|
@@ -25245,8 +25597,8 @@ var require_parse2 = __commonJS({
|
|
25245
25597
|
}
|
25246
25598
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
25247
25599
|
depth++;
|
25248
|
-
|
25249
|
-
|
25600
|
+
let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
25601
|
+
let brace = {
|
25250
25602
|
type: "brace",
|
25251
25603
|
open: true,
|
25252
25604
|
close: false,
|
@@ -25266,7 +25618,7 @@ var require_parse2 = __commonJS({
|
|
25266
25618
|
push({ type: "text", value });
|
25267
25619
|
continue;
|
25268
25620
|
}
|
25269
|
-
|
25621
|
+
let type = "close";
|
25270
25622
|
block = stack.pop();
|
25271
25623
|
block.close = true;
|
25272
25624
|
push({ type, value });
|
@@ -25277,7 +25629,7 @@ var require_parse2 = __commonJS({
|
|
25277
25629
|
if (value === CHAR_COMMA && depth > 0) {
|
25278
25630
|
if (block.ranges > 0) {
|
25279
25631
|
block.ranges = 0;
|
25280
|
-
|
25632
|
+
let open = block.nodes.shift();
|
25281
25633
|
block.nodes = [open, { type: "text", value: stringify4(block) }];
|
25282
25634
|
}
|
25283
25635
|
push({ type: "comma", value });
|
@@ -25285,7 +25637,7 @@ var require_parse2 = __commonJS({
|
|
25285
25637
|
continue;
|
25286
25638
|
}
|
25287
25639
|
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
25288
|
-
|
25640
|
+
let siblings = block.nodes;
|
25289
25641
|
if (depth === 0 || siblings.length === 0) {
|
25290
25642
|
push({ type: "text", value });
|
25291
25643
|
continue;
|
@@ -25306,7 +25658,7 @@ var require_parse2 = __commonJS({
|
|
25306
25658
|
}
|
25307
25659
|
if (prev.type === "range") {
|
25308
25660
|
siblings.pop();
|
25309
|
-
|
25661
|
+
let before = siblings[siblings.length - 1];
|
25310
25662
|
before.value += prev.value + value;
|
25311
25663
|
prev = before;
|
25312
25664
|
block.ranges--;
|
@@ -25331,8 +25683,8 @@ var require_parse2 = __commonJS({
|
|
25331
25683
|
node.invalid = true;
|
25332
25684
|
}
|
25333
25685
|
});
|
25334
|
-
|
25335
|
-
|
25686
|
+
let parent = stack[stack.length - 1];
|
25687
|
+
let index5 = parent.nodes.indexOf(block);
|
25336
25688
|
parent.nodes.splice(index5, 1, ...block.nodes);
|
25337
25689
|
}
|
25338
25690
|
} while (stack.length > 0);
|
@@ -25343,9 +25695,9 @@ var require_parse2 = __commonJS({
|
|
25343
25695
|
}
|
25344
25696
|
});
|
25345
25697
|
|
25346
|
-
// node_modules/.pnpm/braces@3.0.
|
25698
|
+
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js
|
25347
25699
|
var require_braces = __commonJS({
|
25348
|
-
"node_modules/.pnpm/braces@3.0.
|
25700
|
+
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js"(exports2, module2) {
|
25349
25701
|
"use strict";
|
25350
25702
|
var stringify4 = require_stringify();
|
25351
25703
|
var compile = require_compile();
|
@@ -25354,8 +25706,8 @@ var require_braces = __commonJS({
|
|
25354
25706
|
var braces = (input, options = {}) => {
|
25355
25707
|
let output = [];
|
25356
25708
|
if (Array.isArray(input)) {
|
25357
|
-
for (
|
25358
|
-
|
25709
|
+
for (let pattern of input) {
|
25710
|
+
let result = braces.create(pattern, options);
|
25359
25711
|
if (Array.isArray(result)) {
|
25360
25712
|
output.push(...result);
|
25361
25713
|
} else {
|
@@ -26932,9 +27284,9 @@ var require_picomatch2 = __commonJS({
|
|
26932
27284
|
}
|
26933
27285
|
});
|
26934
27286
|
|
26935
|
-
// node_modules/.pnpm/micromatch@4.0.
|
27287
|
+
// node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js
|
26936
27288
|
var require_micromatch = __commonJS({
|
26937
|
-
"node_modules/.pnpm/micromatch@4.0.
|
27289
|
+
"node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"(exports2, module2) {
|
26938
27290
|
"use strict";
|
26939
27291
|
var util2 = require("util");
|
26940
27292
|
var braces = require_braces();
|
@@ -55293,9 +55645,9 @@ var init_tslib_es6 = __esm({
|
|
55293
55645
|
}
|
55294
55646
|
});
|
55295
55647
|
|
55296
|
-
// node_modules/.pnpm/@aws-sdk+core@3.
|
55648
|
+
// node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
55297
55649
|
var require_client = __commonJS({
|
55298
|
-
"node_modules/.pnpm/@aws-sdk+core@3.
|
55650
|
+
"node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js"(exports2, module2) {
|
55299
55651
|
"use strict";
|
55300
55652
|
var __defProp2 = Object.defineProperty;
|
55301
55653
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -55897,9 +56249,9 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
|
|
55897
56249
|
}
|
55898
56250
|
});
|
55899
56251
|
|
55900
|
-
// node_modules/.pnpm/@aws-sdk+core@3.
|
56252
|
+
// node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
55901
56253
|
var require_httpAuthSchemes = __commonJS({
|
55902
|
-
"node_modules/.pnpm/@aws-sdk+core@3.
|
56254
|
+
"node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js"(exports2, module2) {
|
55903
56255
|
"use strict";
|
55904
56256
|
var __defProp2 = Object.defineProperty;
|
55905
56257
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -57785,9 +58137,9 @@ var require_fxp = __commonJS({
|
|
57785
58137
|
}
|
57786
58138
|
});
|
57787
58139
|
|
57788
|
-
// node_modules/.pnpm/@aws-sdk+core@3.
|
58140
|
+
// node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
57789
58141
|
var require_protocols = __commonJS({
|
57790
|
-
"node_modules/.pnpm/@aws-sdk+core@3.
|
58142
|
+
"node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js"(exports2, module2) {
|
57791
58143
|
"use strict";
|
57792
58144
|
var __defProp2 = Object.defineProperty;
|
57793
58145
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -57994,9 +58346,9 @@ var require_protocols = __commonJS({
|
|
57994
58346
|
}
|
57995
58347
|
});
|
57996
58348
|
|
57997
|
-
// node_modules/.pnpm/@aws-sdk+core@3.
|
58349
|
+
// node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/index.js
|
57998
58350
|
var require_dist_cjs37 = __commonJS({
|
57999
|
-
"node_modules/.pnpm/@aws-sdk+core@3.
|
58351
|
+
"node_modules/.pnpm/@aws-sdk+core@3.576.0/node_modules/@aws-sdk/core/dist-cjs/index.js"(exports2) {
|
58000
58352
|
"use strict";
|
58001
58353
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58002
58354
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
@@ -58006,9 +58358,9 @@ var require_dist_cjs37 = __commonJS({
|
|
58006
58358
|
}
|
58007
58359
|
});
|
58008
58360
|
|
58009
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
58361
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/auth/httpAuthSchemeProvider.js
|
58010
58362
|
var require_httpAuthSchemeProvider = __commonJS({
|
58011
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
58363
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
58012
58364
|
"use strict";
|
58013
58365
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58014
58366
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultRDSDataHttpAuthSchemeProvider = exports2.defaultRDSDataHttpAuthSchemeParametersProvider = void 0;
|
@@ -58058,13 +58410,13 @@ var require_httpAuthSchemeProvider = __commonJS({
|
|
58058
58410
|
}
|
58059
58411
|
});
|
58060
58412
|
|
58061
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
58413
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/package.json
|
58062
58414
|
var require_package2 = __commonJS({
|
58063
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
58415
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/package.json"(exports2, module2) {
|
58064
58416
|
module2.exports = {
|
58065
58417
|
name: "@aws-sdk/client-rds-data",
|
58066
58418
|
description: "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
58067
|
-
version: "3.
|
58419
|
+
version: "3.577.0",
|
58068
58420
|
scripts: {
|
58069
58421
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
58070
58422
|
"build:cjs": "node ../../scripts/compilation/inline client-rds-data",
|
@@ -58083,10 +58435,10 @@ var require_package2 = __commonJS({
|
|
58083
58435
|
dependencies: {
|
58084
58436
|
"@aws-crypto/sha256-browser": "3.0.0",
|
58085
58437
|
"@aws-crypto/sha256-js": "3.0.0",
|
58086
|
-
"@aws-sdk/client-sso-oidc": "3.
|
58087
|
-
"@aws-sdk/client-sts": "3.
|
58088
|
-
"@aws-sdk/core": "3.
|
58089
|
-
"@aws-sdk/credential-provider-node": "3.
|
58438
|
+
"@aws-sdk/client-sso-oidc": "3.577.0",
|
58439
|
+
"@aws-sdk/client-sts": "3.577.0",
|
58440
|
+
"@aws-sdk/core": "3.576.0",
|
58441
|
+
"@aws-sdk/credential-provider-node": "3.577.0",
|
58090
58442
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
58091
58443
|
"@aws-sdk/middleware-logger": "3.577.0",
|
58092
58444
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
@@ -58097,26 +58449,26 @@ var require_package2 = __commonJS({
|
|
58097
58449
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
58098
58450
|
"@aws-sdk/util-user-agent-node": "3.577.0",
|
58099
58451
|
"@smithy/config-resolver": "^3.0.0",
|
58100
|
-
"@smithy/core": "^2.0.
|
58101
|
-
"@smithy/fetch-http-handler": "^3.0.
|
58452
|
+
"@smithy/core": "^2.0.0",
|
58453
|
+
"@smithy/fetch-http-handler": "^3.0.0",
|
58102
58454
|
"@smithy/hash-node": "^3.0.0",
|
58103
58455
|
"@smithy/invalid-dependency": "^3.0.0",
|
58104
58456
|
"@smithy/middleware-content-length": "^3.0.0",
|
58105
58457
|
"@smithy/middleware-endpoint": "^3.0.0",
|
58106
|
-
"@smithy/middleware-retry": "^3.0.
|
58458
|
+
"@smithy/middleware-retry": "^3.0.0",
|
58107
58459
|
"@smithy/middleware-serde": "^3.0.0",
|
58108
58460
|
"@smithy/middleware-stack": "^3.0.0",
|
58109
58461
|
"@smithy/node-config-provider": "^3.0.0",
|
58110
58462
|
"@smithy/node-http-handler": "^3.0.0",
|
58111
58463
|
"@smithy/protocol-http": "^4.0.0",
|
58112
|
-
"@smithy/smithy-client": "^3.0.
|
58464
|
+
"@smithy/smithy-client": "^3.0.0",
|
58113
58465
|
"@smithy/types": "^3.0.0",
|
58114
58466
|
"@smithy/url-parser": "^3.0.0",
|
58115
58467
|
"@smithy/util-base64": "^3.0.0",
|
58116
58468
|
"@smithy/util-body-length-browser": "^3.0.0",
|
58117
58469
|
"@smithy/util-body-length-node": "^3.0.0",
|
58118
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
58119
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
58470
|
+
"@smithy/util-defaults-mode-browser": "^3.0.0",
|
58471
|
+
"@smithy/util-defaults-mode-node": "^3.0.0",
|
58120
58472
|
"@smithy/util-endpoints": "^2.0.0",
|
58121
58473
|
"@smithy/util-middleware": "^3.0.0",
|
58122
58474
|
"@smithy/util-retry": "^3.0.0",
|
@@ -58613,9 +58965,9 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL
|
|
58613
58965
|
}
|
58614
58966
|
});
|
58615
58967
|
|
58616
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
58968
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
|
58617
58969
|
var require_checkUrl = __commonJS({
|
58618
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
58970
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js"(exports2) {
|
58619
58971
|
"use strict";
|
58620
58972
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58621
58973
|
exports2.checkUrl = void 0;
|
@@ -58656,9 +59008,9 @@ var require_checkUrl = __commonJS({
|
|
58656
59008
|
}
|
58657
59009
|
});
|
58658
59010
|
|
58659
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59011
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
|
58660
59012
|
var require_requestHelpers = __commonJS({
|
58661
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59013
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js"(exports2) {
|
58662
59014
|
"use strict";
|
58663
59015
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58664
59016
|
exports2.getCredentials = exports2.createGetRequest = void 0;
|
@@ -58716,9 +59068,9 @@ var require_requestHelpers = __commonJS({
|
|
58716
59068
|
}
|
58717
59069
|
});
|
58718
59070
|
|
58719
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59071
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
|
58720
59072
|
var require_retry_wrapper = __commonJS({
|
58721
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59073
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js"(exports2) {
|
58722
59074
|
"use strict";
|
58723
59075
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58724
59076
|
exports2.retryWrapper = void 0;
|
@@ -58738,9 +59090,9 @@ var require_retry_wrapper = __commonJS({
|
|
58738
59090
|
}
|
58739
59091
|
});
|
58740
59092
|
|
58741
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59093
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
|
58742
59094
|
var require_fromHttp = __commonJS({
|
58743
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59095
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js"(exports2) {
|
58744
59096
|
"use strict";
|
58745
59097
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58746
59098
|
exports2.fromHttp = void 0;
|
@@ -58805,9 +59157,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
58805
59157
|
}
|
58806
59158
|
});
|
58807
59159
|
|
58808
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59160
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
|
58809
59161
|
var require_dist_cjs40 = __commonJS({
|
58810
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.
|
59162
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-http@3.577.0/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports2) {
|
58811
59163
|
"use strict";
|
58812
59164
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58813
59165
|
exports2.fromHttp = void 0;
|
@@ -58818,9 +59170,9 @@ var require_dist_cjs40 = __commonJS({
|
|
58818
59170
|
}
|
58819
59171
|
});
|
58820
59172
|
|
58821
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59173
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
|
58822
59174
|
var require_httpAuthSchemeProvider2 = __commonJS({
|
58823
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59175
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
58824
59176
|
"use strict";
|
58825
59177
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58826
59178
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOHttpAuthSchemeProvider = exports2.defaultSSOHttpAuthSchemeParametersProvider = void 0;
|
@@ -58891,13 +59243,13 @@ var require_httpAuthSchemeProvider2 = __commonJS({
|
|
58891
59243
|
}
|
58892
59244
|
});
|
58893
59245
|
|
58894
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59246
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/package.json
|
58895
59247
|
var require_package3 = __commonJS({
|
58896
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59248
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/package.json"(exports2, module2) {
|
58897
59249
|
module2.exports = {
|
58898
59250
|
name: "@aws-sdk/client-sso",
|
58899
59251
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
58900
|
-
version: "3.
|
59252
|
+
version: "3.577.0",
|
58901
59253
|
scripts: {
|
58902
59254
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
58903
59255
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
@@ -58916,7 +59268,7 @@ var require_package3 = __commonJS({
|
|
58916
59268
|
dependencies: {
|
58917
59269
|
"@aws-crypto/sha256-browser": "3.0.0",
|
58918
59270
|
"@aws-crypto/sha256-js": "3.0.0",
|
58919
|
-
"@aws-sdk/core": "3.
|
59271
|
+
"@aws-sdk/core": "3.576.0",
|
58920
59272
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
58921
59273
|
"@aws-sdk/middleware-logger": "3.577.0",
|
58922
59274
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
@@ -58927,26 +59279,26 @@ var require_package3 = __commonJS({
|
|
58927
59279
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
58928
59280
|
"@aws-sdk/util-user-agent-node": "3.577.0",
|
58929
59281
|
"@smithy/config-resolver": "^3.0.0",
|
58930
|
-
"@smithy/core": "^2.0.
|
58931
|
-
"@smithy/fetch-http-handler": "^3.0.
|
59282
|
+
"@smithy/core": "^2.0.0",
|
59283
|
+
"@smithy/fetch-http-handler": "^3.0.0",
|
58932
59284
|
"@smithy/hash-node": "^3.0.0",
|
58933
59285
|
"@smithy/invalid-dependency": "^3.0.0",
|
58934
59286
|
"@smithy/middleware-content-length": "^3.0.0",
|
58935
59287
|
"@smithy/middleware-endpoint": "^3.0.0",
|
58936
|
-
"@smithy/middleware-retry": "^3.0.
|
59288
|
+
"@smithy/middleware-retry": "^3.0.0",
|
58937
59289
|
"@smithy/middleware-serde": "^3.0.0",
|
58938
59290
|
"@smithy/middleware-stack": "^3.0.0",
|
58939
59291
|
"@smithy/node-config-provider": "^3.0.0",
|
58940
59292
|
"@smithy/node-http-handler": "^3.0.0",
|
58941
59293
|
"@smithy/protocol-http": "^4.0.0",
|
58942
|
-
"@smithy/smithy-client": "^3.0.
|
59294
|
+
"@smithy/smithy-client": "^3.0.0",
|
58943
59295
|
"@smithy/types": "^3.0.0",
|
58944
59296
|
"@smithy/url-parser": "^3.0.0",
|
58945
59297
|
"@smithy/util-base64": "^3.0.0",
|
58946
59298
|
"@smithy/util-body-length-browser": "^3.0.0",
|
58947
59299
|
"@smithy/util-body-length-node": "^3.0.0",
|
58948
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
58949
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
59300
|
+
"@smithy/util-defaults-mode-browser": "^3.0.0",
|
59301
|
+
"@smithy/util-defaults-mode-node": "^3.0.0",
|
58950
59302
|
"@smithy/util-endpoints": "^2.0.0",
|
58951
59303
|
"@smithy/util-middleware": "^3.0.0",
|
58952
59304
|
"@smithy/util-retry": "^3.0.0",
|
@@ -59192,9 +59544,9 @@ var require_dist_cjs43 = __commonJS({
|
|
59192
59544
|
}
|
59193
59545
|
});
|
59194
59546
|
|
59195
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59547
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
|
59196
59548
|
var require_ruleset = __commonJS({
|
59197
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59549
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports2) {
|
59198
59550
|
"use strict";
|
59199
59551
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59200
59552
|
exports2.ruleSet = void 0;
|
@@ -59227,9 +59579,9 @@ var require_ruleset = __commonJS({
|
|
59227
59579
|
}
|
59228
59580
|
});
|
59229
59581
|
|
59230
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59582
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
|
59231
59583
|
var require_endpointResolver = __commonJS({
|
59232
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59584
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59233
59585
|
"use strict";
|
59234
59586
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59235
59587
|
exports2.defaultEndpointResolver = void 0;
|
@@ -59247,9 +59599,9 @@ var require_endpointResolver = __commonJS({
|
|
59247
59599
|
}
|
59248
59600
|
});
|
59249
59601
|
|
59250
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59602
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
|
59251
59603
|
var require_runtimeConfig_shared = __commonJS({
|
59252
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59604
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59253
59605
|
"use strict";
|
59254
59606
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59255
59607
|
exports2.getRuntimeConfig = void 0;
|
@@ -59402,9 +59754,9 @@ var require_dist_cjs44 = __commonJS({
|
|
59402
59754
|
}
|
59403
59755
|
});
|
59404
59756
|
|
59405
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59757
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
|
59406
59758
|
var require_runtimeConfig = __commonJS({
|
59407
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59759
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports2) {
|
59408
59760
|
"use strict";
|
59409
59761
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59410
59762
|
exports2.getRuntimeConfig = void 0;
|
@@ -59551,9 +59903,9 @@ var require_dist_cjs45 = __commonJS({
|
|
59551
59903
|
}
|
59552
59904
|
});
|
59553
59905
|
|
59554
|
-
// node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59906
|
+
// node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/index.js
|
59555
59907
|
var require_dist_cjs46 = __commonJS({
|
59556
|
-
"node_modules/.pnpm/@aws-sdk+client-sso@3.
|
59908
|
+
"node_modules/.pnpm/@aws-sdk+client-sso@3.577.0/node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2, module2) {
|
59557
59909
|
"use strict";
|
59558
59910
|
var __defProp2 = Object.defineProperty;
|
59559
59911
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -60097,9 +60449,9 @@ var require_dist_cjs46 = __commonJS({
|
|
60097
60449
|
}
|
60098
60450
|
});
|
60099
60451
|
|
60100
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60452
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
60101
60453
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
60102
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60454
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
60103
60455
|
"use strict";
|
60104
60456
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60105
60457
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
@@ -60166,13 +60518,13 @@ var require_httpAuthSchemeProvider3 = __commonJS({
|
|
60166
60518
|
}
|
60167
60519
|
});
|
60168
60520
|
|
60169
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60521
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
60170
60522
|
var require_package4 = __commonJS({
|
60171
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60523
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
60172
60524
|
module2.exports = {
|
60173
60525
|
name: "@aws-sdk/client-sso-oidc",
|
60174
60526
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
60175
|
-
version: "3.
|
60527
|
+
version: "3.577.0",
|
60176
60528
|
scripts: {
|
60177
60529
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
60178
60530
|
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
@@ -60191,9 +60543,9 @@ var require_package4 = __commonJS({
|
|
60191
60543
|
dependencies: {
|
60192
60544
|
"@aws-crypto/sha256-browser": "3.0.0",
|
60193
60545
|
"@aws-crypto/sha256-js": "3.0.0",
|
60194
|
-
"@aws-sdk/client-sts": "3.
|
60195
|
-
"@aws-sdk/core": "3.
|
60196
|
-
"@aws-sdk/credential-provider-node": "3.
|
60546
|
+
"@aws-sdk/client-sts": "3.577.0",
|
60547
|
+
"@aws-sdk/core": "3.576.0",
|
60548
|
+
"@aws-sdk/credential-provider-node": "3.577.0",
|
60197
60549
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
60198
60550
|
"@aws-sdk/middleware-logger": "3.577.0",
|
60199
60551
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
@@ -60204,26 +60556,26 @@ var require_package4 = __commonJS({
|
|
60204
60556
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
60205
60557
|
"@aws-sdk/util-user-agent-node": "3.577.0",
|
60206
60558
|
"@smithy/config-resolver": "^3.0.0",
|
60207
|
-
"@smithy/core": "^2.0.
|
60208
|
-
"@smithy/fetch-http-handler": "^3.0.
|
60559
|
+
"@smithy/core": "^2.0.0",
|
60560
|
+
"@smithy/fetch-http-handler": "^3.0.0",
|
60209
60561
|
"@smithy/hash-node": "^3.0.0",
|
60210
60562
|
"@smithy/invalid-dependency": "^3.0.0",
|
60211
60563
|
"@smithy/middleware-content-length": "^3.0.0",
|
60212
60564
|
"@smithy/middleware-endpoint": "^3.0.0",
|
60213
|
-
"@smithy/middleware-retry": "^3.0.
|
60565
|
+
"@smithy/middleware-retry": "^3.0.0",
|
60214
60566
|
"@smithy/middleware-serde": "^3.0.0",
|
60215
60567
|
"@smithy/middleware-stack": "^3.0.0",
|
60216
60568
|
"@smithy/node-config-provider": "^3.0.0",
|
60217
60569
|
"@smithy/node-http-handler": "^3.0.0",
|
60218
60570
|
"@smithy/protocol-http": "^4.0.0",
|
60219
|
-
"@smithy/smithy-client": "^3.0.
|
60571
|
+
"@smithy/smithy-client": "^3.0.0",
|
60220
60572
|
"@smithy/types": "^3.0.0",
|
60221
60573
|
"@smithy/url-parser": "^3.0.0",
|
60222
60574
|
"@smithy/util-base64": "^3.0.0",
|
60223
60575
|
"@smithy/util-body-length-browser": "^3.0.0",
|
60224
60576
|
"@smithy/util-body-length-node": "^3.0.0",
|
60225
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
60226
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
60577
|
+
"@smithy/util-defaults-mode-browser": "^3.0.0",
|
60578
|
+
"@smithy/util-defaults-mode-node": "^3.0.0",
|
60227
60579
|
"@smithy/util-endpoints": "^2.0.0",
|
60228
60580
|
"@smithy/util-middleware": "^3.0.0",
|
60229
60581
|
"@smithy/util-retry": "^3.0.0",
|
@@ -60272,9 +60624,9 @@ var require_package4 = __commonJS({
|
|
60272
60624
|
}
|
60273
60625
|
});
|
60274
60626
|
|
60275
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60627
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
60276
60628
|
var require_ruleset2 = __commonJS({
|
60277
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60629
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
60278
60630
|
"use strict";
|
60279
60631
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60280
60632
|
exports2.ruleSet = void 0;
|
@@ -60307,9 +60659,9 @@ var require_ruleset2 = __commonJS({
|
|
60307
60659
|
}
|
60308
60660
|
});
|
60309
60661
|
|
60310
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60662
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
60311
60663
|
var require_endpointResolver2 = __commonJS({
|
60312
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60664
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
60313
60665
|
"use strict";
|
60314
60666
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60315
60667
|
exports2.defaultEndpointResolver = void 0;
|
@@ -60327,9 +60679,9 @@ var require_endpointResolver2 = __commonJS({
|
|
60327
60679
|
}
|
60328
60680
|
});
|
60329
60681
|
|
60330
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60682
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
60331
60683
|
var require_runtimeConfig_shared2 = __commonJS({
|
60332
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60684
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
60333
60685
|
"use strict";
|
60334
60686
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60335
60687
|
exports2.getRuntimeConfig = void 0;
|
@@ -60373,9 +60725,9 @@ var require_runtimeConfig_shared2 = __commonJS({
|
|
60373
60725
|
}
|
60374
60726
|
});
|
60375
60727
|
|
60376
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60728
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
60377
60729
|
var require_runtimeConfig2 = __commonJS({
|
60378
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60730
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
60379
60731
|
"use strict";
|
60380
60732
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60381
60733
|
exports2.getRuntimeConfig = void 0;
|
@@ -60426,9 +60778,9 @@ var require_runtimeConfig2 = __commonJS({
|
|
60426
60778
|
}
|
60427
60779
|
});
|
60428
60780
|
|
60429
|
-
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60781
|
+
// node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
60430
60782
|
var require_dist_cjs47 = __commonJS({
|
60431
|
-
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.
|
60783
|
+
"node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
60432
60784
|
"use strict";
|
60433
60785
|
var __defProp2 = Object.defineProperty;
|
60434
60786
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -61410,9 +61762,9 @@ var require_dist_cjs47 = __commonJS({
|
|
61410
61762
|
}
|
61411
61763
|
});
|
61412
61764
|
|
61413
|
-
// node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.
|
61765
|
+
// node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.577.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
61414
61766
|
var require_dist_cjs48 = __commonJS({
|
61415
|
-
"node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.
|
61767
|
+
"node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.577.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) {
|
61416
61768
|
"use strict";
|
61417
61769
|
var __create2 = Object.create;
|
61418
61770
|
var __defProp2 = Object.defineProperty;
|
@@ -61590,9 +61942,9 @@ var require_dist_cjs48 = __commonJS({
|
|
61590
61942
|
}
|
61591
61943
|
});
|
61592
61944
|
|
61593
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.
|
61945
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.577.0_@aws-sdk+client-sso-oidc@3.577.0/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
61594
61946
|
var require_dist_cjs49 = __commonJS({
|
61595
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.
|
61947
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.577.0_@aws-sdk+client-sso-oidc@3.577.0/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) {
|
61596
61948
|
"use strict";
|
61597
61949
|
var __defProp2 = Object.defineProperty;
|
61598
61950
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -61774,9 +62126,9 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
61774
62126
|
}
|
61775
62127
|
});
|
61776
62128
|
|
61777
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62129
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
|
61778
62130
|
var require_httpAuthSchemeProvider4 = __commonJS({
|
61779
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62131
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
61780
62132
|
"use strict";
|
61781
62133
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61782
62134
|
exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
@@ -61846,9 +62198,9 @@ var require_httpAuthSchemeProvider4 = __commonJS({
|
|
61846
62198
|
}
|
61847
62199
|
});
|
61848
62200
|
|
61849
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62201
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js
|
61850
62202
|
var require_EndpointParameters = __commonJS({
|
61851
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62203
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) {
|
61852
62204
|
"use strict";
|
61853
62205
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61854
62206
|
exports2.commonParams = exports2.resolveClientEndpointParameters = void 0;
|
@@ -61872,13 +62224,13 @@ var require_EndpointParameters = __commonJS({
|
|
61872
62224
|
}
|
61873
62225
|
});
|
61874
62226
|
|
61875
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62227
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/package.json
|
61876
62228
|
var require_package5 = __commonJS({
|
61877
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62229
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) {
|
61878
62230
|
module2.exports = {
|
61879
62231
|
name: "@aws-sdk/client-sts",
|
61880
62232
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
61881
|
-
version: "3.
|
62233
|
+
version: "3.577.0",
|
61882
62234
|
scripts: {
|
61883
62235
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
61884
62236
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
@@ -61899,9 +62251,9 @@ var require_package5 = __commonJS({
|
|
61899
62251
|
dependencies: {
|
61900
62252
|
"@aws-crypto/sha256-browser": "3.0.0",
|
61901
62253
|
"@aws-crypto/sha256-js": "3.0.0",
|
61902
|
-
"@aws-sdk/client-sso-oidc": "3.
|
61903
|
-
"@aws-sdk/core": "3.
|
61904
|
-
"@aws-sdk/credential-provider-node": "3.
|
62254
|
+
"@aws-sdk/client-sso-oidc": "3.577.0",
|
62255
|
+
"@aws-sdk/core": "3.576.0",
|
62256
|
+
"@aws-sdk/credential-provider-node": "3.577.0",
|
61905
62257
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
61906
62258
|
"@aws-sdk/middleware-logger": "3.577.0",
|
61907
62259
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
@@ -61912,26 +62264,26 @@ var require_package5 = __commonJS({
|
|
61912
62264
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
61913
62265
|
"@aws-sdk/util-user-agent-node": "3.577.0",
|
61914
62266
|
"@smithy/config-resolver": "^3.0.0",
|
61915
|
-
"@smithy/core": "^2.0.
|
61916
|
-
"@smithy/fetch-http-handler": "^3.0.
|
62267
|
+
"@smithy/core": "^2.0.0",
|
62268
|
+
"@smithy/fetch-http-handler": "^3.0.0",
|
61917
62269
|
"@smithy/hash-node": "^3.0.0",
|
61918
62270
|
"@smithy/invalid-dependency": "^3.0.0",
|
61919
62271
|
"@smithy/middleware-content-length": "^3.0.0",
|
61920
62272
|
"@smithy/middleware-endpoint": "^3.0.0",
|
61921
|
-
"@smithy/middleware-retry": "^3.0.
|
62273
|
+
"@smithy/middleware-retry": "^3.0.0",
|
61922
62274
|
"@smithy/middleware-serde": "^3.0.0",
|
61923
62275
|
"@smithy/middleware-stack": "^3.0.0",
|
61924
62276
|
"@smithy/node-config-provider": "^3.0.0",
|
61925
62277
|
"@smithy/node-http-handler": "^3.0.0",
|
61926
62278
|
"@smithy/protocol-http": "^4.0.0",
|
61927
|
-
"@smithy/smithy-client": "^3.0.
|
62279
|
+
"@smithy/smithy-client": "^3.0.0",
|
61928
62280
|
"@smithy/types": "^3.0.0",
|
61929
62281
|
"@smithy/url-parser": "^3.0.0",
|
61930
62282
|
"@smithy/util-base64": "^3.0.0",
|
61931
62283
|
"@smithy/util-body-length-browser": "^3.0.0",
|
61932
62284
|
"@smithy/util-body-length-node": "^3.0.0",
|
61933
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
61934
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
62285
|
+
"@smithy/util-defaults-mode-browser": "^3.0.0",
|
62286
|
+
"@smithy/util-defaults-mode-node": "^3.0.0",
|
61935
62287
|
"@smithy/util-endpoints": "^2.0.0",
|
61936
62288
|
"@smithy/util-middleware": "^3.0.0",
|
61937
62289
|
"@smithy/util-retry": "^3.0.0",
|
@@ -61980,9 +62332,9 @@ var require_package5 = __commonJS({
|
|
61980
62332
|
}
|
61981
62333
|
});
|
61982
62334
|
|
61983
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62335
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
61984
62336
|
var require_ruleset3 = __commonJS({
|
61985
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62337
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
61986
62338
|
"use strict";
|
61987
62339
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61988
62340
|
exports2.ruleSet = void 0;
|
@@ -62027,9 +62379,9 @@ var require_ruleset3 = __commonJS({
|
|
62027
62379
|
}
|
62028
62380
|
});
|
62029
62381
|
|
62030
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62382
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
62031
62383
|
var require_endpointResolver3 = __commonJS({
|
62032
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62384
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
62033
62385
|
"use strict";
|
62034
62386
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
62035
62387
|
exports2.defaultEndpointResolver = void 0;
|
@@ -62047,9 +62399,9 @@ var require_endpointResolver3 = __commonJS({
|
|
62047
62399
|
}
|
62048
62400
|
});
|
62049
62401
|
|
62050
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62402
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
62051
62403
|
var require_runtimeConfig_shared3 = __commonJS({
|
62052
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62404
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
62053
62405
|
"use strict";
|
62054
62406
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
62055
62407
|
exports2.getRuntimeConfig = void 0;
|
@@ -62093,9 +62445,9 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
62093
62445
|
}
|
62094
62446
|
});
|
62095
62447
|
|
62096
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62448
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
62097
62449
|
var require_runtimeConfig3 = __commonJS({
|
62098
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62450
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
62099
62451
|
"use strict";
|
62100
62452
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
62101
62453
|
exports2.getRuntimeConfig = void 0;
|
@@ -62159,9 +62511,9 @@ var require_runtimeConfig3 = __commonJS({
|
|
62159
62511
|
}
|
62160
62512
|
});
|
62161
62513
|
|
62162
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62514
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js
|
62163
62515
|
var require_httpAuthExtensionConfiguration = __commonJS({
|
62164
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62516
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) {
|
62165
62517
|
"use strict";
|
62166
62518
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
62167
62519
|
exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0;
|
@@ -62207,9 +62559,9 @@ var require_httpAuthExtensionConfiguration = __commonJS({
|
|
62207
62559
|
}
|
62208
62560
|
});
|
62209
62561
|
|
62210
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62562
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js
|
62211
62563
|
var require_runtimeExtensions = __commonJS({
|
62212
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62564
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) {
|
62213
62565
|
"use strict";
|
62214
62566
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
62215
62567
|
exports2.resolveRuntimeExtensions = void 0;
|
@@ -62238,9 +62590,9 @@ var require_runtimeExtensions = __commonJS({
|
|
62238
62590
|
}
|
62239
62591
|
});
|
62240
62592
|
|
62241
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62593
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
|
62242
62594
|
var require_STSClient = __commonJS({
|
62243
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62595
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) {
|
62244
62596
|
"use strict";
|
62245
62597
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
62246
62598
|
exports2.STSClient = exports2.__Client = void 0;
|
@@ -62302,9 +62654,9 @@ var require_STSClient = __commonJS({
|
|
62302
62654
|
}
|
62303
62655
|
});
|
62304
62656
|
|
62305
|
-
// node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62657
|
+
// node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
62306
62658
|
var require_dist_cjs50 = __commonJS({
|
62307
|
-
"node_modules/.pnpm/@aws-sdk+client-sts@3.
|
62659
|
+
"node_modules/.pnpm/@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
62308
62660
|
"use strict";
|
62309
62661
|
var __defProp2 = Object.defineProperty;
|
62310
62662
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -63745,9 +64097,9 @@ var require_dist_cjs51 = __commonJS({
|
|
63745
64097
|
}
|
63746
64098
|
});
|
63747
64099
|
|
63748
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.
|
64100
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
|
63749
64101
|
var require_fromWebToken = __commonJS({
|
63750
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.
|
64102
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) {
|
63751
64103
|
"use strict";
|
63752
64104
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k2, k22) {
|
63753
64105
|
if (k22 === void 0)
|
@@ -63810,9 +64162,9 @@ var require_fromWebToken = __commonJS({
|
|
63810
64162
|
}
|
63811
64163
|
});
|
63812
64164
|
|
63813
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.
|
64165
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
|
63814
64166
|
var require_fromTokenFile = __commonJS({
|
63815
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.
|
64167
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports2) {
|
63816
64168
|
"use strict";
|
63817
64169
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
63818
64170
|
exports2.fromTokenFile = void 0;
|
@@ -63842,9 +64194,9 @@ var require_fromTokenFile = __commonJS({
|
|
63842
64194
|
}
|
63843
64195
|
});
|
63844
64196
|
|
63845
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.
|
64197
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
|
63846
64198
|
var require_dist_cjs52 = __commonJS({
|
63847
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.
|
64199
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) {
|
63848
64200
|
"use strict";
|
63849
64201
|
var __defProp2 = Object.defineProperty;
|
63850
64202
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -63867,9 +64219,9 @@ var require_dist_cjs52 = __commonJS({
|
|
63867
64219
|
}
|
63868
64220
|
});
|
63869
64221
|
|
63870
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.
|
64222
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.577.0_@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
63871
64223
|
var require_dist_cjs53 = __commonJS({
|
63872
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.
|
64224
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.577.0_@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
|
63873
64225
|
"use strict";
|
63874
64226
|
var __create2 = Object.create;
|
63875
64227
|
var __defProp2 = Object.defineProperty;
|
@@ -64037,9 +64389,9 @@ var require_dist_cjs53 = __commonJS({
|
|
64037
64389
|
}
|
64038
64390
|
});
|
64039
64391
|
|
64040
|
-
// node_modules/.pnpm/@aws-sdk+credential-provider-node@3.
|
64392
|
+
// node_modules/.pnpm/@aws-sdk+credential-provider-node@3.577.0_@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
64041
64393
|
var require_dist_cjs54 = __commonJS({
|
64042
|
-
"node_modules/.pnpm/@aws-sdk+credential-provider-node@3.
|
64394
|
+
"node_modules/.pnpm/@aws-sdk+credential-provider-node@3.577.0_@aws-sdk+client-sso-oidc@3.577.0_@aws-sdk+client-sts@3.577.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
|
64043
64395
|
"use strict";
|
64044
64396
|
var __create2 = Object.create;
|
64045
64397
|
var __defProp2 = Object.defineProperty;
|
@@ -64152,9 +64504,9 @@ var require_dist_cjs54 = __commonJS({
|
|
64152
64504
|
}
|
64153
64505
|
});
|
64154
64506
|
|
64155
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64507
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/ruleset.js
|
64156
64508
|
var require_ruleset4 = __commonJS({
|
64157
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64509
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/ruleset.js"(exports2) {
|
64158
64510
|
"use strict";
|
64159
64511
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
64160
64512
|
exports2.ruleSet = void 0;
|
@@ -64185,9 +64537,9 @@ var require_ruleset4 = __commonJS({
|
|
64185
64537
|
}
|
64186
64538
|
});
|
64187
64539
|
|
64188
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64540
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/endpointResolver.js
|
64189
64541
|
var require_endpointResolver4 = __commonJS({
|
64190
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64542
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
64191
64543
|
"use strict";
|
64192
64544
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
64193
64545
|
exports2.defaultEndpointResolver = void 0;
|
@@ -64205,9 +64557,9 @@ var require_endpointResolver4 = __commonJS({
|
|
64205
64557
|
}
|
64206
64558
|
});
|
64207
64559
|
|
64208
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64560
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.shared.js
|
64209
64561
|
var require_runtimeConfig_shared4 = __commonJS({
|
64210
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64562
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
64211
64563
|
"use strict";
|
64212
64564
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
64213
64565
|
exports2.getRuntimeConfig = void 0;
|
@@ -64245,9 +64597,9 @@ var require_runtimeConfig_shared4 = __commonJS({
|
|
64245
64597
|
}
|
64246
64598
|
});
|
64247
64599
|
|
64248
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64600
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.js
|
64249
64601
|
var require_runtimeConfig4 = __commonJS({
|
64250
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64602
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.js"(exports2) {
|
64251
64603
|
"use strict";
|
64252
64604
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
64253
64605
|
exports2.getRuntimeConfig = void 0;
|
@@ -64298,9 +64650,9 @@ var require_runtimeConfig4 = __commonJS({
|
|
64298
64650
|
}
|
64299
64651
|
});
|
64300
64652
|
|
64301
|
-
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64653
|
+
// node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js
|
64302
64654
|
var require_dist_cjs55 = __commonJS({
|
64303
|
-
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.
|
64655
|
+
"node_modules/.pnpm/@aws-sdk+client-rds-data@3.577.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js"(exports2, module2) {
|
64304
64656
|
"use strict";
|
64305
64657
|
var __defProp2 = Object.defineProperty;
|
64306
64658
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
@@ -111383,7 +111735,8 @@ var init_connections = __esm({
|
|
111383
111735
|
const pg = await Promise.resolve().then(() => __toESM(require_lib3()));
|
111384
111736
|
const { drizzle } = await import("drizzle-orm/node-postgres");
|
111385
111737
|
const { migrate } = await import("drizzle-orm/node-postgres/migrator");
|
111386
|
-
const
|
111738
|
+
const ssl = "ssl" in credentials2 ? credentials2.ssl === "prefer" || credentials2.ssl === "require" || credentials2.ssl === "allow" ? { rejectUnauthorized: false } : credentials2.ssl === "verify-full" ? {} : credentials2.ssl : {};
|
111739
|
+
const client = "url" in credentials2 ? new pg.default.Pool({ connectionString: credentials2.url, max: 1 }) : new pg.default.Pool({ ...credentials2, ssl, max: 1 });
|
111387
111740
|
const db2 = drizzle(client);
|
111388
111741
|
const migrateFn = async (config) => {
|
111389
111742
|
return migrate(db2, config);
|
@@ -111435,11 +111788,11 @@ var init_connections = __esm({
|
|
111435
111788
|
"'@vercel/postgres' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket"
|
111436
111789
|
)
|
111437
111790
|
);
|
111438
|
-
const {
|
111791
|
+
const { VercelPool: VercelPool2 } = await Promise.resolve().then(() => (init_index_node(), index_node_exports));
|
111439
111792
|
const { drizzle } = await import("drizzle-orm/vercel-postgres");
|
111440
111793
|
const { migrate } = await import("drizzle-orm/vercel-postgres/migrator");
|
111441
|
-
const
|
111442
|
-
client
|
111794
|
+
const ssl = "ssl" in credentials2 ? credentials2.ssl === "prefer" || credentials2.ssl === "require" || credentials2.ssl === "allow" ? { rejectUnauthorized: false } : credentials2.ssl === "verify-full" ? {} : credentials2.ssl : {};
|
111795
|
+
const client = "url" in credentials2 ? new VercelPool2({ connectionString: credentials2.url }) : new VercelPool2({ ...credentials2, ssl });
|
111443
111796
|
await client.connect();
|
111444
111797
|
const db2 = drizzle(client);
|
111445
111798
|
const migrateFn = async (config) => {
|
@@ -111470,16 +111823,16 @@ var init_connections = __esm({
|
|
111470
111823
|
"'@neondatabase/serverless' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket"
|
111471
111824
|
)
|
111472
111825
|
);
|
111473
|
-
const {
|
111826
|
+
const { Pool, neonConfig } = await Promise.resolve().then(() => (init_serverless2(), serverless_exports));
|
111474
111827
|
const { drizzle } = await import("drizzle-orm/neon-serverless");
|
111475
111828
|
const { migrate } = await import("drizzle-orm/neon-serverless/migrator");
|
111476
|
-
const
|
111829
|
+
const ssl = "ssl" in credentials2 ? credentials2.ssl === "prefer" || credentials2.ssl === "require" || credentials2.ssl === "allow" ? { rejectUnauthorized: false } : credentials2.ssl === "verify-full" ? {} : credentials2.ssl : {};
|
111830
|
+
const client = "url" in credentials2 ? new Pool({ connectionString: credentials2.url, max: 1 }) : new Pool({ ...credentials2, max: 1, ssl });
|
111831
|
+
neonConfig.webSocketConstructor = wrapper_default;
|
111477
111832
|
const db2 = drizzle(client);
|
111478
111833
|
const migrateFn = async (config) => {
|
111479
111834
|
return migrate(db2, config);
|
111480
111835
|
};
|
111481
|
-
client.neonConfig.webSocketConstructor = wrapper_default;
|
111482
|
-
await client.connect();
|
111483
111836
|
const query = async (sql2, params) => {
|
111484
111837
|
const result = await client.query(sql2, params ?? []);
|
111485
111838
|
return result.rows;
|
@@ -111736,7 +112089,9 @@ var init_connections = __esm({
|
|
111736
112089
|
const { default: Database } = await import("better-sqlite3");
|
111737
112090
|
const { drizzle } = await import("drizzle-orm/better-sqlite3");
|
111738
112091
|
const { migrate } = await import("drizzle-orm/better-sqlite3/migrator");
|
111739
|
-
const sqlite = new Database(
|
112092
|
+
const sqlite = new Database(
|
112093
|
+
normaliseSQLiteUrl(credentials2.url, "better-sqlite")
|
112094
|
+
);
|
111740
112095
|
const drzl = drizzle(sqlite);
|
111741
112096
|
const migrateFn = async (config) => {
|
111742
112097
|
return migrate(drzl, config);
|
@@ -115191,6 +115546,7 @@ var init_introspect_pg = __esm({
|
|
115191
115546
|
init_utils3();
|
115192
115547
|
init_pgSerializer();
|
115193
115548
|
init_global();
|
115549
|
+
init_vector();
|
115194
115550
|
pgImportsList = /* @__PURE__ */ new Set([
|
115195
115551
|
"pgTable",
|
115196
115552
|
"pgEnum",
|
@@ -115219,7 +115575,11 @@ var init_introspect_pg = __esm({
|
|
115219
115575
|
"macaddr8",
|
115220
115576
|
"bigint",
|
115221
115577
|
"doublePrecision",
|
115222
|
-
"uuid"
|
115578
|
+
"uuid",
|
115579
|
+
"vector",
|
115580
|
+
"point",
|
115581
|
+
"line",
|
115582
|
+
"geometry"
|
115223
115583
|
]);
|
115224
115584
|
objToStatement23 = (json) => {
|
115225
115585
|
json = Object.fromEntries(Object.entries(json).filter((it) => it[1]));
|
@@ -115356,6 +115716,8 @@ var init_introspect_pg = __esm({
|
|
115356
115716
|
patched = patched.startsWith("numeric(") ? "numeric" : patched;
|
115357
115717
|
patched = patched.startsWith("time(") ? "time" : patched;
|
115358
115718
|
patched = patched.startsWith("timestamp(") ? "timestamp" : patched;
|
115719
|
+
patched = patched.startsWith("vector(") ? "vector" : patched;
|
115720
|
+
patched = patched.startsWith("geometry(") ? "geometry" : patched;
|
115359
115721
|
return patched;
|
115360
115722
|
}).filter((type) => {
|
115361
115723
|
return pgImportsList.has(type);
|
@@ -115546,7 +115908,7 @@ var init_introspect_pg = __esm({
|
|
115546
115908
|
}
|
115547
115909
|
if (lowered === "date") {
|
115548
115910
|
let out = `${withCasing2(name, casing2)}: date("${name}")`;
|
115549
|
-
defaultValue = defaultValue === "now()" ? ".defaultNow()" : defaultValue ? `.default(${defaultValue})` : "";
|
115911
|
+
defaultValue = defaultValue === "now()" ? ".defaultNow()" : defaultValue === "CURRENT_DATE" ? `.default(sql\`${defaultValue}\`)` : defaultValue ? `.default(${defaultValue})` : "";
|
115550
115912
|
out += defaultValue;
|
115551
115913
|
return out;
|
115552
115914
|
}
|
@@ -115606,6 +115968,58 @@ var init_introspect_pg = __esm({
|
|
115606
115968
|
out += typeof defaultValue !== "undefined" ? `.default(${defaultValue})` : "";
|
115607
115969
|
return out;
|
115608
115970
|
}
|
115971
|
+
if (lowered.startsWith("point")) {
|
115972
|
+
let out = `${withCasing2(name, casing2)}: point("${name}")`;
|
115973
|
+
out += typeof defaultValue !== "undefined" ? `.default(${defaultValue})` : "";
|
115974
|
+
return out;
|
115975
|
+
}
|
115976
|
+
if (lowered.startsWith("line")) {
|
115977
|
+
let out = `${withCasing2(name, casing2)}: point("${name}")`;
|
115978
|
+
out += typeof defaultValue !== "undefined" ? `.default(${defaultValue})` : "";
|
115979
|
+
return out;
|
115980
|
+
}
|
115981
|
+
if (lowered.startsWith("geometry")) {
|
115982
|
+
let out = "";
|
115983
|
+
let isGeoUnknown = false;
|
115984
|
+
if (lowered.length !== 8) {
|
115985
|
+
const geometryOptions = lowered.slice(9, -1).split(",");
|
115986
|
+
if (geometryOptions.length === 1 && geometryOptions[0] !== "") {
|
115987
|
+
out = `${withCasing2(name, casing2)}: geometry("${name}", { type: "${geometryOptions[0]}" })`;
|
115988
|
+
} else if (geometryOptions.length === 2) {
|
115989
|
+
out = `${withCasing2(name, casing2)}: geometry("${name}", { type: "${geometryOptions[0]}", srid: ${geometryOptions[1]} })`;
|
115990
|
+
} else {
|
115991
|
+
isGeoUnknown = true;
|
115992
|
+
}
|
115993
|
+
} else {
|
115994
|
+
out = `${withCasing2(name, casing2)}: geometry("${name}")`;
|
115995
|
+
}
|
115996
|
+
out += typeof defaultValue !== "undefined" ? `.default(${defaultValue})` : "";
|
115997
|
+
if (isGeoUnknown) {
|
115998
|
+
let unknown2 = `// TODO: failed to parse geometry type because found more than 2 options inside geometry function '${type}'
|
115999
|
+
// Introspect is currently supporting only type and srid options
|
116000
|
+
`;
|
116001
|
+
unknown2 += ` ${withCasing2(name, casing2)}: unknown("${name}")`;
|
116002
|
+
return unknown2;
|
116003
|
+
}
|
116004
|
+
return out;
|
116005
|
+
}
|
116006
|
+
if (lowered.startsWith("vector")) {
|
116007
|
+
const split = lowered.split(" ");
|
116008
|
+
let out;
|
116009
|
+
if (lowered.length !== 6) {
|
116010
|
+
out = `${withCasing2(
|
116011
|
+
name,
|
116012
|
+
casing2
|
116013
|
+
)}: vector("${name}", { dimensions: ${lowered.substring(
|
116014
|
+
7,
|
116015
|
+
lowered.length - 1
|
116016
|
+
)} })`;
|
116017
|
+
} else {
|
116018
|
+
out = `${withCasing2(name, casing2)}: vector("${name}")`;
|
116019
|
+
}
|
116020
|
+
out += typeof defaultValue !== "undefined" ? `.default(${defaultValue})` : "";
|
116021
|
+
return out;
|
116022
|
+
}
|
115609
116023
|
if (lowered.startsWith("char")) {
|
115610
116024
|
let out;
|
115611
116025
|
if (lowered.length !== 4) {
|
@@ -115719,13 +116133,35 @@ var init_introspect_pg = __esm({
|
|
115719
116133
|
let idxKey = it.name.startsWith(tableName) && it.name !== tableName ? it.name.slice(tableName.length + 1) : it.name;
|
115720
116134
|
idxKey = idxKey.endsWith("_index") ? idxKey.slice(0, -"_index".length) + "_idx" : idxKey;
|
115721
116135
|
idxKey = withCasing2(idxKey, casing2);
|
115722
|
-
const indexGeneratedName = indexName2(
|
116136
|
+
const indexGeneratedName = indexName2(
|
116137
|
+
tableName,
|
116138
|
+
it.columns.map((it2) => it2.expression)
|
116139
|
+
);
|
115723
116140
|
const escapedIndexName = indexGeneratedName === it.name ? "" : `"${it.name}"`;
|
115724
116141
|
statement += ` ${idxKey}: `;
|
115725
116142
|
statement += it.isUnique ? "uniqueIndex(" : "index(";
|
115726
116143
|
statement += `${escapedIndexName})`;
|
115727
|
-
statement +=
|
115728
|
-
statement +=
|
116144
|
+
statement += `${it.concurrently ? `.concurrently()` : ""}`;
|
116145
|
+
statement += `.using("${it.method}", ${it.columns.map((it2) => {
|
116146
|
+
if (it2.isExpression) {
|
116147
|
+
return `sql\`${it2.expression}\``;
|
116148
|
+
} else {
|
116149
|
+
return `table.${withCasing2(it2.expression, casing2)}${it2.opclass && vectorOps.includes(it2.opclass) ? `.op("${it2.opclass}")` : ""}`;
|
116150
|
+
}
|
116151
|
+
}).join(", ")})`;
|
116152
|
+
statement += it.where ? `.where(sql\`${it.where}\`)` : "";
|
116153
|
+
function reverseLogic(mappedWith) {
|
116154
|
+
let reversedString = "{";
|
116155
|
+
for (const key in mappedWith) {
|
116156
|
+
if (mappedWith.hasOwnProperty(key)) {
|
116157
|
+
reversedString += `${key}: "${mappedWith[key]}",`;
|
116158
|
+
}
|
116159
|
+
}
|
116160
|
+
reversedString = reversedString.length > 1 ? reversedString.slice(0, reversedString.length - 1) : reversedString;
|
116161
|
+
return `${reversedString}}`;
|
116162
|
+
}
|
116163
|
+
statement += it.with && Object.keys(it.with).length > 0 ? `.with(${reverseLogic(it.with)})` : "";
|
116164
|
+
statement += `,
|
115729
116165
|
`;
|
115730
116166
|
});
|
115731
116167
|
return statement;
|
@@ -116183,10 +116619,19 @@ var init_introspect = __esm({
|
|
116183
116619
|
const filter2 = (tableName) => {
|
116184
116620
|
if (matchers.length === 0)
|
116185
116621
|
return true;
|
116186
|
-
|
116187
|
-
|
116188
|
-
if (matcher.
|
116189
|
-
|
116622
|
+
let flags = [];
|
116623
|
+
for (let matcher of matchers) {
|
116624
|
+
if (matcher.negate) {
|
116625
|
+
if (!matcher.match(tableName)) {
|
116626
|
+
flags.push(false);
|
116627
|
+
}
|
116628
|
+
}
|
116629
|
+
if (matcher.match(tableName)) {
|
116630
|
+
flags.push(true);
|
116631
|
+
}
|
116632
|
+
}
|
116633
|
+
if (flags.length > 0) {
|
116634
|
+
return flags.every(Boolean);
|
116190
116635
|
}
|
116191
116636
|
return false;
|
116192
116637
|
};
|
@@ -116257,10 +116702,19 @@ var init_introspect = __esm({
|
|
116257
116702
|
const filter2 = (tableName) => {
|
116258
116703
|
if (matchers.length === 0)
|
116259
116704
|
return true;
|
116260
|
-
|
116261
|
-
|
116262
|
-
if (matcher.
|
116263
|
-
|
116705
|
+
let flags = [];
|
116706
|
+
for (let matcher of matchers) {
|
116707
|
+
if (matcher.negate) {
|
116708
|
+
if (!matcher.match(tableName)) {
|
116709
|
+
flags.push(false);
|
116710
|
+
}
|
116711
|
+
}
|
116712
|
+
if (matcher.match(tableName)) {
|
116713
|
+
flags.push(true);
|
116714
|
+
}
|
116715
|
+
}
|
116716
|
+
if (flags.length > 0) {
|
116717
|
+
return flags.every(Boolean);
|
116264
116718
|
}
|
116265
116719
|
return false;
|
116266
116720
|
};
|
@@ -116329,10 +116783,19 @@ var init_introspect = __esm({
|
|
116329
116783
|
const filter2 = (tableName) => {
|
116330
116784
|
if (matchers.length === 0)
|
116331
116785
|
return true;
|
116332
|
-
|
116333
|
-
|
116334
|
-
if (matcher.
|
116335
|
-
|
116786
|
+
let flags = [];
|
116787
|
+
for (let matcher of matchers) {
|
116788
|
+
if (matcher.negate) {
|
116789
|
+
if (!matcher.match(tableName)) {
|
116790
|
+
flags.push(false);
|
116791
|
+
}
|
116792
|
+
}
|
116793
|
+
if (matcher.match(tableName)) {
|
116794
|
+
flags.push(true);
|
116795
|
+
}
|
116796
|
+
}
|
116797
|
+
if (flags.length > 0) {
|
116798
|
+
return flags.every(Boolean);
|
116336
116799
|
}
|
116337
116800
|
return false;
|
116338
116801
|
};
|
@@ -116926,10 +117389,10 @@ var init_dist3 = __esm({
|
|
116926
117389
|
}
|
116927
117390
|
});
|
116928
117391
|
|
116929
|
-
// node_modules/.pnpm/hono@4.3.
|
117392
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/url.js
|
116930
117393
|
var splitPath, splitRoutingPath, extractGroupsFromPath, replaceGroupMarks, patternCache, getPattern, getPath, getQueryStrings, getPathNoStrict, mergePath, checkOptionalParameter, _decodeURI, _getQueryParam, getQueryParam, getQueryParams, decodeURIComponent_;
|
116931
117394
|
var init_url = __esm({
|
116932
|
-
"node_modules/.pnpm/hono@4.3.
|
117395
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/url.js"() {
|
116933
117396
|
splitPath = (path5) => {
|
116934
117397
|
const paths = path5.split("/");
|
116935
117398
|
if (paths[0] === "") {
|
@@ -117124,10 +117587,10 @@ var init_url = __esm({
|
|
117124
117587
|
}
|
117125
117588
|
});
|
117126
117589
|
|
117127
|
-
// node_modules/.pnpm/hono@4.3.
|
117590
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/cookie.js
|
117128
117591
|
var validCookieNameRegEx, validCookieValueRegEx, parse5;
|
117129
117592
|
var init_cookie = __esm({
|
117130
|
-
"node_modules/.pnpm/hono@4.3.
|
117593
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/cookie.js"() {
|
117131
117594
|
init_url();
|
117132
117595
|
validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
|
117133
117596
|
validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/;
|
@@ -117156,10 +117619,10 @@ var init_cookie = __esm({
|
|
117156
117619
|
}
|
117157
117620
|
});
|
117158
117621
|
|
117159
|
-
// node_modules/.pnpm/hono@4.3.
|
117622
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/helper/cookie/index.js
|
117160
117623
|
var getCookie;
|
117161
117624
|
var init_cookie2 = __esm({
|
117162
|
-
"node_modules/.pnpm/hono@4.3.
|
117625
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/helper/cookie/index.js"() {
|
117163
117626
|
init_cookie();
|
117164
117627
|
getCookie = (c, key, prefix) => {
|
117165
117628
|
const cookie = c.req.raw.headers.get("Cookie");
|
@@ -117185,10 +117648,10 @@ var init_cookie2 = __esm({
|
|
117185
117648
|
}
|
117186
117649
|
});
|
117187
117650
|
|
117188
|
-
// node_modules/.pnpm/hono@4.3.
|
117651
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/http-exception.js
|
117189
117652
|
var HTTPException;
|
117190
117653
|
var init_http_exception = __esm({
|
117191
|
-
"node_modules/.pnpm/hono@4.3.
|
117654
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/http-exception.js"() {
|
117192
117655
|
HTTPException = class extends Error {
|
117193
117656
|
res;
|
117194
117657
|
status;
|
@@ -117199,11 +117662,7 @@ var init_http_exception = __esm({
|
|
117199
117662
|
}
|
117200
117663
|
getResponse() {
|
117201
117664
|
if (this.res) {
|
117202
|
-
|
117203
|
-
status: this.status,
|
117204
|
-
headers: this.res.headers
|
117205
|
-
});
|
117206
|
-
return newResponse;
|
117665
|
+
return this.res;
|
117207
117666
|
}
|
117208
117667
|
return new Response(this.message, {
|
117209
117668
|
status: this.status
|
@@ -117213,16 +117672,16 @@ var init_http_exception = __esm({
|
|
117213
117672
|
}
|
117214
117673
|
});
|
117215
117674
|
|
117216
|
-
// node_modules/.pnpm/hono@4.3.
|
117675
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/crypto.js
|
117217
117676
|
var init_crypto = __esm({
|
117218
|
-
"node_modules/.pnpm/hono@4.3.
|
117677
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/crypto.js"() {
|
117219
117678
|
}
|
117220
117679
|
});
|
117221
117680
|
|
117222
|
-
// node_modules/.pnpm/hono@4.3.
|
117681
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/buffer.js
|
117223
117682
|
var bufferToFormData;
|
117224
117683
|
var init_buffer = __esm({
|
117225
|
-
"node_modules/.pnpm/hono@4.3.
|
117684
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/buffer.js"() {
|
117226
117685
|
init_crypto();
|
117227
117686
|
bufferToFormData = (arrayBuffer, contentType) => {
|
117228
117687
|
const response = new Response(arrayBuffer, {
|
@@ -117235,10 +117694,10 @@ var init_buffer = __esm({
|
|
117235
117694
|
}
|
117236
117695
|
});
|
117237
117696
|
|
117238
|
-
// node_modules/.pnpm/hono@4.3.
|
117697
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/validator/validator.js
|
117239
117698
|
var validator;
|
117240
117699
|
var init_validator = __esm({
|
117241
|
-
"node_modules/.pnpm/hono@4.3.
|
117700
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/validator/validator.js"() {
|
117242
117701
|
init_cookie2();
|
117243
117702
|
init_http_exception();
|
117244
117703
|
init_buffer();
|
@@ -117320,17 +117779,17 @@ var init_validator = __esm({
|
|
117320
117779
|
}
|
117321
117780
|
});
|
117322
117781
|
|
117323
|
-
// node_modules/.pnpm/hono@4.3.
|
117782
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/validator/index.js
|
117324
117783
|
var init_validator2 = __esm({
|
117325
|
-
"node_modules/.pnpm/hono@4.3.
|
117784
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/validator/index.js"() {
|
117326
117785
|
init_validator();
|
117327
117786
|
}
|
117328
117787
|
});
|
117329
117788
|
|
117330
|
-
// node_modules/.pnpm/@hono+zod-validator@0.2.1_hono@4.3.
|
117789
|
+
// node_modules/.pnpm/@hono+zod-validator@0.2.1_hono@4.3.9_zod@3.23.8/node_modules/@hono/zod-validator/dist/esm/index.js
|
117331
117790
|
var zValidator;
|
117332
117791
|
var init_esm = __esm({
|
117333
|
-
"node_modules/.pnpm/@hono+zod-validator@0.2.1_hono@4.3.
|
117792
|
+
"node_modules/.pnpm/@hono+zod-validator@0.2.1_hono@4.3.9_zod@3.23.8/node_modules/@hono/zod-validator/dist/esm/index.js"() {
|
117334
117793
|
init_validator2();
|
117335
117794
|
zValidator = (target, schema5, hook2) => (
|
117336
117795
|
// @ts-expect-error not typed well
|
@@ -117357,10 +117816,10 @@ var init_esm = __esm({
|
|
117357
117816
|
}
|
117358
117817
|
});
|
117359
117818
|
|
117360
|
-
// node_modules/.pnpm/hono@4.3.
|
117819
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/html.js
|
117361
117820
|
var HtmlEscapedCallbackPhase, raw, resolveCallback;
|
117362
117821
|
var init_html = __esm({
|
117363
|
-
"node_modules/.pnpm/hono@4.3.
|
117822
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/html.js"() {
|
117364
117823
|
HtmlEscapedCallbackPhase = {
|
117365
117824
|
Stringify: 1,
|
117366
117825
|
BeforeStream: 2,
|
@@ -117396,10 +117855,10 @@ var init_html = __esm({
|
|
117396
117855
|
}
|
117397
117856
|
});
|
117398
117857
|
|
117399
|
-
// node_modules/.pnpm/hono@4.3.
|
117858
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/context.js
|
117400
117859
|
var TEXT_PLAIN, setHeaders, Context;
|
117401
117860
|
var init_context = __esm({
|
117402
|
-
"node_modules/.pnpm/hono@4.3.
|
117861
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/context.js"() {
|
117403
117862
|
init_html();
|
117404
117863
|
TEXT_PLAIN = "text/plain; charset=UTF-8";
|
117405
117864
|
setHeaders = (headers, map = {}) => {
|
@@ -117623,10 +118082,10 @@ var init_context = __esm({
|
|
117623
118082
|
}
|
117624
118083
|
});
|
117625
118084
|
|
117626
|
-
// node_modules/.pnpm/hono@4.3.
|
118085
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/compose.js
|
117627
118086
|
var compose;
|
117628
118087
|
var init_compose = __esm({
|
117629
|
-
"node_modules/.pnpm/hono@4.3.
|
118088
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/compose.js"() {
|
117630
118089
|
init_context();
|
117631
118090
|
compose = (middleware, onError, onNotFound) => {
|
117632
118091
|
return (context, next) => {
|
@@ -117677,7 +118136,7 @@ var init_compose = __esm({
|
|
117677
118136
|
}
|
117678
118137
|
});
|
117679
118138
|
|
117680
|
-
// node_modules/.pnpm/hono@4.3.
|
118139
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/body.js
|
117681
118140
|
async function parseFormData(request, options) {
|
117682
118141
|
const formData = await request.formData();
|
117683
118142
|
if (formData) {
|
@@ -117699,7 +118158,7 @@ function convertFormDataToBodyData(formData, options) {
|
|
117699
118158
|
}
|
117700
118159
|
var parseBody, handleParsingAllValues;
|
117701
118160
|
var init_body2 = __esm({
|
117702
|
-
"node_modules/.pnpm/hono@4.3.
|
118161
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/utils/body.js"() {
|
117703
118162
|
init_request2();
|
117704
118163
|
parseBody = async (request, options = { all: false }) => {
|
117705
118164
|
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
@@ -117723,10 +118182,10 @@ var init_body2 = __esm({
|
|
117723
118182
|
}
|
117724
118183
|
});
|
117725
118184
|
|
117726
|
-
// node_modules/.pnpm/hono@4.3.
|
118185
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/request.js
|
117727
118186
|
var HonoRequest;
|
117728
118187
|
var init_request2 = __esm({
|
117729
|
-
"node_modules/.pnpm/hono@4.3.
|
118188
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/request.js"() {
|
117730
118189
|
init_body2();
|
117731
118190
|
init_url();
|
117732
118191
|
HonoRequest = class {
|
@@ -117847,10 +118306,10 @@ var init_request2 = __esm({
|
|
117847
118306
|
}
|
117848
118307
|
});
|
117849
118308
|
|
117850
|
-
// node_modules/.pnpm/hono@4.3.
|
118309
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router.js
|
117851
118310
|
var METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE, METHODS, MESSAGE_MATCHER_IS_ALREADY_BUILT, UnsupportedPathError;
|
117852
118311
|
var init_router = __esm({
|
117853
|
-
"node_modules/.pnpm/hono@4.3.
|
118312
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router.js"() {
|
117854
118313
|
METHOD_NAME_ALL = "ALL";
|
117855
118314
|
METHOD_NAME_ALL_LOWERCASE = "all";
|
117856
118315
|
METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
@@ -117860,14 +118319,14 @@ var init_router = __esm({
|
|
117860
118319
|
}
|
117861
118320
|
});
|
117862
118321
|
|
117863
|
-
// node_modules/.pnpm/hono@4.3.
|
118322
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/hono-base.js
|
117864
118323
|
function defineDynamicClass() {
|
117865
118324
|
return class {
|
117866
118325
|
};
|
117867
118326
|
}
|
117868
118327
|
var COMPOSED_HANDLER, notFoundHandler, errorHandler, Hono;
|
117869
118328
|
var init_hono_base = __esm({
|
117870
|
-
"node_modules/.pnpm/hono@4.3.
|
118329
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/hono-base.js"() {
|
117871
118330
|
init_compose();
|
117872
118331
|
init_context();
|
117873
118332
|
init_http_exception();
|
@@ -118086,7 +118545,7 @@ var init_hono_base = __esm({
|
|
118086
118545
|
}
|
118087
118546
|
});
|
118088
118547
|
|
118089
|
-
// node_modules/.pnpm/hono@4.3.
|
118548
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/node.js
|
118090
118549
|
function compareKey(a3, b4) {
|
118091
118550
|
if (a3.length === 1) {
|
118092
118551
|
return b4.length === 1 ? a3 < b4 ? -1 : 1 : -1;
|
@@ -118108,7 +118567,7 @@ function compareKey(a3, b4) {
|
|
118108
118567
|
}
|
118109
118568
|
var LABEL_REG_EXP_STR, ONLY_WILDCARD_REG_EXP_STR, TAIL_WILDCARD_REG_EXP_STR, PATH_ERROR, regExpMetaChars, Node;
|
118110
118569
|
var init_node = __esm({
|
118111
|
-
"node_modules/.pnpm/hono@4.3.
|
118570
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/node.js"() {
|
118112
118571
|
LABEL_REG_EXP_STR = "[^/]+";
|
118113
118572
|
ONLY_WILDCARD_REG_EXP_STR = ".*";
|
118114
118573
|
TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
@@ -118196,10 +118655,10 @@ var init_node = __esm({
|
|
118196
118655
|
}
|
118197
118656
|
});
|
118198
118657
|
|
118199
|
-
// node_modules/.pnpm/hono@4.3.
|
118658
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/trie.js
|
118200
118659
|
var Trie;
|
118201
118660
|
var init_trie = __esm({
|
118202
|
-
"node_modules/.pnpm/hono@4.3.
|
118661
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
|
118203
118662
|
init_node();
|
118204
118663
|
Trie = class {
|
118205
118664
|
context = { varIndex: 0 };
|
@@ -118258,7 +118717,7 @@ var init_trie = __esm({
|
|
118258
118717
|
}
|
118259
118718
|
});
|
118260
118719
|
|
118261
|
-
// node_modules/.pnpm/hono@4.3.
|
118720
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/router.js
|
118262
118721
|
function buildWildcardRegExp(path5) {
|
118263
118722
|
return wildcardRegExpCache[path5] ??= new RegExp(
|
118264
118723
|
path5 === "*" ? "" : `^${path5.replace(
|
@@ -118341,7 +118800,7 @@ function findMiddleware(middleware, path5) {
|
|
118341
118800
|
}
|
118342
118801
|
var emptyParam, nullMatcher, wildcardRegExpCache, RegExpRouter;
|
118343
118802
|
var init_router2 = __esm({
|
118344
|
-
"node_modules/.pnpm/hono@4.3.
|
118803
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/router.js"() {
|
118345
118804
|
init_router();
|
118346
118805
|
init_url();
|
118347
118806
|
init_node();
|
@@ -118463,17 +118922,17 @@ var init_router2 = __esm({
|
|
118463
118922
|
}
|
118464
118923
|
});
|
118465
118924
|
|
118466
|
-
// node_modules/.pnpm/hono@4.3.
|
118925
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/index.js
|
118467
118926
|
var init_reg_exp_router = __esm({
|
118468
|
-
"node_modules/.pnpm/hono@4.3.
|
118927
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/reg-exp-router/index.js"() {
|
118469
118928
|
init_router2();
|
118470
118929
|
}
|
118471
118930
|
});
|
118472
118931
|
|
118473
|
-
// node_modules/.pnpm/hono@4.3.
|
118932
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/smart-router/router.js
|
118474
118933
|
var SmartRouter;
|
118475
118934
|
var init_router3 = __esm({
|
118476
|
-
"node_modules/.pnpm/hono@4.3.
|
118935
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/smart-router/router.js"() {
|
118477
118936
|
init_router();
|
118478
118937
|
SmartRouter = class {
|
118479
118938
|
name = "SmartRouter";
|
@@ -118530,17 +118989,17 @@ var init_router3 = __esm({
|
|
118530
118989
|
}
|
118531
118990
|
});
|
118532
118991
|
|
118533
|
-
// node_modules/.pnpm/hono@4.3.
|
118992
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/smart-router/index.js
|
118534
118993
|
var init_smart_router = __esm({
|
118535
|
-
"node_modules/.pnpm/hono@4.3.
|
118994
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/smart-router/index.js"() {
|
118536
118995
|
init_router3();
|
118537
118996
|
}
|
118538
118997
|
});
|
118539
118998
|
|
118540
|
-
// node_modules/.pnpm/hono@4.3.
|
118999
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/trie-router/node.js
|
118541
119000
|
var Node2;
|
118542
119001
|
var init_node2 = __esm({
|
118543
|
-
"node_modules/.pnpm/hono@4.3.
|
119002
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/trie-router/node.js"() {
|
118544
119003
|
init_router();
|
118545
119004
|
init_url();
|
118546
119005
|
Node2 = class {
|
@@ -118692,10 +119151,10 @@ var init_node2 = __esm({
|
|
118692
119151
|
}
|
118693
119152
|
});
|
118694
119153
|
|
118695
|
-
// node_modules/.pnpm/hono@4.3.
|
119154
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/trie-router/router.js
|
118696
119155
|
var TrieRouter;
|
118697
119156
|
var init_router4 = __esm({
|
118698
|
-
"node_modules/.pnpm/hono@4.3.
|
119157
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/trie-router/router.js"() {
|
118699
119158
|
init_url();
|
118700
119159
|
init_node2();
|
118701
119160
|
TrieRouter = class {
|
@@ -118721,17 +119180,17 @@ var init_router4 = __esm({
|
|
118721
119180
|
}
|
118722
119181
|
});
|
118723
119182
|
|
118724
|
-
// node_modules/.pnpm/hono@4.3.
|
119183
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/trie-router/index.js
|
118725
119184
|
var init_trie_router = __esm({
|
118726
|
-
"node_modules/.pnpm/hono@4.3.
|
119185
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/router/trie-router/index.js"() {
|
118727
119186
|
init_router4();
|
118728
119187
|
}
|
118729
119188
|
});
|
118730
119189
|
|
118731
|
-
// node_modules/.pnpm/hono@4.3.
|
119190
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/hono.js
|
118732
119191
|
var Hono2;
|
118733
119192
|
var init_hono = __esm({
|
118734
|
-
"node_modules/.pnpm/hono@4.3.
|
119193
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/hono.js"() {
|
118735
119194
|
init_hono_base();
|
118736
119195
|
init_reg_exp_router();
|
118737
119196
|
init_smart_router();
|
@@ -118747,17 +119206,17 @@ var init_hono = __esm({
|
|
118747
119206
|
}
|
118748
119207
|
});
|
118749
119208
|
|
118750
|
-
// node_modules/.pnpm/hono@4.3.
|
119209
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/index.js
|
118751
119210
|
var init_dist4 = __esm({
|
118752
|
-
"node_modules/.pnpm/hono@4.3.
|
119211
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/index.js"() {
|
118753
119212
|
init_hono();
|
118754
119213
|
}
|
118755
119214
|
});
|
118756
119215
|
|
118757
|
-
// node_modules/.pnpm/hono@4.3.
|
119216
|
+
// node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/middleware/cors/index.js
|
118758
119217
|
var cors;
|
118759
119218
|
var init_cors = __esm({
|
118760
|
-
"node_modules/.pnpm/hono@4.3.
|
119219
|
+
"node_modules/.pnpm/hono@4.3.9/node_modules/hono/dist/middleware/cors/index.js"() {
|
118761
119220
|
cors = (options) => {
|
118762
119221
|
const defaults3 = {
|
118763
119222
|
origin: "*",
|
@@ -120171,7 +120630,11 @@ var upPgHandler = (out) => {
|
|
120171
120630
|
raw: report.rawMap[it]
|
120172
120631
|
})).forEach((it) => {
|
120173
120632
|
const path5 = it.path;
|
120174
|
-
|
120633
|
+
let resultV6 = it.raw;
|
120634
|
+
if (it.raw.version === "5") {
|
120635
|
+
resultV6 = updateUpToV6(it.raw);
|
120636
|
+
}
|
120637
|
+
const result = updateUpToV7(resultV6);
|
120175
120638
|
console.log(`[${source_default.green("\u2713")}] ${path5}`);
|
120176
120639
|
(0, import_fs2.writeFileSync)(path5, JSON.stringify(result, null, 2));
|
120177
120640
|
});
|
@@ -120207,6 +120670,36 @@ var updateUpToV6 = (json) => {
|
|
120207
120670
|
enums
|
120208
120671
|
};
|
120209
120672
|
};
|
120673
|
+
var updateUpToV7 = (json) => {
|
120674
|
+
const schema5 = pgSchemaV6.parse(json);
|
120675
|
+
const tables = Object.fromEntries(
|
120676
|
+
Object.entries(schema5.tables).map((it) => {
|
120677
|
+
const table4 = it[1];
|
120678
|
+
const mappedIndexes = Object.fromEntries(
|
120679
|
+
Object.entries(table4.indexes).map((idx) => {
|
120680
|
+
const { columns, ...rest } = idx[1];
|
120681
|
+
const mappedColumns = columns.map((it2) => {
|
120682
|
+
return {
|
120683
|
+
expression: it2,
|
120684
|
+
isExpression: false,
|
120685
|
+
asc: true,
|
120686
|
+
nulls: "last",
|
120687
|
+
opClass: void 0
|
120688
|
+
};
|
120689
|
+
});
|
120690
|
+
return [idx[0], { columns: mappedColumns, ...rest }];
|
120691
|
+
})
|
120692
|
+
);
|
120693
|
+
return [it[0], { ...table4, indexes: mappedIndexes }];
|
120694
|
+
})
|
120695
|
+
);
|
120696
|
+
return {
|
120697
|
+
...schema5,
|
120698
|
+
version: "7",
|
120699
|
+
dialect: "postgresql",
|
120700
|
+
tables
|
120701
|
+
};
|
120702
|
+
};
|
120210
120703
|
|
120211
120704
|
// src/cli/commands/sqliteUp.ts
|
120212
120705
|
init_source();
|
@@ -121372,7 +121865,7 @@ var printVersions = async () => {
|
|
121372
121865
|
var versions = async () => {
|
121373
121866
|
const { npmVersion } = await ormCoreVersions();
|
121374
121867
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
121375
|
-
const envVersion = "0.
|
121868
|
+
const envVersion = "0.22.0";
|
121376
121869
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
121377
121870
|
const versions2 = `drizzle-kit: ${kitVersion}
|
121378
121871
|
${ormVersion}`;
|
@@ -121559,7 +122052,7 @@ var upCommand = new import_commander.Command("up").option("--config <config>", `
|
|
121559
122052
|
var pullCommand = new import_commander.Command("introspect").option("--config <config>", `Config path [default=drizzle.config.ts]`).option("--out <out>", `Migrations folder`).option("--dialect <dialect>", "Database dialect").option("--breakpoints", `Prepare SQL statements with breakpoints`).option(
|
121560
122053
|
"--introspect-casing <introspectCasing>",
|
121561
122054
|
"Column object keys naming strategy"
|
121562
|
-
).option("--tablesFilter", `Table name filters`).option("--schemaFilter", `Schema name filters`).option("--url <url>", "Database connection URL").option("--host <host>", "Database host").option("--port <port>", "Database port").option("--user <user>", "Database user").option("--password <password>", "Database password").option("--database <database>", "Database database name").option("--ssl <ssl>", "Database ssl").option("--auth-token <authToken>", "Database auth token [Turso]").option("--driver <driver>", "Driver used for querying the database").action(async (options) => {
|
122055
|
+
).option("--tablesFilter", `Table name filters`).option("--extensionsFilters", `Table name filters`).option("--schemaFilter", `Schema name filters`).option("--url <url>", "Database connection URL").option("--host <host>", "Database host").option("--port <port>", "Database port").option("--user <user>", "Database user").option("--password <password>", "Database password").option("--database <database>", "Database database name").option("--ssl <ssl>", "Database ssl").option("--auth-token <authToken>", "Database auth token [Turso]").option("--driver <driver>", "Driver used for querying the database").action(async (options) => {
|
121563
122056
|
await printVersions();
|
121564
122057
|
await assertPackages("drizzle-orm");
|
121565
122058
|
await assertOrmCoreVersion();
|