drizzle-kit 0.24.2-3c3ccca → 0.24.2-3ff6cb0
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +15 -7
- package/api.mjs +15 -7
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
@@ -106159,11 +106159,9 @@ var init_vercel_postgres = __esm({
|
|
106159
106159
|
});
|
106160
106160
|
|
106161
106161
|
// ../drizzle-orm/dist/monodriver.js
|
106162
|
-
function assertUnreachable2(_3) {
|
106163
|
-
throw new Error("Didn't expect to get here");
|
106164
|
-
}
|
106165
106162
|
async function drizzle14(client, params) {
|
106166
|
-
const
|
106163
|
+
const connection2 = params?.connection;
|
106164
|
+
const drizzleConfig = params ? removeKey(params, "connection") : void 0;
|
106167
106165
|
switch (client) {
|
106168
106166
|
case "node-postgres": {
|
106169
106167
|
const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
|
@@ -106255,10 +106253,14 @@ async function drizzle14(client, params) {
|
|
106255
106253
|
const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_vercel_postgres(), vercel_postgres_exports));
|
106256
106254
|
return drizzle22(sql3, drizzleConfig);
|
106257
106255
|
}
|
106256
|
+
default: {
|
106257
|
+
throw new Error(
|
106258
|
+
`Unsupported vendor for Drizzle ORM monodriver: '${client}'. Use dedicated drizzle initializer instead.`
|
106259
|
+
);
|
106260
|
+
}
|
106258
106261
|
}
|
106259
|
-
assertUnreachable2(client);
|
106260
106262
|
}
|
106261
|
-
var importError;
|
106263
|
+
var importError, removeKey;
|
106262
106264
|
var init_monodriver = __esm({
|
106263
106265
|
"../drizzle-orm/dist/monodriver.js"() {
|
106264
106266
|
"use strict";
|
@@ -106267,6 +106269,12 @@ var init_monodriver = __esm({
|
|
106267
106269
|
`Please install '${libName}' for Drizzle ORM to connect to database`
|
106268
106270
|
);
|
106269
106271
|
};
|
106272
|
+
removeKey = (obj, key) => {
|
106273
|
+
if (!(key in obj))
|
106274
|
+
return obj;
|
106275
|
+
delete obj.key;
|
106276
|
+
return obj;
|
106277
|
+
};
|
106270
106278
|
}
|
106271
106279
|
});
|
106272
106280
|
|
@@ -106620,7 +106628,7 @@ var init_migrator14 = __esm({
|
|
106620
106628
|
|
106621
106629
|
// ../drizzle-orm/dist/monomigrator.js
|
106622
106630
|
async function migrate14(db2, config) {
|
106623
|
-
switch (db2
|
106631
|
+
switch (db2[entityKind]) {
|
106624
106632
|
case "AwsDataApiPgDatabase": {
|
106625
106633
|
const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator2(), migrator_exports));
|
106626
106634
|
return migrate22(db2, config);
|
package/api.mjs
CHANGED
@@ -106162,11 +106162,9 @@ var init_vercel_postgres = __esm({
|
|
106162
106162
|
});
|
106163
106163
|
|
106164
106164
|
// ../drizzle-orm/dist/monodriver.js
|
106165
|
-
function assertUnreachable2(_3) {
|
106166
|
-
throw new Error("Didn't expect to get here");
|
106167
|
-
}
|
106168
106165
|
async function drizzle14(client, params) {
|
106169
|
-
const
|
106166
|
+
const connection2 = params?.connection;
|
106167
|
+
const drizzleConfig = params ? removeKey(params, "connection") : void 0;
|
106170
106168
|
switch (client) {
|
106171
106169
|
case "node-postgres": {
|
106172
106170
|
const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
|
@@ -106258,10 +106256,14 @@ async function drizzle14(client, params) {
|
|
106258
106256
|
const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_vercel_postgres(), vercel_postgres_exports));
|
106259
106257
|
return drizzle22(sql3, drizzleConfig);
|
106260
106258
|
}
|
106259
|
+
default: {
|
106260
|
+
throw new Error(
|
106261
|
+
`Unsupported vendor for Drizzle ORM monodriver: '${client}'. Use dedicated drizzle initializer instead.`
|
106262
|
+
);
|
106263
|
+
}
|
106261
106264
|
}
|
106262
|
-
assertUnreachable2(client);
|
106263
106265
|
}
|
106264
|
-
var importError;
|
106266
|
+
var importError, removeKey;
|
106265
106267
|
var init_monodriver = __esm({
|
106266
106268
|
"../drizzle-orm/dist/monodriver.js"() {
|
106267
106269
|
"use strict";
|
@@ -106270,6 +106272,12 @@ var init_monodriver = __esm({
|
|
106270
106272
|
`Please install '${libName}' for Drizzle ORM to connect to database`
|
106271
106273
|
);
|
106272
106274
|
};
|
106275
|
+
removeKey = (obj, key) => {
|
106276
|
+
if (!(key in obj))
|
106277
|
+
return obj;
|
106278
|
+
delete obj.key;
|
106279
|
+
return obj;
|
106280
|
+
};
|
106273
106281
|
}
|
106274
106282
|
});
|
106275
106283
|
|
@@ -106622,7 +106630,7 @@ var init_migrator14 = __esm({
|
|
106622
106630
|
|
106623
106631
|
// ../drizzle-orm/dist/monomigrator.js
|
106624
106632
|
async function migrate14(db2, config) {
|
106625
|
-
switch (db2
|
106633
|
+
switch (db2[entityKind]) {
|
106626
106634
|
case "AwsDataApiPgDatabase": {
|
106627
106635
|
const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator2(), migrator_exports));
|
106628
106636
|
return migrate22(db2, config);
|
package/bin.cjs
CHANGED
@@ -84028,7 +84028,7 @@ init_utils2();
|
|
84028
84028
|
var version2 = async () => {
|
84029
84029
|
const { npmVersion } = await ormCoreVersions();
|
84030
84030
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
84031
|
-
const envVersion = "0.24.2-
|
84031
|
+
const envVersion = "0.24.2-3ff6cb0";
|
84032
84032
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
84033
84033
|
const versions = `drizzle-kit: ${kitVersion}
|
84034
84034
|
${ormVersion}`;
|